Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch

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

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

Maintainers (maintainers): "Daniel Matyas <daniel.matyas@analog.com>"

Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch with I2C Interface https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31827-MAX31829.pdf

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "adi,max31827"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "adi,max31828", "adi,max31829"

Item 2

Exact value (const): "adi,max31827"

reg — required here #

Maximum number of items (maxItems): 1

vref-supply — required here #

Must have values in the interval (1.6V; 3.6V) in order for the device to function correctly.

adi,comp-int — not listed as required here #

If present interrupt mode is used. If not present comparator mode is used (default).

Value type (type): "boolean"

adi,alarm-pol — not listed as required here #

Sets the alarms active state. - 0 = active low - 1 = active high

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

Allowed values (enum): 0, 1

adi,fault-q — not listed as required here #

Select how many consecutive temperature faults must occur before overtemperature or undertemperature faults are indicated in the corresponding status bits.

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

Allowed values (enum): 1, 2, 4, 8

adi,timeout-enable — not listed as required here #

Enables timeout. Bus timeout resets the I2C-compatible interface when SCL is low for more than 30ms (nominal).

Value type (type): "boolean"

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)

Exact value (const): "adi,max31829"

When the condition matches (then) #

Properties and child nodes (properties)

adi,alarm-pol — not listed as required here

Default value (default): 1

When the condition does not match (else) #

Properties and child nodes (properties)

adi,alarm-pol — not listed as required here

Default value (default): 0

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "adi,max31827"

When the condition matches (then) #

Properties and child nodes (properties)

adi,fault-q — not listed as required here

Default value (default): 1

When the condition does not match (else) #

Properties and child nodes (properties)

adi,fault-q — not listed as required here

Default value (default): 4

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

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>;

    temperature-sensor@42 {
        compatible = "adi,max31827";
        reg = <0x42>;
        vref-supply = <&reg_vdd>;
        adi,comp-int;
        adi,alarm-pol = <0>;
        adi,fault-q = <1>;
        adi,timeout-enable;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page