* [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
@ 2025-03-17 12:04 Wolfram Sang
2025-03-17 13:13 ` Geert Uytterhoeven
0 siblings, 1 reply; 10+ messages in thread
From: Wolfram Sang @ 2025-03-17 12:04 UTC (permalink / raw)
To: linux-renesas-soc
Cc: Wolfram Sang, Greg Kroah-Hartman, Jiri Slaby, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
Magnus Damm, linux-serial, devicetree
Renesas RZ/N1D has this UART with and without DMA support. Currently,
only the binding with DMA support is described. Add the missing one
without DMA support which can fallback even more.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
.../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
index 1c163cb5dff1..5b5799c21243 100644
--- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
@@ -30,6 +30,12 @@ allOf:
properties:
compatible:
oneOf:
+ - items:
+ - enum:
+ - renesas,r9a06g032-uart
+ - renesas,r9a06g033-uart
+ - const: renesas,rzn1-uart
+ - const: snps,dw-apb-uart
- items:
- enum:
- renesas,r9a06g032-uart
--
2.47.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-17 12:04 Wolfram Sang
@ 2025-03-17 13:13 ` Geert Uytterhoeven
2025-03-17 16:01 ` Wolfram Sang
0 siblings, 1 reply; 10+ messages in thread
From: Geert Uytterhoeven @ 2025-03-17 13:13 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-renesas-soc, Greg Kroah-Hartman, Jiri Slaby, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
Magnus Damm, linux-serial, devicetree
Hi Wolfram,
On Mon, 17 Mar 2025 at 13:04, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Renesas RZ/N1D has this UART with and without DMA support. Currently,
> only the binding with DMA support is described. Add the missing one
> without DMA support which can fallback even more.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Thanks for your patch!
> --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> @@ -30,6 +30,12 @@ allOf:
> properties:
> compatible:
> oneOf:
> + - items:
> + - enum:
> + - renesas,r9a06g032-uart
> + - renesas,r9a06g033-uart
> + - const: renesas,rzn1-uart
> + - const: snps,dw-apb-uart
> - items:
> - enum:
> - renesas,r9a06g032-uart
This is the alternative I suggested, which Miquel likes more than [1],
and which I was just about to formalize into a real patch ;-)
I think it would be wiese to add extra logic to prohibit the dmas
property when both renesas,rzn1-uart and snps,dw-apb-uart are present.
[1] "[PATCH 2/2] ARM: dts: renesas: r9a06g032: Drop snps,dw-apb-uart
compatibility"
https://lore.kernel.org/all/e290dd28ecb68b4e164172a905da18a5a2d438a1.1739525488.git.geert+renesas@glider.be
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] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-17 13:13 ` Geert Uytterhoeven
@ 2025-03-17 16:01 ` Wolfram Sang
0 siblings, 0 replies; 10+ messages in thread
From: Wolfram Sang @ 2025-03-17 16:01 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: linux-renesas-soc, Greg Kroah-Hartman, Jiri Slaby, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
Magnus Damm, linux-serial, devicetree
[-- Attachment #1: Type: text/plain, Size: 346 bytes --]
> This is the alternative I suggested, which Miquel likes more than [1],
> and which I was just about to formalize into a real patch ;-)
> I think it would be wiese to add extra logic to prohibit the dmas
> property when both renesas,rzn1-uart and snps,dw-apb-uart are present.
I'll think about it.
Sorry for overlooking your patch series :(
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
@ 2025-03-18 8:53 Wolfram Sang
2025-03-18 9:05 ` Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Wolfram Sang @ 2025-03-18 8:53 UTC (permalink / raw)
To: linux-renesas-soc
Cc: Miquel Raynal, Wolfram Sang, Greg Kroah-Hartman, Jiri Slaby,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Magnus Damm, linux-serial, devicetree
Renesas RZ/N1D has this UART with and without DMA support. Currently,
only the binding with DMA support is described. Add the missing one
without DMA support which can fallback even more.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
.../bindings/serial/snps-dw-apb-uart.yaml | 20 +++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
index 1c163cb5dff1..645b14ffde90 100644
--- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
@@ -13,6 +13,20 @@ allOf:
- $ref: serial.yaml#
- $ref: rs485.yaml#
+ - if:
+ properties:
+ compatible:
+ items:
+ - enum:
+ - renesas,r9a06g032-uart
+ - renesas,r9a06g033-uart
+ - const: renesas,rzn1-uart
+ - const: snps,dw-apb-uart
+ then:
+ properties:
+ dmas: false
+ dma-names: false
+
- if:
properties:
compatible:
@@ -30,6 +44,12 @@ allOf:
properties:
compatible:
oneOf:
+ - items:
+ - enum:
+ - renesas,r9a06g032-uart
+ - renesas,r9a06g033-uart
+ - const: renesas,rzn1-uart
+ - const: snps,dw-apb-uart
- items:
- enum:
- renesas,r9a06g032-uart
--
2.47.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-18 8:53 [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA Wolfram Sang
@ 2025-03-18 9:05 ` Geert Uytterhoeven
2025-03-18 9:11 ` Wolfram Sang
2025-03-18 9:32 ` Miquel Raynal
2025-03-21 16:06 ` Rob Herring (Arm)
2 siblings, 1 reply; 10+ messages in thread
From: Geert Uytterhoeven @ 2025-03-18 9:05 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-renesas-soc, Miquel Raynal, Greg Kroah-Hartman, Jiri Slaby,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Magnus Damm, linux-serial, devicetree
Hi Wolfram,
On Tue, 18 Mar 2025 at 09:54, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Renesas RZ/N1D has this UART with and without DMA support. Currently,
> only the binding with DMA support is described. Add the missing one
> without DMA support which can fallback even more.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Thanks for your patch!
> --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
> @@ -13,6 +13,20 @@ allOf:
> - $ref: serial.yaml#
> - $ref: rs485.yaml#
>
> + - if:
> + properties:
> + compatible:
> + items:
> + - enum:
> + - renesas,r9a06g032-uart
> + - renesas,r9a06g033-uart
I think you can simplify by replacing the enum by
- pattern: "^renesas,.*$"
> + - const: renesas,rzn1-uart
> + - const: snps,dw-apb-uart
> + then:
> + properties:
> + dmas: false
> + dma-names: false
> +
> - if:
> properties:
> compatible:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
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] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-18 9:05 ` Geert Uytterhoeven
@ 2025-03-18 9:11 ` Wolfram Sang
2025-03-18 9:22 ` Geert Uytterhoeven
0 siblings, 1 reply; 10+ messages in thread
From: Wolfram Sang @ 2025-03-18 9:11 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: linux-renesas-soc, Miquel Raynal, Greg Kroah-Hartman, Jiri Slaby,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Magnus Damm, linux-serial, devicetree
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
> > + - enum:
> > + - renesas,r9a06g032-uart
> > + - renesas,r9a06g033-uart
>
> I think you can simplify by replacing the enum by
>
> - pattern: "^renesas,.*$"
I still plan to remove r9a06g033 bindings from the kernel because that
SoC cannot run Linux with only 4MB of internal SRAM. So, all this will
become "const: renesas,r9a06g032-uart" in the future anyhow. But one
step after the other...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-18 9:11 ` Wolfram Sang
@ 2025-03-18 9:22 ` Geert Uytterhoeven
2025-03-18 9:26 ` Wolfram Sang
0 siblings, 1 reply; 10+ messages in thread
From: Geert Uytterhoeven @ 2025-03-18 9:22 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-renesas-soc, Miquel Raynal, Greg Kroah-Hartman, Jiri Slaby,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Magnus Damm,
linux-serial, devicetree
Hi Wolfram,
On Tue, 18 Mar 2025 at 10:11, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> > > + - enum:
> > > + - renesas,r9a06g032-uart
> > > + - renesas,r9a06g033-uart
> >
> > I think you can simplify by replacing the enum by
> >
> > - pattern: "^renesas,.*$"
>
> I still plan to remove r9a06g033 bindings from the kernel because that
> SoC cannot run Linux with only 4MB of internal SRAM. So, all this will
> become "const: renesas,r9a06g032-uart" in the future anyhow. But one
> step after the other...
DT is not just for Linux. I guess it can run Zephyr?
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] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-18 9:22 ` Geert Uytterhoeven
@ 2025-03-18 9:26 ` Wolfram Sang
0 siblings, 0 replies; 10+ messages in thread
From: Wolfram Sang @ 2025-03-18 9:26 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: linux-renesas-soc, Miquel Raynal, Greg Kroah-Hartman, Jiri Slaby,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Magnus Damm,
linux-serial, devicetree
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
> DT is not just for Linux. I guess it can run Zephyr?
Since nobody has been bothered to include the essential bindings over
the last 7 years, I don't know why we would want to handle those 4
random bindings for it which make life only complicated for us.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-18 8:53 [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA Wolfram Sang
2025-03-18 9:05 ` Geert Uytterhoeven
@ 2025-03-18 9:32 ` Miquel Raynal
2025-03-21 16:06 ` Rob Herring (Arm)
2 siblings, 0 replies; 10+ messages in thread
From: Miquel Raynal @ 2025-03-18 9:32 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-renesas-soc, Greg Kroah-Hartman, Jiri Slaby, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
Magnus Damm, linux-serial, devicetree
Hello Wolfram,
On 18/03/2025 at 09:53:53 +01, Wolfram Sang <wsa+renesas@sang-engineering.com> wrote:
> Renesas RZ/N1D has this UART with and without DMA support. Currently,
> only the binding with DMA support is described. Add the missing one
> without DMA support which can fallback even more.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
That's true indeed.
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA
2025-03-18 8:53 [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA Wolfram Sang
2025-03-18 9:05 ` Geert Uytterhoeven
2025-03-18 9:32 ` Miquel Raynal
@ 2025-03-21 16:06 ` Rob Herring (Arm)
2 siblings, 0 replies; 10+ messages in thread
From: Rob Herring (Arm) @ 2025-03-21 16:06 UTC (permalink / raw)
To: Wolfram Sang
Cc: Magnus Damm, devicetree, Jiri Slaby, Conor Dooley,
Geert Uytterhoeven, Greg Kroah-Hartman, linux-renesas-soc,
Krzysztof Kozlowski, Miquel Raynal, linux-serial
On Tue, 18 Mar 2025 09:53:53 +0100, Wolfram Sang wrote:
> Renesas RZ/N1D has this UART with and without DMA support. Currently,
> only the binding with DMA support is described. Add the missing one
> without DMA support which can fallback even more.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> .../bindings/serial/snps-dw-apb-uart.yaml | 20 +++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-03-21 16:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18 8:53 [PATCH] dt-bindings: serial: snps-dw-apb-uart: document RZ/N1 binding without DMA Wolfram Sang
2025-03-18 9:05 ` Geert Uytterhoeven
2025-03-18 9:11 ` Wolfram Sang
2025-03-18 9:22 ` Geert Uytterhoeven
2025-03-18 9:26 ` Wolfram Sang
2025-03-18 9:32 ` Miquel Raynal
2025-03-21 16:06 ` Rob Herring (Arm)
-- strict thread matches above, loose matches on Subject: below --
2025-03-17 12:04 Wolfram Sang
2025-03-17 13:13 ` Geert Uytterhoeven
2025-03-17 16:01 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).