[meta-xilinx] [PATCH] linux-yocto_4.4: Add ZYBO USB patch

Nathan Rossi nathan at nathanrossi.com
Thu Apr 7 06:44:04 PDT 2016


Backport the ZYBO USB PHY patch so that the USB interface is functional
using the in-kernel device tree.

Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
---
 recipes-kernel/linux/linux-yocto_4.4.bbappend      |  5 +++
 ...-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch | 52 ++++++++++++++++++++++
 2 files changed, 57 insertions(+)
 create mode 100644 recipes-kernel/linux/linux/ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch

diff --git a/recipes-kernel/linux/linux-yocto_4.4.bbappend b/recipes-kernel/linux/linux-yocto_4.4.bbappend
index 651e0d7..8e67ecf 100644
--- a/recipes-kernel/linux/linux-yocto_4.4.bbappend
+++ b/recipes-kernel/linux/linux-yocto_4.4.bbappend
@@ -2,3 +2,8 @@
 require linux-xilinx-configs.inc
 require linux-xilinx-machines.inc
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux:"
+SRC_URI_append = " \
+		file://ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch \
+		"
+
diff --git a/recipes-kernel/linux/linux/ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch b/recipes-kernel/linux/linux/ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch
new file mode 100644
index 0000000..26f57bf
--- /dev/null
+++ b/recipes-kernel/linux/linux/ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch
@@ -0,0 +1,52 @@
+From b977025153a6f43ec5070d2f7a26f2ecb22c0319 Mon Sep 17 00:00:00 2001
+From: Nathan Rossi <nathan at nathanrossi.com>
+Date: Wed, 3 Feb 2016 22:41:05 +1000
+Subject: [PATCH] ARM: dts: zynq: Enable USB and USB PHY for ZYBO
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 at nathanrossi.com>
+Cc: Rob Herring <robh+dt at kernel.org>
+Cc: Mark Rutland <mark.rutland at arm.com>
+Cc: Michal Simek <michal.simek at xilinx.com>
+Cc: Sören Brinkmann <soren.brinkmann at xilinx.com>
+Signed-off-by: Michal Simek <michal.simek at xilinx.com>
+Upstream-Status: Backport
+---
+ arch/arm/boot/dts/zynq-zybo.dts | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/arch/arm/boot/dts/zynq-zybo.dts b/arch/arm/boot/dts/zynq-zybo.dts
+index 16c9cac..8f085b3 100644
+--- a/arch/arm/boot/dts/zynq-zybo.dts
++++ b/arch/arm/boot/dts/zynq-zybo.dts
+@@ -33,6 +33,11 @@
+ 		stdout-path = "serial0:115200n8";
+ 	};
+ 
++	usb_phy0: phy0 {
++		#phy-cells = <0>;
++		compatible = "usb-nop-xceiv";
++		reset-gpios = <&gpio0 46 1>;
++	};
+ };
+ 
+ &clkc {
+@@ -56,3 +61,9 @@
+ &uart1 {
+ 	status = "okay";
+ };
++
++&usb0 {
++	status = "okay";
++	dr_mode = "host";
++	usb-phy = <&usb_phy0>;
++};
+-- 
+2.8.0.rc3
+
-- 
2.8.0.rc3




More information about the meta-xilinx mailing list