Convert power-controller to dt-schema and update various yaml file to referencing it
Subsystems (10)
cover Convert power-controller to dt-schema and update various yaml file to referencing it
Convert power-controller.txt to dt-schema
Update various dt-bindings to use generic power-controller.yaml without defining local property.
---
Peng Fan (15):
dt-bindings: power: power-controller: Convert to yaml format
dt-bindings: soc: bcm2835-pm: Use generic power-controller schema
dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
dt-bindings: regulator: act8x: Use generic power-controller schema
dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
dt-bindings: mfd: ene-kb[3]930: Use generic power-controller schema
dt-bindings: mfd: ti,tps65910: Use generic power-controller schema
dt-bindings: mfd: rockchip,rk8x: Use generic power-controller schema
dt-bindings: mfd: ricoh,rn5t618: Use generic power-controller schema
dt-bindings: mfd: netronix,ntxec: Use generic power-controller schema
dt-bindings: mfd: ti,twl: Use generic power-controller schema
dt-bindings: mfd: ti,tps6594: Use generic power-controller schema
dt-bindings: mfd: rohm,bd71828-pmic: Use generic power-controller schema
dt-bindings: mfd: fsl,mc13xxx: Use generic power-controller schema
dt-bindings: mfd: samsung,s2mpg10-pmic: Use generic power-controller schema
.../devicetree/bindings/mfd/ene-kb3930.yaml | 7 ++--- .../devicetree/bindings/mfd/ene-kb930.yaml | 6 ++--- .../devicetree/bindings/mfd/fsl,mc13xxx.yaml | 5 ++-- .../devicetree/bindings/mfd/netronix,ntxec.yaml | 9 +++---- .../devicetree/bindings/mfd/ricoh,rn5t618.yaml | 8 ++---- .../devicetree/bindings/mfd/rockchip,rk801.yaml | 10 +++----- .../devicetree/bindings/mfd/rockchip,rk805.yaml | 7 +++-- .../devicetree/bindings/mfd/rockchip,rk806.yaml | 3 +-- .../devicetree/bindings/mfd/rockchip,rk808.yaml | 9 ++++--- .../devicetree/bindings/mfd/rockchip,rk816.yaml | 10 +++----- .../devicetree/bindings/mfd/rockchip,rk817.yaml | 5 ++-- .../devicetree/bindings/mfd/rockchip,rk818.yaml | 9 ++++--- .../devicetree/bindings/mfd/rohm,bd71828-pmic.yaml | 7 ++--- .../bindings/mfd/samsung,s2mpg10-pmic.yaml | 7 ++--- .../devicetree/bindings/mfd/ti,tps65910.yaml | 6 +++-- .../devicetree/bindings/mfd/ti,tps6594.yaml | 7 ++--- Documentation/devicetree/bindings/mfd/ti,twl.yaml | 3 +-- .../devicetree/bindings/power/power-controller.txt | 17 ------------ .../bindings/power/power-controller.yaml | 30 ++++++++++++++++++++++ .../bindings/regulator/active-semi,act8600.yaml | 11 +++----- .../bindings/regulator/active-semi,act8846.yaml | 11 +++----- .../bindings/regulator/active-semi,act8865.yaml | 11 +++----- .../bindings/regulator/active-semi,act8945a.yaml | 11 +++----- .../devicetree/bindings/regulator/ti,tps65219.yaml | 8 ++---- .../devicetree/bindings/rtc/ingenic,rtc.yaml | 7 +---- .../bindings/soc/bcm/brcm,bcm2835-pm.yaml | 6 ++--- 26 files changed, 107 insertions(+), 123 deletions(-)
---
base-commit: 5c9e55fecf9365890c64f14761a80f9413a3b1d1
change-id: 20260314-power-controller-56d6b4724146
Best regards,
Signature · 1 line
Peng Fan <[email protected]>
PATCH 1/15 dt-bindings: power: power-controller: Convert to yaml format
From: Peng Fan <[email protected]>
Convert power-controller.txt to yaml format. Drop the example because there is already one in regulator/active-semi,act8846.yaml.
--- .../devicetree/bindings/power/power-controller.txt | 17 ------------ .../bindings/power/power-controller.yaml | 30 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 17 deletions(-)
Documentation/devicetree/bindings/power/power-controller.txt deleted +0 -17
@@ -1,17 +0,0 @@ -* Generic system power control capability - -Power-management integrated circuits or miscellaneous hardware components are -sometimes able to control the system power. The device driver associated with these -components might need to define this capability, which tells the kernel that -it can be used to switch off the system. The corresponding device must have the -standard property "system-power-controller" in its device node. This property -marks the device as able to control the system power. In order to test if this -property is found programmatically, use the helper function -"of_device_is_system_power_controller" from of.h . - -Example: - -act8846: act8846@5 { - compatible = "active-semi,act8846"; - system-power-controller; -}
Documentation/devicetree/bindings/power/power-controller.yaml new file +30 -0
@@ -0,0 +1,30 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/power-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic System Power Control Capability + +maintainers: + - Rafael J. Wysocki <[email protected]> + - Ulf Hansson <[email protected]> + +description: | + Power-management integrated circuits or miscellaneous hardware components + are sometimes able to control the system power. The device driver associated + with these components might need to define this capability, which tells the + kernel that it can be used to switch off the system. The corresponding device + must have the standard property "system-power-controller" in its device node. This + property marks the device as able to control the system power. + + In order to test if this property is found programmatically, use the helper + function "of_device_is_system_power_controller" from of.h. + +properties: + system-power-controller: + type: boolean + description: + Indicates that this device can be used to control the system power. + +additionalProperties: true
Signature · 1 line
2.37.1
Krzysztof Kozlowski
maintainerRe: [PATCH 01/15] dt-bindings: power: power-controller: Convert to yaml format
Quoted 40 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Convert power-controller.txt to yaml format. Drop the example because there is already one in
regulator/active-semi,act8846.yaml.Signed-off-by Peng Fan <[email protected]>--- .../devicetree/bindings/power/power-controller.txt | 17 ------------ .../bindings/power/power-controller.yaml | 30 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 17 deletions(-)Documentation/devicetree/bindings/power/power-controller.txt deleted +0
-17@@ -1,17 +0,0 @@ -* Generic system power control capability - -Power-management integrated circuits or miscellaneous hardware components are -sometimes able to control the system power. The device driver associated with these -components might need to define this capability, which tells the kernel that -it can be used to switch off the system. The corresponding device must have the -standard property "system-power-controller" in its device node. This property -marks the device as able to control the system power. In order to test if this -property is found programmatically, use the helper function -"of_device_is_system_power_controller" from of.h . - -Example: - -act8846: act8846@5 { - compatible = "active-semi,act8846"; - system-power-controller; -}Documentation/devicetree/bindings/power/power-controller.yaml new file +0
-0
Documentation/devicetree/bindings/power/power-controller.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/power/power-controller.yaml new file +1
-0@@ -0,0 +1,30 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
You relicensed the text, so you need to get some acks for that. Your cover letter or patch changelog should explicitly ask for that and of course you must Cc previous authors.
Quoted 17 lines
Documentation/devicetree/bindings/power/power-controller.yaml new file +17
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/power-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic System Power Control Capability + +maintainers: + - Rafael J. Wysocki <[email protected]> + - Ulf Hansson <[email protected]> + +description: | + Power-management integrated circuits or miscellaneous hardware components + are sometimes able to control the system power. The device driver associated + with these components might need to define this capability, which tells the + kernel that it can be used to switch off the system. The corresponding device + must have the standard property "system-power-controller" in its device node. This
Documentation/devicetree/bindings/power/power-controller.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/power/power-controller.yaml new file +10
-0+ property marks the device as able to control the system power. + + In order to test if this property is found programmatically, use the helper + function "of_device_is_system_power_controller" from of.h. + +properties: + system-power-controller: + type: boolean + description: + Indicates that this device can be used to control the system power.
Just like it was in case of other core properties, I think this should go to dtschema.
Best regards,
Krzysztof
Re: [PATCH 01/15] dt-bindings: power: power-controller: Convert to yaml format
Hi Krzysztof,
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Convert power-controller.txt to yaml format. Drop the example because there is already one in
regulator/active-semi,act8846.yaml.
Quoted 8 lines
Documentation/devicetree/bindings/power/power-controller.yaml line 28
Quoted 5 lines
Documentation/devicetree/bindings/power/power-controller.yaml new file +5
-0+properties: + system-power-controller: + type: boolean + description: + Indicates that this device can be used to control the system power.Just like it was in case of other core properties, I think this should go to dtschema.
Thanks for giving a look. I just submited a PR
https://github.com/devicetree-org/dt-schema/pull/187
Thanks,
Peng
Quoted 4 lines
Best regards,
Krzysztof
RE: [PATCH 01/15] dt-bindings: power: power-controller: Convert to yaml format
In reply to Peng Fan (OSS)Hi Romain,
Quoted 2 lines
Subject: [PATCH 01/15] dt-bindings: power: power-controller: Convert to yaml format
Not sure about you github ID, so ask here.
Are you ok for changing this to BSD-2.0 License?
https://github.com/devicetree-org/dt-schema/pull/187
Thanks,
Peng.
Quoted 89 lines
From: Peng Fan <[email protected]>
Convert power-controller.txt to yaml format. Drop the example because there is already one in
regulator/active-semi,act8846.yaml.Signed-off-by Peng Fan <[email protected]>--- .../devicetree/bindings/power/power-controller.txt | 17 ------------ .../bindings/power/power-controller.yaml | 30 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 17 deletions(-)(quoted diff) +0
-0controller.txt b/Documentation/devicetree/bindings/power/power- controller.txt
deleted file mode 100644
index e45affea80781292316c75ed387ba38402501c5b..0000000000000000 000000000000000000000000Documentation/devicetree/bindings/power/power-controller.txt deleted +0
-3@@ -1,17 +0,0 @@ -* Generic system power control capability - -Power-management integrated circuits or miscellaneous hardwarecomponents are -sometimes able to control the system power. The device driver associated with these -components might need to define this capability, which tells the kernel that -it can be used to switch off the system. The corresponding device must have the -standard property "system-power-controller" in its device node. This property - marks the device as able to control the system power. In order to test if this -property is found programmatically, use the helper function - "
of_device_is_system_power_controller" fromof.h.Documentation/devicetree/bindings/power/power-controller.txt deleted +0
-7- -Example: - -act8846: act8846@5 { - compatible = "active-semi,act8846"; - system-power-controller; -}(quoted diff) +0
-0
controller.yamlb/Documentation/devicetree/bindings/power/power-controller.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..ff698365d778446c08ceeb5f3ef144d5e97d2f79Documentation/devicetree/bindings/power/power- new file +0
-0
controller.yamlDocumentation/devicetree/bindings/power/power- new file +34
-1@@ -0,0 +1,30 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/power-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic System Power Control Capability + +maintainers: + - Rafael J. Wysocki <[email protected]> + - Ulf Hansson <[email protected]> + +description: | + Power-management integrated circuits or miscellaneous hardware +components + are sometimes able to control the system power. The device driver +associated + with these components might need to define this capability, which +tells the + kernel that it can be used to switch off the system. The +corresponding device + must have the standard property "system-power-controller" in its +device node. This + property marks the device as able to control the system power. + + In order to test if this property is found programmatically, use the + helper function "of_device_is_system_power_controller" from of.h. + +properties: + system-power-controller: + type: boolean + description: + Indicates that this device can be used to control the system power. + +additionalProperties: true --2.37.1
PATCH 2/15 dt-bindings: soc: bcm2835-pm: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Switch the binding to use the generic power-controller schema and drop the local definition. Also replace additionalProperties with unevaluatedProperties.
--- Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.yaml +2 -4
@@ -50,9 +50,6 @@ properties: - const: h264 - const: isp - system-power-controller: - type: boolean - timeout-sec: true required:
@@ -62,6 +59,7 @@ required: - "#reset-cells" allOf: + - $ref: /schemas/power/power-controller.yaml# - $ref: /schemas/watchdog/watchdog.yaml# - if:
@@ -90,7 +88,7 @@ allOf: reg-names: maxItems: 1 -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.37.1
PATCH 3/15 dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
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.
--- Documentation/devicetree/bindings/regulator/ti,tps65219.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/regulator/ti,tps65219.yaml +2 -6
@@ -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:
Signature · 1 line
2.37.1
Re: [PATCH 03/15] dt-bindings: regulator: ti,tps65219: Use generic power-controller schema
Quoted 5 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Convert the binding to use the generic power-controller schema instead by referencing
power-controller.yamland removing the localsystem-power-controllerproperty definition.
PATCH 4/15 dt-bindings: regulator: act8x: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
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.
--- .../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(-)
Documentation/devicetree/bindings/regulator/active-semi,act8600.yaml +4 -7
@@ -9,6 +9,9 @@ title: Active-semi ACT8600 regulator maintainers: - Paul Cercueil <[email protected]> +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
Documentation/devicetree/bindings/regulator/active-semi,act8846.yaml +4 -7
@@ -9,6 +9,9 @@ title: Active-semi ACT8846 regulator maintainers: - Paul Cercueil <[email protected]> +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
Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml +4 -7
@@ -9,6 +9,9 @@ title: Active-semi ACT8865 regulator maintainers: - Paul Cercueil <[email protected]> +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
Documentation/devicetree/bindings/regulator/active-semi,act8945a.yaml +4 -7
@@ -9,6 +9,9 @@ title: Active-semi ACT8945a regulator maintainers: - Paul Cercueil <[email protected]> +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
Signature · 1 line
2.37.1
Re: [PATCH 04/15] dt-bindings: regulator: act8x: Use generic power-controller schema
Quoted 5 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Convert the binding to use the generic power-controller schema instead by referencing
power-controller.yamland removing the localsystem-power-controllerproperty definition.
PATCH 5/15 dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
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.
--- Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml +1 -6
@@ -11,6 +11,7 @@ maintainers: allOf: - $ref: rtc.yaml# + - $ref: /schemas/power/power-controller.yaml# - if: not: properties:
@@ -53,12 +54,6 @@ properties: "#clock-cells": const: 0 - system-power-controller: - description: | - Indicates that the RTC is responsible for powering OFF - the system. - type: boolean - ingenic,reset-pin-assert-time-ms: minimum: 0 maximum: 125
Signature · 1 line
2.37.1
Re: [PATCH 05/15] dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
Hi,
Le lundi 16 mars 2026 à 22:47 +0800, Peng Fan (OSS) a écrit :
Quoted 8 lines
From: Peng Fan <[email protected]>
Convert the binding to use the generic power-controller schema instead by
referencingpower-controller.yamland removing the localsystem-power-controllerproperty definition.Signed-off-by Peng Fan <[email protected]>
Cheers,
-Paul
Quoted 24 lines
---
Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml | 7 +------1 file changed, 1 insertion(+), 6 deletions(-)Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml +0
-0index
de9879bdb3175a7e0f24304b5a084a8faa233c46..415566d8dba564ebad976689596bbcd699ed6021100644Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml +0
-0@@ -11,6 +11,7 @@ maintainers:
allOf:
- $ref: rtc.yaml#
+ - $ref: /schemas/power/power-controller.yaml#
- if:
not:
properties:Documentation/devicetree/bindings/rtc/ingenic,rtc.yaml +0
-0@@ -53,12 +54,6 @@ properties:"#clock-cells":
const: 0
- system-power-controller:
Quoted 8 lines
- description: |
- Indicates that the RTC is responsible for powering OFF - the system.
- type: boolean
-
ingenic,reset-pin-assert-time-ms:
minimum: 0
maximum: 125
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: (subset) [PATCH 05/15] dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
In reply to Peng Fan (OSS)Quoted 3 lines · Peng Fan (OSS)
Convert the binding to use the generic power-controller schema instead by referencing
power-controller.yamland removing the localsystem-power-controllerproperty definition.
Applied, thanks!
[05/15] dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
https://git.kernel.org/abelloni/c/0452290110cc
Best regards,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: (subset) [PATCH 05/15] dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
Hi Alexandre,
Quoted 6 lines · Alexandre Belloni
Quoted 3 lines · Peng Fan (OSS)
Convert the binding to use the generic power-controller schema instead by referencing
power-controller.yamland removing the localsystem-power-controllerproperty definition.Applied, thanks!
Thanks, but patch [01/15] has not been accepted, so please drop 05/15.
Thanks,
Peng
Quoted 11 lines
[05/15] dt-bindings: rtc: ingenic,rtc: Use generic power-controller schema
https://git.kernel.org/abelloni/c/0452290110ccBest regards,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 6/15 dt-bindings: mfd: ene-kb[3]930: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
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.
--- Documentation/devicetree/bindings/mfd/ene-kb3930.yaml | 7 ++++--- Documentation/devicetree/bindings/mfd/ene-kb930.yaml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/mfd/ene-kb3930.yaml +4 -3
@@ -13,6 +13,9 @@ description: | maintainers: - Lubomir Rintel <[email protected]> +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: items:
@@ -26,13 +29,11 @@ properties: description: GPIO used with the shutdown protocol on Ariel maxItems: 2 - system-power-controller: true - required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - |
Documentation/devicetree/bindings/mfd/ene-kb930.yaml +3 -3
@@ -13,7 +13,9 @@ description: | maintainers: - Dmitry Osipenko <[email protected]> -$ref: /schemas/power/supply/power-supply.yaml +allOf: + - $ref: /schemas/power/supply/power-supply.yaml + - $ref: /schemas/power/power-controller.yaml# properties: compatible:
@@ -24,8 +26,6 @@ properties: reg: maxItems: 1 - system-power-controller: true - required: - compatible - reg
Signature · 1 line
2.37.1
PATCH 7/15 dt-bindings: mfd: ti,tps65910: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Mark the "ti,system-power-controller" as deprecated and include a reference to power-controller.yaml to uses the common definition.
--- Documentation/devicetree/bindings/mfd/ti,tps65910.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/mfd/ti,tps65910.yaml +4 -2
@@ -72,6 +72,7 @@ properties: ti,system-power-controller: type: boolean description: Identify whether or not this pmic controls the system power + deprecated: true ti,sleep-enable: type: boolean
@@ -170,9 +171,10 @@ required: - '#gpio-cells' - regulators -additionalProperties: false +unevaluatedProperties: false allOf: + - $ref: /schemas/power/power-controller.yaml# - if: properties: compatible:
@@ -216,7 +218,7 @@ examples: #interrupt-cells = <2>; interrupt-controller; - ti,system-power-controller; + system-power-controller; ti,vmbch-threshold = <0>; ti,vmbch2-threshold = <0>;
Signature · 1 line
2.37.1
PATCH 8/15 dt-bindings: mfd: rockchip,rk8x: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Convert the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property.
--- Documentation/devicetree/bindings/mfd/rockchip,rk801.yaml | 10 ++++------ Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml | 7 +++---- Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml | 3 +-- Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml | 9 +++++---- Documentation/devicetree/bindings/mfd/rockchip,rk816.yaml | 10 ++++------ Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml | 5 ++--- Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml | 9 +++++---- 7 files changed, 24 insertions(+), 29 deletions(-)
Documentation/devicetree/bindings/mfd/rockchip,rk801.yaml +4 -6
@@ -13,6 +13,9 @@ description: | Rockchip RK801 series PMIC. This device consists of an i2c controlled MFD that includes multiple switchable regulators. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: enum:
@@ -24,11 +27,6 @@ properties: interrupts: maxItems: 1 - system-power-controller: - type: boolean - description: - Telling whether or not this PMIC is controlling the system power. - wakeup-source: type: boolean description:
@@ -76,7 +74,7 @@ required: - reg - interrupts -additionalProperties: false +unevaluatedProperties: false examples: - |
Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml +3 -4
@@ -46,8 +46,6 @@ properties: description: Telling whether or not this PMIC is controlling the system power. - system-power-controller: true - wakeup-source: type: boolean description:
@@ -87,6 +85,7 @@ properties: unevaluatedProperties: false allOf: + - $ref: /schemas/power/power-controller.yaml# - if: properties: '#clock-cells':
@@ -108,7 +107,7 @@ required: - interrupts - "#clock-cells" -additionalProperties: false +unevaluatedProperties: false examples: - |
@@ -126,7 +125,7 @@ examples: interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pmic_int_l>; - rockchip,system-power-controller; + system-power-controller; wakeup-source; #clock-cells = <0>;
Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml +1 -2
@@ -29,8 +29,6 @@ properties: '#gpio-cells': const: 2 - system-power-controller: true - rockchip,reset-mode: $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2]
@@ -136,6 +134,7 @@ patternProperties: enum: [gpio_pwrctrl1, gpio_pwrctrl2, gpio_pwrctrl3] allOf: + - $ref: /schemas/power/power-controller.yaml# - $ref: /schemas/spi/spi-peripheral-props.yaml required:
Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml +5 -4
@@ -14,6 +14,9 @@ description: | Rockchip RK808 series PMIC. This device consists of an i2c controlled MFD that includes regulators, an RTC, and a power button. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: enum:
@@ -41,8 +44,6 @@ properties: description: Telling whether or not this PMIC is controlling the system power. - system-power-controller: true - wakeup-source: type: boolean description:
@@ -119,7 +120,7 @@ required: - interrupts - "#clock-cells" -additionalProperties: false +unevaluatedProperties: false examples: - |
@@ -140,7 +141,7 @@ examples: dvs-gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>, <&gpio7 15 GPIO_ACTIVE_HIGH>; reg = <0x1b>; - rockchip,system-power-controller; + system-power-controller; wakeup-source; #clock-cells = <1>;
Documentation/devicetree/bindings/mfd/rockchip,rk816.yaml +4 -6
@@ -15,6 +15,9 @@ description: that includes regulators, a RTC, a GPIO controller, a power button, and a battery charger manager with fuel gauge. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: enum:
@@ -39,11 +42,6 @@ properties: '#gpio-cells': const: 2 - system-power-controller: - type: boolean - description: - Telling whether or not this PMIC is controlling the system power. - wakeup-source: type: boolean
@@ -108,7 +106,7 @@ required: - interrupts - '#clock-cells' -additionalProperties: false +unevaluatedProperties: false examples: - |
Documentation/devicetree/bindings/mfd/rockchip,rk817.yaml +2 -3
@@ -53,8 +53,6 @@ properties: '#sound-dai-cells': const: 0 - system-power-controller: true - wakeup-source: type: boolean description:
@@ -157,6 +155,7 @@ properties: additionalProperties: false allOf: + - $ref: /schemas/power/power-controller.yaml# - $ref: /schemas/sound/dai-common.yaml# - if: properties:
@@ -195,7 +194,7 @@ required: - interrupts - "#clock-cells" -additionalProperties: false +unevaluatedProperties: false examples: - |
Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml +5 -4
@@ -14,6 +14,9 @@ description: | Rockchip RK818 series PMIC. This device consists of an i2c controlled MFD that includes regulators, an RTC, and a power button. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: enum:
@@ -41,8 +44,6 @@ properties: description: Telling whether or not this PMIC is controlling the system power. - system-power-controller: true - wakeup-source: type: boolean description:
@@ -111,7 +112,7 @@ required: - interrupts - "#clock-cells" -additionalProperties: false +unevaluatedProperties: false examples: - |
@@ -130,7 +131,7 @@ examples: interrupts = <4 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pmic_int>; - rockchip,system-power-controller; + system-power-controller; wakeup-source; #clock-cells = <1>;
Signature · 1 line
2.37.1
PATCH 9/15 dt-bindings: mfd: ricoh,rn5t618: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Convert the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property.
--- Documentation/devicetree/bindings/mfd/ricoh,rn5t618.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/mfd/ricoh,rn5t618.yaml +2 -6
@@ -18,6 +18,7 @@ description: | The RC5T619 additionally includes USB charger detection and an RTC. allOf: + - $ref: /schemas/power/power-controller.yaml# - if: properties: compatible:
@@ -68,15 +69,10 @@ properties: interrupts: maxItems: 1 - system-power-controller: - type: boolean - description: | - See Documentation/devicetree/bindings/power/power-controller.txt - regulators: type: object -additionalProperties: false +unevaluatedProperties: false required: - compatible
Signature · 1 line
2.37.1
PATCH 10/15 dt-bindings: mfd: netronix,ntxec: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Convert the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property.
--- Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml +4 -5
@@ -13,6 +13,9 @@ description: | This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and is typically implemented as a TI MSP430 microcontroller. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: const: netronix,ntxec
@@ -21,10 +24,6 @@ properties: items: - description: The I2C address of the EC - system-power-controller: - type: boolean - description: See Documentation/devicetree/bindings/power/power-controller.txt - interrupts: minItems: 1 description:
@@ -42,7 +41,7 @@ required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.37.1
PATCH 11/15 dt-bindings: mfd: ti,twl: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Switch the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property.
--- Documentation/devicetree/bindings/mfd/ti,twl.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Documentation/devicetree/bindings/mfd/ti,twl.yaml +1 -2
@@ -16,6 +16,7 @@ description: | These chips are connected to an I2C bus. allOf: + - $ref: /schemas/power/power-controller.yaml# - if: properties: compatible:
@@ -205,8 +206,6 @@ properties: interrupt-controller: true - system-power-controller: true - "#interrupt-cells": const: 1
Signature · 1 line
2.37.1
PATCH 12/15 dt-bindings: mfd: ti,tps6594: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Switch the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property definition.
--- Documentation/devicetree/bindings/mfd/ti,tps6594.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mfd/ti,tps6594.yaml +4 -3
@@ -15,6 +15,9 @@ description: PFSM (Pre-configurable Finite State Machine) managing the state of the device. TPS6594 is the super-set device while TPS6593 and LP8764 are derivatives. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: enum:
@@ -38,8 +41,6 @@ properties: device on the SPMI bus, and the secondary PMICs are the target devices on the SPMI bus. - system-power-controller: true - gpio-controller: true gpio-line-names: true
@@ -104,7 +105,7 @@ required: - reg - interrupts -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.37.1
PATCH 13/15 dt-bindings: mfd: rohm,bd71828-pmic: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Switch the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property definition.
--- Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml +4 -3
@@ -15,6 +15,9 @@ description: | single-cell linear charger. Also included is a Coulomb counter, a real-time clock (RTC), and a 32.768 kHz clock gate. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: oneOf:
@@ -79,8 +82,6 @@ properties: used to mark the pins which should not be configured for GPIO. Please see the ../gpio/gpio.txt for more information. - system-power-controller: true - required: - compatible - reg
@@ -91,7 +92,7 @@ required: - gpio-controller - "#gpio-cells" -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.37.1
PATCH 14/15 dt-bindings: mfd: fsl,mc13xxx: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Switch the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property definition.
--- Documentation/devicetree/bindings/mfd/fsl,mc13xxx.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mfd/fsl,mc13xxx.yaml +2 -3
@@ -34,8 +34,6 @@ properties: spi-cs-high: true - system-power-controller: true - interrupts: maxItems: 1
@@ -176,6 +174,7 @@ required: - reg allOf: + - $ref: /schemas/power/power-controller.yaml# - if: properties: compatible:
@@ -235,7 +234,7 @@ allOf: minItems: 1 maxItems: 1 -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.37.1
PATCH 15/15 dt-bindings: mfd: samsung,s2mpg10-pmic: Use generic power-controller schema
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
Switch the binding to use the generic power-controller schema instead by referencing power-controller.yaml and removing the local system-power-controller property definition.
--- Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml +4 -3
@@ -18,6 +18,9 @@ description: | GPIO interfaces and is typically complemented by S2MPG10 PMIC in a main/sub configuration as the main PMIC. +allOf: + - $ref: /schemas/power/power-controller.yaml# + properties: compatible: const: samsung,s2mpg10-pmic
@@ -36,8 +39,6 @@ properties: description: List of child nodes that specify the regulators. - system-power-controller: true - wakeup-source: true patternProperties:
@@ -71,7 +72,7 @@ required: - interrupts - regulators -additionalProperties: false +unevaluatedProperties: false examples: - |
Signature · 1 line
2.37.1
Mark Brown
maintainerQuoted 3 lines · Peng Fan (OSS)
Convert power-controller.txt to dt-schema
Update various dt-bindings to use genericpower-controller.yamlwithout defining local property.
Are there any dependencies here? It doesn't look like it. In general please don't send a single series covering multiple subsystems unless there are actual dependencies, it just makes it harder to figure out how to handle things. Send a separate series to each subsystem instead.
Quoted 9 lines · On Mon, 16 Mar 2026 14:55:21 +0000 Mark Brown <[email protected]> wrote:
Quoted 3 lines · Peng Fan (OSS)
Convert power-controller.txt to dt-schema
Update various dt-bindings to use genericpower-controller.yamlwithout defining local property.Are there any dependencies here? It doesn't look like it. In general please don't send a single series covering multiple subsystems unless there are actual dependencies, it just makes it harder to figure out how to handle things. Send a separate series to each subsystem instead.
It seems that everything depends on Patch 1.
Regards,
Andreas
Quoted 8 lines · Andreas Kemnade
Quoted 5 lines · On Mon, 16 Mar 2026 14:55:21 +0000 Mark Brown <[email protected]> wrote:
Quoted 3 lines · Peng Fan (OSS)
Convert power-controller.txt to dt-schema
Update various dt-bindings to use genericpower-controller.yamlwithout defining local property.
Quoted 6 lines
Quoted 4 lines
Are there any dependencies here? It doesn't look like it. In general please don't send a single series covering multiple subsystems unless there are actual dependencies, it just makes it harder to figure out how to handle things. Send a separate series to each subsystem instead.
It seems that everything depends on Patch 1.
Krzysztof had similar comments. I reply here.
Yes, depends on patch 1, sorry for not being clear in cover-letter. I just created a PR to dt-schema in github.
https://github.com/devicetree-org/dt-schema/pull/187
After that PR is merged, I will separate this patchset for each subsystem.
Thanks,
Peng
Quoted 4 lines
Regards,
Andreas
Krzysztof Kozlowski
maintainerQuoted 4 lines · Peng Fan (OSS)
Convert power-controller.txt to dt-schema
Update various dt-bindings to use genericpower-controller.yamlwithout defining local property.
And here you explain the dependencies - external or within the patchset
- e.g. how what stops people from merging it. You cc-ed multiple subsystems, so please think from the subsystem maintainer point of view
- what should they do here.
Best regards,
Krzysztof