Skip to contentSkip to conversation

dt-bindings: reset: st: convert to dtschema

PATCH Superseded Gopi Krishna Menon 2 participants 5 messages Mar 24 – Mar 25

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: reset: st: convert to dtschema

Convert the STiH4xx reset controller bindings to DT schema.

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 .../power/reset/st,stih407-restart.yaml       | 31 +++++++++++++++++++
 .../bindings/power/reset/st-reset.txt         | 11 -------
 2 files changed, 31 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml
 delete mode 100644 Documentation/devicetree/bindings/power/reset/st-reset.txt
Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml new file +31 -0
new file mode 100644
index 000000000000..d7adbc00f5c3
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/reset/st,stih407-restart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ST SW reset controller
+
+maintainers:
+  - Lee Jones <[email protected]>
+
+properties:
+  compatible:
+    const: st,stih407-restart
+
+  st,syscfg:
+    description: phandle of the syscfg node
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+  - compatible
+  - st,syscfg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    reset {
+      compatible = "st,stih407-restart";
+      st,syscfg = <&syscfg_sbc_reg>;
+    };
Documentation/devicetree/bindings/power/reset/st-reset.txt deleted +0 -11
deleted file mode 100644
index b63948737d80..000000000000
@@ -1,11 +0,0 @@
-*Device-Tree bindings for ST SW reset functionality
-
-Required properties:
-- compatible: should be "stih407-restart".
-- st,syscfg: should be a phandle of the syscfg node.
-
-Example node:
-	restart {
-		compatible = "st,stih407-restart";
-		st,syscfg = <&syscfg_sbc_reg>;
-	};
Signature · 1 line
2.52.0
#1 lore raw
Quoted 4 lines · Gopi Krishna Menon

Convert the STiH4xx reset controller bindings to DT schema.

Both suggested you to write this patch?

Quoted 32 lines

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 .../power/reset/st,stih407-restart.yaml       | 31 +++++++++++++++++++
 .../bindings/power/reset/st-reset.txt         | 11 -------
 2 files changed, 31 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml
 delete mode 100644 Documentation/devicetree/bindings/power/reset/st-reset.txt
Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml new file +14 -0
new file mode 100644
index 000000000000..d7adbc00f5c3
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/reset/st,stih407-restart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ST SW reset controller
+
+maintainers:
+  - Lee Jones <[email protected]>
+
+properties:
+  compatible:
+    const: st,stih407-restart

Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml line 24

Quoted 10 lines
Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml new file +10 -0
+
+  st,syscfg:
+    description: phandle of the syscfg node
+    $ref: /schemas/types.yaml#/definitions/phandle
+
+required:
+  - compatible
+  - st,syscfg
+
+unevaluatedProperties: false

additionalProperties instead

Best regards,
Krzysztof

#2 lore raw
Quoted 8 lines · Krzysztof Kozlowski
Quoted 4 lines · Gopi Krishna Menon

Convert the STiH4xx reset controller bindings to DT schema.

Both suggested you to write this patch?

Hi Krzysztof,

Thanks for the review, They helped me to improve the PATCH,

- Dhruva suggested me to change the subject from dt-bindings: power:
reset: st: convert to dtschema to dt-bindings: reset: st: convert to dtschema as that was the general trend followed with similar files.
- Daniel suggested me to use the word 'reset' instead of 'restart' in the patch (whereever possible) as that is more accurate here.

That's why I added those Suggested-by tags.

Quoted 36 lines
Quoted 36 lines

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 .../power/reset/st,stih407-restart.yaml       | 31 +++++++++++++++++++
 .../bindings/power/reset/st-reset.txt         | 11 -------
 2 files changed, 31 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml
 delete mode 100644 Documentation/devicetree/bindings/power/reset/st-reset.txt
Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml new file +18 -0
new file mode 100644
index 000000000000..d7adbc00f5c3
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/reset/st,stih407-restart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ST SW reset controller
+
+maintainers:
+  - Lee Jones <[email protected]>
+
+properties:
+  compatible:
+    const: st,stih407-restart
+
+  st,syscfg:
+    description: phandle of the syscfg node
+    $ref: /schemas/types.yaml#/definitions/phandle
Quoted 9 lines

Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml line 24

Quoted 6 lines
Documentation/devicetree/bindings/power/reset/st,stih407-restart.yaml new file +6 -0
+
+required:
+  - compatible
+  - st,syscfg
+
+unevaluatedProperties: false

additionalProperties instead

Ok will send a V2 for this.

Quoted 4 lines

Best regards,
Krzysztof

Thanks,
Gopi Krishna Menon

#3 lore raw
Quoted 14 lines · Gopi Krishna Menon
Quoted 8 lines · Krzysztof Kozlowski
Quoted 4 lines · Gopi Krishna Menon

Convert the STiH4xx reset controller bindings to DT schema.

Both suggested you to write this patch?

Hi Krzysztof,

Thanks for the review, They helped me to improve the PATCH,

Quoted 7 lines

- Dhruva suggested me to change the subject from dt-bindings: power:
reset: st: convert to dtschema to dt-bindings: reset: st: convert to dtschema as that was the general trend followed with similar files.
- Daniel suggested me to use the word 'reset' instead of 'restart' in the patch (whereever possible) as that is more accurate here.

That's why I added those Suggested-by tags.

This is not the meaning of Suggested-by. Drop the tags.

I gave you now review, so you will add "Suggested-by: Krzysztof ..."?

Best regards,
Krzysztof

#4 lore raw
Quoted 21 lines · Krzysztof Kozlowski
Quoted 20 lines · Gopi Krishna Menon
Quoted 8 lines · Krzysztof Kozlowski
Quoted 4 lines · Gopi Krishna Menon

Convert the STiH4xx reset controller bindings to DT schema.

Both suggested you to write this patch?

Hi Krzysztof,

Thanks for the review, They helped me to improve the PATCH,

- Dhruva suggested me to change the subject from dt-bindings: power:
reset: st: convert to dtschema to dt-bindings: reset: st: convert to dtschema as that was the general trend followed with similar files.
- Daniel suggested me to use the word 'reset' instead of 'restart' in the patch (whereever possible) as that is more accurate here.

Quoted 4 lines
Quoted 1 line

That's why I added those Suggested-by tags.

This is not the meaning of Suggested-by. Drop the tags.

Understood. Will remove it and send the v2.

Quoted 2 lines

I gave you now review, so you will add "Suggested-by: Krzysztof ..."?

Earlier I would have. Didnt understand the use and meaning of this tag properly. But will take care not to let this happen in future.

Quoted 2 lines

Best regards,
Krzysztof