ARM: dts: k2g-evm: enable USB0 and USB1
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 4 Dec 2018 10:12:58 +0000 (11:12 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 14 Dec 2018 16:59:09 +0000 (17:59 +0100)
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/dts/keystone-k2g-evm.dts
arch/arm/dts/keystone-k2g.dtsi

index ad746c731106a8d60a0144bb28258148adca6f53..6c9de25b9447499e1060ba5b90e941e30fd3f52f 100644 (file)
        };
 };
 
+&keystone_usb0 {
+       status = "okay";
+};
+
+&usb0_phy {
+       status = "okay";
+       compatible = "nop-phy";
+};
+
+&usb0 {
+       dr_mode = "host";
+       status = "okay";
+};
+
+&keystone_usb1 {
+       status = "okay";
+};
+
+&usb1_phy {
+       compatible = "nop-phy";
+       status = "okay";
+};
+
+&usb1 {
+       dr_mode = "peripheral";
+       status = "okay";
+};
+
 &gbe0 {
        phy-handle = <&ethphy0>;
 };
index bbbb9874c87b359a29d3e64ee1d4fba51435bdd0..ede71181206b7a98be1e7251bcccdf9b95c3a84f 100644 (file)
                        status = "disabled";
                        clock-names = "fck";
                };
+
+               usb0_phy: usb-phy@0 {
+                       compatible = "usb-nop-xceiv";
+                       status = "disabled";
+               };
+
+               keystone_usb0: keystone-dwc3@2680000 {
+                       compatible = "ti,keystone-dwc3";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       reg = <0x2680000 0x10000>;
+                       interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
+                       ranges;
+                       dma-coherent;
+                       dma-ranges;
+                       status = "disabled";
+                       /*power-domains = <&k2g_pds 0x0016>;*/
+
+                       usb0: usb@2690000 {
+                               compatible = "snps,dwc3";
+                               reg = <0x2690000 0x10000>;
+                               interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
+                               maximum-speed = "high-speed";
+                               dr_mode = "otg";
+                               /*usb-phy = <&usb0_phy>;*/
+                               status = "disabled";
+                       };
+               };
+
+               usb1_phy: usb-phy@1 {
+                       compatible = "usb-nop-xceiv";
+                       status = "disabled";
+               };
+
+               keystone_usb1: keystone-dwc3@2580000 {
+                       compatible = "ti,keystone-dwc3";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       reg = <0x2580000 0x10000>;
+                       interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
+                       ranges;
+                       dma-coherent;
+                       dma-ranges;
+                       status = "disabled";
+                       /*power-domains = <&k2g_pds 0x0017>;*/
+
+                       usb1: usb@2590000 {
+                               compatible = "snps,dwc3";
+                               reg = <0x2590000 0x10000>;
+                               interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
+                               maximum-speed = "high-speed";
+                               dr_mode = "otg";
+                               /*usb-phy = <&usb1_phy>;*/
+                               status = "disabled";
+                       };
+               };
        };
 };