* [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
@ 2026-03-28 12:47 Khushal Chitturi
2026-03-28 14:26 ` Rob Herring (Arm)
2026-03-28 16:12 ` Linus Walleij
0 siblings, 2 replies; 9+ messages in thread
From: Khushal Chitturi @ 2026-03-28 12:47 UTC (permalink / raw)
To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Linus Walleij, linux-pm, devicetree, linux-kernel,
Khushal Chitturi
Convert the Cortina Systems Gemini Poweroff Controller bindings to
DT schema.
Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com>
---
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
.../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
diff --git a/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml b/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml
new file mode 100644
index 000000000000..1f9af7f34004
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.yaml
@@ -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 <linusw@kernel.org>
+
+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>
+
+ power-controller@4b000000 {
+ compatible = "cortina,gemini-power-controller";
+ reg = <0x4b000000 0x100>;
+ interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
+ };
+...
diff --git a/Documentation/devicetree/bindings/power/reset/gemini-poweroff.txt b/Documentation/devicetree/bindings/power/reset/gemini-poweroff.txt
deleted file mode 100644
index 7fec3e100214..000000000000
--- a/Documentation/devicetree/bindings/power/reset/gemini-poweroff.txt
+++ /dev/null
@@ -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>;
-};
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-28 12:47 [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema Khushal Chitturi
@ 2026-03-28 14:26 ` Rob Herring (Arm)
2026-03-28 16:12 ` Linus Walleij
2026-03-28 16:12 ` Linus Walleij
1 sibling, 1 reply; 9+ messages in thread
From: Rob Herring (Arm) @ 2026-03-28 14:26 UTC (permalink / raw)
To: Khushal Chitturi
Cc: devicetree, linux-kernel, linux-pm, Krzysztof Kozlowski,
Conor Dooley, Sebastian Reichel, Linus Walleij
On Sat, 28 Mar 2026 18:17:07 +0530, Khushal Chitturi wrote:
> Convert the Cortina Systems Gemini Poweroff Controller bindings to
> DT schema.
>
> Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com>
> ---
> 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
>
> .../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
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.example.dtb: power-controller@4b000000 (cortina,gemini-power-controller): '#power-domain-cells' is a required property
from schema $id: http://devicetree.org/schemas/power/power-domain.yaml
doc reference errors (make refcheckdocs):
See https://patchwork.kernel.org/project/devicetree/patch/20260328124707.141209-1-khushalchitturi@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-28 14:26 ` Rob Herring (Arm)
@ 2026-03-28 16:12 ` Linus Walleij
2026-03-28 17:31 ` Krzysztof Kozlowski
0 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2026-03-28 16:12 UTC (permalink / raw)
To: Rob Herring (Arm)
Cc: Khushal Chitturi, devicetree, linux-kernel, linux-pm,
Krzysztof Kozlowski, Conor Dooley, Sebastian Reichel
On Sat, Mar 28, 2026 at 3:26 PM Rob Herring (Arm) <robh@kernel.org> wrote:
> dtschema/dtc warnings/errors:
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.example.dtb: power-controller@4b000000 (cortina,gemini-power-controller): '#power-domain-cells' is a required property
> from schema $id: http://devicetree.org/schemas/power/power-domain.yaml
Weird, this power controller does not handle power domains whatsoever,
it handles the mains power. So it should not have any power domain
cells.
Is this the result of some regexp gone stray?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-28 16:12 ` Linus Walleij
@ 2026-03-28 17:31 ` Krzysztof Kozlowski
2026-03-28 21:28 ` Linus Walleij
0 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-28 17:31 UTC (permalink / raw)
To: Linus Walleij, Rob Herring (Arm)
Cc: Khushal Chitturi, devicetree, linux-kernel, linux-pm,
Krzysztof Kozlowski, Conor Dooley, Sebastian Reichel
On 28/03/2026 17:12, Linus Walleij wrote:
> On Sat, Mar 28, 2026 at 3:26 PM Rob Herring (Arm) <robh@kernel.org> wrote:
>
>> dtschema/dtc warnings/errors:
>> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.example.dtb: power-controller@4b000000 (cortina,gemini-power-controller): '#power-domain-cells' is a required property
>> from schema $id: http://devicetree.org/schemas/power/power-domain.yaml
>
> Weird, this power controller does not handle power domains whatsoever,
> it handles the mains power. So it should not have any power domain
> cells.
>
> Is this the result of some regexp gone stray?
The name "power controller" is used for power domain controller, so
that's why this name must not be used for other use cases. Usual
replacement is power-management, reboot, restart or poweroff, depending
on what is the purpose of this device.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-28 17:31 ` Krzysztof Kozlowski
@ 2026-03-28 21:28 ` Linus Walleij
2026-03-29 2:09 ` Sebastian Reichel
0 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2026-03-28 21:28 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring (Arm), Khushal Chitturi, devicetree, linux-kernel,
linux-pm, Krzysztof Kozlowski, Conor Dooley, Sebastian Reichel
On Sat, Mar 28, 2026 at 6:31 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> On 28/03/2026 17:12, Linus Walleij wrote:
> > On Sat, Mar 28, 2026 at 3:26 PM Rob Herring (Arm) <robh@kernel.org> wrote:
> >
> >> dtschema/dtc warnings/errors:
> >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.example.dtb: power-controller@4b000000 (cortina,gemini-power-controller): '#power-domain-cells' is a required property
> >> from schema $id: http://devicetree.org/schemas/power/power-domain.yaml
> >
> > Weird, this power controller does not handle power domains whatsoever,
> > it handles the mains power. So it should not have any power domain
> > cells.
> >
> > Is this the result of some regexp gone stray?
>
> The name "power controller" is used for power domain controller, so
> that's why this name must not be used for other use cases. Usual
> replacement is power-management, reboot, restart or poweroff, depending
> on what is the purpose of this device.
So in this case this is just a conversion of the 9 years old text document
which is an as valid binding as any:
commit ba443b5ab454a9b5f49229a94b2dadf06ac8b79e
Author: Linus Walleij <linusw@kernel.org>
Date: Sun Mar 12 23:36:01 2017 +0100
power: reset: Add Gemini poweroff DT bindings
This adds device tree bindings to the power management controller
in the Gemini SoC.
Cc: devicetree@vger.kernel.org
Cc: Janos Laube <janos.dev@gmail.com>
Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
The text document was conspiciously named "gemini-poweroff.txt" while the
compatible is ""cortina,gemini-power-controller".
I don't know what came first, this binding or the convention of
*-power-controller,
but it's solidly there for a while so we need to accomodate this, I guess worst
case simply special-casing it?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-28 21:28 ` Linus Walleij
@ 2026-03-29 2:09 ` Sebastian Reichel
2026-03-29 18:57 ` Linus Walleij
0 siblings, 1 reply; 9+ messages in thread
From: Sebastian Reichel @ 2026-03-29 2:09 UTC (permalink / raw)
To: Linus Walleij
Cc: Krzysztof Kozlowski, Rob Herring (Arm), Khushal Chitturi,
devicetree, linux-kernel, linux-pm, Krzysztof Kozlowski,
Conor Dooley
[-- Attachment #1: Type: text/plain, Size: 2502 bytes --]
Hi,
On Sat, Mar 28, 2026 at 10:28:39PM +0100, Linus Walleij wrote:
> On Sat, Mar 28, 2026 at 6:31 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> > On 28/03/2026 17:12, Linus Walleij wrote:
> > > On Sat, Mar 28, 2026 at 3:26 PM Rob Herring (Arm) <robh@kernel.org> wrote:
> > >
> > >> dtschema/dtc warnings/errors:
> > >> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/power/reset/cortina,gemini-power-controller.example.dtb: power-controller@4b000000 (cortina,gemini-power-controller): '#power-domain-cells' is a required property
> > >> from schema $id: http://devicetree.org/schemas/power/power-domain.yaml
> > >
> > > Weird, this power controller does not handle power domains whatsoever,
> > > it handles the mains power. So it should not have any power domain
> > > cells.
> > >
> > > Is this the result of some regexp gone stray?
> >
> > The name "power controller" is used for power domain controller, so
> > that's why this name must not be used for other use cases. Usual
> > replacement is power-management, reboot, restart or poweroff, depending
> > on what is the purpose of this device.
>
> So in this case this is just a conversion of the 9 years old text document
> which is an as valid binding as any:
>
> commit ba443b5ab454a9b5f49229a94b2dadf06ac8b79e
> Author: Linus Walleij <linusw@kernel.org>
> Date: Sun Mar 12 23:36:01 2017 +0100
>
> power: reset: Add Gemini poweroff DT bindings
>
> This adds device tree bindings to the power management controller
> in the Gemini SoC.
>
> Cc: devicetree@vger.kernel.org
> Cc: Janos Laube <janos.dev@gmail.com>
> Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
> Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
> Cc: Florian Fainelli <f.fainelli@gmail.com>
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Sebastian Reichel <sre@kernel.org>
>
> The text document was conspiciously named "gemini-poweroff.txt" while the
> compatible is ""cortina,gemini-power-controller".
>
> I don't know what came first, this binding or the convention of
> *-power-controller, but it's solidly there for a while so we need
> to accomodate this, I guess worst case simply special-casing it?
The problem is the node name (power-controller@4b000000), which is
reserved for power domains. You can keep the compatible.
Greetings,
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-29 2:09 ` Sebastian Reichel
@ 2026-03-29 18:57 ` Linus Walleij
2026-03-30 6:36 ` Krzysztof Kozlowski
0 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2026-03-29 18:57 UTC (permalink / raw)
To: Sebastian Reichel
Cc: Krzysztof Kozlowski, Rob Herring (Arm), Khushal Chitturi,
devicetree, linux-kernel, linux-pm, Krzysztof Kozlowski,
Conor Dooley
On Sun, Mar 29, 2026 at 4:09 AM Sebastian Reichel <sre@kernel.org> wrote:
> The problem is the node name (power-controller@4b000000), which is
> reserved for power domains. You can keep the compatible.
Ah, sweet, Khushal can you change this?
I think you can use gemini-poweroff@4b000000 because
this is pretty much a poweroff thingie.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-29 18:57 ` Linus Walleij
@ 2026-03-30 6:36 ` Krzysztof Kozlowski
0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-30 6:36 UTC (permalink / raw)
To: Linus Walleij, Sebastian Reichel
Cc: Rob Herring (Arm), Khushal Chitturi, devicetree, linux-kernel,
linux-pm, Krzysztof Kozlowski, Conor Dooley
On 29/03/2026 20:57, Linus Walleij wrote:
> On Sun, Mar 29, 2026 at 4:09 AM Sebastian Reichel <sre@kernel.org> wrote:
>
>> The problem is the node name (power-controller@4b000000), which is
>> reserved for power domains. You can keep the compatible.
>
> Ah, sweet, Khushal can you change this?
>
> I think you can use gemini-poweroff@4b000000 because
> this is pretty much a poweroff thingie.
So as I said - poweroff.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema
2026-03-28 12:47 [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema Khushal Chitturi
2026-03-28 14:26 ` Rob Herring (Arm)
@ 2026-03-28 16:12 ` Linus Walleij
1 sibling, 0 replies; 9+ messages in thread
From: Linus Walleij @ 2026-03-28 16:12 UTC (permalink / raw)
To: Khushal Chitturi
Cc: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-pm, devicetree, linux-kernel
On Sat, Mar 28, 2026 at 1:47 PM Khushal Chitturi
<khushalchitturi@gmail.com> wrote:
> Convert the Cortina Systems Gemini Poweroff Controller bindings to
> DT schema.
>
> Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com>
Looks good to me, and thanks for looking into this!
Reviewed-by: Linus Walleij <linusw@kernel.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-03-30 6:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-28 12:47 [PATCH] dt-bindings: power: reset: cortina,gemini-power-controller: convert to DT schema Khushal Chitturi
2026-03-28 14:26 ` Rob Herring (Arm)
2026-03-28 16:12 ` Linus Walleij
2026-03-28 17:31 ` Krzysztof Kozlowski
2026-03-28 21:28 ` Linus Walleij
2026-03-29 2:09 ` Sebastian Reichel
2026-03-29 18:57 ` Linus Walleij
2026-03-30 6:36 ` Krzysztof Kozlowski
2026-03-28 16:12 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox