Skip to content

Commit 9e76650

Browse files
krzklinusw
authored andcommitted
dt-bindings: pinctrl: Correct indentation and style in DTS example
DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Manikandan Muralidharan <[email protected]> Acked-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent f31f33d commit 9e76650

File tree

5 files changed

+144
-151
lines changed

5 files changed

+144
-151
lines changed

Documentation/devicetree/bindings/pinctrl/atmel,at91rm9200-pinctrl.yaml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -145,40 +145,40 @@ additionalProperties:
145145
146146
examples:
147147
- |
148-
#include <dt-bindings/clock/at91.h>
149-
#include <dt-bindings/interrupt-controller/irq.h>
150-
#include <dt-bindings/pinctrl/at91.h>
151-
152-
pinctrl@fffff400 {
153-
#address-cells = <1>;
154-
#size-cells = <1>;
155-
compatible = "atmel,at91rm9200-pinctrl", "simple-mfd";
156-
ranges = <0xfffff400 0xfffff400 0x600>;
157-
158-
atmel,mux-mask = <
159-
/* A B */
160-
0xffffffff 0xffc00c3b /* pioA */
161-
0xffffffff 0x7fff3ccf /* pioB */
162-
0xffffffff 0x007fffff /* pioC */
163-
>;
164-
165-
dbgu {
166-
pinctrl_dbgu: dbgu-0 {
167-
atmel,pins =
168-
<AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
169-
AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>;
170-
};
171-
};
172-
173-
pioA: gpio@fffff400 {
174-
compatible = "atmel,at91rm9200-gpio";
175-
reg = <0xfffff400 0x200>;
176-
interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
177-
#gpio-cells = <2>;
178-
gpio-controller;
179-
interrupt-controller;
180-
#interrupt-cells = <2>;
181-
clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
182-
};
183-
};
148+
#include <dt-bindings/clock/at91.h>
149+
#include <dt-bindings/interrupt-controller/irq.h>
150+
#include <dt-bindings/pinctrl/at91.h>
151+
152+
pinctrl@fffff400 {
153+
#address-cells = <1>;
154+
#size-cells = <1>;
155+
compatible = "atmel,at91rm9200-pinctrl", "simple-mfd";
156+
ranges = <0xfffff400 0xfffff400 0x600>;
157+
158+
atmel,mux-mask = <
159+
/* A B */
160+
0xffffffff 0xffc00c3b /* pioA */
161+
0xffffffff 0x7fff3ccf /* pioB */
162+
0xffffffff 0x007fffff /* pioC */
163+
>;
164+
165+
dbgu {
166+
dbgu-0 {
167+
atmel,pins =
168+
<AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
169+
AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>;
170+
};
171+
};
172+
173+
gpio@fffff400 {
174+
compatible = "atmel,at91rm9200-gpio";
175+
reg = <0xfffff400 0x200>;
176+
interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
177+
#gpio-cells = <2>;
178+
gpio-controller;
179+
interrupt-controller;
180+
#interrupt-cells = <2>;
181+
clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
182+
};
183+
};
184184
...

Documentation/devicetree/bindings/pinctrl/realtek,rtd1315e-pinctrl.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -159,30 +159,30 @@ additionalProperties: false
159159

160160
examples:
161161
- |
162-
pinctrl@4e000 {
163-
compatible = "realtek,rtd1315e-pinctrl";
164-
reg = <0x4e000 0x130>;
165-
166-
emmc-hs200-pins {
167-
pins = "emmc_clk",
168-
"emmc_cmd",
169-
"emmc_data_0",
170-
"emmc_data_1",
171-
"emmc_data_2",
172-
"emmc_data_3",
173-
"emmc_data_4",
174-
"emmc_data_5",
175-
"emmc_data_6",
176-
"emmc_data_7";
177-
function = "emmc";
178-
realtek,drive-strength-p = <0x2>;
179-
realtek,drive-strength-n = <0x2>;
180-
};
181-
182-
i2c-0-pins {
183-
pins = "gpio_12",
184-
"gpio_13";
185-
function = "i2c0";
186-
drive-strength = <4>;
187-
};
188-
};
162+
pinctrl@4e000 {
163+
compatible = "realtek,rtd1315e-pinctrl";
164+
reg = <0x4e000 0x130>;
165+
166+
emmc-hs200-pins {
167+
pins = "emmc_clk",
168+
"emmc_cmd",
169+
"emmc_data_0",
170+
"emmc_data_1",
171+
"emmc_data_2",
172+
"emmc_data_3",
173+
"emmc_data_4",
174+
"emmc_data_5",
175+
"emmc_data_6",
176+
"emmc_data_7";
177+
function = "emmc";
178+
realtek,drive-strength-p = <0x2>;
179+
realtek,drive-strength-n = <0x2>;
180+
};
181+
182+
i2c-0-pins {
183+
pins = "gpio_12",
184+
"gpio_13";
185+
function = "i2c0";
186+
drive-strength = <4>;
187+
};
188+
};

Documentation/devicetree/bindings/pinctrl/realtek,rtd1319d-pinctrl.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -158,30 +158,30 @@ additionalProperties: false
158158

