Skip to content

Commit b822fb8

Browse files
bijudasgeertu
authored andcommitted
dt-bindings: clock: renesas,rzg2l-cpg: Document RZ/G3L SoC
Document the device tree bindings for the Renesas RZ/G3L SoC Clock Pulse Generator (CPG). RZ/G3L CPG is similar to RZ/G2L CPG but has 5 clocks compared to 1 clock on other SoCs. Also define RZ/G3L (R9A08G046) Clock Pulse Generator Core Clocks, as listed in section 4.4.4.1 ("Block Diagram of the Clock System"), module clock outputs, as listed in section 4.4.2 ("Clock List r1.00") and add Reset definitions referring to registers CPG_RST_* in Section 4.4.3 ("Register") of the RZ/G3L Hardware User's Manual (Rev.1.00 Oct, 2025). Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260324114329.268249-2-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 6de23f8 commit b822fb8

2 files changed

Lines changed: 377 additions & 5 deletions

File tree

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

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,30 @@ properties:
2828
- renesas,r9a07g044-cpg # RZ/G2{L,LC}
2929
- renesas,r9a07g054-cpg # RZ/V2L
3030
- renesas,r9a08g045-cpg # RZ/G3S
31+
- renesas,r9a08g046-cpg # RZ/G3L
3132
- renesas,r9a09g011-cpg # RZ/V2M
3233

3334
reg:
3435
maxItems: 1
3536

3637
clocks:
37-
maxItems: 1
38+
minItems: 1
39+
items:
40+
- description: Clock source to CPG can be either from external clock
41+
input (EXCLK) or crystal oscillator (XIN/XOUT).
42+
- description: ETH0 TXC clock input
43+
- description: ETH0 RXC clock input
44+
- description: ETH1 TXC clock input
45+
- description: ETH1 RXC clock input
3846

3947
clock-names:
40-
description:
41-
Clock source to CPG can be either from external clock input (EXCLK) or
42-
crystal oscillator (XIN/XOUT).
43-
const: extal
48+
minItems: 1
49+
items:
50+
- const: extal
51+
- const: eth0_txc_tx_clk
52+
- const: eth0_rxc_rx_clk
53+
- const: eth1_txc_tx_clk
54+
- const: eth1_rxc_rx_clk
4455

4556
'#clock-cells':
4657
description: |
@@ -74,6 +85,25 @@ required:
7485
- '#power-domain-cells'
7586
- '#reset-cells'
7687

88+
allOf:
89+
- if:
90+
properties:
91+
compatible:
92+
contains:
93+
const: renesas,r9a08g046-cpg
94+
then:
95+
properties:
96+
clocks:
97+
minItems: 5
98+
clock-names:
99+
minItems: 5
100+
else:
101+
properties:
102+
clocks:
103+
maxItems: 1
104+
clock-names:
105+
maxItems: 1
106+
77107
additionalProperties: false
78108

79109
examples:

0 commit comments

Comments
 (0)