ARM: dts: enable PCIe support for Cygnus
[deliverable/linux.git] / arch / arm / boot / dts / sun8i-a23.dtsi
CommitLineData
fd6c10fb
CYT
1/*
2 * Copyright 2014 Chen-Yu Tsai
3 *
4 * Chen-Yu Tsai <wens@csie.org>
5 *
d02fc738
MR
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
fd6c10fb 10 *
136d18a8 11 * a) This file is free software; you can redistribute it and/or
d02fc738
MR
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
136d18a8 16 * This file is distributed in the hope that it will be useful,
d02fc738
MR
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
136d18a8 22 * License along with this file; if not, write to the Free
d02fc738
MR
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 * MA 02110-1301 USA
25 *
26 * Or, alternatively,
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
fd6c10fb
CYT
48 */
49
71455701 50#include "skeleton.dtsi"
fd6c10fb 51
19882b84
MR
52#include <dt-bindings/interrupt-controller/arm-gic.h>
53
092a0c3b 54#include <dt-bindings/pinctrl/sun4i-a10.h>
fd6c10fb
CYT
55
56/ {
57 interrupt-parent = <&gic>;
58
fd18c7ea
HG
59 chosen {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 ranges;
63
64 framebuffer@0 {
65 compatible = "allwinner,simple-framebuffer",
66 "simple-framebuffer";
67 allwinner,pipeline = "de_be0-lcd0";
68 clocks = <&pll6 0>;
69 status = "disabled";
70 };
71 };
72
fd6c10fb
CYT
73 cpus {
74 #address-cells = <1>;
75 #size-cells = <0>;
76
77 cpu@0 {
78 compatible = "arm,cortex-a7";
79 device_type = "cpu";
80 reg = <0>;
81 };
82
83 cpu@1 {
84 compatible = "arm,cortex-a7";
85 device_type = "cpu";
86 reg = <1>;
87 };
88 };
89
90 memory {
91 reg = <0x40000000 0x40000000>;
92 };
93
94 clocks {
95 #address-cells = <1>;
96 #size-cells = <1>;
97 ranges;
98
99 osc24M: osc24M_clk {
100 #clock-cells = <0>;
101 compatible = "fixed-clock";
102 clock-frequency = <24000000>;
103 clock-output-names = "osc24M";
104 };
105
106 osc32k: osc32k_clk {
107 #clock-cells = <0>;
108 compatible = "fixed-clock";
109 clock-frequency = <32768>;
110 clock-output-names = "osc32k";
111 };
8e984240
CYT
112
113 pll1: clk@01c20000 {
114 #clock-cells = <0>;
115 compatible = "allwinner,sun8i-a23-pll1-clk";
116 reg = <0x01c20000 0x4>;
117 clocks = <&osc24M>;
118 clock-output-names = "pll1";
119 };
120
121 /* dummy clock until actually implemented */
ff8bbf78 122 pll5: pll5_clk {
8e984240
CYT
123 #clock-cells = <0>;
124 compatible = "fixed-clock";
ff8bbf78
CYT
125 clock-frequency = <0>;
126 clock-output-names = "pll5";
127 };
128
129 pll6: clk@01c20028 {
130 #clock-cells = <1>;
131 compatible = "allwinner,sun6i-a31-pll6-clk";
132 reg = <0x01c20028 0x4>;
133 clocks = <&osc24M>;
134 clock-output-names = "pll6", "pll6x2";
8e984240
CYT
135 };
136
137 cpu: cpu_clk@01c20050 {
138 #clock-cells = <0>;
139 compatible = "allwinner,sun4i-a10-cpu-clk";
140 reg = <0x01c20050 0x4>;
141
142 /*
143 * PLL1 is listed twice here.
144 * While it looks suspicious, it's actually documented
145 * that way both in the datasheet and in the code from
146 * Allwinner.
147 */
148 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
149 clock-output-names = "cpu";
150 };
151
152 axi: axi_clk@01c20050 {
153 #clock-cells = <0>;
154 compatible = "allwinner,sun8i-a23-axi-clk";
155 reg = <0x01c20050 0x4>;
156 clocks = <&cpu>;
157 clock-output-names = "axi";
158 };
159
8e984240
CYT
160 ahb1: ahb1_clk@01c20054 {
161 #clock-cells = <0>;
de8e8e08 162 compatible = "allwinner,sun6i-a31-ahb1-clk";
8e984240 163 reg = <0x01c20054 0x4>;
ff8bbf78 164 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
8e984240
CYT
165 clock-output-names = "ahb1";
166 };
167
168 apb1: apb1_clk@01c20054 {
169 #clock-cells = <0>;
170 compatible = "allwinner,sun4i-a10-apb0-clk";
171 reg = <0x01c20054 0x4>;
172 clocks = <&ahb1>;
173 clock-output-names = "apb1";
174 };
175
176 ahb1_gates: clk@01c20060 {
177 #clock-cells = <1>;
178 compatible = "allwinner,sun8i-a23-ahb1-gates-clk";
179 reg = <0x01c20060 0x8>;
180 clocks = <&ahb1>;
181 clock-output-names = "ahb1_mipidsi", "ahb1_dma",
182 "ahb1_mmc0", "ahb1_mmc1", "ahb1_mmc2",
183 "ahb1_nand", "ahb1_sdram",
184 "ahb1_hstimer", "ahb1_spi0",
185 "ahb1_spi1", "ahb1_otg", "ahb1_ehci",
186 "ahb1_ohci", "ahb1_ve", "ahb1_lcd",
187 "ahb1_csi", "ahb1_be", "ahb1_fe",
188 "ahb1_gpu", "ahb1_spinlock",
189 "ahb1_drc";
190 };
191
192 apb1_gates: clk@01c20068 {
193 #clock-cells = <1>;
194 compatible = "allwinner,sun8i-a23-apb1-gates-clk";
195 reg = <0x01c20068 0x4>;
196 clocks = <&apb1>;
197 clock-output-names = "apb1_codec", "apb1_pio",
198 "apb1_daudio0", "apb1_daudio1";
199 };
200
74c947ab 201 apb2: clk@01c20058 {
8e984240 202 #clock-cells = <0>;
74c947ab 203 compatible = "allwinner,sun4i-a10-apb1-clk";
8e984240 204 reg = <0x01c20058 0x4>;
ff8bbf78 205 clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>;
8e984240
CYT
206 clock-output-names = "apb2";
207 };
208
209 apb2_gates: clk@01c2006c {
210 #clock-cells = <1>;
211 compatible = "allwinner,sun8i-a23-apb2-gates-clk";
212 reg = <0x01c2006c 0x4>;
213 clocks = <&apb2>;
214 clock-output-names = "apb2_i2c0", "apb2_i2c1",
215 "apb2_i2c2", "apb2_uart0",
216 "apb2_uart1", "apb2_uart2",
217 "apb2_uart3", "apb2_uart4";
218 };
4b7ecb38
CYT
219
220 mmc0_clk: clk@01c20088 {
d8c3a392
MR
221 #clock-cells = <1>;
222 compatible = "allwinner,sun4i-a10-mmc-clk";
4b7ecb38 223 reg = <0x01c20088 0x4>;
ff8bbf78 224 clocks = <&osc24M>, <&pll6 0>;
d8c3a392
MR
225 clock-output-names = "mmc0",
226 "mmc0_output",
227 "mmc0_sample";
4b7ecb38
CYT
228 };
229
230 mmc1_clk: clk@01c2008c {
d8c3a392
MR
231 #clock-cells = <1>;
232 compatible = "allwinner,sun4i-a10-mmc-clk";
4b7ecb38 233 reg = <0x01c2008c 0x4>;
ff8bbf78 234 clocks = <&osc24M>, <&pll6 0>;
d8c3a392
MR
235 clock-output-names = "mmc1",
236 "mmc1_output",
237 "mmc1_sample";
4b7ecb38
CYT
238 };
239
240 mmc2_clk: clk@01c20090 {
d8c3a392
MR
241 #clock-cells = <1>;
242 compatible = "allwinner,sun4i-a10-mmc-clk";
4b7ecb38 243 reg = <0x01c20090 0x4>;
ff8bbf78 244 clocks = <&osc24M>, <&pll6 0>;
d8c3a392
MR
245 clock-output-names = "mmc2",
246 "mmc2_output",
247 "mmc2_sample";
4b7ecb38 248 };
ff8bbf78
CYT
249
250 mbus_clk: clk@01c2015c {
251 #clock-cells = <0>;
252 compatible = "allwinner,sun8i-a23-mbus-clk";
253 reg = <0x01c2015c 0x4>;
254 clocks = <&osc24M>, <&pll6 1>, <&pll5>;
255 clock-output-names = "mbus";
4b7ecb38 256 };
fd6c10fb
CYT
257 };
258
259 soc@01c00000 {
260 compatible = "simple-bus";
261 #address-cells = <1>;
262 #size-cells = <1>;
263 ranges;
264
d07fe967
CYT
265 dma: dma-controller@01c02000 {
266 compatible = "allwinner,sun8i-a23-dma";
267 reg = <0x01c02000 0x1000>;
19882b84 268 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
d07fe967
CYT
269 clocks = <&ahb1_gates 6>;
270 resets = <&ahb1_rst 6>;
271 #dma-cells = <1>;
272 };
273
eacda1f1
CYT
274 mmc0: mmc@01c0f000 {
275 compatible = "allwinner,sun5i-a13-mmc";
276 reg = <0x01c0f000 0x1000>;
d8c3a392
MR
277 clocks = <&ahb1_gates 8>,
278 <&mmc0_clk 0>,
279 <&mmc0_clk 1>,
280 <&mmc0_clk 2>;
281 clock-names = "ahb",
282 "mmc",
283 "output",
284 "sample";
eacda1f1
CYT
285 resets = <&ahb1_rst 8>;
286 reset-names = "ahb";
19882b84 287 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
eacda1f1
CYT
288 status = "disabled";
289 };
290
291 mmc1: mmc@01c10000 {
292 compatible = "allwinner,sun5i-a13-mmc";
293 reg = <0x01c10000 0x1000>;
d8c3a392
MR
294 clocks = <&ahb1_gates 9>,
295 <&mmc1_clk 0>,
296 <&mmc1_clk 1>,
297 <&mmc1_clk 2>;
298 clock-names = "ahb",
299 "mmc",
300 "output",
301 "sample";
eacda1f1
CYT
302 resets = <&ahb1_rst 9>;
303 reset-names = "ahb";
19882b84 304 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
eacda1f1
CYT
305 status = "disabled";
306 };
307
308 mmc2: mmc@01c11000 {
309 compatible = "allwinner,sun5i-a13-mmc";
310 reg = <0x01c11000 0x1000>;
d8c3a392
MR
311 clocks = <&ahb1_gates 10>,
312 <&mmc2_clk 0>,
313 <&mmc2_clk 1>,
314 <&mmc2_clk 2>;
315 clock-names = "ahb",
316 "mmc",
317 "output",
318 "sample";
eacda1f1
CYT
319 resets = <&ahb1_rst 10>;
320 reset-names = "ahb";
19882b84 321 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
eacda1f1
CYT
322 status = "disabled";
323 };
324
6b2b16f5
CYT
325 pio: pinctrl@01c20800 {
326 compatible = "allwinner,sun8i-a23-pinctrl";
327 reg = <0x01c20800 0x400>;
19882b84
MR
328 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
6b2b16f5
CYT
331 clocks = <&apb1_gates 5>;
332 gpio-controller;
333 interrupt-controller;
334 #address-cells = <1>;
335 #size-cells = <0>;
336 #gpio-cells = <3>;
c4021571
CYT
337
338 uart0_pins_a: uart0@0 {
339 allwinner,pins = "PF2", "PF4";
340 allwinner,function = "uart0";
092a0c3b
MR
341 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
342 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
c4021571 343 };
cdb6fd67
CYT
344
345 mmc0_pins_a: mmc0@0 {
346 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
347 allwinner,function = "mmc0";
092a0c3b
MR
348 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
349 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
cdb6fd67
CYT
350 };
351
352 mmc1_pins_a: mmc1@0 {
353 allwinner,pins = "PG0","PG1","PG2","PG3","PG4","PG5";
354 allwinner,function = "mmc1";
092a0c3b
MR
355 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
356 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
cdb6fd67 357 };
1890f518
CYT
358
359 i2c0_pins_a: i2c0@0 {
360 allwinner,pins = "PH2", "PH3";
361 allwinner,function = "i2c0";
092a0c3b
MR
362 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
363 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1890f518
CYT
364 };
365
366 i2c1_pins_a: i2c1@0 {
367 allwinner,pins = "PH4", "PH5";
368 allwinner,function = "i2c1";
092a0c3b
MR
369 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
370 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1890f518
CYT
371 };
372
373 i2c2_pins_a: i2c2@0 {
374 allwinner,pins = "PE12", "PE13";
375 allwinner,function = "i2c2";
092a0c3b
MR
376 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
377 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1890f518 378 };
6b2b16f5
CYT
379 };
380
c571111a
CYT
381 ahb1_rst: reset@01c202c0 {
382 #reset-cells = <1>;
383 compatible = "allwinner,sun6i-a31-clock-reset";
384 reg = <0x01c202c0 0xc>;
385 };
386
387 apb1_rst: reset@01c202d0 {
388 #reset-cells = <1>;
389 compatible = "allwinner,sun6i-a31-clock-reset";
390 reg = <0x01c202d0 0x4>;
391 };
392
393 apb2_rst: reset@01c202d8 {
394 #reset-cells = <1>;
395 compatible = "allwinner,sun6i-a31-clock-reset";
396 reg = <0x01c202d8 0x4>;
397 };
398
fd6c10fb
CYT
399 timer@01c20c00 {
400 compatible = "allwinner,sun4i-a10-timer";
401 reg = <0x01c20c00 0xa0>;
19882b84
MR
402 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
403 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
404 clocks = <&osc24M>;
405 };
406
407 wdt0: watchdog@01c20ca0 {
408 compatible = "allwinner,sun6i-a31-wdt";
409 reg = <0x01c20ca0 0x20>;
19882b84 410 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
411 };
412
f0a05a0c
HG
413 lradc: lradc@01c22800 {
414 compatible = "allwinner,sun4i-a10-lradc-keys";
415 reg = <0x01c22800 0x100>;
416 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
417 status = "disabled";
fd6c10fb
CYT
418 };
419
420 uart0: serial@01c28000 {
421 compatible = "snps,dw-apb-uart";
422 reg = <0x01c28000 0x400>;
19882b84 423 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
424 reg-shift = <2>;
425 reg-io-width = <4>;
8e984240 426 clocks = <&apb2_gates 16>;
c571111a 427 resets = <&apb2_rst 16>;
d07fe967
CYT
428 dmas = <&dma 6>, <&dma 6>;
429 dma-names = "rx", "tx";
fd6c10fb
CYT
430 status = "disabled";
431 };
432
433 uart1: serial@01c28400 {
434 compatible = "snps,dw-apb-uart";
435 reg = <0x01c28400 0x400>;
19882b84 436 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
437 reg-shift = <2>;
438 reg-io-width = <4>;
8e984240 439 clocks = <&apb2_gates 17>;
c571111a 440 resets = <&apb2_rst 17>;
d07fe967
CYT
441 dmas = <&dma 7>, <&dma 7>;
442 dma-names = "rx", "tx";
fd6c10fb
CYT
443 status = "disabled";
444 };
445
446 uart2: serial@01c28800 {
447 compatible = "snps,dw-apb-uart";
448 reg = <0x01c28800 0x400>;
19882b84 449 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
450 reg-shift = <2>;
451 reg-io-width = <4>;
8e984240 452 clocks = <&apb2_gates 18>;
c571111a 453 resets = <&apb2_rst 18>;
d07fe967
CYT
454 dmas = <&dma 8>, <&dma 8>;
455 dma-names = "rx", "tx";
fd6c10fb
CYT
456 status = "disabled";
457 };
458
459 uart3: serial@01c28c00 {
460 compatible = "snps,dw-apb-uart";
461 reg = <0x01c28c00 0x400>;
19882b84 462 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
463 reg-shift = <2>;
464 reg-io-width = <4>;
8e984240 465 clocks = <&apb2_gates 19>;
c571111a 466 resets = <&apb2_rst 19>;
d07fe967
CYT
467 dmas = <&dma 9>, <&dma 9>;
468 dma-names = "rx", "tx";
fd6c10fb
CYT
469 status = "disabled";
470 };
471
472 uart4: serial@01c29000 {
473 compatible = "snps,dw-apb-uart";
474 reg = <0x01c29000 0x400>;
19882b84 475 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
476 reg-shift = <2>;
477 reg-io-width = <4>;
8e984240 478 clocks = <&apb2_gates 20>;
c571111a 479 resets = <&apb2_rst 20>;
d07fe967
CYT
480 dmas = <&dma 10>, <&dma 10>;
481 dma-names = "rx", "tx";
fd6c10fb
CYT
482 status = "disabled";
483 };
484
0a97ea3b
CYT
485 i2c0: i2c@01c2ac00 {
486 compatible = "allwinner,sun6i-a31-i2c";
487 reg = <0x01c2ac00 0x400>;
19882b84 488 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
0a97ea3b
CYT
489 clocks = <&apb2_gates 0>;
490 resets = <&apb2_rst 0>;
491 status = "disabled";
492 #address-cells = <1>;
493 #size-cells = <0>;
494 };
495
496 i2c1: i2c@01c2b000 {
497 compatible = "allwinner,sun6i-a31-i2c";
498 reg = <0x01c2b000 0x400>;
19882b84 499 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
0a97ea3b
CYT
500 clocks = <&apb2_gates 1>;
501 resets = <&apb2_rst 1>;
502 status = "disabled";
503 #address-cells = <1>;
504 #size-cells = <0>;
505 };
506
507 i2c2: i2c@01c2b400 {
508 compatible = "allwinner,sun6i-a31-i2c";
509 reg = <0x01c2b400 0x400>;
19882b84 510 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
0a97ea3b
CYT
511 clocks = <&apb2_gates 2>;
512 resets = <&apb2_rst 2>;
513 status = "disabled";
514 #address-cells = <1>;
515 #size-cells = <0>;
516 };
517
fd6c10fb
CYT
518 gic: interrupt-controller@01c81000 {
519 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
520 reg = <0x01c81000 0x1000>,
521 <0x01c82000 0x1000>,
522 <0x01c84000 0x2000>,
523 <0x01c86000 0x2000>;
524 interrupt-controller;
525 #interrupt-cells = <3>;
19882b84 526 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
fd6c10fb
CYT
527 };
528
3b1213f5
CYT
529 rtc: rtc@01f00000 {
530 compatible = "allwinner,sun6i-a31-rtc";
531 reg = <0x01f00000 0x54>;
19882b84
MR
532 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
533 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
3b1213f5
CYT
534 };
535
df02dd82
CYT
536 prcm@01f01400 {
537 compatible = "allwinner,sun8i-a23-prcm";
538 reg = <0x01f01400 0x200>;
539
540 ar100: ar100_clk {
541 compatible = "fixed-factor-clock";
542 #clock-cells = <0>;
543 clock-div = <1>;
544 clock-mult = <1>;
545 clocks = <&osc24M>;
546 clock-output-names = "ar100";
547 };
548
549 ahb0: ahb0_clk {
550 compatible = "fixed-factor-clock";
551 #clock-cells = <0>;
552 clock-div = <1>;
553 clock-mult = <1>;
554 clocks = <&ar100>;
555 clock-output-names = "ahb0";
556 };
557
558 apb0: apb0_clk {
559 compatible = "allwinner,sun8i-a23-apb0-clk";
560 #clock-cells = <0>;
561 clocks = <&ahb0>;
562 clock-output-names = "apb0";
563 };
564
565 apb0_gates: apb0_gates_clk {
566 compatible = "allwinner,sun8i-a23-apb0-gates-clk";
567 #clock-cells = <1>;
568 clocks = <&apb0>;
569 clock-output-names = "apb0_pio", "apb0_timer",
570 "apb0_rsb", "apb0_uart",
571 "apb0_i2c";
572 };
573
574 apb0_rst: apb0_rst {
575 compatible = "allwinner,sun6i-a31-clock-reset";
576 #reset-cells = <1>;
577 };
578 };
579
fd6c10fb
CYT
580 r_uart: serial@01f02800 {
581 compatible = "snps,dw-apb-uart";
582 reg = <0x01f02800 0x400>;
19882b84 583 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
fd6c10fb
CYT
584 reg-shift = <2>;
585 reg-io-width = <4>;
df02dd82
CYT
586 clocks = <&apb0_gates 4>;
587 resets = <&apb0_rst 4>;
fd6c10fb
CYT
588 status = "disabled";
589 };
b6a87112
CYT
590
591 r_pio: pinctrl@01f02c00 {
592 compatible = "allwinner,sun8i-a23-r-pinctrl";
593 reg = <0x01f02c00 0x400>;
19882b84 594 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
b6a87112
CYT
595 clocks = <&apb0_gates 0>;
596 resets = <&apb0_rst 0>;
597 gpio-controller;
598 interrupt-controller;
599 #address-cells = <1>;
600 #size-cells = <0>;
601 #gpio-cells = <3>;
81309791
CYT
602
603 r_uart_pins_a: r_uart@0 {
604 allwinner,pins = "PL2", "PL3";
605 allwinner,function = "s_uart";
092a0c3b
MR
606 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
607 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
81309791 608 };
b6a87112 609 };
fd6c10fb
CYT
610 };
611};
This page took 0.096722 seconds and 5 git commands to generate.