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>pull/1134/merge
parent
f1a2241778
commit
653e11eae2
|
|
@ -113,27 +113,27 @@ examples:
|
||||||
- |
|
- |
|
||||||
#include <dt-bindings/clock/aspeed-clock.h>
|
#include <dt-bindings/clock/aspeed-clock.h>
|
||||||
vhub: usb-vhub@1e6a0000 {
|
vhub: usb-vhub@1e6a0000 {
|
||||||
compatible = "aspeed,ast2500-usb-vhub";
|
compatible = "aspeed,ast2500-usb-vhub";
|
||||||
reg = <0x1e6a0000 0x300>;
|
reg = <0x1e6a0000 0x300>;
|
||||||
interrupts = <5>;
|
interrupts = <5>;
|
||||||
clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
|
clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>;
|
||||||
aspeed,vhub-downstream-ports = <5>;
|
aspeed,vhub-downstream-ports = <5>;
|
||||||
aspeed,vhub-generic-endpoints = <15>;
|
aspeed,vhub-generic-endpoints = <15>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&pinctrl_usb2ad_default>;
|
pinctrl-0 = <&pinctrl_usb2ad_default>;
|
||||||
|
|
||||||
vhub-vendor-id = <0x1d6b>;
|
vhub-vendor-id = <0x1d6b>;
|
||||||
vhub-product-id = <0x0107>;
|
vhub-product-id = <0x0107>;
|
||||||
vhub-device-revision = <0x0100>;
|
vhub-device-revision = <0x0100>;
|
||||||
vhub-strings {
|
vhub-strings {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
string@409 {
|
string@409 {
|
||||||
reg = <0x409>;
|
reg = <0x409>;
|
||||||
manufacturer = "ASPEED";
|
manufacturer = "ASPEED";
|
||||||
product = "USB Virtual Hub";
|
product = "USB Virtual Hub";
|
||||||
serial-number = "0000";
|
serial-number = "0000";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -41,10 +41,10 @@ additionalProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
usb@f0b02000 {
|
usb@f0b02000 {
|
||||||
compatible = "brcm,bdc-udc-v2";
|
compatible = "brcm,bdc-udc-v2";
|
||||||
reg = <0xf0b02000 0xfc4>;
|
reg = <0xf0b02000 0xfc4>;
|
||||||
interrupts = <0x0 0x60 0x0>;
|
interrupts = <0x0 0x60 0x0>;
|
||||||
phys = <&usbphy_0 0x0>;
|
phys = <&usbphy_0 0x0>;
|
||||||
clocks = <&sw_usbd>;
|
clocks = <&sw_usbd>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,21 +56,21 @@ examples:
|
||||||
|
|
||||||
/* 2.0 hub on port 1 */
|
/* 2.0 hub on port 1 */
|
||||||
hub_2_0: hub@1 {
|
hub_2_0: hub@1 {
|
||||||
compatible = "usb4b4,6504";
|
compatible = "usb4b4,6504";
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
peer-hub = <&hub_3_0>;
|
peer-hub = <&hub_3_0>;
|
||||||
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||||
vdd-supply = <®_1v2_usb>;
|
vdd-supply = <®_1v2_usb>;
|
||||||
vdd2-supply = <®_3v3_usb>;
|
vdd2-supply = <®_3v3_usb>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 3.0 hub on port 2 */
|
/* 3.0 hub on port 2 */
|
||||||
hub_3_0: hub@2 {
|
hub_3_0: hub@2 {
|
||||||
compatible = "usb4b4,6506";
|
compatible = "usb4b4,6506";
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
peer-hub = <&hub_2_0>;
|
peer-hub = <&hub_2_0>;
|
||||||
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||||
vdd-supply = <®_1v2_usb>;
|
vdd-supply = <®_1v2_usb>;
|
||||||
vdd2-supply = <®_3v3_usb>;
|
vdd2-supply = <®_3v3_usb>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
usb@101c0000 {
|
usb@101c0000 {
|
||||||
compatible = "rockchip,rk3066-usb", "snps,dwc2";
|
compatible = "rockchip,rk3066-usb", "snps,dwc2";
|
||||||
reg = <0x10180000 0x40000>;
|
reg = <0x10180000 0x40000>;
|
||||||
interrupts = <18>;
|
interrupts = <18>;
|
||||||
|
|
@ -200,6 +200,6 @@ examples:
|
||||||
clock-names = "otg";
|
clock-names = "otg";
|
||||||
phys = <&usbphy>;
|
phys = <&usbphy>;
|
||||||
phy-names = "usb2-phy";
|
phy-names = "usb2-phy";
|
||||||
};
|
};
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -87,21 +87,21 @@ examples:
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
typec-mux@42 {
|
typec-mux@42 {
|
||||||
compatible = "fcs,fsa4480";
|
compatible = "fcs,fsa4480";
|
||||||
reg = <0x42>;
|
reg = <0x42>;
|
||||||
|
|
||||||
interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
|
interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>;
|
||||||
|
|
||||||
vcc-supply = <&vreg_bob>;
|
vcc-supply = <&vreg_bob>;
|
||||||
|
|
||||||
mode-switch;
|
mode-switch;
|
||||||
orientation-switch;
|
orientation-switch;
|
||||||
|
|
||||||
port {
|
port {
|
||||||
fsa4480_ept: endpoint {
|
fsa4480_ept: endpoint {
|
||||||
remote-endpoint = <&typec_controller>;
|
remote-endpoint = <&typec_controller>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -58,20 +58,20 @@ examples:
|
||||||
#define KEEM_BAY_A53_AUX_USB_SUSPEND
|
#define KEEM_BAY_A53_AUX_USB_SUSPEND
|
||||||
|
|
||||||
usb {
|
usb {
|
||||||
compatible = "intel,keembay-dwc3";
|
compatible = "intel,keembay-dwc3";
|
||||||
clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>,
|
clocks = <&scmi_clk KEEM_BAY_A53_AUX_USB>,
|
||||||
<&scmi_clk KEEM_BAY_A53_AUX_USB_REF>,
|
<&scmi_clk KEEM_BAY_A53_AUX_USB_REF>,
|
||||||
<&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>,
|
<&scmi_clk KEEM_BAY_A53_AUX_USB_ALT_REF>,
|
||||||
<&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>;
|
<&scmi_clk KEEM_BAY_A53_AUX_USB_SUSPEND>;
|
||||||
clock-names = "async_master", "ref", "alt_ref", "suspend";
|
clock-names = "async_master", "ref", "alt_ref", "suspend";
|
||||||
ranges;
|
ranges;
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
usb@34000000 {
|
usb@34000000 {
|
||||||
compatible = "snps,dwc3";
|
compatible = "snps,dwc3";
|
||||||
reg = <0x34000000 0x10000>;
|
reg = <0x34000000 0x10000>;
|
||||||
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
dr_mode = "peripheral";
|
dr_mode = "peripheral";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -54,19 +54,19 @@ examples:
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
typec-mux@48 {
|
typec-mux@48 {
|
||||||
compatible = "ite,it5205";
|
compatible = "ite,it5205";
|
||||||
reg = <0x48>;
|
reg = <0x48>;
|
||||||
|
|
||||||
mode-switch;
|
mode-switch;
|
||||||
orientation-switch;
|
orientation-switch;
|
||||||
|
|
||||||
vcc-supply = <&mt6359_vibr_ldo_reg>;
|
vcc-supply = <&mt6359_vibr_ldo_reg>;
|
||||||
|
|
||||||
port {
|
port {
|
||||||
it5205_usbss_sbu: endpoint {
|
it5205_usbss_sbu: endpoint {
|
||||||
remote-endpoint = <&typec_controller>;
|
remote-endpoint = <&typec_controller>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -50,18 +50,18 @@ additionalProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
- |
|
- |
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
spi {
|
spi {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
udc@0 {
|
udc@0 {
|
||||||
compatible = "maxim,max3420-udc";
|
compatible = "maxim,max3420-udc";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
interrupt-parent = <&gpio>;
|
interrupt-parent = <&gpio>;
|
||||||
interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
|
interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
|
||||||
interrupt-names = "udc", "vbus";
|
interrupt-names = "udc", "vbus";
|
||||||
spi-max-frequency = <12500000>;
|
spi-max-frequency = <12500000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ examples:
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
ethernet@1 {
|
ethernet@1 {
|
||||||
compatible = "usb955,9ff";
|
compatible = "usb955,9ff";
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -104,26 +104,26 @@ examples:
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
usb3host: usb@85060000 {
|
usb3host: usb@85060000 {
|
||||||
compatible = "renesas,r9a09g011-xhci",
|
compatible = "renesas,r9a09g011-xhci",
|
||||||
"renesas,rzv2m-xhci";
|
"renesas,rzv2m-xhci";
|
||||||
reg = <0x85060000 0x2000>;
|
reg = <0x85060000 0x2000>;
|
||||||
interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>,
|
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_H>,
|
||||||
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
|
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
|
||||||
clock-names = "axi", "reg";
|
clock-names = "axi", "reg";
|
||||||
power-domains = <&cpg>;
|
power-domains = <&cpg>;
|
||||||
resets = <&cpg R9A09G011_USB_ARESETN_H>;
|
resets = <&cpg R9A09G011_USB_ARESETN_H>;
|
||||||
};
|
};
|
||||||
|
|
||||||
usb3peri: usb3peri@85070000 {
|
usb3peri: usb3peri@85070000 {
|
||||||
compatible = "renesas,r9a09g011-usb3-peri",
|
compatible = "renesas,r9a09g011-usb3-peri",
|
||||||
"renesas,rzv2m-usb3-peri";
|
"renesas,rzv2m-usb3-peri";
|
||||||
reg = <0x85070000 0x400>;
|
reg = <0x85070000 0x400>;
|
||||||
interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,
|
clocks = <&cpg CPG_MOD R9A09G011_USB_ACLK_P>,
|
||||||
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
|
<&cpg CPG_MOD R9A09G011_USB_PCLK>;
|
||||||
clock-names = "axi", "reg";
|
clock-names = "axi", "reg";
|
||||||
power-domains = <&cpg>;
|
power-domains = <&cpg>;
|
||||||
resets = <&cpg R9A09G011_USB_ARESETN_P>;
|
resets = <&cpg R9A09G011_USB_ARESETN_P>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -132,19 +132,19 @@ examples:
|
||||||
usb-role-switch;
|
usb-role-switch;
|
||||||
|
|
||||||
ports {
|
ports {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
port@0 {
|
port@0 {
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
usb3_hs_ep: endpoint {
|
usb3_hs_ep: endpoint {
|
||||||
remote-endpoint = <&hs_ep>;
|
remote-endpoint = <&hs_ep>;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
port@1 {
|
};
|
||||||
reg = <1>;
|
port@1 {
|
||||||
usb3_role_switch: endpoint {
|
reg = <1>;
|
||||||
remote-endpoint = <&hd3ss3220_out_ep>;
|
usb3_role_switch: endpoint {
|
||||||
};
|
remote-endpoint = <&hd3ss3220_out_ep>;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,26 +56,26 @@ examples:
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
hd3ss3220@47 {
|
hd3ss3220@47 {
|
||||||
compatible = "ti,hd3ss3220";
|
compatible = "ti,hd3ss3220";
|
||||||
reg = <0x47>;
|
reg = <0x47>;
|
||||||
interrupt-parent = <&gpio6>;
|
interrupt-parent = <&gpio6>;
|
||||||
interrupts = <3>;
|
interrupts = <3>;
|
||||||
|
|
||||||
ports {
|
ports {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
port@0 {
|
port@0 {
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
hd3ss3220_in_ep: endpoint {
|
hd3ss3220_in_ep: endpoint {
|
||||||
remote-endpoint = <&ss_ep>;
|
remote-endpoint = <&ss_ep>;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
port@1 {
|
|
||||||
reg = <1>;
|
|
||||||
hd3ss3220_out_ep: endpoint {
|
|
||||||
remote-endpoint = <&usb3_role_switch>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
port@1 {
|
||||||
|
reg = <1>;
|
||||||
|
hd3ss3220_out_ep: endpoint {
|
||||||
|
remote-endpoint = <&usb3_role_switch>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ examples:
|
||||||
device_type = "pci";
|
device_type = "pci";
|
||||||
|
|
||||||
usb@0 {
|
usb@0 {
|
||||||
compatible = "pci104c,8241";
|
compatible = "pci104c,8241";
|
||||||
reg = <0x0 0x0 0x0 0x0 0x0>;
|
reg = <0x0 0x0 0x0 0x0 0x0>;
|
||||||
ti,pwron-active-high;
|
ti,pwron-active-high;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,19 +51,19 @@ examples:
|
||||||
|
|
||||||
/* 2.0 hub on port 1 */
|
/* 2.0 hub on port 1 */
|
||||||
hub_2_0: hub@1 {
|
hub_2_0: hub@1 {
|
||||||
compatible = "usb451,8027";
|
compatible = "usb451,8027";
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
peer-hub = <&hub_3_0>;
|
peer-hub = <&hub_3_0>;
|
||||||
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
|
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
|
||||||
vdd-supply = <&usb_hub_fixed_3v3>;
|
vdd-supply = <&usb_hub_fixed_3v3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 3.0 hub on port 2 */
|
/* 3.0 hub on port 2 */
|
||||||
hub_3_0: hub@2 {
|
hub_3_0: hub@2 {
|
||||||
compatible = "usb451,8025";
|
compatible = "usb451,8025";
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
peer-hub = <&hub_2_0>;
|
peer-hub = <&hub_2_0>;
|
||||||
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
|
reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
|
||||||
vdd-supply = <&usb_hub_fixed_3v3>;
|
vdd-supply = <&usb_hub_fixed_3v3>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,17 +51,17 @@ examples:
|
||||||
|
|
||||||
/* 2.0 hub on port 1 */
|
/* 2.0 hub on port 1 */
|
||||||
hub_2_0: hub@1 {
|
hub_2_0: hub@1 {
|
||||||
compatible = "usb451,8142";
|
compatible = "usb451,8142";
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
peer-hub = <&hub_3_0>;
|
peer-hub = <&hub_3_0>;
|
||||||
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 3.0 hub on port 2 */
|
/* 3.0 hub on port 2 */
|
||||||
hub_3_0: hub@2 {
|
hub_3_0: hub@2 {
|
||||||
compatible = "usb451,8140";
|
compatible = "usb451,8140";
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
peer-hub = <&hub_2_0>;
|
peer-hub = <&hub_2_0>;
|
||||||
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue