Skip to content

Commit e93d7b2

Browse files
Demon000broonie
authored andcommitted
spi: dt-bindings: renesas,rzv2h-rspi: document RZ/T2H and RZ/N2H
The Renesas RZ/T2H (R9A09G077) and RZ/N2H (R9A09G087) SoCs have four SPI peripherals. Compared to the previously supported RZ/V2H, these SoCs have a smaller FIFO, no resets, and only two clocks: PCLKSPIn and PCLK. PCLKSPIn, being the clock from which the SPI transfer clock is generated, is the equivalent of the TCLK from V2H. Document them, and use RZ/T2H as a fallback for RZ/N2H as the SPIs are entirely compatible. Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20251119161434.595677-11-cosmin-gabriel.tanislav.xa@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bc4f0b1 commit e93d7b2

1 file changed

Lines changed: 52 additions & 10 deletions

File tree

Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ title: Renesas RZ/V2H(P) Renesas Serial Peripheral Interface (RSPI)
99
maintainers:
1010
- Fabrizio Castro <fabrizio.castro.jz@renesas.com>
1111

12-
allOf:
13-
- $ref: spi-controller.yaml#
14-
1512
properties:
1613
compatible:
17-
const: renesas,r9a09g057-rspi # RZ/V2H(P)
14+
oneOf:
15+
- enum:
16+
- renesas,r9a09g057-rspi # RZ/V2H(P)
17+
- renesas,r9a09g077-rspi # RZ/T2H
18+
- items:
19+
- const: renesas,r9a09g087-rspi # RZ/N2H
20+
- const: renesas,r9a09g077-rspi # RZ/T2H
1821

1922
reg:
2023
maxItems: 1
@@ -36,13 +39,12 @@ properties:
3639
- const: tx
3740

3841
clocks:
42+
minItems: 2
3943
maxItems: 3
4044

4145
clock-names:
42-
items:
43-
- const: pclk
44-
- const: pclk_sfr
45-
- const: tclk
46+
minItems: 2
47+
maxItems: 3
4648

4749
resets:
4850
maxItems: 2
@@ -62,12 +64,52 @@ required:
6264
- interrupt-names
6365
- clocks
6466
- clock-names
65-
- resets
66-
- reset-names
6767
- power-domains
6868
- '#address-cells'
6969
- '#size-cells'
7070

71+
allOf:
72+
- $ref: spi-controller.yaml#
73+
- if:
74+
properties:
75+
compatible:
76+
contains:
77+
enum:
78+
- renesas,r9a09g057-rspi
79+
then:
80+
properties:
81+
clocks:
82+
minItems: 3
83+
84+
clock-names:
85+
items:
86+
- const: pclk
87+
- const: pclk_sfr
88+
- const: tclk
89+
90+
required:
91+
- resets
92+
- reset-names
93+
94+
- if:
95+
properties:
96+
compatible:
97+
contains:
98+
enum:
99+
- renesas,r9a09g077-rspi
100+
then:
101+
properties:
102+
clocks:
103+
maxItems: 2
104+
105+
clock-names:
106+
items:
107+
- const: pclk
108+
- const: pclkspi
109+
110+
resets: false
111+
reset-names: false
112+
71113
unevaluatedProperties: false
72114

73115
examples:

0 commit comments

Comments
 (0)