TMP464 and TMP468 temperature sensors
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/ti,tmp464.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Guenter Roeck <linux@roeck-us.net>"
±0.0625°C Remote and Local temperature sensor https://www.ti.com/lit/ds/symlink/tmp464.pdf https://www.ti.com/lit/ds/symlink/tmp468.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tmp464", "ti,tmp468"
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-8])$ — 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-8 are remote channels.
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):8
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@4b {
compatible = "ti,tmp464";
reg = <0x4b>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@4b {
compatible = "ti,tmp464";
reg = <0x4b>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0x0>;
label = "local";
};
channel@1 {
reg = <0x1>;
ti,n-factor = <(-10)>;
label = "external";
};
channel@2 {
reg = <0x2>;
ti,n-factor = <0x10>;
label = "somelabel";
};
channel@3 {
reg = <0x3>;
status = "disabled";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)