LM90 series thermometer

Schema identifier ($id): "http://devicetree.org/schemas/hwmon/national,lm90.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jean Delvare <jdelvare@suse.com>", "Guenter Roeck <linux@roeck-us.net>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,adm1032", "adi,adt7461", "adi,adt7461a", "adi,adt7481", "dallas,max6646", "dallas,max6647", "dallas,max6649", "dallas,max6654", "dallas,max6657", "dallas,max6658", "dallas,max6659", "dallas,max6680", "dallas,max6681", "dallas,max6695", "dallas,max6696", "gmt,g781", "national,lm86", "national,lm89", "national,lm90", "national,lm99", "nuvoton,nct7716", "nuvoton,nct7717", "nuvoton,nct7718", "nxp,sa56004", "onnn,nct72", "onnn,nct214", "onnn,nct218", "onnn,nct1008", "ti,tmp451", "ti,tmp461", "winbond,w83l771"

interrupts — not listed as required here #

Array item rules (items) #

Item 1

Single interrupt specifier which describes the LM90 "-ALERT" pin output.

reg — required here #

Maximum number of items (maxItems): 1

#thermal-sensor-cells — not listed as required here #

Exact value (const): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

vcc-supply — not listed as required here #

phandle to the regulator that provides the +VCC supply

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

Set to enable extended range temperature.

Value type (type): "boolean"

Required in this object (required): "compatible", "reg"

Properties matching a name pattern (patternProperties) #

^channel@([0-2])$ — 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-2 are remote channels.

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 2

label — not listed as required here

A descriptive name for this channel, like "ambient" or "psu".

temperature-offset-millicelsius — not listed as required here

Temperature offset to be added to or subtracted from remote temperature measurements.

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adt7461", "adi,adt7461a", "adi,adt7481", "ti,tmp451", "ti,tmp461"

When the condition matches (then) #

Properties and child nodes (properties)

ti,extended-range-enable — 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): "dallas,max6646", "dallas,max6647", "dallas,max6649", "dallas,max6654", "dallas,max6657", "dallas,max6658", "dallas,max6659", "dallas,max6695", "dallas,max6696", "nuvoton,nct7716", "nuvoton,nct7717"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel@([0-2])$ — name matches this regular expression

Properties and child nodes (properties)

temperature-offset-millicelsius — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adt7461", "adi,adt7461a", "adi,adt7481", "onnn,nct72", "onnn,nct214", "onnn,nct218", "onnn,nct1008"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel@([0-2])$ — name matches this regular expression

Properties and child nodes (properties)

temperature-offset-millicelsius — not listed as required here

Maximum value (maximum): 127750

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "adi,adm1032", "dallas,max6680", "dallas,max6681", "gmt,g781", "national,lm86", "national,lm89", "national,lm90", "national,lm99", "nuvoton,nct7718", "nxp,sa56004", "winbond,w83l771"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel@([0-2])$ — name matches this regular expression

Properties and child nodes (properties)

temperature-offset-millicelsius — not listed as required here

Maximum value (maximum): 127875

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,tmp451", "ti,tmp461"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel@([0-2])$ — name matches this regular expression

Properties and child nodes (properties)

temperature-offset-millicelsius — not listed as required here

Maximum value (maximum): 127937

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    sensor@4c {
        compatible = "onnn,nct1008";
        reg = <0x4c>;
        vcc-supply = <&palmas_ldo6_reg>;
        interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
        #thermal-sensor-cells = <1>;
    };
};
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    sensor@4c {
        compatible = "adi,adt7481";
        reg = <0x4c>;
        #address-cells = <1>;
        #size-cells = <0>;

        channel@0 {
            reg = <0x0>;
            label = "local";
        };

        channel@1 {
            reg = <0x1>;
            label = "front";
            temperature-offset-millicelsius = <4000>;
        };

        channel@2 {
            reg = <0x2>;
            label = "back";
            temperature-offset-millicelsius = <750>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page