Sophgo SG2042 onboard MCU support

Schema identifier ($id): "http://devicetree.org/schemas/hwmon/sophgo,sg2042-hwmon-mcu.yaml#"

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

Maintainers (maintainers): "Inochi Amaoto <inochiama@outlook.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "sophgo,sg2044-hwmon-mcu"

Item 2

Exact value (const): "sophgo,sg2042-hwmon-mcu"

Rule 2

Exact value (const): "sophgo,sg2042-hwmon-mcu"

reg — required here #

Maximum number of items (maxItems): 1

#thermal-sensor-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "#thermal-sensor-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/thermal/thermal-sensor.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

    hwmon@17 {
        compatible = "sophgo,sg2042-hwmon-mcu";
        reg = <0x17>;
        #thermal-sensor-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page