xref: /linux/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/hwmon/sophgo,sg2042-hwmon-mcu.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sophgo SG2042 onboard MCU support
8
9maintainers:
10  - Inochi Amaoto <inochiama@outlook.com>
11
12properties:
13  compatible:
14    const: sophgo,sg2042-hwmon-mcu
15
16  reg:
17    maxItems: 1
18
19  "#thermal-sensor-cells":
20    const: 1
21
22required:
23  - compatible
24  - reg
25  - "#thermal-sensor-cells"
26
27allOf:
28  - $ref: /schemas/thermal/thermal-sensor.yaml#
29
30unevaluatedProperties: false
31
32examples:
33  - |
34    i2c {
35        #address-cells = <1>;
36        #size-cells = <0>;
37
38        hwmon@17 {
39            compatible = "sophgo,sg2042-hwmon-mcu";
40            reg = <0x17>;
41            #thermal-sensor-cells = <1>;
42        };
43    };
44