Nuvoton NCT7802Y Hardware Monitoring IC

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

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

Maintainers (maintainers): "Guenter Roeck <linux@roeck-us.net>"

The NCT7802Y is a hardware monitor IC which supports one on-die and up to 5 remote temperature sensors with SMBus interface.

Datasheets:
  https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,nct7802"

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

Properties matching a name pattern (patternProperties) #

^channel@[0-3]$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — required here

Array item rules (items)

Item 1

Allowed values (enum): 0, 1, 2, 3

sensor-type — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "temperature", "voltage"

temperature-mode — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "thermistor", "thermal-diode"

Required in this object (required): "reg"

All of these rules must match (allOf) #

Rule 1

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): 1, 2, 3

When the condition matches (then)

Required in this object (required): "sensor-type"

When the condition does not match (else)

This rule must not match (not)

Required in this object (required): "sensor-type"

Rule 2

Condition (if)

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): 1, 2

sensor-type — not listed as required here

Array item rules (items)

Item 1

Allowed values (enum): "temperature"

When the condition matches (then)

Required in this object (required): "temperature-mode"

When the condition does not match (else)

This rule must not match (not)

Required in this object (required): "temperature-mode"

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

Examples (examples) #

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

    nct7802@28 {
        compatible = "nuvoton,nct7802";
        reg = <0x28>;

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

        channel@0 { /* LTD */
            reg = <0>;
        };

        channel@1 { /* RTD1 */
            reg = <1>;
            sensor-type = "voltage";
        };

        channel@2 { /* RTD2 */
            reg = <2>;
            sensor-type = "temperature";
            temperature-mode = "thermal-diode";
        };

        channel@3 { /* RTD3 */
            reg = <3>;
            sensor-type = "temperature";
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 45: Local Temperature Sensor ("LTD")

Line 46: Remote Temperature Sensor or Voltage Sensor 1 ("RTD1")

Line 47: Remote Temperature Sensor or Voltage Sensor 2 ("RTD2")

Line 48: Remote Temperature Sensor or Voltage Sensor 3 ("RTD3")

Line 66: For channels RTD1, RTD2 and RTD3, require sensor-type to be set.

Line 67: Otherwise (for all other channels), do not allow temperature-mode to be

Line 68: set.

Line 85: For channels RTD1 and RTD2 and if sensor-type is "temperature", require

Line 86: temperature-mode to be set. Otherwise (for all other channels or

Line 87: sensor-type settings), do not allow temperature-mode to be set

Edit this page