Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
Extension
.yaml
Size
926 bytes
Lines
48
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/sophgo,sg2042-hwmon-mcu.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Sophgo SG2042 onboard MCU support

maintainers:
  - Inochi Amaoto <inochiama@outlook.com>

properties:
  compatible:
    oneOf:
      - items:
          - const: sophgo,sg2044-hwmon-mcu
          - const: sophgo,sg2042-hwmon-mcu
      - const: sophgo,sg2042-hwmon-mcu

  reg:
    maxItems: 1

  "#thermal-sensor-cells":
    const: 1

required:
  - compatible
  - reg
  - "#thermal-sensor-cells"

allOf:
  - $ref: /schemas/thermal/thermal-sensor.yaml#

unevaluatedProperties: false

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

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

Annotation

Implementation Notes