Skip to contentSkip to conversation

dt-bindings: dma: snps,dw-axi-dmac: Group tuples in snps properties

PATCH In review Geert Uytterhoeven 2 participants 3 messages Nov 25, 2021 – Dec 2, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: dma: snps,dw-axi-dmac: Group tuples in snps properties

To improve human readability and enable automatic validation, the tuples in "snps,block-size" and "snps,priority" properties should be grouped using angle brackets.

---
 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +2 -2
index 79e241498e2532ce..90d9274e5464e396 100644
@@ -120,7 +120,7 @@ examples:
          dma-channels = <4>;
          snps,dma-masters = <2>;
          snps,data-width = <3>;
-         snps,block-size = <4096 4096 4096 4096>;
-         snps,priority = <0 1 2 3>;
+         snps,block-size = <4096>, <4096>, <4096>, <4096>;
+         snps,priority = <0>, <1>, <2>, <3>;
          snps,axi-max-burst-len = <16>;
      };
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 3 lines · Geert Uytterhoeven

To improve human readability and enable automatic validation, the tuples in "snps,block-size" and "snps,priority" properties should be grouped using angle brackets.

For these, the tools should allow either way. Where are you seeing an error?

I tried to rationalize which way should be 'correct' and gave up. I think bracketing only makes sense for matrix and phandle+arg cases.

Quoted 24 lines
---
 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml +2 -2
index 79e241498e2532ce..90d9274e5464e396 100644
@@ -120,7 +120,7 @@ examples:
          dma-channels = <4>;
          snps,dma-masters = <2>;
          snps,data-width = <3>;
-         snps,block-size = <4096 4096 4096 4096>;
-         snps,priority = <0 1 2 3>;
+         snps,block-size = <4096>, <4096>, <4096>, <4096>;
+         snps,priority = <0>, <1>, <2>, <3>;
          snps,axi-max-burst-len = <16>;
      };
Signature · 1 line
2.25.1
#2 lore raw

Hi Rob,

Quoted 7 lines · Rob Herring
Quoted 3 lines · Geert Uytterhoeven

To improve human readability and enable automatic validation, the tuples in "snps,block-size" and "snps,priority" properties should be grouped using angle brackets.

For these, the tools should allow either way. Where are you seeing an error?

Good to know. I'm not seeing any errors.

Quoted 2 lines

I tried to rationalize which way should be 'correct' and gave up. I think bracketing only makes sense for matrix and phandle+arg cases.

That makes sense. And "interrupts" is special, because it's really a short-hand for "interrupts-extended", with the phandle specified by "interrupt-parent" at the same or a higher level.

Hence I'll drop this patch.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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