159159
examples:
160160
- |
161-
pinctrl@4e000 {
162-
compatible = "realtek,rtd1319d-pinctrl";
163-
reg = <0x4e000 0x130>;
164-
165-
emmc-hs200-pins {
166-
pins = "emmc_clk",
167-
"emmc_cmd",
168-
"emmc_data_0",
169-
"emmc_data_1",
170-
"emmc_data_2",
171-
"emmc_data_3",
172-
"emmc_data_4",
173-
"emmc_data_5",
174-
"emmc_data_6",
175-
"emmc_data_7";
176-
function = "emmc";
177-
realtek,drive-strength-p = <0x2>;
178-
realtek,drive-strength-n = <0x2>;
179-
};
180-
181-
i2c-0-pins {
182-
pins = "gpio_12",
183-
"gpio_13";
184-
function = "i2c0";
185-
drive-strength = <4>;
186-
};
187-
};
161+
pinctrl@4e000 {
162+
compatible = "realtek,rtd1319d-pinctrl";
163+
reg = <0x4e000 0x130>;
164+
165+
emmc-hs200-pins {
166+
pins = "emmc_clk",
167+
"emmc_cmd",
168+
"emmc_data_0",
169+
"emmc_data_1",
170+
"emmc_data_2",
171+
"emmc_data_3",
172+
"emmc_data_4",
173+
"emmc_data_5",
174+
"emmc_data_6",
175+
"emmc_data_7";
176+
function = "emmc";
177+
realtek,drive-strength-p = <0x2>;
178+
realtek,drive-strength-n = <0x2>;
179+
};
180+
181+
i2c-0-pins {
182+
pins = "gpio_12",
183+
"gpio_13";
184+
function = "i2c0";
185+
drive-strength = <4>;
186+
};
187+
};

Documentation/devicetree/bindings/pinctrl/realtek,rtd1619b-pinctrl.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -157,30 +157,30 @@ additionalProperties: false
157157

158158
examples:
159159
- |
160-
pinctrl@4e000 {
161-
compatible = "realtek,rtd1619b-pinctrl";
162-
reg = <0x4e000 0x130>;
163-
164-
emmc-hs200-pins {
165-
pins = "emmc_clk",
166-
"emmc_cmd",
167-
"emmc_data_0",
168-
"emmc_data_1",
169-
"emmc_data_2",
170-
"emmc_data_3",
171-
"emmc_data_4",
172-
"emmc_data_5",
173-
"emmc_data_6",
174-
"emmc_data_7";
175-
function = "emmc";
176-
realtek,drive-strength-p = <0x2>;
177-
realtek,drive-strength-n = <0x2>;
178-
};
179-
180-
i2c-0-pins {
181-
pins = "gpio_12",
182-
"gpio_13";
183-
function = "i2c0";
184-
drive-strength = <4>;
185-
};
186-
};
160+
pinctrl@4e000 {
161+
compatible = "realtek,rtd1619b-pinctrl";
162+
reg = <0x4e000 0x130>;
163+
164+
emmc-hs200-pins {
165+
pins = "emmc_clk",
166+
"emmc_cmd",
167+
"emmc_data_0",
168+
"emmc_data_1",
169+
"emmc_data_2",
170+
"emmc_data_3",
171+
"emmc_data_4",
172+
"emmc_data_5",
173+
"emmc_data_6",
174+
"emmc_data_7";
175+
function = "emmc";
176+
realtek,drive-strength-p = <0x2>;
177+
realtek,drive-strength-n = <0x2>;
178+
};
179+
180+
i2c-0-pins {
181+
pins = "gpio_12",
182+
"gpio_13";
183+
function = "i2c0";
184+
drive-strength = <4>;
185+
};
186+
};

Documentation/devicetree/bindings/pinctrl/xlnx,pinctrl-zynq.yaml

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -180,38 +180,31 @@ additionalProperties: false
180180
examples:
181181
- |
182182
#include <dt-bindings/pinctrl/pinctrl-zynq.h>
183-
pinctrl0: pinctrl@700 {
184-
compatible = "xlnx,pinctrl-zynq";
185-
reg = <0x700 0x200>;
186-
syscon = <&slcr>;
187-
188-
pinctrl_uart1_default: uart1-default {
189-
mux {
190-
groups = "uart1_10_grp";
191-
function = "uart1";
192-
};
193-
194-
conf {
195-
groups = "uart1_10_grp";
196-
slew-rate = <0>;
197-
power-source = <IO_STANDARD_LVCMOS18>;
198-
};
199-
200-
conf-rx {
201-
pins = "MIO49";
202-
bias-high-impedance;
203-
};
204-
205-
conf-tx {
206-
pins = "MIO48";
207-
bias-disable;
208-
};
209-
};
183+
pinctrl@700 {
184+
compatible = "xlnx,pinctrl-zynq";
185+
reg = <0x700 0x200>;
186+
syscon = <&slcr>;
187+
188+
uart1-default {
189+
mux {
190+
groups = "uart1_10_grp";
191+
function = "uart1";
192+
};
193+
194+
conf {
195+
groups = "uart1_10_grp";
196+
slew-rate = <0>;
197+
power-source = <IO_STANDARD_LVCMOS18>;
198+
};
199+
200+
conf-rx {
201+
pins = "MIO49";
202+
bias-high-impedance;
203+
};
204+
205+
conf-tx {
206+
pins = "MIO48";
207+
bias-disable;
208+
};
209+
};
210210
};
211-
212-
uart1 {
213-
pinctrl-names = "default";
214-
pinctrl-0 = <&pinctrl_uart1_default>;
215-
};
216-
217-
...

0 commit comments

Comments
 (0)