dt-bindings: power: reset: cortina: Convert to DT schema and rename node
Subsystems (3)
v2 cover dt-bindings: power: reset: cortina: Convert to DT schema and rename node
Convert the Cortina Systems Gemini Poweroff Controller bindings to DT schema and update corresponding dtsi file with new node name
---
Khushal Chitturi (2):
dt-bindings: power: reset: cortina,gemini-power-controller: convert to
DT schema
ARM: dts: gemini: Rename power controller node to gemini-poweroff
.../cortina,gemini-power-controller.yaml | 42 +++++++++++++++++++ .../bindings/power/reset/gemini-poweroff.txt | 17 -------- arch/arm/boot/dts/gemini/gemini.dtsi | 2 +- 3 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml delete mode 100644 Documentation/devicetree/bindings/power/reset/gemini-poweroff.txt
Signature · 1 line
2.53.0
PATCH v2 1/2 dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
Convert the Cortina Systems Gemini Poweroff Controller bindings to DT schema.
---
Changelog:
v1 -> v2:
- Renamed the node from power-controller to gemini-poweroff to resolve dtschema warnings.
Note:
* This patch series is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings
.../cortina,gemini-power-controller.yaml | 42 +++++++++++++++++++ .../bindings/power/reset/gemini-poweroff.txt | 17 -------- 2 files changed, 42 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml delete mode 100644 Documentation/devicetree/bindings/power/reset/gemini-poweroff.txt
Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml new file +42 -0
@@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/cortina,gemini-power-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cortina Systems Gemini Poweroff Controller + +maintainers: + - Linus Walleij <[email protected]> + +description: | + The Gemini power controller is a dedicated IP block in the Cortina Gemini SoC that + controls system power-down operations. + +properties: + compatible: + const: cortina,gemini-power-controller + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + gemini-poweroff@4b000000 { + compatible = "cortina,gemini-power-controller"; + reg = <0x4b000000 0x100>; + interrupts = <26 IRQ_TYPE_EDGE_FALLING>; + }; +...
Documentation/devicetree/bindings/power/reset/gemini-poweroff.txt deleted +0 -17
@@ -1,17 +0,0 @@ -* Device-Tree bindings for Cortina Systems Gemini Poweroff - -This is a special IP block in the Cortina Gemini SoC that only -deals with different ways to power the system down. - -Required properties: -- compatible: should be "cortina,gemini-power-controller" -- reg: should contain the physical memory base and size -- interrupts: should contain the power management interrupt - -Example: - -power-controller@4b000000 { - compatible = "cortina,gemini-power-controller"; - reg = <0x4b000000 0x100>; - interrupts = <26 IRQ_TYPE_EDGE_FALLING>; -};
Signature · 1 line
2.53.0
Re: [PATCH v2 1/2] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml line 37
Quoted 7 lines · Khushal Chitturi
Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml new file +7
-0+additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + gemini-poweroff@4b000000 {
I gave a list of possible names, yet you chosen different one. No, it does not work like that.
Please read the feedback and choose one of the names mentioned there.
And next time please read DT maintainer review feedback more carefully.
Best regards,
Krzysztof
PATCH v2 2/2 ARM: dts: gemini: Rename power controller node to gemini-poweroff
In reply to Khushal ChitturiUpdate the node name for the Cortina Gemini power controller from power-controller to gemini-poweroff since node "power controller" is reserved for power domain controller.
--- arch/arm/boot/dts/gemini/gemini.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/gemini/gemini.dtsi +1 -1
@@ -228,7 +228,7 @@ intcon: interrupt-controller@48000000 { #interrupt-cells = <2>; }; - power-controller@4b000000 { + gemini-poweroff@4b000000 { compatible = "cortina,gemini-power-controller"; reg = <0x4b000000 0x100>; interrupts = <26 IRQ_TYPE_EDGE_RISING>;
Signature · 1 line
2.53.0
Re: [PATCH v2 2/2] ARM: dts: gemini: Rename power controller node to gemini-poweroff
Quoted 14 lines · Khushal Chitturi
Update the node name for the Cortina Gemini power controller from power-controller to gemini-poweroff since node "power controller" is reserved for power domain controller.
Signed-off-by Khushal Chitturi <[email protected]>--- arch/arm/boot/dts/gemini/gemini.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/gemini/gemini.dtsi +0
-0
arch/arm/boot/dts/gemini/gemini.dtsi intcon: interrupt-controller@48000000 { · line 231
Quoted 5 lines
arch/arm/boot/dts/gemini/gemini.dtsi +1
-1@@ -228,7 +228,7 @@ intcon: interrupt-controller@48000000 { #interrupt-cells = <2>; }; - power-controller@4b000000 { + gemini-poweroff@4b000000 {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
If you cannot find a name matching your device, please check in kernel sources for similar cases or you can grow the spec (via pull request to DT spec repo).
Why gemini is added here? It's not generic.
Best regards,
Krzysztof