* [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
@ 2025-04-10 8:00 Geert Uytterhoeven
2025-04-10 8:33 ` Wolfram Sang
2025-04-11 13:38 ` Rob Herring
0 siblings, 2 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2025-04-10 8:00 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Wolfram Sang
Cc: linux-serial, devicetree, linux-renesas-soc, Geert Uytterhoeven
There is no need to repeat all SoC-specific compatible values in the
rule for DMA-less RZ/N1 variants. Use wildcard "{}" instead, to ease
maintenance.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
.../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
index 1aa3480d8d818e99..1ffe3834b0a85085 100644
--- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
@@ -17,9 +17,7 @@ allOf:
properties:
compatible:
items:
- - enum:
- - renesas,r9a06g032-uart
- - renesas,r9a06g033-uart
+ - {}
- const: renesas,rzn1-uart
- const: snps,dw-apb-uart
then:
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-10 8:00 [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule Geert Uytterhoeven
@ 2025-04-10 8:33 ` Wolfram Sang
2025-04-10 8:36 ` Geert Uytterhoeven
2025-04-11 13:38 ` Rob Herring
1 sibling, 1 reply; 11+ messages in thread
From: Wolfram Sang @ 2025-04-10 8:33 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-serial, devicetree, linux-renesas-soc
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
> - - enum:
> - - renesas,r9a06g032-uart
> - - renesas,r9a06g033-uart
> + - {}
What about simply dropping r9a06g033 which cannot run Linux (no RAM
controller, only 6MB internal RAM) and there hasn't been any upstreaming
effort for other OS in the last 7 years? And making the remaining
r9a06g032 just const? Why should we allow everything there? Do we want
to support that?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-10 8:33 ` Wolfram Sang
@ 2025-04-10 8:36 ` Geert Uytterhoeven
2025-04-10 9:37 ` Wolfram Sang
0 siblings, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2025-04-10 8:36 UTC (permalink / raw)
To: Wolfram Sang
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-serial, devicetree, linux-renesas-soc
Hi Wolfram,
On Thu, 10 Apr 2025 at 10:33, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> > - - enum:
> > - - renesas,r9a06g032-uart
> > - - renesas,r9a06g033-uart
> > + - {}
>
> What about simply dropping r9a06g033 which cannot run Linux (no RAM
> controller, only 6MB internal RAM) and there hasn't been any upstreaming
You can run Linux on 6 MiB of RAM, if you try hard ;-)
> effort for other OS in the last 7 years? And making the remaining
... which does not mean there are no users.
> r9a06g032 just const? Why should we allow everything there? Do we want
> to support that?
We don't allow "everything". Valid compatible values are checked by
the normal rules below.
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] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-10 8:36 ` Geert Uytterhoeven
@ 2025-04-10 9:37 ` Wolfram Sang
2025-04-10 10:56 ` Geert Uytterhoeven
0 siblings, 1 reply; 11+ messages in thread
From: Wolfram Sang @ 2025-04-10 9:37 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-serial, devicetree, linux-renesas-soc
[-- Attachment #1: Type: text/plain, Size: 2488 bytes --]
> > What about simply dropping r9a06g033 which cannot run Linux (no RAM
> > controller, only 6MB internal RAM) and there hasn't been any upstreaming
>
> You can run Linux on 6 MiB of RAM, if you try hard ;-)
Whoever tries that hard will have zero problems upstreaming the bindings
then again. I will happily ack them. But it will not happen.
>
> > effort for other OS in the last 7 years? And making the remaining
>
> ... which does not mean there are no users.
And these mysterious users will complain about a removed UART binding
while there is not even a clk binding upstream?
> We don't allow "everything". Valid compatible values are checked by
> the normal rules below.
Why don't we use '{}' with all the bindings then? Would simplify so
much. From the watchdog driver:
- items:
- enum:
- renesas,r8a7742-wdt # RZ/G1H
- renesas,r8a7743-wdt # RZ/G1M
- renesas,r8a7744-wdt # RZ/G1N
- renesas,r8a7745-wdt # RZ/G1E
- renesas,r8a77470-wdt # RZ/G1C
- renesas,r8a7790-wdt # R-Car H2
- renesas,r8a7791-wdt # R-Car M2-W
- renesas,r8a7792-wdt # R-Car V2H
- renesas,r8a7793-wdt # R-Car M2-N
- renesas,r8a7794-wdt # R-Car E2
- const: renesas,rcar-gen2-wdt # R-Car Gen2 and RZ/G1
- items:
- enum:
- renesas,r8a774a1-wdt # RZ/G2M
- renesas,r8a774b1-wdt # RZ/G2N
- renesas,r8a774c0-wdt # RZ/G2E
- renesas,r8a774e1-wdt # RZ/G2H
- renesas,r8a7795-wdt # R-Car H3
- renesas,r8a7796-wdt # R-Car M3-W
- renesas,r8a77961-wdt # R-Car M3-W+
- renesas,r8a77965-wdt # R-Car M3-N
- renesas,r8a77970-wdt # R-Car V3M
- renesas,r8a77980-wdt # R-Car V3H
- renesas,r8a77990-wdt # R-Car E3
- renesas,r8a77995-wdt # R-Car D3
- const: renesas,rcar-gen3-wdt # R-Car Gen3 and RZ/G2
- items:
- enum:
- renesas,r8a779a0-wdt # R-Car V3U
- renesas,r8a779f0-wdt # R-Car S4-8
- renesas,r8a779g0-wdt # R-Car V4H
- renesas,r8a779h0-wdt # R-Car V4M
- const: renesas,rcar-gen4-wdt # R-Car Gen4
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-10 9:37 ` Wolfram Sang
@ 2025-04-10 10:56 ` Geert Uytterhoeven
2025-04-10 20:29 ` Wolfram Sang
0 siblings, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2025-04-10 10:56 UTC (permalink / raw)
To: Wolfram Sang
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-serial, devicetree, linux-renesas-soc
Hi Wolfram,
On Thu, 10 Apr 2025 at 11:37, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> > We don't allow "everything". Valid compatible values are checked by
> > the normal rules below.
>
> Why don't we use '{}' with all the bindings then? Would simplify so
> much. From the watchdog driver:
>
>
> - items:
> - enum:
> - renesas,r8a7742-wdt # RZ/G1H
> - renesas,r8a7743-wdt # RZ/G1M
> - renesas,r8a7744-wdt # RZ/G1N
> - renesas,r8a7745-wdt # RZ/G1E
> - renesas,r8a77470-wdt # RZ/G1C
> - renesas,r8a7790-wdt # R-Car H2
> - renesas,r8a7791-wdt # R-Car M2-W
> - renesas,r8a7792-wdt # R-Car V2H
> - renesas,r8a7793-wdt # R-Car M2-N
> - renesas,r8a7794-wdt # R-Car E2
> - const: renesas,rcar-gen2-wdt # R-Car Gen2 and RZ/G1
[...]
The watchdog bindings do not have an extra rule that lists all
compatible values a second time.
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] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-10 10:56 ` Geert Uytterhoeven
@ 2025-04-10 20:29 ` Wolfram Sang
0 siblings, 0 replies; 11+ messages in thread
From: Wolfram Sang @ 2025-04-10 20:29 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-serial, devicetree, linux-renesas-soc
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
> The watchdog bindings do not have an extra rule that lists all
> compatible values a second time.
I see, this only simplifies the 'if' condition preventing the dma
properties. For me, that is just another reason to drop 'r9a06g033'
altogether because that would simplify both occurences and make it all
more readable, not less.
And I still think the other two points which you decided to not quote
still stand.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-10 8:00 [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule Geert Uytterhoeven
2025-04-10 8:33 ` Wolfram Sang
@ 2025-04-11 13:38 ` Rob Herring
2025-04-11 15:37 ` Wolfram Sang
1 sibling, 1 reply; 11+ messages in thread
From: Rob Herring @ 2025-04-11 13:38 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski, Conor Dooley,
Wolfram Sang, linux-serial, devicetree, linux-renesas-soc
On Thu, Apr 10, 2025 at 3:23 AM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> There is no need to repeat all SoC-specific compatible values in the
> rule for DMA-less RZ/N1 variants. Use wildcard "{}" instead, to ease
> maintenance.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> .../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-11 13:38 ` Rob Herring
@ 2025-04-11 15:37 ` Wolfram Sang
2025-04-11 16:16 ` Rob Herring
0 siblings, 1 reply; 11+ messages in thread
From: Wolfram Sang @ 2025-04-11 15:37 UTC (permalink / raw)
To: Rob Herring
Cc: Geert Uytterhoeven, Greg Kroah-Hartman, Jiri Slaby,
Krzysztof Kozlowski, Conor Dooley, linux-serial, devicetree,
linux-renesas-soc
[-- Attachment #1: Type: text/plain, Size: 639 bytes --]
On Fri, Apr 11, 2025 at 08:38:58AM -0500, Rob Herring wrote:
> On Thu, Apr 10, 2025 at 3:23 AM Geert Uytterhoeven
> <geert+renesas@glider.be> wrote:
> >
> > There is no need to repeat all SoC-specific compatible values in the
> > rule for DMA-less RZ/N1 variants. Use wildcard "{}" instead, to ease
> > maintenance.
> >
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
> > .../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 4 +---
> > 1 file changed, 1 insertion(+), 3 deletions(-)
>
> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
I'll send my counterpatch in some minutes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-11 15:37 ` Wolfram Sang
@ 2025-04-11 16:16 ` Rob Herring
2025-04-11 19:12 ` Wolfram Sang
2025-04-23 12:10 ` Geert Uytterhoeven
0 siblings, 2 replies; 11+ messages in thread
From: Rob Herring @ 2025-04-11 16:16 UTC (permalink / raw)
To: Wolfram Sang, Geert Uytterhoeven, Greg Kroah-Hartman, Jiri Slaby,
Krzysztof Kozlowski, Conor Dooley, linux-serial, devicetree,
linux-renesas-soc
On Fri, Apr 11, 2025 at 05:37:09PM +0200, Wolfram Sang wrote:
> On Fri, Apr 11, 2025 at 08:38:58AM -0500, Rob Herring wrote:
> > On Thu, Apr 10, 2025 at 3:23 AM Geert Uytterhoeven
> > <geert+renesas@glider.be> wrote:
> > >
> > > There is no need to repeat all SoC-specific compatible values in the
> > > rule for DMA-less RZ/N1 variants. Use wildcard "{}" instead, to ease
> > > maintenance.
> > >
> > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > ---
> > > .../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 4 +---
> > > 1 file changed, 1 insertion(+), 3 deletions(-)
> >
> > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
>
> I'll send my counterpatch in some minutes.
IMO, whether you drop the platform is orthogonal to this patch.
Whether or not the platform can run Linux is irrelevant to whether there
are bindings. Can it run u-boot? Now, if no one is going to make the
bindings complete and upstream a .dts for it, then remove it.
Rob
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-11 16:16 ` Rob Herring
@ 2025-04-11 19:12 ` Wolfram Sang
2025-04-23 12:10 ` Geert Uytterhoeven
1 sibling, 0 replies; 11+ messages in thread
From: Wolfram Sang @ 2025-04-11 19:12 UTC (permalink / raw)
To: Rob Herring
Cc: Geert Uytterhoeven, Greg Kroah-Hartman, Jiri Slaby,
Krzysztof Kozlowski, Conor Dooley, linux-serial, devicetree,
linux-renesas-soc
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
> IMO, whether you drop the platform is orthogonal to this patch.
Ok.
> Whether or not the platform can run Linux is irrelevant to whether there
Yes and no. I know what you mean with "irrelevant" and I agree to that.
But...
> are bindings. Can it run u-boot? Now, if no one is going to make the
> bindings complete and upstream a .dts for it, then remove it.
... also this. If the SoC can hardly run Linux (if at all) it is a lot
less likely in practice that someone will complete the upstream support,
no?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule
2025-04-11 16:16 ` Rob Herring
2025-04-11 19:12 ` Wolfram Sang
@ 2025-04-23 12:10 ` Geert Uytterhoeven
1 sibling, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2025-04-23 12:10 UTC (permalink / raw)
To: Rob Herring
Cc: Wolfram Sang, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, linux-serial, devicetree, linux-renesas-soc
Hi Rob,
On Fri, 11 Apr 2025 at 18:16, Rob Herring <robh@kernel.org> wrote:
> On Fri, Apr 11, 2025 at 05:37:09PM +0200, Wolfram Sang wrote:
> > On Fri, Apr 11, 2025 at 08:38:58AM -0500, Rob Herring wrote:
> > > On Thu, Apr 10, 2025 at 3:23 AM Geert Uytterhoeven
> > > <geert+renesas@glider.be> wrote:
> > > >
> > > > There is no need to repeat all SoC-specific compatible values in the
> > > > rule for DMA-less RZ/N1 variants. Use wildcard "{}" instead, to ease
> > > > maintenance.
> > > >
> > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > > > ---
> > > > .../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 4 +---
> > > > 1 file changed, 1 insertion(+), 3 deletions(-)
> > >
> > > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> >
> > I'll send my counterpatch in some minutes.
>
> IMO, whether you drop the platform is orthogonal to this patch.
>
> Whether or not the platform can run Linux is irrelevant to whether there
> are bindings. Can it run u-boot? Now, if no one is going to make the
> bindings complete and upstream a .dts for it, then remove it.
FTR, the document "RZ/N1 U-boot Users Manual Rev.1.06"[1] covers not
only RZ/N1D (dual-A7 + M3) and RZ/N1S (single-A7 + M3, no external RAM),
but also the lowest member RZ/N1L (M3-only, no external RAM).
[1] https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus/rzn1d-microprocessors-featuring-5-ethernet-ports-and-latest-redundancy-protocol-industrial-network-master
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] 11+ messages in thread
end of thread, other threads:[~2025-04-23 12:10 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-10 8:00 [PATCH] dt-bindings: serial: snps-dw-apb-uart: Simplify DMA-less RZ/N1 rule Geert Uytterhoeven
2025-04-10 8:33 ` Wolfram Sang
2025-04-10 8:36 ` Geert Uytterhoeven
2025-04-10 9:37 ` Wolfram Sang
2025-04-10 10:56 ` Geert Uytterhoeven
2025-04-10 20:29 ` Wolfram Sang
2025-04-11 13:38 ` Rob Herring
2025-04-11 15:37 ` Wolfram Sang
2025-04-11 16:16 ` Rob Herring
2025-04-11 19:12 ` Wolfram Sang
2025-04-23 12:10 ` Geert Uytterhoeven
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).