Skip to contentSkip to conversation

dt-bindings: hwmon: Convert apm,xgene-slimpro-hwmon to DT schema

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Oct 13, 2025 – Oct 14, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: hwmon: Convert apm,xgene-slimpro-hwmon to DT schema

Convert APM X-Gene slimpro-hwmon binding to DT schema format. It's a straight-forward conversion.

---
 .../hwmon/apm,xgene-slimpro-hwmon.yaml        | 30 +++++++++++++++++++
 .../bindings/hwmon/apm-xgene-hwmon.txt        | 14 ---------
 2 files changed, 30 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hwmon/apm,xgene-slimpro-hwmon.yaml
 delete mode 100644 Documentation/devicetree/bindings/hwmon/apm-xgene-hwmon.txt
Documentation/devicetree/bindings/hwmon/apm,xgene-slimpro-hwmon.yaml new file +30 -0
new file mode 100644
index 000000000000..58c51626a9ce
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/apm,xgene-slimpro-hwmon.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: APM X-Gene SLIMpro hwmon
+
+maintainers:
+  - Khuong Dinh <[email protected]>
+
+properties:
+  compatible:
+    const: apm,xgene-slimpro-hwmon
+
+  mboxes:
+    maxItems: 1
+
+required:
+  - compatible
+  - mboxes
+
+additionalProperties: false
+
+examples:
+  - |
+    hwmon {
+        compatible = "apm,xgene-slimpro-hwmon";
+        mboxes = <&mailbox 7>;
+    };
Documentation/devicetree/bindings/hwmon/apm-xgene-hwmon.txt deleted +0 -14
deleted file mode 100644
index 59b38557f1bb..000000000000
@@ -1,14 +0,0 @@
-APM X-Gene hwmon driver
-
-APM X-Gene SOC sensors are accessed over the "SLIMpro" mailbox.
-
-Required properties :
- - compatible : should be "apm,xgene-slimpro-hwmon"
- - mboxes : use the label reference for the mailbox as the first parameter.
-	    The second parameter is the channel number.
-
-Example :
-	hwmonslimpro {
-		compatible = "apm,xgene-slimpro-hwmon";
-		mboxes = <&mailbox 7>;
-	};
Signature · 1 line
2.51.0