ar71xx: add Support for RB2011UiAS-2HnD
[openwrt.git] / target / linux / sunxi / patches-3.14 / 165-dt-sun7i-add-usb-host-to-boards.patch
1 From 56de1b69bf6782338193e373cee06fff252b31da Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Tue, 17 Dec 2013 23:04:57 +0100
4 Subject: [PATCH] ARM: sun7i: dt: Add USB host nodes to cubietruck dts
5
6 Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
7
8 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
9 ---
10  arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 30 ++++++++++++++++++++++++++++++
11  1 file changed, 30 insertions(+)
12
13 diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
14 index ef5fed8..cb25d3c 100644
15 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
16 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
17 @@ -20,11 +20,33 @@
18         compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
19  
20         soc@01c00000 {
21 +               usbphy: phy@01c13400 {
22 +                       usb1_vbus-supply = <&reg_usb1_vbus>;
23 +                       usb2_vbus-supply = <&reg_usb2_vbus>;
24 +                       status = "okay";
25 +               };
26 +
27 +               ehci0: usb@01c14000 {
28 +                       status = "okay";
29 +               };
30 +
31 +               ohci0: usb@01c14400 {
32 +                       status = "okay";
33 +               };
34 +
35                 ahci: sata@01c18000 {
36                         target-supply = <&reg_ahci_5v>;
37                         status = "okay";
38                 };
39  
40 +               ehci1: usb@01c1c000 {
41 +                       status = "okay";
42 +               };
43 +
44 +               ohci1: usb@01c1c400 {
45 +                       status = "okay";
46 +               };
47 +
48                 pinctrl@01c20800 {
49                         ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 {
50                                 allwinner,pins = "PH12";
51 @@ -109,4 +131,12 @@
52                 gpio = <&pio 7 12 0>;
53                 status = "okay";
54         };
55 +
56 +       reg_usb1_vbus: usb1-vbus {
57 +               status = "okay";
58 +       };
59 +
60 +       reg_usb2_vbus: usb2-vbus {
61 +               status = "okay";
62 +       };
63  };
64 -- 
65 2.0.3
66
67 From 8ce7da7026a24fe522abb3d7798cea12358946c0 Mon Sep 17 00:00:00 2001
68 From: Roman Byshko <rbyshko@gmail.com>
69 Date: Thu, 19 Sep 2013 21:29:45 +0200
70 Subject: [PATCH] ARM: sun7i: dt: Add USB host nodes to cubieboard2 dts
71
72 Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
73
74 Signed-off-by: Roman Byshko <rbyshko@gmail.com>
75 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
76 ---
77  arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 30 +++++++++++++++++++++++++++++
78  1 file changed, 30 insertions(+)
79
80 diff --git a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
81 index 4bed115..68de89f 100644
82 --- a/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
83 +++ b/arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
84 @@ -20,11 +20,33 @@
85         compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
86  
87         soc@01c00000 {
88 +               usbphy: phy@01c13400 {
89 +                       usb1_vbus-supply = <&reg_usb1_vbus>;
90 +                       usb2_vbus-supply = <&reg_usb2_vbus>;
91 +                       status = "okay";
92 +               };
93 +
94 +               ehci0: usb@01c14000 {
95 +                       status = "okay";
96 +               };
97 +
98 +               ohci0: usb@01c14400 {
99 +                       status = "okay";
100 +               };
101 +
102                 ahci: sata@01c18000 {
103                         target-supply = <&reg_ahci_5v>;
104                         status = "okay";
105                 };
106  
107 +               ehci1: usb@01c1c000 {
108 +                       status = "okay";
109 +               };
110 +
111 +               ohci1: usb@01c1c400 {
112 +                       status = "okay";
113 +               };
114 +
115                 pinctrl@01c20800 {
116                         led_pins_cubieboard2: led_pins@0 {
117                                 allwinner,pins = "PH20", "PH21";
118 @@ -84,4 +106,12 @@
119         reg_ahci_5v: ahci-5v {
120                 status = "okay";
121         };
122 +
123 +       reg_usb1_vbus: usb1-vbus {
124 +               status = "okay";
125 +       };
126 +
127 +       reg_usb2_vbus: usb2-vbus {
128 +               status = "okay";
129 +       };
130  };
131 -- 
132 2.0.3
133
134 From e0e1a55781f7ba89a776456c8764782165e5efcc Mon Sep 17 00:00:00 2001
135 From: Zalan Blenessy <zalan.blenessy@gmail.com>
136 Date: Sun, 22 Dec 2013 17:08:10 +0100
137 Subject: [PATCH] ARM: sun7i: dt: Add USB host nodes to a20-olinuxino-micro dts
138
139 Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
140
141 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
142 ---
143  arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 30 +++++++++++++++++++++++++
144  1 file changed, 30 insertions(+)
145
146 diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
147 index c9b0f37..eeadf76 100644
148 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
149 +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
150 @@ -31,6 +31,20 @@
151                         status = "okay";
152                 };
153  
154 +               usbphy: phy@01c13400 {
155 +                       usb1_vbus-supply = <&reg_usb1_vbus>;
156 +                       usb2_vbus-supply = <&reg_usb2_vbus>;
157 +                       status = "okay";
158 +               };
159 +
160 +               ehci0: usb@01c14000 {
161 +                       status = "okay";
162 +               };
163 +
164 +               ohci0: usb@01c14400 {
165 +                       status = "okay";
166 +               };
167 +
168                 spi2: spi@01c17000 {
169                         pinctrl-names = "default";
170                         pinctrl-0 = <&spi2_pins_a>;
171 @@ -42,6 +56,14 @@
172                         status = "okay";
173                 };
174  
175 +               ehci1: usb@01c1c000 {
176 +                       status = "okay";
177 +               };
178 +
179 +               ohci1: usb@01c1c400 {
180 +                       status = "okay";
181 +               };
182 +
183                 pinctrl@01c20800 {
184                         led_pins_olinuxino: led_pins@0 {
185                                 allwinner,pins = "PH2";
186 @@ -115,4 +137,12 @@
187         reg_ahci_5v: ahci-5v {
188                 status = "okay";
189         };
190 +
191 +       reg_usb1_vbus: usb1-vbus {
192 +               status = "okay";
193 +       };
194 +
195 +       reg_usb2_vbus: usb2-vbus {
196 +               status = "okay";
197 +       };
198  };
199 -- 
200 2.0.3
201