Skip to content

Commit b93d8b1

Browse files
prabhakarladUlf Hansson
authored andcommitted
dt-bindings: mmc: renesas,sdhi: Document RZ/T2H and RZ/N2H support
Add SDHI bindings for the Renesas RZ/T2H (a.k.a R9A09G077) and RZ/N2H (a.k.a R9A09G087) SoCs. Use `renesas,sdhi-r9a09g057` as a fallback since the SD/MMC block on these SoCs is identical to the one on RZ/V2H(P), allowing reuse of the existing driver without modifications. Update the binding schema to reflect differences: unlike RZ/V2H(P), RZ/T2H and RZ/N2H do not require the `resets` property and use only a two clocks instead of four. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250617164914.158091-1-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 15b8c45 commit b93d8b1

1 file changed

Lines changed: 53 additions & 32 deletions

File tree

Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml

Lines changed: 53 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ properties:
7272
- enum:
7373
- renesas,sdhi-r9a09g047 # RZ/G3E
7474
- renesas,sdhi-r9a09g056 # RZ/V2N
75+
- renesas,sdhi-r9a09g077 # RZ/T2H
76+
- renesas,sdhi-r9a09g087 # RZ/N2H
7577
- const: renesas,sdhi-r9a09g057 # RZ/V2H(P)
7678

7779
reg:
@@ -129,59 +131,78 @@ allOf:
129131
compatible:
130132
contains:
131133
enum:
132-
- renesas,sdhi-r9a09g057
133-
- renesas,rzg2l-sdhi
134+
- renesas,sdhi-r9a09g077
135+
- renesas,sdhi-r9a09g087
134136
then:
135137
properties:
138+
resets: false
136139
clocks:
137140
items:
138-
- description: IMCLK, SDHI channel main clock1.
139-
- description: CLK_HS, SDHI channel High speed clock which operates
140-
4 times that of SDHI channel main clock1.
141-
- description: IMCLK2, SDHI channel main clock2. When this clock is
142-
turned off, external SD card detection cannot be
143-
detected.
144-
- description: ACLK, SDHI channel bus clock.
141+
- description: ACLK, IMCLK, SDHI channel bus and main clocks.
142+
- description: CLK_HS, SDHI channel High speed clock.
145143
clock-names:
146144
items:
147-
- const: core
148-
- const: clkh
149-
- const: cd
150145
- const: aclk
151-
required:
152-
- clock-names
153-
- resets
146+
- const: clkh
154147
else:
155148
if:
156149
properties:
157150
compatible:
158151
contains:
159152
enum:
160-
- renesas,rcar-gen2-sdhi
161-
- renesas,rcar-gen3-sdhi
162-
- renesas,rcar-gen4-sdhi
153+
- renesas,sdhi-r9a09g057
154+
- renesas,rzg2l-sdhi
163155
then:
164156
properties:
165157
clocks:
166-
minItems: 1
167-
maxItems: 3
168-
clock-names:
169-
minItems: 1
170-
uniqueItems: true
171158
items:
172-
- const: core
173-
- enum: [ clkh, cd ]
174-
- const: cd
175-
else:
176-
properties:
177-
clocks:
178-
minItems: 1
179-
maxItems: 2
159+
- description: IMCLK, SDHI channel main clock1.
160+
- description: CLK_HS, SDHI channel High speed clock which operates
161+
4 times that of SDHI channel main clock1.
162+
- description: IMCLK2, SDHI channel main clock2. When this clock is
163+
turned off, external SD card detection cannot be
164+
detected.
165+
- description: ACLK, SDHI channel bus clock.
180166
clock-names:
181-
minItems: 1
182167
items:
183168
- const: core
169+
- const: clkh
184170
- const: cd
171+
- const: aclk
172+
required:
173+
- clock-names
174+
- resets
175+
else:
176+
if:
177+
properties:
178+
compatible:
179+
contains:
180+
enum:
181+
- renesas,rcar-gen2-sdhi
182+
- renesas,rcar-gen3-sdhi
183+
- renesas,rcar-gen4-sdhi
184+
then:
185+
properties:
186+
clocks:
187+
minItems: 1
188+
maxItems: 3
189+
clock-names:
190+
minItems: 1
191+
uniqueItems: true
192+
items:
193+
- const: core
194+
- enum: [ clkh, cd ]
195+
- const: cd
196+
else:
197+
properties:
198+
clocks:
199+
minItems: 1
200+
maxItems: 2
201+
clock-names:
202+
minItems: 1
203+
items:
204+
- const: core
205+
- const: cd
185206

186207
- if:
187208
properties:

0 commit comments

Comments
 (0)