Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: pinctrl: Group tuples in pin control properties

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

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210204125718.1646082-1-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Geert Uytterhoeven and committed by
Linus Walleij
74f2dd44 5637f556

+13 -13
+1 -1
Documentation/devicetree/bindings/pinctrl/brcm,ns2-pinmux.txt
··· 39 39 <0x660009b0 0x40>; 40 40 41 41 pinctrl-names = "default"; 42 - pinctrl-0 = <&nand_sel &uart3_rx &sdio0_d4>; 42 + pinctrl-0 = <&nand_sel>, <&uart3_rx>, <&sdio0_d4>; 43 43 44 44 /* Select nand function */ 45 45 nand_sel: nand_sel {
+1 -1
Documentation/devicetree/bindings/pinctrl/brcm,nsp-pinmux.txt
··· 30 30 <0x1803f408 0x04>; 31 31 32 32 pinctrl-names = "default"; 33 - pinctrl-0 = <&pwm &gpio_b &nand_sel>; 33 + pinctrl-0 = <&pwm>, <&gpio_b>, <&nand_sel>; 34 34 35 35 pwm: pwm { 36 36 function = "pwm";
+1 -1
Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt
··· 60 60 61 61 i2c1: i2c@30a20000 { 62 62 pinctrl-names = "default"; 63 - pinctrl-0 = <&pinctrl_i2c1_1 &pinctrl_i2c1_2>; 63 + pinctrl-0 = <&pinctrl_i2c1_1>, <&pinctrl_i2c1_2>; 64 64 }; 65 65 66 66 iomuxc-lpsr@302c0000 {
+2 -2
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
··· 77 77 device { 78 78 pinctrl-names = "active", "idle"; 79 79 pinctrl-0 = <&state_0_node_a>; 80 - pinctrl-1 = <&state_1_node_a &state_1_node_b>; 80 + pinctrl-1 = <&state_1_node_a>, <&state_1_node_b>; 81 81 }; 82 82 83 83 /* For the same device if using state IDs */ 84 84 device { 85 85 pinctrl-0 = <&state_0_node_a>; 86 - pinctrl-1 = <&state_1_node_a &state_1_node_b>; 86 + pinctrl-1 = <&state_1_node_a>, <&state_1_node_b>; 87 87 }; 88 88 89 89 /*
+1 -1
Documentation/devicetree/bindings/pinctrl/pinctrl-mcp23s08.txt
··· 134 134 #interrupt-cells = <0x2>; 135 135 microchip,irq-mirror; 136 136 pinctrl-names = "default"; 137 - pinctrl-0 = <&i2cgpio0irq &gpio21pullups>; 137 + pinctrl-0 = <&i2cgpio0irq>, <&gpio21pullups>; 138 138 139 139 gpio21pullups: pinmux { 140 140 pins = "gpio0", "gpio1", "gpio2", "gpio3",
+1 -1
Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
··· 91 91 pinctrl@1c20800 { 92 92 compatible = "mediatek,mt8135-pinctrl"; 93 93 reg = <0 0x1000B000 0 0x1000>; 94 - mediatek,pctl-regmap = <&syscfg_pctl_a &syscfg_pctl_b>; 94 + mediatek,pctl-regmap = <&syscfg_pctl_a>, <&syscfg_pctl_b>; 95 95 pins-are-numbered; 96 96 gpio-controller; 97 97 #gpio-cells = <2>;
+5 -5
Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt
··· 80 80 property. 81 81 82 82 /* pin base, nr pins & gpio function */ 83 - pinctrl-single,gpio-range = <&range 0 3 0 &range 3 9 1>; 83 + pinctrl-single,gpio-range = <&range 0 3 0>, <&range 3 9 1>; 84 84 85 85 - interrupt-controller : standard interrupt controller binding if using 86 86 interrupts for wake-up events for example. In this case pinctrl-single ··· 185 185 pinctrl-single,function-mask = <7>; 186 186 187 187 /* sparse GPIO range could be supported */ 188 - pinctrl-single,gpio-range = <&range 0 3 0 &range 3 9 1 189 - &range 12 1 0 &range 13 29 1 190 - &range 43 1 0 &range 44 49 1 191 - &range 94 1 1 &range 96 2 1>; 188 + pinctrl-single,gpio-range = <&range 0 3 0>, <&range 3 9 1>, 189 + <&range 12 1 0>, <&range 13 29 1>, 190 + <&range 43 1 0>, <&range 44 49 1>, 191 + <&range 94 1 1>, <&range 96 2 1>; 192 192 193 193 range: gpio-range { 194 194 #pinctrl-single,gpio-range-cells = <3>;
+1 -1
Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
··· 336 336 interrupts = <0 52 0>; 337 337 pinctrl-names = "default", "flow-control; 338 338 pinctrl-0 = <&uart0_data>; 339 - pinctrl-1 = <&uart0_data &uart0_fctl>; 339 + pinctrl-1 = <&uart0_data>, <&uart0_fctl>; 340 340 }; 341 341 342 342 Example 4: Set up the default pin state for uart controller.