ARM: zynq: DT: Add USB to device tree
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 2 Dec 2014 16:07:11 +0000 (08:07 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 8 Jan 2015 08:35:04 +0000 (09:35 +0100)
Add USB nodes to zc702, zc706 and zed device trees.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/boot/dts/zynq-7000.dtsi
arch/arm/boot/dts/zynq-zc702.dts
arch/arm/boot/dts/zynq-zc706.dts
arch/arm/boot/dts/zynq-zed.dts

index ee3e5d675b053fca340ec8a3ca98c0cc012f044c..f1dd2a7020ae6bbe8a0bc2f49d44d627c7bcf663 100644 (file)
                        clocks = <&clkc 4>;
                };
 
+               usb0: usb@e0002000 {
+                       compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
+                       status = "disabled";
+                       clocks = <&clkc 28>;
+                       interrupt-parent = <&intc>;
+                       interrupts = <0 21 4>;
+                       reg = <0xe0002000 0x1000>;
+                       phy_type = "ulpi";
+               };
+
+               usb1: usb@e0003000 {
+                       compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
+                       status = "disabled";
+                       clocks = <&clkc 29>;
+                       interrupt-parent = <&intc>;
+                       interrupts = <0 44 4>;
+                       reg = <0xe0003000 0x1000>;
+                       phy_type = "ulpi";
+               };
+
                watchdog0: watchdog@f8005000 {
                        clocks = <&clkc 45>;
                        compatible = "xlnx,zynq-wdt-r1p2";
index 280f02dd4ddcb99e530bcd9c957ac2d2ad29456d..399fed4d9c1916cd3d282c92a3ea0c91b9f03f3d 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
 };
 
 &can0 {
 &uart1 {
        status = "okay";
 };
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};
index 34f7812d2ee86f993c6163f3719d8979b0d6ea7d..89cc9adc569d34fc1ba0256a8be33d2de68b6dd4 100644 (file)
                bootargs = "console=ttyPS0,115200 earlyprintk";
        };
 
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
 };
 
 &clkc {
 &uart1 {
        status = "okay";
 };
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};
index 1c7cc990b47a6229c87759f24d6148b68f531154..e20956e5e720f2fbe7654615dcdc9bbd62a43af5 100644 (file)
                bootargs = "console=ttyPS0,115200 earlyprintk";
        };
 
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
 };
 
 &clkc {
@@ -50,3 +54,9 @@
 &uart1 {
        status = "okay";
 };
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};