diff options
| author | Nathan Rossi <nathan@nathanrossi.com> | 2016-04-07 19:26:37 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-04-07 19:26:37 +1000 |
| commit | 74e04c5969a74f7a6c8e863f87448bc865159079 (patch) | |
| tree | 7961de9e6e467936c340a95f771e90568dc8c9b9 | |
| parent | 41c4dd404a8cb1393feeecd99dda17cf5cab3942 (diff) | |
| download | meta-xilinx-74e04c5969a74f7a6c8e863f87448bc865159079.tar.gz | |
linux-yocto_4.4: Add ZYBO USB patch
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@nathanrossi.com>
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_4.4.bbappend | 5 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux/ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch | 52 |
2 files changed, 57 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto_4.4.bbappend b/recipes-kernel/linux/linux-yocto_4.4.bbappend index 651e0d72..8e67ecf7 100644 --- a/recipes-kernel/linux/linux-yocto_4.4.bbappend +++ b/recipes-kernel/linux/linux-yocto_4.4.bbappend | |||
| @@ -2,3 +2,8 @@ | |||
| 2 | require linux-xilinx-configs.inc | 2 | require linux-xilinx-configs.inc |
| 3 | require linux-xilinx-machines.inc | 3 | require linux-xilinx-machines.inc |
| 4 | 4 | ||
| 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux:" | ||
| 6 | SRC_URI_append = " \ | ||
| 7 | file://ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch \ | ||
| 8 | " | ||
| 9 | |||
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 00000000..26f57bf3 --- /dev/null +++ b/recipes-kernel/linux/linux/ARM-dts-zynq-Enable-USB-and-USB-PHY-for-ZYBO.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From b977025153a6f43ec5070d2f7a26f2ecb22c0319 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Nathan Rossi <nathan@nathanrossi.com> | ||
| 3 | Date: Wed, 3 Feb 2016 22:41:05 +1000 | ||
| 4 | Subject: [PATCH] ARM: dts: zynq: Enable USB and USB PHY for ZYBO | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Setup the USB controller and configure it to operate in host mode. | ||
| 10 | Additionally add the USB phy node for the ZYBO, including reset gpio | ||
| 11 | which is connected to a external MIO pin. | ||
| 12 | |||
| 13 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
| 14 | Cc: Rob Herring <robh+dt@kernel.org> | ||
| 15 | Cc: Mark Rutland <mark.rutland@arm.com> | ||
| 16 | Cc: Michal Simek <michal.simek@xilinx.com> | ||
| 17 | Cc: Sören Brinkmann <soren.brinkmann@xilinx.com> | ||
| 18 | Signed-off-by: Michal Simek <michal.simek@xilinx.com> | ||
| 19 | Upstream-Status: Backport | ||
| 20 | --- | ||
| 21 | arch/arm/boot/dts/zynq-zybo.dts | 11 +++++++++++ | ||
| 22 | 1 file changed, 11 insertions(+) | ||
| 23 | |||
| 24 | diff --git a/arch/arm/boot/dts/zynq-zybo.dts b/arch/arm/boot/dts/zynq-zybo.dts | ||
| 25 | index 16c9cac..8f085b3 100644 | ||
| 26 | --- a/arch/arm/boot/dts/zynq-zybo.dts | ||
| 27 | +++ b/arch/arm/boot/dts/zynq-zybo.dts | ||
| 28 | @@ -33,6 +33,11 @@ | ||
| 29 | stdout-path = "serial0:115200n8"; | ||
| 30 | }; | ||
| 31 | |||
| 32 | + usb_phy0: phy0 { | ||
| 33 | + #phy-cells = <0>; | ||
| 34 | + compatible = "usb-nop-xceiv"; | ||
| 35 | + reset-gpios = <&gpio0 46 1>; | ||
| 36 | + }; | ||
| 37 | }; | ||
| 38 | |||
| 39 | &clkc { | ||
| 40 | @@ -56,3 +61,9 @@ | ||
| 41 | &uart1 { | ||
| 42 | status = "okay"; | ||
| 43 | }; | ||
| 44 | + | ||
| 45 | +&usb0 { | ||
| 46 | + status = "okay"; | ||
| 47 | + dr_mode = "host"; | ||
| 48 | + usb-phy = <&usb_phy0>; | ||
| 49 | +}; | ||
| 50 | -- | ||
| 51 | 2.8.0.rc3 | ||
| 52 | |||
