Skip to content

Commit 1b4dab8

Browse files
krzkgregkh
authored andcommitted
dt-bindings: usb: smsc,usb3503: 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 <krzysztof.kozlowski@linaro.org> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250324125142.81910-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 015c0e6 commit 1b4dab8

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

Documentation/devicetree/bindings/usb/smsc,usb3503.yaml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -106,54 +106,54 @@ additionalProperties: false
106106

107107
examples:
108108
- |
109-
i2c {
110-
#address-cells = <1>;
111-
#size-cells = <0>;
112-
113-
usb-hub@8 {
114-
compatible = "smsc,usb3503";
115-
reg = <0x08>;
116-
connect-gpios = <&gpx3 0 1>;
117-
disabled-ports = <2 3>;
118-
intn-gpios = <&gpx3 4 1>;
119-
reset-gpios = <&gpx3 5 1>;
120-
initial-mode = <1>;
121-
clocks = <&clks 80>;
122-
clock-names = "refclk";
123-
};
124-
};
109+
i2c {
110+
#address-cells = <1>;
111+
#size-cells = <0>;
112+
113+
usb-hub@8 {
114+
compatible = "smsc,usb3503";
115+
reg = <0x08>;
116+
connect-gpios = <&gpx3 0 1>;
117+
disabled-ports = <2 3>;
118+
intn-gpios = <&gpx3 4 1>;
119+
reset-gpios = <&gpx3 5 1>;
120+
initial-mode = <1>;
121+
clocks = <&clks 80>;
122+
clock-names = "refclk";
123+
};
124+
};
125125
126126
- |
127-
i2c {
128-
#address-cells = <1>;
129-
#size-cells = <0>;
130-
131-
usb-hub@8 {
132-
compatible = "smsc,usb3803";
133-
reg = <0x08>;
134-
connect-gpios = <&gpx3 0 1>;
135-
disabled-ports = <2 3>;
136-
intn-gpios = <&gpx3 4 1>;
137-
reset-gpios = <&gpx3 5 1>;
138-
bypass-gpios = <&gpx3 6 1>;
139-
initial-mode = <3>;
140-
clocks = <&clks 80>;
141-
clock-names = "refclk";
142-
};
143-
};
127+
i2c {
128+
#address-cells = <1>;
129+
#size-cells = <0>;
130+
131+
usb-hub@8 {
132+
compatible = "smsc,usb3803";
133+
reg = <0x08>;
134+
connect-gpios = <&gpx3 0 1>;
135+
disabled-ports = <2 3>;
136+
intn-gpios = <&gpx3 4 1>;
137+
reset-gpios = <&gpx3 5 1>;
138+
bypass-gpios = <&gpx3 6 1>;
139+
initial-mode = <3>;
140+
clocks = <&clks 80>;
141+
clock-names = "refclk";
142+
};
143+
};
144144
145145
- |
146-
#include <dt-bindings/gpio/gpio.h>
147-
148-
usb-hub {
149-
/* I2C is not connected */
150-
compatible = "smsc,usb3503";
151-
initial-mode = <1>; /* initialize in HUB mode */
152-
disabled-ports = <1>;
153-
intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
154-
reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
155-
connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
156-
refclk-frequency = <19200000>;
157-
};
146+
#include <dt-bindings/gpio/gpio.h>
147+
148+
usb-hub {
149+
/* I2C is not connected */
150+
compatible = "smsc,usb3503";
151+
initial-mode = <1>; /* initialize in HUB mode */
152+
disabled-ports = <1>;
153+
intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
154+
reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
155+
connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
156+
refclk-frequency = <19200000>;
157+
};
158158
159159
...

0 commit comments

Comments
 (0)