Skip to content

Commit f33dca9

Browse files
claudiubezneageertu
authored andcommitted
dt-bindings: clock: renesas,rzg2l-cpg: Update #power-domain-cells = <1> for RZ/G3S
The driver will be modified (in the next commits) to be able to specify individual power domain IDs for each IP. The driver will still support #power-domain-cells = <0>, thus, previous users are not affected. The #power-domain-cells = <1> has been instantiated only for RZ/G3S at the moment, as individual platform clock drivers need to be adapted for this to be supported on the rest of the SoCs. Also, the description for #power-domain-cells is updated with links to per-SoC power domain IDs. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20240422105355.1622177-6-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 2d03ce9 commit f33dca9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ properties:
5757
can be power-managed through Module Standby should refer to the CPG device
5858
node in their "power-domains" property, as documented by the generic PM
5959
Domain bindings in Documentation/devicetree/bindings/power/power-domain.yaml.
60-
const: 0
60+
The power domain specifiers defined in <dt-bindings/clock/r9a0*-cpg.h> could
61+
be used to reference individual CPG power domains.
6162

6263
'#reset-cells':
6364
description:
@@ -76,6 +77,21 @@ required:
7677

7778
additionalProperties: false
7879

80+
allOf:
81+
- if:
82+
properties:
83+
compatible:
84+
contains:
85+
const: renesas,r9a08g045-cpg
86+
then:
87+
properties:
88+
'#power-domain-cells':
89+
const: 1
90+
else:
91+
properties:
92+
'#power-domain-cells':
93+
const: 0
94+
7995
examples:
8096
- |
8197
cpg: clock-controller@11010000 {

0 commit comments

Comments
 (0)