ARM: zynq: Extend microzed board support
authorMichal Simek <michal.simek@xilinx.com>
Tue, 12 Jan 2016 07:06:36 +0000 (08:06 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 13 Apr 2016 16:29:02 +0000 (18:29 +0200)
Add missing DT nodes and enable USB.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Nathan Rossi <nathan@nathanrossi.com>
arch/arm/dts/zynq-microzed.dts
configs/zynq_microzed_defconfig
include/configs/zynq_microzed.h

index 793ab44eae2439f7cbcf4abbdc38f8fd10d2cee8..cb238cd5e7bbb68f59784143de40445d66492bc8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Xilinx MicroZED board DTS
  *
- * Copyright (C) 2013 Xilinx, Inc.
+ * Copyright (C) 2013 - 2016 Xilinx, Inc.
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
        aliases {
                serial0 = &uart1;
                spi0 = &qspi;
+               mmc0 = &sdhci0;
        };
 
        memory {
                device_type = "memory";
                reg = <0 0x40000000>;
        };
+
+       chosen {
+               bootargs = "earlyprintk";
+               stdout-path = "serial0:115200n8";
+       };
+
+       usb_phy0: phy0 {
+               compatible = "usb-nop-xceiv";
+               #phy-cells = <0>;
+       };
+};
+
+&clkc {
+       ps-clk-frequency = <33333333>;
 };
 
 &qspi {
        u-boot,dm-pre-reloc;
        status = "okay";
 };
+
+&gem0 {
+       status = "okay";
+       phy-mode = "rgmii-id";
+       phy-handle = <&ethernet_phy>;
+
+       ethernet_phy: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
+&sdhci0 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&usb0 {
+       status = "okay";
+       dr_mode = "host";
+       usb-phy = <&usb_phy0>;
+};
index 1d70e43df0c8d9b52443a3f61ed40f921fed7000..bd261c16ebb05ccfb01b9f5d05d4710d681f669b 100644 (file)
@@ -21,3 +21,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_ZYNQ_GEM=y
 CONFIG_ZYNQ_QSPI=y
+CONFIG_USB=y
+CONFIG_USB_ULPI_VIEWPORT=y
+CONFIG_USB_ULPI=y
+CONFIG_USB_GADGET=y
index e66088da4f795961ec4bc30e6b41de4a281a2c83..ec7bb1cef55386b0ca5f3e3d644cde1e60dc550f 100644 (file)
@@ -12,6 +12,8 @@
 
 #define CONFIG_SYS_NO_FLASH
 
+#define CONFIG_ZYNQ_USB
+
 #include <configs/zynq-common.h>
 
 #endif /* __CONFIG_ZYNQ_MICROZED_H */