sunxi: kernel: add patches for NanoPi NEO
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.9 / 0081-ARM-dts-sun8i-nanopi-neo-enable-UART-USB-and-I2C-pin.patch
1 From e036def69972b9db9d2695f45cbf4e84c707b3c5 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Fri, 23 Dec 2016 07:28:51 +0100
4 Subject: [PATCH] ARM: dts: sun8i: nanopi-neo: enable UART, USB and I2C pins
5
6 ---
7 arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 43 ++++++++++++++++++++++++++++---
8 1 file changed, 40 insertions(+), 3 deletions(-)
9
10 Index: linux-4.9.51/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
11 ===================================================================
12 --- linux-4.9.51.orig/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
13 +++ linux-4.9.51/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
14 @@ -78,10 +78,30 @@
15 };
16 };
17
18 +&ehci1 {
19 + status = "okay";
20 +};
21 +
22 +&ohci1 {
23 + status = "okay";
24 +};
25 +
26 +&ehci2 {
27 + status = "okay";
28 +};
29 +
30 +&ohci2 {
31 + status = "okay";
32 +};
33 +
34 &ehci3 {
35 status = "okay";
36 };
37
38 +&ohci3 {
39 + status = "okay";
40 +};
41 +
42 &emac {
43 phy-handle = <&int_mii_phy>;
44 phy-mode = "mii";
45 @@ -99,9 +119,6 @@
46 status = "okay";
47 };
48
49 -&ohci3 {
50 - status = "okay";
51 -};
52
53 &pio {
54 leds_opc: led-pins {
55 @@ -127,7 +144,27 @@
56 status = "okay";
57 };
58
59 +&uart1 {
60 + pinctrl-names = "default";
61 + pinctrl-0 = <&uart1_pins>;
62 + status = "okay";
63 +};
64 +
65 +&uart2 {
66 + pinctrl-names = "default";
67 + pinctrl-0 = <&uart2_pins>;
68 + status = "okay";
69 +};
70 +
71 &usbphy {
72 /* USB VBUS is always on */
73 status = "okay";
74 };
75 +
76 +&i2c0 {
77 + status = "okay";
78 +};
79 +
80 +&i2c1 {
81 + status = "okay";
82 +};