RE: [PATCH 1/2] dt-bindings: spi: renesas,rzv2h-rspi: Document RZ/G3L SoC

From: Biju Das

Date: Thu Apr 02 2026 - 10:16:37 EST



Hi Krzysztof Kozlowski,

> -----Original Message-----
> From: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> Sent: 04 March 2026 15:43
> Subject: Re: [PATCH 1/2] dt-bindings: spi: renesas,rzv2h-rspi: Document RZ/G3L SoC
>
> On 04/03/2026 16:18, Biju Das wrote:
> > Hi Krzysztof Kozlowski,
> >
> > Thanks for the review.
> >
> >> -----Original Message-----
> >> From: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> >> Sent: 04 March 2026 15:04
> >> Subject: Re: [PATCH 1/2] dt-bindings: spi: renesas,rzv2h-rspi:
> >> Document RZ/G3L SoC
> >>
> >> On 04/03/2026 08:49, Biju wrote:
> >>> From: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> >>>
> >>> Document RSPI IP found on the RZ/G3L SoC. The RSPI IP is compatible
> >>> with the RZ/V2H RSPI IP, but has 2 clocks compared to 3 on RZ/V2H.
> >>>
> >>> Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
> >>> ---
> >>> .../bindings/spi/renesas,rzv2h-rspi.yaml | 26 +++++++++++++++++++
> >>> 1 file changed, 26 insertions(+)
> >>>
> >>> diff --git
> >>> a/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml
> >>> b/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml
> >>> index cf8b733b766d..599c06ff08e5 100644
> >>> --- a/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml
> >>> +++ b/Documentation/devicetree/bindings/spi/renesas,rzv2h-rspi.yaml
> >>> @@ -13,6 +13,7 @@ properties:
> >>> compatible:
> >>> oneOf:
> >>> - enum:
> >>> + - renesas,r9a08g046-rspi # RZ/G3L
> >>> - renesas,r9a09g057-rspi # RZ/V2H(P)
> >>> - renesas,r9a09g077-rspi # RZ/T2H
> >>> - items:
> >>> @@ -85,6 +86,31 @@ required:
> >>>
> >>> allOf:
> >>> - $ref: spi-controller.yaml#
> >>> + - if:
> >>> + properties:
> >>> + compatible:
> >>> + contains:
> >>> + enum:
> >>> + - renesas,r9a08g046-rspi
> >>> + then:
> >>> + properties:
> >>> + clocks:
> >>> + maxItems: 2
> >>> +
> >>> + clock-names:
> >>> + items:
> >>> + - const: pclk
> >>> + - const: tclk
> >>> + dmas:
> >>> + maxItems: 2
> >>> +
> >>> + dma-names:
> >>> + maxItems: 2
> >>
> >> So even after my objections here:
> >> https://lore.kernel.org/all/9d08ddda-403e-458d-95e4-4e76915df85d@kern
> >> el.org/
> >>
> >> this was not fixed and Renesas did not provide actual cross-patch review.
> >
> > That patch is not correct. See below.
> >
> >>
> >> This is still probably wrong as pointed out by other patches by Renesas.
> >> Also, you cannot have flexible names.
> >
> > You can have "rx", "tx" in any order and {rx, tx} should be unique dma
> > specifier
>
> No. You cannot. I just told you so. Please read writing-bindings for arguments.

<snippet from writing-bindings >
- DO define properties in terms of constraints. How many entries? What are
possible values? What is the order? All these constraints represent the ABI
as well.
</snippet>

Is that the reason you're saying we cannot have flexible names for DMAs?

Are you expecting the RZ/G3L DMA entries to be like below? Please let me know.

This is not flexible — the user always needs to specify RX first, followed by TX.

+ dmas:
+ maxItems: 2
+
+ dma-names:
+ items:
+ - const: rx
+ - const: tx

Cheers,
Biju