Skip to content

Commit 74f2dd4

Browse files
geertuLinus Walleij
authored andcommitted
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>
1 parent 5637f55 commit 74f2dd4

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎Documentation/devicetree/bindings/pinctrl/brcm,ns2-pinmux.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For example:
3939
<0x660009b0 0x40>;
4040

4141
pinctrl-names = "default";
42-
pinctrl-0 = <&nand_sel &uart3_rx &sdio0_d4>;
42+
pinctrl-0 = <&nand_sel>, <&uart3_rx>, <&sdio0_d4>;
4343

4444
/* Select nand function */
4545
nand_sel: nand_sel {

‎Documentation/devicetree/bindings/pinctrl/brcm,nsp-pinmux.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For example:
3030
<0x1803f408 0x04>;
3131

3232
pinctrl-names = "default";
33-
pinctrl-0 = <&pwm &gpio_b &nand_sel>;
33+
pinctrl-0 = <&pwm>, <&gpio_b>, <&nand_sel>;
3434

3535
pwm: pwm {
3636
function = "pwm";

‎Documentation/devicetree/bindings/pinctrl/fsl,imx7d-pinctrl.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ iomuxc-lpsr controller and SDA pad from iomuxc controller as:
6060

6161
i2c1: i2c@30a20000 {
6262
pinctrl-names = "default";
63-
pinctrl-0 = <&pinctrl_i2c1_1 &pinctrl_i2c1_2>;
63+
pinctrl-0 = <&pinctrl_i2c1_1>, <&pinctrl_i2c1_2>;
6464
};
6565

6666
iomuxc-lpsr@302c0000 {

‎Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ For example:
7777
device {
7878
pinctrl-names = "active", "idle";
7979
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>;
8181
};
8282

8383
/* For the same device if using state IDs */
8484
device {
8585
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>;
8787
};
8888

8989
/*

‎Documentation/devicetree/bindings/pinctrl/pinctrl-mcp23s08.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ gpio21: gpio@21 {
134134
#interrupt-cells = <0x2>;
135135
microchip,irq-mirror;
136136
pinctrl-names = "default";
137-
pinctrl-0 = <&i2cgpio0irq &gpio21pullups>;
137+
pinctrl-0 = <&i2cgpio0irq>, <&gpio21pullups>;
138138

139139
gpio21pullups: pinmux {
140140
pins = "gpio0", "gpio1", "gpio2", "gpio3",

‎Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Examples:
9191
pinctrl@1c20800 {
9292
compatible = "mediatek,mt8135-pinctrl";
9393
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>;
9595
pins-are-numbered;
9696
gpio-controller;
9797
#gpio-cells = <2>;

‎Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Optional properties:
8080
property.
8181

8282
/* 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>;
8484

8585
- interrupt-controller : standard interrupt controller binding if using
8686
interrupts for wake-up events for example. In this case pinctrl-single
@@ -185,10 +185,10 @@ pmx_gpio: pinmux@d401e000 {
185185
pinctrl-single,function-mask = <7>;
186186

187187
/* 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>;
192192

193193
range: gpio-range {
194194
#pinctrl-single,gpio-range-cells = <3>;

‎Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Example 3: A uart client node that supports 'default' and 'flow-control' states.
336336
interrupts = <0 52 0>;
337337
pinctrl-names = "default", "flow-control;
338338
pinctrl-0 = <&uart0_data>;
339-
pinctrl-1 = <&uart0_data &uart0_fctl>;
339+
pinctrl-1 = <&uart0_data>, <&uart0_fctl>;
340340
};
341341

342342
Example 4: Set up the default pin state for uart controller.

0 commit comments

Comments
 (0)