Skip to content

Commit

Permalink
ARM: zynq: DT: Add USB to device tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Soren Brinkmann authored and Michal Simek committed Jan 8, 2015
1 parent 97bf6af commit 1643b31
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
20 changes: 20 additions & 0 deletions arch/arm/boot/dts/zynq-7000.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,26 @@
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";
Expand Down
11 changes: 11 additions & 0 deletions arch/arm/boot/dts/zynq-zc702.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
linux,default-trigger = "heartbeat";
};
};

usb_phy0: phy0 {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
};

&can0 {
Expand Down Expand Up @@ -139,3 +144,9 @@
&uart1 {
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/zynq-zc706.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
bootargs = "console=ttyPS0,115200 earlyprintk";
};

usb_phy0: phy0 {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
};

&clkc {
Expand Down Expand Up @@ -118,3 +122,9 @@
&uart1 {
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/zynq-zed.dts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
bootargs = "console=ttyPS0,115200 earlyprintk";
};

usb_phy0: phy0 {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
};

&clkc {
Expand All @@ -50,3 +54,9 @@
&uart1 {
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};

0 comments on commit 1643b31

Please sign in to comment.