2 * Hisilicon Ltd. Hi3620 SoC
4 * Copyright (C) 2012-2013 Hisilicon Ltd.
5 * Copyright (C) 2012-2013 Linaro Ltd.
7 * Author: Haojian Zhuang <haojian.zhuang@linaro.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * publishhed by the Free Software Foundation.
14 #include <dt-bindings/clock/hi3620-clock.h>
29 compatible = "fixed-clock";
31 clock-frequency = <26000000>;
32 clock-output-names = "apb_pclk";
38 enable-method = "hisilicon,hi3620-smp";
42 compatible = "arm,cortex-a9";
44 next-level-cache = <&L2>;
48 compatible = "arm,cortex-a9";
51 next-level-cache = <&L2>;
55 compatible = "arm,cortex-a9";
58 next-level-cache = <&L2>;
62 compatible = "arm,cortex-a9";
65 next-level-cache = <&L2>;
73 compatible = "simple-bus";
74 interrupt-parent = <&gic>;
75 ranges = <0 0xfc000000 0x2000000>;
78 compatible = "arm,pl310-cache";
79 reg = <0x100000 0x100000>;
80 interrupts = <0 15 4>;
85 gic: interrupt-controller@1000 {
86 compatible = "arm,cortex-a9-gic";
87 #interrupt-cells = <3>;
90 /* gic dist base, gic cpu base */
91 reg = <0x1000 0x1000>, <0x100 0x100>;
94 sysctrl: system-controller@802000 {
95 compatible = "hisilicon,sysctrl";
98 ranges = <0 0x802000 0x1000>;
99 reg = <0x802000 0x1000>;
101 smp-offset = <0x31c>;
102 resume-offset = <0x308>;
103 reboot-offset = <0x4>;
106 compatible = "hisilicon,hi3620-clock";
112 dual_timer0: dual_timer@800000 {
113 compatible = "arm,sp804", "arm,primecell";
114 reg = <0x800000 0x1000>;
115 /* timer00 & timer01 */
116 interrupts = <0 0 4>, <0 1 4>;
117 clocks = <&clock HI3620_TIMER0_MUX>, <&clock HI3620_TIMER1_MUX>;
118 clock-names = "apb_pclk";
122 dual_timer1: dual_timer@801000 {
123 compatible = "arm,sp804", "arm,primecell";
124 reg = <0x801000 0x1000>;
125 /* timer10 & timer11 */
126 interrupts = <0 2 4>, <0 3 4>;
127 clocks = <&clock HI3620_TIMER2_MUX>, <&clock HI3620_TIMER3_MUX>;
128 clock-names = "apb_pclk";
132 dual_timer2: dual_timer@a01000 {
133 compatible = "arm,sp804", "arm,primecell";
134 reg = <0xa01000 0x1000>;
135 /* timer20 & timer21 */
136 interrupts = <0 4 4>, <0 5 4>;
137 clocks = <&clock HI3620_TIMER4_MUX>, <&clock HI3620_TIMER5_MUX>;
138 clock-names = "apb_pclk";
142 dual_timer3: dual_timer@a02000 {
143 compatible = "arm,sp804", "arm,primecell";
144 reg = <0xa02000 0x1000>;
145 /* timer30 & timer31 */
146 interrupts = <0 6 4>, <0 7 4>;
147 clocks = <&clock HI3620_TIMER6_MUX>, <&clock HI3620_TIMER7_MUX>;
148 clock-names = "apb_pclk";
152 dual_timer4: dual_timer@a03000 {
153 compatible = "arm,sp804", "arm,primecell";
154 reg = <0xa03000 0x1000>;
155 /* timer40 & timer41 */
156 interrupts = <0 96 4>, <0 97 4>;
157 clocks = <&clock HI3620_TIMER8_MUX>, <&clock HI3620_TIMER9_MUX>;
158 clock-names = "apb_pclk";
163 compatible = "arm,cortex-a9-twd-timer";
165 interrupts = <1 13 0xf01>;
169 compatible = "arm,pl011", "arm,primecell";
170 reg = <0xb00000 0x1000>;
171 interrupts = <0 20 4>;
172 clocks = <&clock HI3620_UARTCLK0>;
173 clock-names = "apb_pclk";
178 compatible = "arm,pl011", "arm,primecell";
179 reg = <0xb01000 0x1000>;
180 interrupts = <0 21 4>;
181 clocks = <&clock HI3620_UARTCLK1>;
182 clock-names = "apb_pclk";
187 compatible = "arm,pl011", "arm,primecell";
188 reg = <0xb02000 0x1000>;
189 interrupts = <0 22 4>;
190 clocks = <&clock HI3620_UARTCLK2>;
191 clock-names = "apb_pclk";
196 compatible = "arm,pl011", "arm,primecell";
197 reg = <0xb03000 0x1000>;
198 interrupts = <0 23 4>;
199 clocks = <&clock HI3620_UARTCLK3>;
200 clock-names = "apb_pclk";
205 compatible = "arm,pl011", "arm,primecell";
206 reg = <0xb04000 0x1000>;
207 interrupts = <0 24 4>;
208 clocks = <&clock HI3620_UARTCLK4>;
209 clock-names = "apb_pclk";
214 compatible = "arm,pl061", "arm,primecell";
215 reg = <0x806000 0x1000>;
216 interrupts = <0 64 0x4>;
219 gpio-ranges = < &pmx0 2 0 1 &pmx0 3 0 1 &pmx0 4 0 1
220 &pmx0 5 0 1 &pmx0 6 1 1 &pmx0 7 2 1>;
221 interrupt-controller;
222 #interrupt-cells = <2>;
223 clocks = <&clock HI3620_GPIOCLK0>;
224 clock-names = "apb_pclk";
228 compatible = "arm,pl061", "arm,primecell";
229 reg = <0x807000 0x1000>;
230 interrupts = <0 65 0x4>;
233 gpio-ranges = < &pmx0 0 3 1 &pmx0 1 3 1 &pmx0 2 3 1
234 &pmx0 3 3 1 &pmx0 4 3 1 &pmx0 5 4 1
235 &pmx0 6 5 1 &pmx0 7 6 1>;
236 interrupt-controller;
237 #interrupt-cells = <2>;
238 clocks = <&clock HI3620_GPIOCLK1>;
239 clock-names = "apb_pclk";
243 compatible = "arm,pl061", "arm,primecell";
244 reg = <0x808000 0x1000>;
245 interrupts = <0 66 0x4>;
248 gpio-ranges = < &pmx0 0 7 1 &pmx0 1 8 1 &pmx0 2 9 1
249 &pmx0 3 10 1 &pmx0 4 3 1 &pmx0 5 3 1
250 &pmx0 6 3 1 &pmx0 7 3 1>;
251 interrupt-controller;
252 #interrupt-cells = <2>;
253 clocks = <&clock HI3620_GPIOCLK2>;
254 clock-names = "apb_pclk";
258 compatible = "arm,pl061", "arm,primecell";
259 reg = <0x809000 0x1000>;
260 interrupts = <0 67 0x4>;
263 gpio-ranges = < &pmx0 0 3 1 &pmx0 1 3 1 &pmx0 2 3 1
264 &pmx0 3 3 1 &pmx0 4 11 1 &pmx0 5 11 1
265 &pmx0 6 11 1 &pmx0 7 11 1>;
266 interrupt-controller;
267 #interrupt-cells = <2>;
268 clocks = <&clock HI3620_GPIOCLK3>;
269 clock-names = "apb_pclk";
273 compatible = "arm,pl061", "arm,primecell";
274 reg = <0x80a000 0x1000>;
275 interrupts = <0 68 0x4>;
278 gpio-ranges = < &pmx0 0 11 1 &pmx0 1 11 1 &pmx0 2 11 1
279 &pmx0 3 11 1 &pmx0 4 12 1 &pmx0 5 12 1
280 &pmx0 6 13 1 &pmx0 7 13 1>;
281 interrupt-controller;
282 #interrupt-cells = <2>;
283 clocks = <&clock HI3620_GPIOCLK4>;
284 clock-names = "apb_pclk";
288 compatible = "arm,pl061", "arm,primecell";
289 reg = <0x80b000 0x1000>;
290 interrupts = <0 69 0x4>;
293 gpio-ranges = < &pmx0 0 14 1 &pmx0 1 15 1 &pmx0 2 16 1
294 &pmx0 3 16 1 &pmx0 4 16 1 &pmx0 5 16 1
295 &pmx0 6 16 1 &pmx0 7 16 1>;
296 interrupt-controller;
297 #interrupt-cells = <2>;
298 clocks = <&clock HI3620_GPIOCLK5>;
299 clock-names = "apb_pclk";
303 compatible = "arm,pl061", "arm,primecell";
304 reg = <0x80c000 0x1000>;
305 interrupts = <0 70 0x4>;
308 gpio-ranges = < &pmx0 0 16 1 &pmx0 1 16 1 &pmx0 2 17 1
309 &pmx0 3 17 1 &pmx0 4 18 1 &pmx0 5 18 1
310 &pmx0 6 18 1 &pmx0 7 19 1>;
311 interrupt-controller;
312 #interrupt-cells = <2>;
313 clocks = <&clock HI3620_GPIOCLK6>;
314 clock-names = "apb_pclk";
318 compatible = "arm,pl061", "arm,primecell";
319 reg = <0x80d000 0x1000>;
320 interrupts = <0 71 0x4>;
323 gpio-ranges = < &pmx0 0 19 1 &pmx0 1 20 1 &pmx0 2 21 1
324 &pmx0 3 22 1 &pmx0 4 23 1 &pmx0 5 24 1
325 &pmx0 6 25 1 &pmx0 7 26 1>;
326 interrupt-controller;
327 #interrupt-cells = <2>;
328 clocks = <&clock HI3620_GPIOCLK7>;
329 clock-names = "apb_pclk";
333 compatible = "arm,pl061", "arm,primecell";
334 reg = <0x80e000 0x1000>;
335 interrupts = <0 72 0x4>;
338 gpio-ranges = < &pmx0 0 27 1 &pmx0 1 28 1 &pmx0 2 29 1
339 &pmx0 3 30 1 &pmx0 4 31 1 &pmx0 5 32 1
340 &pmx0 6 33 1 &pmx0 7 34 1>;
341 interrupt-controller;
342 #interrupt-cells = <2>;
343 clocks = <&clock HI3620_GPIOCLK8>;
344 clock-names = "apb_pclk";
348 compatible = "arm,pl061", "arm,primecell";
349 reg = <0x80f000 0x1000>;
350 interrupts = <0 73 0x4>;
353 gpio-ranges = < &pmx0 0 35 1 &pmx0 1 36 1 &pmx0 2 37 1
354 &pmx0 3 38 1 &pmx0 4 39 1 &pmx0 5 40 1
356 interrupt-controller;
357 #interrupt-cells = <2>;
358 clocks = <&clock HI3620_GPIOCLK9>;
359 clock-names = "apb_pclk";
362 gpio10: gpio@810000 {
363 compatible = "arm,pl061", "arm,primecell";
364 reg = <0x810000 0x1000>;
365 interrupts = <0 74 0x4>;
368 gpio-ranges = < &pmx0 2 43 1 &pmx0 3 44 1 &pmx0 4 45 1
369 &pmx0 5 45 1 &pmx0 6 46 1 &pmx0 7 46 1>;
370 interrupt-controller;
371 #interrupt-cells = <2>;
372 clocks = <&clock HI3620_GPIOCLK10>;
373 clock-names = "apb_pclk";
376 gpio11: gpio@811000 {
377 compatible = "arm,pl061", "arm,primecell";
378 reg = <0x811000 0x1000>;
379 interrupts = <0 75 0x4>;
382 gpio-ranges = < &pmx0 0 47 1 &pmx0 1 47 1 &pmx0 2 47 1
383 &pmx0 3 47 1 &pmx0 4 47 1 &pmx0 5 48 1
384 &pmx0 6 49 1 &pmx0 7 49 1>;
385 interrupt-controller;
386 #interrupt-cells = <2>;
387 clocks = <&clock HI3620_GPIOCLK11>;
388 clock-names = "apb_pclk";
391 gpio12: gpio@812000 {
392 compatible = "arm,pl061", "arm,primecell";
393 reg = <0x812000 0x1000>;
394 interrupts = <0 76 0x4>;
397 gpio-ranges = < &pmx0 0 49 1 &pmx0 1 50 1 &pmx0 2 49 1
398 &pmx0 3 49 1 &pmx0 4 51 1 &pmx0 5 51 1
399 &pmx0 6 51 1 &pmx0 7 52 1>;
400 interrupt-controller;
401 #interrupt-cells = <2>;
402 clocks = <&clock HI3620_GPIOCLK12>;
403 clock-names = "apb_pclk";
406 gpio13: gpio@813000 {
407 compatible = "arm,pl061", "arm,primecell";
408 reg = <0x813000 0x1000>;
409 interrupts = <0 77 0x4>;
412 gpio-ranges = < &pmx0 0 51 1 &pmx0 1 51 1 &pmx0 2 53 1
413 &pmx0 3 53 1 &pmx0 4 53 1 &pmx0 5 54 1
414 &pmx0 6 55 1 &pmx0 7 56 1>;
415 interrupt-controller;
416 #interrupt-cells = <2>;
417 clocks = <&clock HI3620_GPIOCLK13>;
418 clock-names = "apb_pclk";
421 gpio14: gpio@814000 {
422 compatible = "arm,pl061", "arm,primecell";
423 reg = <0x814000 0x1000>;
424 interrupts = <0 78 0x4>;
427 gpio-ranges = < &pmx0 0 57 1 &pmx0 1 97 1 &pmx0 2 97 1
428 &pmx0 3 58 1 &pmx0 4 59 1 &pmx0 5 60 1
429 &pmx0 6 60 1 &pmx0 7 61 1>;
430 interrupt-controller;
431 #interrupt-cells = <2>;
432 clocks = <&clock HI3620_GPIOCLK14>;
433 clock-names = "apb_pclk";
436 gpio15: gpio@815000 {
437 compatible = "arm,pl061", "arm,primecell";
438 reg = <0x815000 0x1000>;
439 interrupts = <0 79 0x4>;
442 gpio-ranges = < &pmx0 0 61 1 &pmx0 1 62 1 &pmx0 2 62 1
443 &pmx0 3 63 1 &pmx0 4 63 1 &pmx0 5 64 1
444 &pmx0 6 64 1 &pmx0 7 65 1>;
445 interrupt-controller;
446 #interrupt-cells = <2>;
447 clocks = <&clock HI3620_GPIOCLK15>;
448 clock-names = "apb_pclk";
451 gpio16: gpio@816000 {
452 compatible = "arm,pl061", "arm,primecell";
453 reg = <0x816000 0x1000>;
454 interrupts = <0 80 0x4>;
457 gpio-ranges = < &pmx0 0 66 1 &pmx0 1 67 1 &pmx0 2 68 1
458 &pmx0 3 69 1 &pmx0 4 70 1 &pmx0 5 71 1
459 &pmx0 6 72 1 &pmx0 7 73 1>;
460 interrupt-controller;
461 #interrupt-cells = <2>;
462 clocks = <&clock HI3620_GPIOCLK16>;
463 clock-names = "apb_pclk";
466 gpio17: gpio@817000 {
467 compatible = "arm,pl061", "arm,primecell";
468 reg = <0x817000 0x1000>;
469 interrupts = <0 81 0x4>;
472 gpio-ranges = < &pmx0 0 74 1 &pmx0 1 75 1 &pmx0 2 76 1
473 &pmx0 3 77 1 &pmx0 4 78 1 &pmx0 5 79 1
474 &pmx0 6 80 1 &pmx0 7 81 1>;
475 interrupt-controller;
476 #interrupt-cells = <2>;
477 clocks = <&clock HI3620_GPIOCLK17>;
478 clock-names = "apb_pclk";
481 gpio18: gpio@818000 {
482 compatible = "arm,pl061", "arm,primecell";
483 reg = <0x818000 0x1000>;
484 interrupts = <0 82 0x4>;
487 gpio-ranges = < &pmx0 0 82 1 &pmx0 1 83 1 &pmx0 2 83 1
488 &pmx0 3 84 1 &pmx0 4 84 1 &pmx0 5 85 1
489 &pmx0 6 86 1 &pmx0 7 87 1>;
490 interrupt-controller;
491 #interrupt-cells = <2>;
492 clocks = <&clock HI3620_GPIOCLK18>;
493 clock-names = "apb_pclk";
496 gpio19: gpio@819000 {
497 compatible = "arm,pl061", "arm,primecell";
498 reg = <0x819000 0x1000>;
499 interrupts = <0 83 0x4>;
502 gpio-ranges = < &pmx0 0 87 1 &pmx0 1 87 1 &pmx0 2 88 1
504 interrupt-controller;
505 #interrupt-cells = <2>;
506 clocks = <&clock HI3620_GPIOCLK19>;
507 clock-names = "apb_pclk";
510 gpio20: gpio@81a000 {
511 compatible = "arm,pl061", "arm,primecell";
512 reg = <0x81a000 0x1000>;
513 interrupts = <0 84 0x4>;
516 gpio-ranges = < &pmx0 0 89 1 &pmx0 1 89 1 &pmx0 2 90 1
517 &pmx0 3 90 1 &pmx0 4 91 1 &pmx0 5 92 1>;
518 interrupt-controller;
519 #interrupt-cells = <2>;
520 clocks = <&clock HI3620_GPIOCLK20>;
521 clock-names = "apb_pclk";
524 gpio21: gpio@81b000 {
525 compatible = "arm,pl061", "arm,primecell";
526 reg = <0x81b000 0x1000>;
527 interrupts = <0 85 0x4>;
530 gpio-ranges = < &pmx0 3 94 1 &pmx0 7 96 1>;
531 interrupt-controller;
532 #interrupt-cells = <2>;
533 clocks = <&clock HI3620_GPIOCLK21>;
534 clock-names = "apb_pclk";
537 pmx0: pinmux@803000 {
538 compatible = "pinctrl-single";
539 reg = <0x803000 0x188>;
540 #address-cells = <1>;
542 #pinctrl-cells = <1>;
543 #gpio-range-cells = <3>;
546 pinctrl-single,register-width = <32>;
547 pinctrl-single,function-mask = <7>;
548 /* pin base, nr pins & gpio function */
549 pinctrl-single,gpio-range = <&range 0 3 0 &range 3 9 1
550 &range 12 1 0 &range 13 29 1
551 &range 43 1 0 &range 44 49 1
552 &range 94 1 1 &range 96 2 1>;
555 #pinctrl-single,gpio-range-cells = <3>;
559 pmx1: pinmux@803800 {
560 compatible = "pinconf-single";
561 reg = <0x803800 0x2dc>;
562 #address-cells = <1>;
564 #pinctrl-cells = <1>;
567 pinctrl-single,register-width = <32>;