* [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
@ 2022-08-23 14:56 ` Rob Herring
0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2022-08-23 14:56 UTC (permalink / raw)
To: Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Ulf Hansson, Philipp Zabel, Andrey Smirnov
Cc: devicetree, linux-kernel, linux-arm-kernel
In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../bindings/power/domain-idle-state.yaml | 10 ++++++++++
.../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++
.../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++
3 files changed, 38 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
index 6a12efdf436a..4ee920a1de69 100644
--- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml
+++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
@@ -20,6 +20,7 @@ properties:
patternProperties:
"^(cpu|cluster|domain)-":
type: object
+ additionalProperties: false
description:
Each state node represents a domain idle state description.
@@ -44,6 +45,15 @@ patternProperties:
state will yield power benefits, after overcoming the overhead while
entering the idle state.
+ arm,psci-suspend-param:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ power_state parameter to pass to the ARM PSCI suspend call.
+
+ Device tree nodes that require usage of PSCI CPU_SUSPEND function
+ (i.e. idle states node with entry-method property is set to "psci")
+ must specify this property.
+
required:
- compatible
- entry-latency-us
diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
index a055b3e819d8..777e1d852ddd 100644
--- a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
+++ b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
@@ -43,11 +43,21 @@ properties:
pgc:
type: object
+ additionalProperties: false
description: list of power domains provided by this controller.
+ properties:
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
patternProperties:
"power-domain@[0-9]$":
type: object
+ additionalProperties: false
+
properties:
'#power-domain-cells':
@@ -78,6 +88,10 @@ properties:
- '#power-domain-cells'
- reg
+ required:
+ - '#address-cells'
+ - '#size-cells'
+
required:
- compatible
- reg
diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
index 747622bdc57b..3b161e01f920 100644
--- a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
+++ b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
@@ -42,11 +42,21 @@ properties:
pgc:
type: object
+ additionalProperties: false
description: list of power domains provided by this controller.
+ properties:
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
patternProperties:
"power-domain@[0-9]$":
type: object
+ additionalProperties: false
+
properties:
'#power-domain-cells':
@@ -85,6 +95,10 @@ properties:
- '#power-domain-cells'
- reg
+ required:
+ - '#address-cells'
+ - '#size-cells'
+
required:
- compatible
- reg
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
@ 2022-08-23 14:56 ` Rob Herring
0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2022-08-23 14:56 UTC (permalink / raw)
To: Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Ulf Hansson, Philipp Zabel, Andrey Smirnov
Cc: devicetree, linux-kernel, linux-arm-kernel
In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../bindings/power/domain-idle-state.yaml | 10 ++++++++++
.../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++
.../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++
3 files changed, 38 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
index 6a12efdf436a..4ee920a1de69 100644
--- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml
+++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
@@ -20,6 +20,7 @@ properties:
patternProperties:
"^(cpu|cluster|domain)-":
type: object
+ additionalProperties: false
description:
Each state node represents a domain idle state description.
@@ -44,6 +45,15 @@ patternProperties:
state will yield power benefits, after overcoming the overhead while
entering the idle state.
+ arm,psci-suspend-param:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ power_state parameter to pass to the ARM PSCI suspend call.
+
+ Device tree nodes that require usage of PSCI CPU_SUSPEND function
+ (i.e. idle states node with entry-method property is set to "psci")
+ must specify this property.
+
required:
- compatible
- entry-latency-us
diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
index a055b3e819d8..777e1d852ddd 100644
--- a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
+++ b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
@@ -43,11 +43,21 @@ properties:
pgc:
type: object
+ additionalProperties: false
description: list of power domains provided by this controller.
+ properties:
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
patternProperties:
"power-domain@[0-9]$":
type: object
+ additionalProperties: false
+
properties:
'#power-domain-cells':
@@ -78,6 +88,10 @@ properties:
- '#power-domain-cells'
- reg
+ required:
+ - '#address-cells'
+ - '#size-cells'
+
required:
- compatible
- reg
diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
index 747622bdc57b..3b161e01f920 100644
--- a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
+++ b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
@@ -42,11 +42,21 @@ properties:
pgc:
type: object
+ additionalProperties: false
description: list of power domains provided by this controller.
+ properties:
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
patternProperties:
"power-domain@[0-9]$":
type: object
+ additionalProperties: false
+
properties:
'#power-domain-cells':
@@ -85,6 +95,10 @@ properties:
- '#power-domain-cells'
- reg
+ required:
+ - '#address-cells'
+ - '#size-cells'
+
required:
- compatible
- reg
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
2022-08-23 14:56 ` Rob Herring
@ 2022-08-25 8:21 ` Krzysztof Kozlowski
-1 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-25 8:21 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Ulf Hansson, Philipp Zabel, Andrey Smirnov
Cc: devicetree, linux-kernel, linux-arm-kernel
On 23/08/2022 17:56, Rob Herring wrote:
> In order to ensure only documented properties are present, node schemas
> must have unevaluatedProperties or additionalProperties set to false
> (typically).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
@ 2022-08-25 8:21 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-25 8:21 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Ulf Hansson, Philipp Zabel, Andrey Smirnov
Cc: devicetree, linux-kernel, linux-arm-kernel
On 23/08/2022 17:56, Rob Herring wrote:
> In order to ensure only documented properties are present, node schemas
> must have unevaluatedProperties or additionalProperties set to false
> (typically).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
2022-08-23 14:56 ` Rob Herring
@ 2022-08-25 9:51 ` Ulf Hansson
-1 siblings, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2022-08-25 9:51 UTC (permalink / raw)
To: Rob Herring
Cc: Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Philipp Zabel, Andrey Smirnov, devicetree, linux-kernel,
linux-arm-kernel
On Tue, 23 Aug 2022 at 16:57, Rob Herring <robh@kernel.org> wrote:
>
> In order to ensure only documented properties are present, node schemas
> must have unevaluatedProperties or additionalProperties set to false
> (typically).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Kind regards
Uffe
> ---
> .../bindings/power/domain-idle-state.yaml | 10 ++++++++++
> .../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++
> .../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++
> 3 files changed, 38 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> index 6a12efdf436a..4ee920a1de69 100644
> --- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> +++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> @@ -20,6 +20,7 @@ properties:
> patternProperties:
> "^(cpu|cluster|domain)-":
> type: object
> + additionalProperties: false
> description:
> Each state node represents a domain idle state description.
>
> @@ -44,6 +45,15 @@ patternProperties:
> state will yield power benefits, after overcoming the overhead while
> entering the idle state.
>
> + arm,psci-suspend-param:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: |
> + power_state parameter to pass to the ARM PSCI suspend call.
> +
> + Device tree nodes that require usage of PSCI CPU_SUSPEND function
> + (i.e. idle states node with entry-method property is set to "psci")
> + must specify this property.
> +
> required:
> - compatible
> - entry-latency-us
> diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
> index a055b3e819d8..777e1d852ddd 100644
> --- a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
> +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
> @@ -43,11 +43,21 @@ properties:
>
> pgc:
> type: object
> + additionalProperties: false
> description: list of power domains provided by this controller.
>
> + properties:
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> patternProperties:
> "power-domain@[0-9]$":
> type: object
> + additionalProperties: false
> +
> properties:
>
> '#power-domain-cells':
> @@ -78,6 +88,10 @@ properties:
> - '#power-domain-cells'
> - reg
>
> + required:
> + - '#address-cells'
> + - '#size-cells'
> +
> required:
> - compatible
> - reg
> diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
> index 747622bdc57b..3b161e01f920 100644
> --- a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
> +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
> @@ -42,11 +42,21 @@ properties:
>
> pgc:
> type: object
> + additionalProperties: false
> description: list of power domains provided by this controller.
>
> + properties:
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> patternProperties:
> "power-domain@[0-9]$":
> type: object
> + additionalProperties: false
> +
> properties:
>
> '#power-domain-cells':
> @@ -85,6 +95,10 @@ properties:
> - '#power-domain-cells'
> - reg
>
> + required:
> + - '#address-cells'
> + - '#size-cells'
> +
> required:
> - compatible
> - reg
> --
> 2.34.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
@ 2022-08-25 9:51 ` Ulf Hansson
0 siblings, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2022-08-25 9:51 UTC (permalink / raw)
To: Rob Herring
Cc: Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Philipp Zabel, Andrey Smirnov, devicetree, linux-kernel,
linux-arm-kernel
On Tue, 23 Aug 2022 at 16:57, Rob Herring <robh@kernel.org> wrote:
>
> In order to ensure only documented properties are present, node schemas
> must have unevaluatedProperties or additionalProperties set to false
> (typically).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Kind regards
Uffe
> ---
> .../bindings/power/domain-idle-state.yaml | 10 ++++++++++
> .../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++
> .../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++
> 3 files changed, 38 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> index 6a12efdf436a..4ee920a1de69 100644
> --- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> +++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> @@ -20,6 +20,7 @@ properties:
> patternProperties:
> "^(cpu|cluster|domain)-":
> type: object
> + additionalProperties: false
> description:
> Each state node represents a domain idle state description.
>
> @@ -44,6 +45,15 @@ patternProperties:
> state will yield power benefits, after overcoming the overhead while
> entering the idle state.
>
> + arm,psci-suspend-param:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: |
> + power_state parameter to pass to the ARM PSCI suspend call.
> +
> + Device tree nodes that require usage of PSCI CPU_SUSPEND function
> + (i.e. idle states node with entry-method property is set to "psci")
> + must specify this property.
> +
> required:
> - compatible
> - entry-latency-us
> diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
> index a055b3e819d8..777e1d852ddd 100644
> --- a/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
> +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpc.yaml
> @@ -43,11 +43,21 @@ properties:
>
> pgc:
> type: object
> + additionalProperties: false
> description: list of power domains provided by this controller.
>
> + properties:
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> patternProperties:
> "power-domain@[0-9]$":
> type: object
> + additionalProperties: false
> +
> properties:
>
> '#power-domain-cells':
> @@ -78,6 +88,10 @@ properties:
> - '#power-domain-cells'
> - reg
>
> + required:
> + - '#address-cells'
> + - '#size-cells'
> +
> required:
> - compatible
> - reg
> diff --git a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
> index 747622bdc57b..3b161e01f920 100644
> --- a/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
> +++ b/Documentation/devicetree/bindings/power/fsl,imx-gpcv2.yaml
> @@ -42,11 +42,21 @@ properties:
>
> pgc:
> type: object
> + additionalProperties: false
> description: list of power domains provided by this controller.
>
> + properties:
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> patternProperties:
> "power-domain@[0-9]$":
> type: object
> + additionalProperties: false
> +
> properties:
>
> '#power-domain-cells':
> @@ -85,6 +95,10 @@ properties:
> - '#power-domain-cells'
> - reg
>
> + required:
> + - '#address-cells'
> + - '#size-cells'
> +
> required:
> - compatible
> - reg
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
2022-08-23 14:56 ` Rob Herring
@ 2022-08-31 20:43 ` Rob Herring
-1 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2022-08-31 20:43 UTC (permalink / raw)
To: Rob Herring
Cc: Andrey Smirnov, Ulf Hansson, linux-kernel, linux-arm-kernel,
Pengutronix Kernel Team, Philipp Zabel, Krzysztof Kozlowski,
Sascha Hauer, Shawn Guo, devicetree, Fabio Estevam,
NXP Linux Team
On Tue, 23 Aug 2022 09:56:46 -0500, Rob Herring wrote:
> In order to ensure only documented properties are present, node schemas
> must have unevaluatedProperties or additionalProperties set to false
> (typically).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> .../bindings/power/domain-idle-state.yaml | 10 ++++++++++
> .../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++
> .../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++
> 3 files changed, 38 insertions(+)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes
@ 2022-08-31 20:43 ` Rob Herring
0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2022-08-31 20:43 UTC (permalink / raw)
To: Rob Herring
Cc: Andrey Smirnov, Ulf Hansson, linux-kernel, linux-arm-kernel,
Pengutronix Kernel Team, Philipp Zabel, Krzysztof Kozlowski,
Sascha Hauer, Shawn Guo, devicetree, Fabio Estevam,
NXP Linux Team
On Tue, 23 Aug 2022 09:56:46 -0500, Rob Herring wrote:
> In order to ensure only documented properties are present, node schemas
> must have unevaluatedProperties or additionalProperties set to false
> (typically).
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> .../bindings/power/domain-idle-state.yaml | 10 ++++++++++
> .../devicetree/bindings/power/fsl,imx-gpc.yaml | 14 ++++++++++++++
> .../devicetree/bindings/power/fsl,imx-gpcv2.yaml | 14 ++++++++++++++
> 3 files changed, 38 insertions(+)
>
Applied, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-08-31 20:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 14:56 [PATCH] dt-bindings: power: Add missing (unevaluated|additional)Properties on child nodes Rob Herring
2022-08-23 14:56 ` Rob Herring
2022-08-25 8:21 ` Krzysztof Kozlowski
2022-08-25 8:21 ` Krzysztof Kozlowski
2022-08-25 9:51 ` Ulf Hansson
2022-08-25 9:51 ` Ulf Hansson
2022-08-31 20:43 ` Rob Herring
2022-08-31 20:43 ` Rob Herring
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.