]> git.samba.org - sfrench/cifs-2.6.git/commitdiff
ARM: dts: zynq: Enable USB and USB PHY for ZYBO
authorNathan Rossi <nathan@nathanrossi.com>
Wed, 3 Feb 2016 12:41:05 +0000 (22:41 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 9 Feb 2016 12:18:08 +0000 (13:18 +0100)
Setup the USB controller and configure it to operate in host mode.
Additionally add the USB phy node for the ZYBO, including reset gpio
which is connected to a external MIO pin.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/boot/dts/zynq-zybo.dts

index 16c9cacd668d4af08660cc0679e1314ca6a54086..8f085b3d23cd7baaa365d6a14195c7e23e15d5c1 100644 (file)
@@ -33,6 +33,11 @@ chosen {
                stdout-path = "serial0:115200n8";
        };
 
+       usb_phy0: phy0 {
+               #phy-cells = <0>;
+               compatible = "usb-nop-xceiv";
+               reset-gpios = <&gpio0 46 1>;
+       };
 };
 
 &clkc {
@@ -56,3 +61,9 @@ &sdhci0 {
 &uart1 {
        status = "okay";
 };
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};