File Index
Files and directories
Sign in
FILE

sophgo,sg2042-hwmon-mcu.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml YAML
 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    oneOf:
15      - items:
16          - const: sophgo,sg2044-hwmon-mcu
17          - const: sophgo,sg2042-hwmon-mcu
18      - const: sophgo,sg2042-hwmon-mcu
19
20  reg:
21    maxItems: 1
22
23  "#thermal-sensor-cells":
24    const: 1
25
26required:
27  - compatible
28  - reg
29  - "#thermal-sensor-cells"
30
31allOf:
32  - $ref: /schemas/thermal/thermal-sensor.yaml#
33
34unevaluatedProperties: false
35
36examples:
37  - |
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        hwmon@17 {
43            compatible = "sophgo,sg2042-hwmon-mcu";
44            reg = <0x17>;
45            #thermal-sensor-cells = <1>;
46        };
47    };
~/ Read-only file preview.