Skip to content

Commit 653e11e

Browse files
krzkgregkh
authored andcommitted
dt-bindings: usb: 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: Alexander Stein <[email protected]> Acked-by: Andrew Jeffery <[email protected]> # aspeed,usb-vhub.yaml Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Acked-by: Thierry Reding <[email protected]> Acked-by: Francesco Dolcini <[email protected]> # ti,tusb73x0-pci.yaml Acked-by: Florian Fainelli <[email protected]> # brcm,bdc.yaml Acked-by: Benjamin Bara <[email protected]> # cypress,hx3.yaml Reviewed-by: Geert Uytterhoeven <[email protected]> # renesas Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f1a2241 commit 653e11e

15 files changed

+164
-164
lines changed

Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -113,27 +113,27 @@ examples:
113113
- |
114114
#include <dt-bindings/clock/aspeed-clock.h>
115115
vhub: usb-vhub@1e6a0000 {
116-
compatible = "aspeed,ast2500-usb-vhub";
117-
reg = <0x1e6a0000 0x300>;
118-
interrupts = <5>;
119-
clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
120-
aspeed,vhub-downstream-ports = <5>;
121-
aspeed,vhub-generic-endpoints = <15>;
122-
pinctrl-names = "default";
123-
pinctrl-0 = <&pinctrl_usb2ad_default>;
124-
125-
vhub-vendor-id = <0x1d6b>;
126-
vhub-product-id = <0x0107>;
127-
vhub-device-revision = <0x0100>;
128-
vhub-strings {
129-
#address-cells = <1>;
130-
#size-cells = <0>;
131-
132-
string@409 {
133-
reg = <0x409>;
134-
manufacturer = "ASPEED";
135-
product = "USB Virtual Hub";
136-
serial-number = "0000";
137-
};
116+
compatible = "aspeed,ast2500-usb-vhub";
117+
reg = <0x1e6a0000 0x300>;
118+
interrupts = <5>;
119+
clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
120+
aspeed,vhub-downstream-ports = <5>;
121+
aspeed,vhub-generic-endpoints = <15>;
122+
pinctrl-names = "default";
123+
pinctrl-0 = <&pinctrl_usb2ad_default>;
124+
125+
vhub-vendor-id = <0x1d6b>;
126+
vhub-product-id = <0x0107>;
127+
vhub-device-revision = <0x0100>;
128+
vhub-strings {
129+
#address-cells = <1>;
130+
#size-cells = <0>;
131+
132+
string@409 {
133+
reg = <0x409>;
134+
manufacturer = "ASPEED";
135+
product = "USB Virtual Hub";
136+
serial-number = "0000";
138137
};
138+
};
139139
};

Documentation/devicetree/bindings/usb/brcm,bdc.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ additionalProperties: false
4141

4242
examples:
4343
- |
44-
usb@f0b02000 {
45-
compatible = "brcm,bdc-udc-v2";
46-
reg = <0xf0b02000 0xfc4>;
47-
interrupts = <0x0 0x60 0x0>;
48-
phys = <&usbphy_0 0x0>;
49-
clocks = <&sw_usbd>;
50-
};
44+
usb@f0b02000 {
45+
compatible = "brcm,bdc-udc-v2";
46+
reg = <0xf0b02000 0xfc4>;
47+
interrupts = <0x0 0x60 0x0>;
48+
phys = <&usbphy_0 0x0>;
49+
clocks = <&sw_usbd>;
50+
};

Documentation/devicetree/bindings/usb/cypress,hx3.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,21 @@ examples:
5656
5757
/* 2.0 hub on port 1 */
5858
hub_2_0: hub@1 {
59-
compatible = "usb4b4,6504";
60-
reg = <1>;
61-
peer-hub = <&hub_3_0>;
62-
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
63-
vdd-supply = <&reg_1v2_usb>;
64-
vdd2-supply = <&reg_3v3_usb>;
59+
compatible = "usb4b4,6504";
60+
reg = <1>;
61+
peer-hub = <&hub_3_0>;
62+
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
63+
vdd-supply = <&reg_1v2_usb>;
64+
vdd2-supply = <&reg_3v3_usb>;
6565
};
6666
6767
/* 3.0 hub on port 2 */
6868
hub_3_0: hub@2 {
69-
compatible = "usb4b4,6506";
70-
reg = <2>;
71-
peer-hub = <&hub_2_0>;
72-
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
73-
vdd-supply = <&reg_1v2_usb>;
74-
vdd2-supply = <&reg_3v3_usb>;
69+
compatible = "usb4b4,6506";
70+
reg = <2>;
71+
peer-hub = <&hub_2_0>;
72+
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
73+
vdd-supply = <&reg_1v2_usb>;
74+
vdd2-supply = <&reg_3v3_usb>;
7575
};
7676
};

