sunxi: Backport patches from kernel 4.11 for A64
[openwrt/staging/lynxis.git] / target / linux / sunxi / patches-4.9 / 0015-arm64-dts-allwinner-enable-EHCI1-OHCI1-and-USB-PHY-n.patch
1 From d49f9dbc8f0c4521fa56477d051a3bd1158f2595 Mon Sep 17 00:00:00 2001
2 From: Icenowy Zheng <icenowy@aosc.xyz>
3 Date: Tue, 22 Nov 2016 23:58:31 +0800
4 Subject: arm64: dts: allwinner: enable EHCI1, OHCI1 and USB PHY nodes in
5 Pine64
6
7 Pine64 have two USB Type-A ports, which are wired to the two ports of
8 A64 USB PHY, and the lower port is the EHCI/OHCI1 port.
9
10 Enable the necessary nodes to enable the lower USB port to work.
11
12 Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
13 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
14 ---
15 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 12 ++++++++++++
16 1 file changed, 12 insertions(+)
17
18 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
19 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
20 @@ -57,6 +57,10 @@
21 };
22 };
23
24 +&ehci1 {
25 + status = "okay";
26 +};
27 +
28 &i2c1 {
29 pinctrl-names = "default";
30 pinctrl-0 = <&i2c1_pins>;
31 @@ -67,8 +71,16 @@
32 bias-pull-up;
33 };
34
35 +&ohci1 {
36 + status = "okay";
37 +};
38 +
39 &uart0 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&uart0_pins_a>;
42 status = "okay";
43 };
44 +
45 +&usbphy {
46 + status = "okay";
47 +};