* [PATCH 0/2] dt-bindings: regulator: Use generic power-controller schema
@ 2026-08-04 14:37 Peng Fan (OSS)
2026-08-04 14:37 ` [PATCH 1/2] dt-bindings: regulator: ti,tps65219: " Peng Fan (OSS)
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Peng Fan (OSS) @ 2026-08-04 14:37 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jerome Neanne, Paul Cercueil
Cc: linux-kernel, devicetree, Peng Fan
The generic power-controller.yaml schema has been added to dt-schema,
providing a common definition for the `system-power-controller` boolean
property. Convert regulator bindings that locally define this property
to instead reference the shared schema.
The common change across all patches is:
- Add a $ref to /schemas/power/power-controller.yaml#
- Remove the local `system-power-controller` property definition
- Switch from additionalProperties to unevaluatedProperties
This is a pick of the regulator patches from [1], rebased to
linux-next/master, no changes. A-b tags are kept, because they
are cleanly applied using "b4 shazam".
[1] https://lore.kernel.org/all/177523251875.1559844.9690289848283345069.b4-ty@b4/
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (2):
dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
dt-bindings: regulator: act8x: Use generic power-controller schema
.../devicetree/bindings/regulator/active-semi,act8600.yaml | 11 ++++-------
.../devicetree/bindings/regulator/active-semi,act8846.yaml | 11 ++++-------
.../devicetree/bindings/regulator/active-semi,act8865.yaml | 11 ++++-------
.../devicetree/bindings/regulator/active-semi,act8945a.yaml | 11 ++++-------
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml | 8 ++------
5 files changed, 18 insertions(+), 34 deletions(-)
---
base-commit: 9a4cdc958dd79fc6c3b20b51a10debec6ca09fec
change-id: 20260804-regulator-syspower-3ca6ed43d911
Best regards,
--
Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
2026-08-04 14:37 [PATCH 0/2] dt-bindings: regulator: Use generic power-controller schema Peng Fan (OSS)
@ 2026-08-04 14:37 ` Peng Fan (OSS)
2026-08-04 15:27 ` sashiko-bot
2026-08-05 21:16 ` Rob Herring
2026-08-04 14:37 ` [PATCH 2/2] dt-bindings: regulator: act8x: " Peng Fan (OSS)
2026-08-04 20:06 ` [PATCH 0/2] dt-bindings: regulator: " Mark Brown
2 siblings, 2 replies; 7+ messages in thread
From: Peng Fan (OSS) @ 2026-08-04 14:37 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jerome Neanne, Paul Cercueil
Cc: linux-kernel, devicetree, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
Convert the binding to use the generic power-controller schema instead by
referencing power-controller.yaml and removing the local
`system-power-controller` property definition.
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
index 7c64e588a8b5..d3a82aa7319f 100644
--- a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
+++ b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
@@ -31,11 +31,6 @@ properties:
reg:
maxItems: 1
- system-power-controller:
- type: boolean
- description: Optional property that indicates that this device is
- controlling system power.
-
interrupts:
description: Short-circuit, over-current, under-voltage for regulators, PB interrupts.
maxItems: 1
@@ -99,9 +94,10 @@ required:
- interrupts
- regulators
-additionalProperties: false
+unevaluatedProperties: false
allOf:
+ - $ref: /schemas/power/power-controller.yaml#
- if:
properties:
compatible:
--
2.51.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] dt-bindings: regulator: act8x: Use generic power-controller schema
2026-08-04 14:37 [PATCH 0/2] dt-bindings: regulator: Use generic power-controller schema Peng Fan (OSS)
2026-08-04 14:37 ` [PATCH 1/2] dt-bindings: regulator: ti,tps65219: " Peng Fan (OSS)
@ 2026-08-04 14:37 ` Peng Fan (OSS)
2026-08-04 15:39 ` sashiko-bot
2026-08-04 20:06 ` [PATCH 0/2] dt-bindings: regulator: " Mark Brown
2 siblings, 1 reply; 7+ messages in thread
From: Peng Fan (OSS) @ 2026-08-04 14:37 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jerome Neanne, Paul Cercueil
Cc: linux-kernel, devicetree, Peng Fan
From: Peng Fan <peng.fan@nxp.com>
Convert the binding to use the generic power-controller schema instead by
referencing power-controller.yaml and removing the local
`system-power-controller` property definition.
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
.../devicetree/bindings/regulator/active-semi,act8600.yaml | 11 ++++-------
.../devicetree/bindings/regulator/active-semi,act8846.yaml | 11 ++++-------
.../devicetree/bindings/regulator/active-semi,act8865.yaml | 11 ++++-------
.../devicetree/bindings/regulator/active-semi,act8945a.yaml | 11 ++++-------
4 files changed, 16 insertions(+), 28 deletions(-)
diff --git a/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml b/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml
index b8ca967bc83d..49f74a9b1eaa 100644
--- a/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml
+++ b/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml
@@ -9,6 +9,9 @@ title: Active-semi ACT8600 regulator
maintainers:
- Paul Cercueil <paul@crapouillou.net>
+allOf:
+ - $ref: /schemas/power/power-controller.yaml#
+
properties:
compatible:
const: active-semi,act8600
@@ -16,12 +19,6 @@ properties:
reg:
maxItems: 1
- system-power-controller:
- description:
- Indicates that the ACT8600 is responsible for powering OFF
- the system.
- type: boolean
-
active-semi,vsel-high:
description:
Indicates the VSEL pin is high. If this property is missing,
@@ -75,7 +72,7 @@ properties:
inl-supply:
description: Handle to the INL input supply
-additionalProperties: false
+unevaluatedProperties: false
required:
- reg
diff --git a/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml b/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml
index 02f45b5834d0..29ec8ab1b642 100644
--- a/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml
+++ b/Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml
@@ -9,6 +9,9 @@ title: Active-semi ACT8846 regulator
maintainers:
- Paul Cercueil <paul@crapouillou.net>
+allOf:
+ - $ref: /schemas/power/power-controller.yaml#
+
properties:
compatible:
const: active-semi,act8846
@@ -16,12 +19,6 @@ properties:
reg:
maxItems: 1
- system-power-controller:
- description:
- Indicates that the ACT8846 is responsible for powering OFF
- the system.
- type: boolean
-
active-semi,vsel-high:
description:
Indicates the VSEL pin is high. If this property is missing,
@@ -59,7 +56,7 @@ properties:
$ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false
-additionalProperties: false
+unevaluatedProperties: false
required:
- reg
diff --git a/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml b/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml
index afe1abc2d727..2423d9b65192 100644
--- a/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml
+++ b/Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml
@@ -9,6 +9,9 @@ title: Active-semi ACT8865 regulator
maintainers:
- Paul Cercueil <paul@crapouillou.net>
+allOf:
+ - $ref: /schemas/power/power-controller.yaml#
+
properties:
compatible:
const: active-semi,act8865
@@ -16,12 +19,6 @@ properties:
reg:
maxItems: 1
- system-power-controller:
- description:
- Indicates that the ACT8865 is responsible for powering OFF
- the system.
- type: boolean
-
active-semi,vsel-high:
description:
Indicates the VSEL pin is high. If this property is missing,
@@ -79,7 +76,7 @@ properties:
inl67-supply:
description: Handle to the INL67 input supply
-additionalProperties: false
+unevaluatedProperties: false
required:
- reg
diff --git a/Documentation/devicetree/bindings/regulator/active-semi,act8945a.yaml b/Documentation/devicetree/bindings/regulator/active-semi,act8945a.yaml
index a8d579844dc7..f19d3f0e0784 100644
--- a/Documentation/devicetree/bindings/regulator/active-semi,act8945a.yaml
+++ b/Documentation/devicetree/bindings/regulator/active-semi,act8945a.yaml
@@ -9,6 +9,9 @@ title: Active-semi ACT8945a regulator
maintainers:
- Paul Cercueil <paul@crapouillou.net>
+allOf:
+ - $ref: /schemas/power/power-controller.yaml#
+
properties:
compatible:
const: active-semi,act8945a
@@ -16,12 +19,6 @@ properties:
reg:
maxItems: 1
- system-power-controller:
- description:
- Indicates that the ACT8945a is responsible for powering OFF
- the system.
- type: boolean
-
active-semi,vsel-high:
description:
Indicates the VSEL pin is high. If this property is missing,
@@ -127,7 +124,7 @@ properties:
- active-semi,chglev-gpios
- active-semi,lbo-gpios
-additionalProperties: false
+unevaluatedProperties: false
required:
- reg
--
2.51.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
2026-08-04 14:37 ` [PATCH 1/2] dt-bindings: regulator: ti,tps65219: " Peng Fan (OSS)
@ 2026-08-04 15:27 ` sashiko-bot
2026-08-05 21:16 ` Rob Herring
1 sibling, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-08-04 15:27 UTC (permalink / raw)
To: Peng Fan (OSS); +Cc: robh, devicetree, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The patch references a non-existent generic YAML schema `/schemas/power/power-controller.yaml#`.
--
--- Patch [1]: [PATCH 1/2] dt-bindings: regulator: ti,tps65219: Use generic power-controller schema ---
commit cf2a7a6bb686cde6c0c0239ec4f30d1057f13e9e
Author: Peng Fan <peng.fan@nxp.com>
dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
This commit converts the ti,tps65219 binding to use the generic power
controller schema by removing the local system-power-controller property
and referencing power-controller.yaml.
> diff --git a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
> index 7c64e588a8b54..d3a82aa7319f0 100644
> --- a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
> +++ b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml
[ ... ]
> @@ -99,9 +94,10 @@ required:
> - interrupts
> - regulators
>
> -additionalProperties: false
> +unevaluatedProperties: false
>
> allOf:
> + - $ref: /schemas/power/power-controller.yaml#
[Severity: Low]
Does this generic schema actually exist in the kernel tree yet? It appears
the target might still be power-controller.txt, meaning this reference could
cause dt_binding_check validation to fail with a schema resolution error.
> - if:
> properties:
> compatible:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260804-regulator-syspower-v1-0-b05af2081184@nxp.com?part=1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] dt-bindings: regulator: act8x: Use generic power-controller schema
2026-08-04 14:37 ` [PATCH 2/2] dt-bindings: regulator: act8x: " Peng Fan (OSS)
@ 2026-08-04 15:39 ` sashiko-bot
0 siblings, 0 replies; 7+ messages in thread
From: sashiko-bot @ 2026-08-04 15:39 UTC (permalink / raw)
To: Peng Fan (OSS); +Cc: robh, conor+dt, devicetree
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Broken schema cross-reference to a non-existent power-controller.yaml file.
--
--- Patch [2]: [PATCH 2/2] dt-bindings: regulator: act8x: Use generic power-controller schema ---
commit dbd959e51dadcb9629319a89cca123c97aebf588
Author: Peng Fan <peng.fan@nxp.com>
dt-bindings: regulator: act8x: Use generic power-controller schema
Convert the binding to use the generic power-controller schema instead by
referencing power-controller.yaml and removing the local
system-power-controller property definition.
> diff --git a/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml b/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml
> index b8ca967bc83d1..49f74a9b1eaab 100644
> --- a/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml
> +++ b/Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml
> @@ -9,6 +9,9 @@ title: Active-semi ACT8600 regulator
> maintainers:
> - Paul Cercueil <paul@crapouillou.net>
>
> +allOf:
> + - $ref: /schemas/power/power-controller.yaml#
[Severity: Low]
Does this reference break dt_binding_check?
It appears that /schemas/power/power-controller.yaml does not exist in the
tree yet, as only the legacy power-controller.txt is present in
Documentation/devicetree/bindings/power/.
Are there missing prerequisite patches for this series?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260804-regulator-syspower-v1-0-b05af2081184@nxp.com?part=2
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] dt-bindings: regulator: Use generic power-controller schema
2026-08-04 14:37 [PATCH 0/2] dt-bindings: regulator: Use generic power-controller schema Peng Fan (OSS)
2026-08-04 14:37 ` [PATCH 1/2] dt-bindings: regulator: ti,tps65219: " Peng Fan (OSS)
2026-08-04 14:37 ` [PATCH 2/2] dt-bindings: regulator: act8x: " Peng Fan (OSS)
@ 2026-08-04 20:06 ` Mark Brown
2 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2026-08-04 20:06 UTC (permalink / raw)
To: Peng Fan (OSS)
Cc: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jerome Neanne, Paul Cercueil, linux-kernel, devicetree, Peng Fan
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
On Tue, Aug 04, 2026 at 10:37:51PM +0800, Peng Fan (OSS) wrote:
> The generic power-controller.yaml schema has been added to dt-schema,
> providing a common definition for the `system-power-controller` boolean
> property. Convert regulator bindings that locally define this property
> to instead reference the shared schema.
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
2026-08-04 14:37 ` [PATCH 1/2] dt-bindings: regulator: ti,tps65219: " Peng Fan (OSS)
2026-08-04 15:27 ` sashiko-bot
@ 2026-08-05 21:16 ` Rob Herring
1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2026-08-05 21:16 UTC (permalink / raw)
To: Peng Fan (OSS)
Cc: Liam Girdwood, Mark Brown, Krzysztof Kozlowski, Conor Dooley,
Jerome Neanne, Paul Cercueil, linux-kernel, devicetree, Peng Fan
On Tue, Aug 04, 2026 at 10:37:52PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
>
> Convert the binding to use the generic power-controller schema instead by
> referencing power-controller.yaml and removing the local
> `system-power-controller` property definition.
>
> Acked-by: Mark Brown <broonie@kernel.org>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
> Documentation/devicetree/bindings/regulator/ti,tps65219.yaml | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
These need to wait a cycle. The dtschema dependency is not even in a
release yet.
Rob
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-08-05 21:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 14:37 [PATCH 0/2] dt-bindings: regulator: Use generic power-controller schema Peng Fan (OSS)
2026-08-04 14:37 ` [PATCH 1/2] dt-bindings: regulator: ti,tps65219: " Peng Fan (OSS)
2026-08-04 15:27 ` sashiko-bot
2026-08-05 21:16 ` Rob Herring
2026-08-04 14:37 ` [PATCH 2/2] dt-bindings: regulator: act8x: " Peng Fan (OSS)
2026-08-04 15:39 ` sashiko-bot
2026-08-04 20:06 ` [PATCH 0/2] dt-bindings: regulator: " Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox