sunxi: Backport patches from kernel 4.11 for A64
[openwrt/staging/lynxis.git] / target / linux / sunxi / patches-4.9 / 0017-arm64-dts-enable-the-MUSB-controller-of-Pine64-in-ho.patch
1 From f57e8384c5d2417fd8707c577d8e622fc1570b6c Mon Sep 17 00:00:00 2001
2 From: Icenowy Zheng <icenowy@aosc.xyz>
3 Date: Wed, 23 Nov 2016 00:59:02 +0800
4 Subject: arm64: dts: enable the MUSB controller of Pine64 in host-only mode
5
6 A64 has a MUSB controller wired to the USB PHY 0, which is connected
7 to the upper USB Type-A port of Pine64.
8
9 As the port is a Type-A female port, enable it in host-only mode in the
10 device tree, which makes devices with USB Type-A male port can work on
11 this port (which is originally designed by Pine64 team).
12
13 Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
14 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
15 ---
16 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 5 +++++
17 1 file changed, 5 insertions(+)
18
19 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
20 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
21 @@ -81,6 +81,11 @@
22 status = "okay";
23 };
24
25 +&usb_otg {
26 + dr_mode = "host";
27 + status = "okay";
28 +};
29 +
30 &usbphy {
31 status = "okay";
32 };