Skip to contentSkip to conversation

dt-bindings: arm: marvell: Convert armada-380-mpcore-soc-ctrl to DT Schema

PATCH In review Padmashree S S 3 participants 5 messages Mar 27 – Apr 14

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

PATCH v2 1/1 dt-bindings: arm: marvell: Convert armada-380-mpcore-soc-ctrl to DT Schema

Convert armada-380-mpcore-soc-ctrl to DT schema

---
 .../marvell/armada-380-mpcore-soc-ctrl.txt    | 14 --------
 .../marvell/armada-380-mpcore-soc-ctrl.yaml   | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.txt
 create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.yaml
Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.txt deleted +0 -14
deleted file mode 100644
index 8781073029e9..000000000000
@@ -1,14 +0,0 @@
-Marvell Armada 38x CA9 MPcore SoC Controller
-============================================
-
-Required properties:
-
-- compatible: Should be "marvell,armada-380-mpcore-soc-ctrl".
-
-- reg: should be the register base and length as documented in the
-  datasheet for the CA9 MPcore SoC Control registers
-
-mpcore-soc-ctrl@20d20 {
-	compatible = "marvell,armada-380-mpcore-soc-ctrl";
-	reg = <0x20d20 0x6c>;
-};
Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.yaml new file +32 -0
new file mode 100644
index 000000000000..a897d4ba4e32
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/marvell/armada-380-mpcore-soc-ctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Armada 38x CA9 MPcore SoC Controller
+
+maintainers:
+  - Andrew Lunn <[email protected]>
+  - Gregory Clement <[email protected]>
+  - Sebastian Hesselbarth <[email protected]>
+
+properties:
+  compatible:
+    const: marvell,armada-380-mpcore-soc-ctrl
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    mpcore-soc-ctrl@20d20 {
+        compatible = "marvell,armada-380-mpcore-soc-ctrl";
+        reg = <0x20d20 0x6c>;
+    };
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 1 line · Padmashree S S

Convert armada-380-mpcore-soc-ctrl to DT schema

You have already been asked once to slow down. Please don't ignore Reviewers/Maintainer comments.

Please don't post new versions of a patch within 24 hours. And 24 hours can be too fast, particularly at the weekend.

Quoted 2 lines

---

Here, under the --- you should indicate what changed since the last version of the patch.

Andrew

maintainer
#3 lore raw
In reply to Padmashree S S
Quoted 9 lines · Padmashree S S

Convert armada-380-mpcore-soc-ctrl to DT schema

---
 .../marvell/armada-380-mpcore-soc-ctrl.txt    | 14 --------
 .../marvell/armada-380-mpcore-soc-ctrl.yaml   | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.txt
 create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.yaml

Please move this to bindings/soc/marvell/marvell,armada-380-mpcore-soc-ctrl.yaml

Don't forget to update the '$id' value.

Rob

#4 lore raw
Quoted 12 lines · Rob Herring
Quoted 9 lines · Padmashree S S

Convert armada-380-mpcore-soc-ctrl to DT schema

---
 .../marvell/armada-380-mpcore-soc-ctrl.txt    | 14 --------
 .../marvell/armada-380-mpcore-soc-ctrl.yaml   | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.txt
 create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-380-mpcore-soc-ctrl.yaml
Quoted 6 lines

Please move this to bindings/soc/marvell/marvell,armada-380-mpcore-soc-ctrl.yaml

Don't forget to update the '$id' value.

Rob

Thank you for the review, I'll move the binding and change the $id in the next version of this patch.