973db0f01c229cd883967969065f392e91e79b4e
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 351-ARM-BCM5301X-Enable-ChipCommon-UART-serial-console.patch
1 From 6c223da976a9225ba9fae8d6f891a8fffaae6092 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Fri, 5 Dec 2014 17:38:40 +0100
4 Subject: [PATCH] ARM: BCM5301X: Enable ChipCommon UART (serial console)
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 ---
11 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 10 ++++++++++
12 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 10 ++++++++++
13 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 10 ++++++++++
14 arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts | 10 ++++++++++
15 4 files changed, 40 insertions(+)
16
17 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
18 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
19 @@ -24,6 +24,16 @@
20 0x88000000 0x18000000>;
21 };
22
23 + chipcommonA {
24 + uart0: serial@0300 {
25 + status = "okay";
26 + };
27 +
28 + uart1: serial@0400 {
29 + status = "okay";
30 + };
31 + };
32 +
33 spi {
34 compatible = "spi-gpio";
35 num-chipselects = <1>;
36 --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
37 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
38 @@ -24,6 +24,16 @@
39 0x88000000 0x08000000>;
40 };
41
42 + chipcommonA {
43 + uart0: serial@0300 {
44 + status = "okay";
45 + };
46 +
47 + uart1: serial@0400 {
48 + status = "okay";
49 + };
50 + };
51 +
52 leds {
53 compatible = "gpio-leds";
54
55 --- a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
56 +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
57 @@ -24,6 +24,16 @@
58 0x88000000 0x08000000>;
59 };
60
61 + chipcommonA {
62 + uart0: serial@0300 {
63 + status = "okay";
64 + };
65 +
66 + uart1: serial@0400 {
67 + status = "okay";
68 + };
69 + };
70 +
71 leds {
72 compatible = "gpio-leds";
73
74 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
75 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
76 @@ -24,6 +24,16 @@
77 0x88000000 0x08000000>;
78 };
79
80 + chipcommonA {
81 + uart0: serial@0300 {
82 + status = "okay";
83 + };
84 +
85 + uart1: serial@0400 {
86 + status = "okay";
87 + };
88 + };
89 +
90 spi {
91 compatible = "spi-gpio";
92 num-chipselects = <1>;
93 --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
94 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
95 @@ -23,6 +23,16 @@
96 reg = <0x00000000 0x08000000>;
97 };
98
99 + chipcommonA {
100 + uart0: serial@0300 {
101 + status = "okay";
102 + };
103 +
104 + uart1: serial@0400 {
105 + status = "okay";
106 + };
107 + };
108 +
109 axi@18000000 {
110 nand@28000 {
111 reg = <0x00028000 0x1000>;
112 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
113 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
114 @@ -24,6 +24,16 @@
115 0x88000000 0x08000000>;
116 };
117
118 + chipcommonA {
119 + uart0: serial@0300 {
120 + status = "okay";
121 + };
122 +
123 + uart1: serial@0400 {
124 + status = "okay";
125 + };
126 + };
127 +
128 gpio-keys {
129 compatible = "gpio-keys";
130 #address-cells = <1>;
131 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
132 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
133 @@ -46,6 +46,18 @@
134 };
135 };
136
137 + chipcommonA {
138 + uart0: serial@0300 {
139 + status = "okay";
140 + clock-frequency = <125000000>;
141 + };
142 +
143 + uart1: serial@0400 {
144 + status = "okay";
145 + clock-frequency = <125000000>;
146 + };
147 + };
148 +
149 gpio-keys {
150 compatible = "gpio-keys";
151 #address-cells = <1>;
152 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
153 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
154 @@ -24,6 +24,18 @@
155 0x88000000 0x08000000>;
156 };
157
158 + chipcommonA {
159 + uart0: serial@0300 {
160 + status = "okay";
161 + clock-frequency = <125000000>;
162 + };
163 +
164 + uart1: serial@0400 {
165 + status = "okay";
166 + clock-frequency = <125000000>;
167 + };
168 + };
169 +
170 leds {
171 compatible = "gpio-leds";
172
173 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
174 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
175 @@ -24,6 +24,16 @@
176 0x88000000 0x08000000>;
177 };
178
179 + chipcommonA {
180 + uart0: serial@0300 {
181 + status = "okay";
182 + };
183 +
184 + uart1: serial@0400 {
185 + status = "okay";
186 + };
187 + };
188 +
189 leds {
190 compatible = "gpio-leds";
191
192 --- a/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
193 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
194 @@ -24,6 +24,16 @@
195 0x88000000 0x08000000>;
196 };
197
198 + chipcommonA {
199 + uart0: serial@0300 {
200 + status = "okay";
201 + };
202 +
203 + uart1: serial@0400 {
204 + status = "okay";
205 + };
206 + };
207 +
208 leds {
209 compatible = "gpio-leds";
210
211 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
212 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
213 @@ -24,6 +24,18 @@
214 0x88000000 0x18000000>;
215 };
216
217 + chipcommonA {
218 + uart0: serial@0300 {
219 + status = "okay";
220 + clock-frequency = <125000000>;
221 + };
222 +
223 + uart1: serial@0400 {
224 + status = "okay";
225 + clock-frequency = <125000000>;
226 + };
227 + };
228 +
229 clocks {
230 clk_periph: periph {
231 clock-frequency = <500000000>;
232 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
233 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
234 @@ -24,6 +24,16 @@
235 0x88000000 0x08000000>;
236 };
237
238 + chipcommonA {
239 + uart0: serial@0300 {
240 + status = "okay";
241 + };
242 +
243 + uart1: serial@0400 {
244 + status = "okay";
245 + };
246 + };
247 +
248 leds {
249 compatible = "gpio-leds";
250