TMP401, TPM411 and TMP43x temperature sensor

Schema identifier ($id): "http://devicetree.org/schemas/hwmon/ti,tmp401.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

Datasheets: https://www.ti.com/lit/ds/symlink/tmp401.pdf https://www.ti.com/lit/ds/symlink/tmp411.pdf https://www.ti.com/lit/ds/symlink/tmp431.pdf https://www.ti.com/lit/ds/symlink/tmp435.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,tmp401", "ti,tmp411", "ti,tmp431", "ti,tmp432", "ti,tmp435"

reg — required here #

Maximum number of items (maxItems): 1

ti,extended-range-enable — not listed as required here #

When set, this sensor measures over extended temperature range.

Value type (type): "boolean"

ti,n-factor — not listed as required here #

value to be used for converting remote channel measurements to temperature.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32

Minimum value (minimum): -128

Maximum value (maximum): 127

ti,beta-compensation — not listed as required here #

value to select beta correction range.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 15

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tmp401"

When the condition matches (then) #

Properties and child nodes (properties)

ti,n-factor — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tmp401", "ti,tmp411"

When the condition matches (then) #

Properties and child nodes (properties)

ti,beta-compensation — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible", "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,tmp401";
    reg = <0x4c>;
  };
};
i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  sensor@4c {
    compatible = "ti,tmp431";
    reg = <0x4c>;
    ti,extended-range-enable;
    ti,n-factor = <0x3b>;
    ti,beta-compensation = <0x7>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page