Documentation/devicetree/bindings/usb/dwc2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ unevaluatedProperties: false
192192

193193
examples:
194194
- |
195-
usb@101c0000 {
195+
usb@101c0000 {
196196
compatible = "rockchip,rk3066-usb", "snps,dwc2";
197197
reg = <0x10180000 0x40000>;
198198
interrupts = <18>;
199199
clocks = <&usb_otg_ahb_clk>;
200200
clock-names = "otg";
201201
phys = <&usbphy>;
202202
phy-names = "usb2-phy";
203-
};
203+
};
204204
205205
...

Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ examples:
8787
#size-cells = <0>;
8888
8989
typec-mux@42 {
90-
compatible = "fcs,fsa4480";
91-
reg = <0x42>;
90+
compatible = "fcs,fsa4480";
91+
reg = <0x42>;
9292
93-
interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
93+
interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
9494
95-
vcc-supply = <&vreg_bob>;
95+
vcc-supply = <&vreg_bob>;
9696
97-
mode-switch;
98-
orientation-switch;
97+
mode-switch;
98+
orientation-switch;
9999
100-
port {
101-
fsa4480_ept: endpoint {
102-
remote-endpoint = <&typec_controller>;
100+
port {
101+
fsa4480_ept: endpoint {
102+
remote-endpoint = <&typec_controller>;
103+
};
103104
};
104-
};
105105
};
106106
};
107107
...

Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@ examples:
5858
#define KEEM_BAY_A53_AUX_USB_SUSPEND
5959
6060
usb {
61-
compatible = "intel,keembay-dwc3";
62-
clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>,
63-
<&scmi_clk KEEM_BAY_A53_AUX_USB_REF>,
64-
<&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>,
65-
<&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>;
66-
clock-names = "async_master", "ref", "alt_ref", "suspend";
67-
ranges;
68-
#address-cells = <1>;
69-
#size-cells = <1>;
70-
71-
usb@34000000 {
72-
compatible = "snps,dwc3";
73-
reg = <0x34000000 0x10000>;
74-
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
75-
dr_mode = "peripheral";
76-
};
61+
compatible = "intel,keembay-dwc3";
62+
clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>,
63+
<&scmi_clk KEEM_BAY_A53_AUX_USB_REF>,
64+
<&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>,
65+
<&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>;
66+
clock-names = "async_master", "ref", "alt_ref", "suspend";
67+
ranges;
68+
#address-cells = <1>;
69+
#size-cells = <1>;
70+
71+
usb@34000000 {
72+
compatible = "snps,dwc3";
73+
reg = <0x34000000 0x10000>;
74+
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
75+
dr_mode = "peripheral";
76+
};
7777
};

Documentation/devicetree/bindings/usb/ite,it5205.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ examples:
5454
#size-cells = <0>;
5555
5656
typec-mux@48 {
57-
compatible = "ite,it5205";
58-
reg = <0x48>;
57+
compatible = "ite,it5205";
58+
reg = <0x48>;
5959
60-
mode-switch;
61-
orientation-switch;
60+
mode-switch;
61+
orientation-switch;
6262
63-
vcc-supply = <&mt6359_vibr_ldo_reg>;
63+
vcc-supply = <&mt6359_vibr_ldo_reg>;
6464
65-
port {
66-
it5205_usbss_sbu: endpoint {
67-
remote-endpoint = <&typec_controller>;
65+
port {
66+
it5205_usbss_sbu: endpoint {
67+
remote-endpoint = <&typec_controller>;
68+
};
6869
};
69-
};
7070
};
7171
};
7272
...

Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ additionalProperties: false
5050

5151
examples:
5252
- |
53-
#include <dt-bindings/gpio/gpio.h>
54-
#include <dt-bindings/interrupt-controller/irq.h>
55-
spi {
56-
#address-cells = <1>;
57-
#size-cells = <0>;
53+
#include <dt-bindings/gpio/gpio.h>
54+
#include <dt-bindings/interrupt-controller/irq.h>
55+
spi {
56+
#address-cells = <1>;
57+
#size-cells = <0>;
5858
59-
udc@0 {
60-
compatible = "maxim,max3420-udc";
61-
reg = <0>;
62-
interrupt-parent = <&gpio>;
63-
interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
64-
interrupt-names = "udc", "vbus";
65-
spi-max-frequency = <12500000>;
66-
};
67-
};
59+
udc@0 {
60+
compatible = "maxim,max3420-udc";
61+
reg = <0>;
62+
interrupt-parent = <&gpio>;
63+
interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
64+
interrupt-names = "udc", "vbus";
65+
spi-max-frequency = <12500000>;
66+
};
67+
};

Documentation/devicetree/bindings/usb/nvidia,tegra210-xusb.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ examples:
189189
#size-cells = <0>;
190190
191191
ethernet@1 {
192-
compatible = "usb955,9ff";
193-
reg = <1>;
192+
compatible = "usb955,9ff";
193+
reg = <1>;
194194
};
195195
};

Documentation/devicetree/bindings/usb/renesas,rzv2m-usb3drd.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -104,26 +104,26 @@ examples:
104104
#size-cells = <1>;
105105
106106
usb3host: usb@85060000 {
107-
compatible = "renesas,r9a09g011-xhci",
108-
"renesas,rzv2m-xhci";
109-
reg = <0x85060000 0x2000>;
110-
interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
111-
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>,
112-
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
113-
clock-names = "axi", "reg";
114-
power-domains = <&cpg>;
115-
resets = <&cpg R9A09G011_USB_ARESETN_H>;
107+
compatible = "renesas,r9a09g011-xhci",
108+
"renesas,rzv2m-xhci";
109+
reg = <0x85060000 0x2000>;
110+
interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
111+
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>,
112+
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
113+
clock-names = "axi", "reg";
114+
power-domains = <&cpg>;
115+
resets = <&cpg R9A09G011_USB_ARESETN_H>;
116116
};
117117
118118
usb3peri: usb3peri@85070000 {
119-
compatible = "renesas,r9a09g011-usb3-peri",
120-
"renesas,rzv2m-usb3-peri";
121-
reg = <0x85070000 0x400>;
122-
interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
123-
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,
124-
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
125-
clock-names = "axi", "reg";
126-
power-domains = <&cpg>;
127-
resets = <&cpg R9A09G011_USB_ARESETN_P>;
119+
compatible = "renesas,r9a09g011-usb3-peri",
120+
"renesas,rzv2m-usb3-peri";
121+
reg = <0x85070000 0x400>;
122+
interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
123+
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,
124+
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
125+
clock-names = "axi", "reg";
126+
power-domains = <&cpg>;
127+
resets = <&cpg R9A09G011_USB_ARESETN_P>;
128128
};
129129
};

0 commit comments

Comments
 (0)