ARM: DTS: keystone: complete the description of the USB PHY devices
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Wed, 11 Sep 2019 09:33:58 +0000 (11:33 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 24 Oct 2019 09:28:17 +0000 (11:28 +0200)
As the PHY driver now handles the transitions of USB power domain, we
must add this information in the node of each PHY.
Also, the phy are expected in the "phys" property, not "usb-phys".
Also add the aliases for the USB ports on boards with more than a single
port.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
arch/arm/dts/keystone-k2e-evm-u-boot.dtsi
arch/arm/dts/keystone-k2g-evm-u-boot.dtsi
arch/arm/dts/keystone-k2hk-evm-u-boot.dtsi
arch/arm/dts/keystone-k2l-evm-u-boot.dtsi [new file with mode: 0644]

index aecb4dde68a00e15a83e8a44f4d2e30010876810..c94165ffe7547af8d2311d735e90eff2183f5b79 100644 (file)
@@ -7,8 +7,40 @@
        soc {
                u-boot,dm-pre-reloc;
        };
+       aliases {
+               usb0 = &usb;
+               usb1 = &usb1;
+       };
 };
 
 &i2c1 {
        u-boot,dm-pre-reloc;
 };
+
+&usb_phy {
+       #phy-cells = <0>;
+       psc-domain = <2>;
+};
+
+&usb {
+       dwc3@2690000 {
+               phys = <&usb_phy>;
+               dr_mode = "host";
+               snps,u2ss_inp3_quirk;
+               status = "okay";
+       };
+};
+
+&usb1_phy {
+       #phy-cells = <0>;
+       psc-domain = <1>;
+};
+
+&usb1 {
+       dwc3@25010000 {
+               phys = <&usb1_phy>;
+               dr_mode = "peripheral";
+               snps,u2ss_inp3_quirk;
+               status = "okay";
+       };
+};
index 80f1f600458836bea33363f67f0cf83c3ce08c50..e8e70096ea55f7cbfef20daafa26cf57eb273614 100644 (file)
@@ -7,6 +7,10 @@
        soc {
                u-boot,dm-pre-reloc;
        };
+       aliases {
+               usb0 = &usb0;
+               usb1 = &usb1;
+       };
 };
 
 &i2c0 {
 &i2c1 {
        u-boot,dm-pre-reloc;
 };
+
+&usb0_phy {
+       compatible = "ti,keystone-usbphy";
+       #phy-cells = <0>;
+       reg = <0x2620738 24>;
+       psc-domain = <25>;
+};
+
+&usb0 {
+       phys = <&usb0_phy>;
+       snps,u2ss_inp3_quirk;
+};
+
+&usb1_phy {
+       compatible = "ti,keystone-usbphy";
+       #phy-cells = <0>;
+       reg = <0x2620750 24>;
+       psc-domain = <26>;
+};
+
+&usb1 {
+       phys = <&usb1_phy>;
+       snps,u2ss_inp3_quirk;
+};
index aecb4dde68a00e15a83e8a44f4d2e30010876810..1c2f349f5ccb7670e0d99791cb1300f9ea1ee01b 100644 (file)
 &i2c1 {
        u-boot,dm-pre-reloc;
 };
+
+&usb_phy {
+       #phy-cells = <0>;
+       psc-domain = <2>;
+};
+
+&usb {
+       dwc3@2690000 {
+               phys = <&usb_phy>;
+               dr_mode = "host";
+               snps,u2ss_inp3_quirk;
+               status = "okay";
+       };
+};
diff --git a/arch/arm/dts/keystone-k2l-evm-u-boot.dtsi b/arch/arm/dts/keystone-k2l-evm-u-boot.dtsi
new file mode 100644 (file)
index 0000000..0a507d0
--- /dev/null
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+&usb_phy {
+       #phy-cells = <0>;
+       psc-domain = <2>;
+};
+
+&usb {
+       dwc3@2690000 {
+               phys = <&usb_phy>;
+               dr_mode = "host";
+               snps,u2ss_inp3_quirk;
+               status = "okay";
+       };
+};