TMP42x/TMP44x temperature sensor
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/ti,tmp421.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Guenter Roeck <linux@roeck-us.net>"
±1°C Remote and Local temperature sensor https://www.ti.com/lit/ds/symlink/tmp422.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tmp421", "ti,tmp422", "ti,tmp423", "ti,tmp441", "ti,tmp442"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^channel@([0-3])$ — name matches this regular expression #
Value type (type): "object"
Represents channels of the device and their specific configuration.
Properties and child nodes (properties) #
reg — required here
The channel number. 0 is local channel, 1-3 are remote channels
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):3
label — not listed as required here
A descriptive name for this channel, like "ambient" or "psu".
ti,n-factor — not listed as required here
The value (two's complement) to be programmed in the channel specific N correction register. For remote channels only.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32
Minimum value (minimum): -128
Maximum value (maximum): 127
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@4c {
compatible = "ti,tmp422";
reg = <0x4c>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@4c {
compatible = "ti,tmp422";
reg = <0x4c>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0x0>;
ti,n-factor = <0x1>;
label = "local";
};
channel@1 {
reg = <0x1>;
ti,n-factor = <0x0>;
label = "somelabel";
};
channel@2 {
reg = <0x2>;
status = "disabled";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)