[PATCH 1/2] dt-bindings: power: domain-idle-state: Allow idle-state-name

Konrad Dybcio posted 2 patches 1 year, 2 months ago
[PATCH 1/2] dt-bindings: power: domain-idle-state: Allow idle-state-name
Posted by Konrad Dybcio 1 year, 2 months ago
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Allow specifying a name for idle states, similar to CPU idle states
in cpu/idle-states.yaml

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/power/domain-idle-state.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
index ec1f6f669e50b2e7b0756cb6a737c685ad81045b..4dd4f59bbbec3058cf20f064aeec4c9602a99eb7 100644
--- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml
+++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
@@ -54,6 +54,11 @@ patternProperties:
           (i.e. idle states node with entry-method property is set to "psci")
           must specify this property.
 
+      idle-state-name:
+        $ref: /schemas/types.yaml#/definitions/string
+        description:
+          A string used as a descriptive name for the idle state.
+
     required:
       - compatible
       - entry-latency-us

-- 
2.47.1
Re: [PATCH 1/2] dt-bindings: power: domain-idle-state: Allow idle-state-name
Posted by Krzysztof Kozlowski 1 year, 2 months ago
On Sat, Nov 30, 2024 at 05:39:36PM +0100, Konrad Dybcio wrote:
> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> 
> Allow specifying a name for idle states, similar to CPU idle states
> in cpu/idle-states.yaml
> 
> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/power/domain-idle-state.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/power/domain-idle-state.yaml b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> index ec1f6f669e50b2e7b0756cb6a737c685ad81045b..4dd4f59bbbec3058cf20f064aeec4c9602a99eb7 100644
> --- a/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> +++ b/Documentation/devicetree/bindings/power/domain-idle-state.yaml
> @@ -54,6 +54,11 @@ patternProperties:
>            (i.e. idle states node with entry-method property is set to "psci")
>            must specify this property.
>  
> +      idle-state-name:
> +        $ref: /schemas/types.yaml#/definitions/string
> +        description:
> +          A string used as a descriptive name for the idle state.

For user-visible strings we have 'label' property, but I see cpu idle
states already use this one, so I guess it is fine.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof