Linux I2C development
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: i2c: renesas,rcar-i2c: allow 6 DMA channels
@ 2026-08-26  8:34 Wolfram Sang
  2026-08-26 16:08 ` Conor Dooley
  2026-08-27  7:59 ` Geert Uytterhoeven
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2026-08-26  8:34 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: Wolfram Sang, Andi Shyti, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Geert Uytterhoeven, Magnus Damm, linux-i2c,
	devicetree

R-Car Gen5 can make use of it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Change since v1: add check for limit on Gen3/4.

 .../bindings/i2c/renesas,rcar-i2c.yaml         | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml b/Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml
index f9ede03c3287..bfd486be0109 100644
--- a/Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml
@@ -83,14 +83,14 @@ properties:
 
   dmas:
     minItems: 2
-    maxItems: 4
+    maxItems: 6
     description:
       Must contain a list of pairs of references to DMA specifiers, one for
       transmission, and one for reception.
 
   dma-names:
     minItems: 2
-    maxItems: 4
+    maxItems: 6
     items:
       enum:
         - tx
@@ -137,6 +137,20 @@ allOf:
         dmas: false
         dma-names: false
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - renesas,rcar-gen3-i2c
+              - renesas,rcar-gen4-i2c
+    then:
+      properties:
+        dmas:
+          maxItems: 4
+        dma-names:
+          maxItems: 4
+
   - if:
       properties:
         compatible:
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] dt-bindings: i2c: renesas,rcar-i2c: allow 6 DMA channels
  2026-08-26  8:34 [PATCH v2] dt-bindings: i2c: renesas,rcar-i2c: allow 6 DMA channels Wolfram Sang
@ 2026-08-26 16:08 ` Conor Dooley
  2026-08-27  7:59 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2026-08-26 16:08 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Andi Shyti, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Geert Uytterhoeven, Magnus Damm, linux-i2c,
	devicetree

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] dt-bindings: i2c: renesas,rcar-i2c: allow 6 DMA channels
  2026-08-26  8:34 [PATCH v2] dt-bindings: i2c: renesas,rcar-i2c: allow 6 DMA channels Wolfram Sang
  2026-08-26 16:08 ` Conor Dooley
@ 2026-08-27  7:59 ` Geert Uytterhoeven
  1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2026-08-27  7:59 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Andi Shyti, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Geert Uytterhoeven, Magnus Damm, linux-i2c,
	devicetree

Hi Wolfram,

On Wed, 26 Aug 2026 at 10:35, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> R-Car Gen5 can make use of it.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Thanks for your patch!

> --- a/Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/renesas,rcar-i2c.yaml
> @@ -83,14 +83,14 @@ properties:
>
>    dmas:
>      minItems: 2
> -    maxItems: 4
> +    maxItems: 6

Shouldn't this be 8, as there are 4 SYS-DMAC instances, and I couldn't
find a limitation w.r.t. I2C and specific SYS-DMAC instances?

>      description:
>        Must contain a list of pairs of references to DMA specifiers, one for
>        transmission, and one for reception.
>
>    dma-names:
>      minItems: 2
> -    maxItems: 4
> +    maxItems: 6
>      items:
>        enum:
>          - tx
> @@ -137,6 +137,20 @@ allOf:
>          dmas: false
>          dma-names: false
>
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - renesas,rcar-gen3-i2c
> +              - renesas,rcar-gen4-i2c
> +    then:
> +      properties:
> +        dmas:
> +          maxItems: 4
> +        dma-names:
> +          maxItems: 4
> +

I wouldn't bother adding further restrictions, as these are not related
to the actual I2C block, but to on-SoC wiring.  DMARQ is just a single
signal going from the I2C block to one or more DMAC instances.
The number also differs among I2C instances on an SoC.

BTW, all I2C instances on R-Car V3U have one DMA pair ;-)

>    - if:
>        properties:
>          compatible:

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-27  7:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26  8:34 [PATCH v2] dt-bindings: i2c: renesas,rcar-i2c: allow 6 DMA channels Wolfram Sang
2026-08-26 16:08 ` Conor Dooley
2026-08-27  7:59 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox