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

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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au> # aspeed,usb-vhub.yaml
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com> # ti,tusb73x0-pci.yaml
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> # brcm,bdc.yaml
Acked-by: Benjamin Bara <benjamin.bara@skidata.com> # cypress,hx3.yaml
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> # renesas
Link: https://lore.kernel.org/r/20250107131015.246461-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Krzysztof Kozlowski and committed by
Greg Kroah-Hartman
653e11ea f1a22417

+161 -161
+20 -20
Documentation/devicetree/bindings/usb/aspeed,usb-vhub.yaml
··· 113 113 - | 114 114 #include <dt-bindings/clock/aspeed-clock.h> 115 115 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>; 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 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>; 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 131 132 - string@409 { 133 - reg = <0x409>; 134 - manufacturer = "ASPEED"; 135 - product = "USB Virtual Hub"; 136 - serial-number = "0000"; 137 - }; 132 + string@409 { 133 + reg = <0x409>; 134 + manufacturer = "ASPEED"; 135 + product = "USB Virtual Hub"; 136 + serial-number = "0000"; 138 137 }; 138 + }; 139 139 };
+7 -7
Documentation/devicetree/bindings/usb/brcm,bdc.yaml
··· 41 41 42 42 examples: 43 43 - | 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 + };
+12 -12
Documentation/devicetree/bindings/usb/cypress,hx3.yaml
··· 56 56 57 57 /* 2.0 hub on port 1 */ 58 58 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>; 65 65 }; 66 66 67 67 /* 3.0 hub on port 2 */ 68 68 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>; 75 75 }; 76 76 };
+2 -2
Documentation/devicetree/bindings/usb/dwc2.yaml
··· 192 192 193 193 examples: 194 194 - | 195 - usb@101c0000 { 195 + usb@101c0000 { 196 196 compatible = "rockchip,rk3066-usb", "snps,dwc2"; 197 197 reg = <0x10180000 0x40000>; 198 198 interrupts = <18>; ··· 200 200 clock-names = "otg"; 201 201 phys = <&usbphy>; 202 202 phy-names = "usb2-phy"; 203 - }; 203 + }; 204 204 205 205 ...
+10 -10
Documentation/devicetree/bindings/usb/fcs,fsa4480.yaml
··· 87 87 #size-cells = <0>; 88 88 89 89 typec-mux@42 { 90 - compatible = "fcs,fsa4480"; 91 - reg = <0x42>; 90 + compatible = "fcs,fsa4480"; 91 + reg = <0x42>; 92 92 93 - interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; 93 + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; 94 94 95 - vcc-supply = <&vreg_bob>; 95 + vcc-supply = <&vreg_bob>; 96 96 97 - mode-switch; 98 - orientation-switch; 97 + mode-switch; 98 + orientation-switch; 99 99 100 - port { 101 - fsa4480_ept: endpoint { 102 - remote-endpoint = <&typec_controller>; 100 + port { 101 + fsa4480_ept: endpoint { 102 + remote-endpoint = <&typec_controller>; 103 + }; 103 104 }; 104 - }; 105 105 }; 106 106 }; 107 107 ...
+15 -15
Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml
··· 58 58 #define KEEM_BAY_A53_AUX_USB_SUSPEND 59 59 60 60 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>; 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 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 - }; 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 + }; 77 77 };
+9 -9
Documentation/devicetree/bindings/usb/ite,it5205.yaml
··· 54 54 #size-cells = <0>; 55 55 56 56 typec-mux@48 { 57 - compatible = "ite,it5205"; 58 - reg = <0x48>; 57 + compatible = "ite,it5205"; 58 + reg = <0x48>; 59 59 60 - mode-switch; 61 - orientation-switch; 60 + mode-switch; 61 + orientation-switch; 62 62 63 - vcc-supply = <&mt6359_vibr_ldo_reg>; 63 + vcc-supply = <&mt6359_vibr_ldo_reg>; 64 64 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 + }; 68 69 }; 69 - }; 70 70 }; 71 71 }; 72 72 ...
+14 -14
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
··· 50 50 51 51 examples: 52 52 - | 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>; 58 58 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 + };
+2 -2
Documentation/devicetree/bindings/usb/nvidia,tegra210-xusb.yaml
··· 189 189 #size-cells = <0>; 190 190 191 191 ethernet@1 { 192 - compatible = "usb955,9ff"; 193 - reg = <1>; 192 + compatible = "usb955,9ff"; 193 + reg = <1>; 194 194 }; 195 195 };
+18 -18
Documentation/devicetree/bindings/usb/renesas,rzv2m-usb3drd.yaml
··· 104 104 #size-cells = <1>; 105 105 106 106 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>; 116 116 }; 117 117 118 118 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>; 128 128 }; 129 129 };
+12 -12
Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
··· 132 132 usb-role-switch; 133 133 134 134 ports { 135 - #address-cells = <1>; 136 - #size-cells = <0>; 137 - port@0 { 138 - reg = <0>; 139 - usb3_hs_ep: endpoint { 140 - remote-endpoint = <&hs_ep>; 141 - }; 135 + #address-cells = <1>; 136 + #size-cells = <0>; 137 + port@0 { 138 + reg = <0>; 139 + usb3_hs_ep: endpoint { 140 + remote-endpoint = <&hs_ep>; 142 141 }; 143 - port@1 { 144 - reg = <1>; 145 - usb3_role_switch: endpoint { 146 - remote-endpoint = <&hd3ss3220_out_ep>; 147 - }; 142 + }; 143 + port@1 { 144 + reg = <1>; 145 + usb3_role_switch: endpoint { 146 + remote-endpoint = <&hd3ss3220_out_ep>; 148 147 }; 148 + }; 149 149 }; 150 150 };
+19 -19
Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml
··· 56 56 #size-cells = <0>; 57 57 58 58 hd3ss3220@47 { 59 - compatible = "ti,hd3ss3220"; 60 - reg = <0x47>; 61 - interrupt-parent = <&gpio6>; 62 - interrupts = <3>; 59 + compatible = "ti,hd3ss3220"; 60 + reg = <0x47>; 61 + interrupt-parent = <&gpio6>; 62 + interrupts = <3>; 63 63 64 - ports { 65 - #address-cells = <1>; 66 - #size-cells = <0>; 67 - port@0 { 68 - reg = <0>; 69 - hd3ss3220_in_ep: endpoint { 70 - remote-endpoint = <&ss_ep>; 71 - }; 72 - }; 73 - port@1 { 74 - reg = <1>; 75 - hd3ss3220_out_ep: endpoint { 76 - remote-endpoint = <&usb3_role_switch>; 77 - }; 78 - }; 64 + ports { 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + port@0 { 68 + reg = <0>; 69 + hd3ss3220_in_ep: endpoint { 70 + remote-endpoint = <&ss_ep>; 71 + }; 79 72 }; 73 + port@1 { 74 + reg = <1>; 75 + hd3ss3220_out_ep: endpoint { 76 + remote-endpoint = <&usb3_role_switch>; 77 + }; 78 + }; 79 + }; 80 80 }; 81 81 };
+3 -3
Documentation/devicetree/bindings/usb/ti,tusb73x0-pci.yaml
··· 48 48 device_type = "pci"; 49 49 50 50 usb@0 { 51 - compatible = "pci104c,8241"; 52 - reg = <0x0 0x0 0x0 0x0 0x0>; 53 - ti,pwron-active-high; 51 + compatible = "pci104c,8241"; 52 + reg = <0x0 0x0 0x0 0x0 0x0>; 53 + ti,pwron-active-high; 54 54 }; 55 55 };
+10 -10
Documentation/devicetree/bindings/usb/ti,usb8020b.yaml
··· 51 51 52 52 /* 2.0 hub on port 1 */ 53 53 hub_2_0: hub@1 { 54 - compatible = "usb451,8027"; 55 - reg = <1>; 56 - peer-hub = <&hub_3_0>; 57 - reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; 58 - vdd-supply = <&usb_hub_fixed_3v3>; 54 + compatible = "usb451,8027"; 55 + reg = <1>; 56 + peer-hub = <&hub_3_0>; 57 + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; 58 + vdd-supply = <&usb_hub_fixed_3v3>; 59 59 }; 60 60 61 61 /* 3.0 hub on port 2 */ 62 62 hub_3_0: hub@2 { 63 - compatible = "usb451,8025"; 64 - reg = <2>; 65 - peer-hub = <&hub_2_0>; 66 - reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; 67 - vdd-supply = <&usb_hub_fixed_3v3>; 63 + compatible = "usb451,8025"; 64 + reg = <2>; 65 + peer-hub = <&hub_2_0>; 66 + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; 67 + vdd-supply = <&usb_hub_fixed_3v3>; 68 68 }; 69 69 };
+8 -8
Documentation/devicetree/bindings/usb/ti,usb8041.yaml
··· 51 51 52 52 /* 2.0 hub on port 1 */ 53 53 hub_2_0: hub@1 { 54 - compatible = "usb451,8142"; 55 - reg = <1>; 56 - peer-hub = <&hub_3_0>; 57 - reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 54 + compatible = "usb451,8142"; 55 + reg = <1>; 56 + peer-hub = <&hub_3_0>; 57 + reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 58 58 }; 59 59 60 60 /* 3.0 hub on port 2 */ 61 61 hub_3_0: hub@2 { 62 - compatible = "usb451,8140"; 63 - reg = <2>; 64 - peer-hub = <&hub_2_0>; 65 - reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 62 + compatible = "usb451,8140"; 63 + reg = <2>; 64 + peer-hub = <&hub_2_0>; 65 + reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 66 66 }; 67 67 };