Skip to contentSkip to conversation

dt-bindings: gpio: sifive,gpio: Group interrupt tuples

PATCH Applied Geert Uytterhoeven 3 participants 4 messages Nov 25, 2021 – Dec 1, 2021

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

PATCH 1/1 dt-bindings: gpio: sifive,gpio: Group interrupt tuples

To improve human readability and enable automatic validation, the tuples in "interrupts" properties should be grouped using angle brackets.

---
 Documentation/devicetree/bindings/gpio/sifive,gpio.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/gpio/sifive,gpio.yaml +2 -1
index c2902aac25145205..e04349567eebb72c 100644
@@ -77,7 +77,8 @@ examples:
       gpio@10060000 {
         compatible = "sifive,fu540-c000-gpio", "sifive,gpio0";
         interrupt-parent = <&plic>;
-        interrupts = <7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22>;
+        interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
+                     <17>, <18>, <19>, <20>, <21>, <22>;
         reg = <0x10060000 0x1000>;
         clocks = <&tlclk PRCI_CLK_TLCLK>;
         gpio-controller;
Signature · 7 lines
2.25.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Geert Uytterhoeven

To improve human readability and enable automatic validation, the tuples in "interrupts" properties should be grouped using angle brackets.

(...)

Documentation/devicetree/bindings/gpio/sifive,gpio.yaml examples: · line 81

Quoted 3 lines
Documentation/devicetree/bindings/gpio/sifive,gpio.yaml +2 -1
-        interrupts = <7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22>;
+        interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
+                     <17>, <18>, <19>, <20>, <21>, <22>;

Tuples? Hm they look single. Like singletons?

Anyway:

Yours,
Linus Walleij

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#2 lore raw

Hi Linus,

Quoted 4 lines · Linus Walleij
Quoted 3 lines · Geert Uytterhoeven

To improve human readability and enable automatic validation, the tuples in "interrupts" properties should be grouped using angle brackets.

Quoted 8 lines
Quoted 1 line

(...)

Documentation/devicetree/bindings/gpio/sifive,gpio.yaml examples: · line 81

Quoted 3 lines
Documentation/devicetree/bindings/gpio/sifive,gpio.yaml +2 -1
-        interrupts = <7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22>;
+        interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
+                     <17>, <18>, <19>, <20>, <21>, <22>;

Tuples? Hm they look single. Like singletons?

Yeah, plic has #interrupt-cells = <1>.

Quoted 2 lines

Anyway:

Thanks!

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

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#3 lore raw
In reply to Geert Uytterhoeven
Quoted 24 lines · Geert Uytterhoeven

To improve human readability and enable automatic validation, the tuples in "interrupts" properties should be grouped using angle brackets.

---
 Documentation/devicetree/bindings/gpio/sifive,gpio.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/gpio/sifive,gpio.yaml +2 -2
index c2902aac25145205..e04349567eebb72c 100644
@@ -77,7 +77,8 @@ examples:
       gpio@10060000 {
         compatible = "sifive,fu540-c000-gpio", "sifive,gpio0";
         interrupt-parent = <&plic>;
-        interrupts = <7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22>;
+        interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
+                     <17>, <18>, <19>, <20>, <21>, <22>;
         reg = <0x10060000 0x1000>;
         clocks = <&tlclk PRCI_CLK_TLCLK>;
         gpio-controller;
--
Quoted 2 lines

2.25.1

Applied, thanks!

Bart