Skip to contentSkip to conversation

dt-bindings: thermal: marvell,dove-thermal: Convert to DT Schema

PATCH In review Shaunak Datar 2 participants 2 messages Nov 12 – Nov 23

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: thermal: marvell,dove-thermal: Convert to DT Schema

Convert the Dove Thermal binding from legacy text format to YAML schema to enable validation with dtbs_check.

---
 .../bindings/thermal/dove-thermal.txt         | 18 ----------
 .../thermal/marvell,dove-thermal.yaml         | 35 +++++++++++++++++++
 2 files changed, 35 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/thermal/dove-thermal.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/marvell,dove-thermal.yaml
Documentation/devicetree/bindings/thermal/dove-thermal.txt deleted +0 -18
deleted file mode 100644
index 6f474677d472..000000000000
@@ -1,18 +0,0 @@
-* Dove Thermal
-
-This driver is for Dove SoCs which contain a thermal sensor.
-
-Required properties:
-- compatible : "marvell,dove-thermal"
-- reg : Address range of the thermal registers
-
-The reg properties should contain two ranges. The first is for the
-three Thermal Manager registers, while the second range contains the
-Thermal Diode Control Registers.
-
-Example:
-
-	thermal@10078 {
-		compatible = "marvell,dove-thermal";
-		reg = <0xd001c 0x0c>, <0xd005c 0x08>;
-	};
Documentation/devicetree/bindings/thermal/marvell,dove-thermal.yaml new file +35 -0
new file mode 100644
index 000000000000..a11611b3c6c1
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/marvell,dove-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Dove Thermal
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+
+description:
+  Thermal sensor present in the Marvell Dove SoCs.
+
+properties:
+  compatible:
+    const: marvell,dove-thermal
+
+  reg:
+    items:
+      - description: Thermal Manager registers
+      - description: Thermal Diode Control registers
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    thermal-diode@1c {
+        compatible = "marvell,dove-thermal";
+        reg = <0x001c 0x0c>, <0x005c 0x08>;
+    };
Signature · 1 line
2.53.0