mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

The MCU device on SG2044 exposes the same interface as SG2042, which is already supported by the kernel. Add compatible string for monitor device of SG2044. Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250413223507.46480-7-inochiama@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
48 lines
926 B
YAML
48 lines
926 B
YAML
# 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>;
|
|
};
|
|
};
|