blob: 1e5129b19280bf8195a9ac24e506ec096493b084 [file] [log] [blame]
Bintian Wang86e8f522015-02-07 14:57:52 +08001/*
2 * dts file for Hisilicon Hi6220 SoC
3 *
4 * Copyright (C) 2015, Hisilicon Ltd.
5 */
6
7#include <dt-bindings/interrupt-controller/arm-gic.h>
Xinliang Liu339d00c2016-06-20 11:50:05 +08008#include <dt-bindings/reset/hisi,hi6220-resets.h>
Tyler Bakera362ec82015-09-30 18:19:48 -07009#include <dt-bindings/clock/hi6220-clock.h>
Zhong Kaihua379e9bf2016-04-13 07:55:41 +080010#include <dt-bindings/pinctrl/hisi.h>
Leo Yancd0b69e2016-03-29 19:27:15 +080011#include <dt-bindings/thermal/thermal.h>
Bintian Wang86e8f522015-02-07 14:57:52 +080012
13/ {
14 compatible = "hisilicon,hi6220";
15 interrupt-parent = <&gic>;
16 #address-cells = <2>;
17 #size-cells = <2>;
18
19 psci {
20 compatible = "arm,psci-0.2";
21 method = "smc";
22 };
23
24 cpus {
25 #address-cells = <2>;
26 #size-cells = <0>;
27
28 cpu-map {
29 cluster0 {
30 core0 {
31 cpu = <&cpu0>;
32 };
33 core1 {
34 cpu = <&cpu1>;
35 };
36 core2 {
37 cpu = <&cpu2>;
38 };
39 core3 {
40 cpu = <&cpu3>;
41 };
42 };
43 cluster1 {
44 core0 {
45 cpu = <&cpu4>;
46 };
47 core1 {
48 cpu = <&cpu5>;
49 };
50 core2 {
51 cpu = <&cpu6>;
52 };
53 core3 {
54 cpu = <&cpu7>;
55 };
56 };
57 };
58
Leo Yan58fa29b2016-04-13 07:55:39 +080059 idle-states {
60 entry-method = "psci";
61
62 CPU_SLEEP: cpu-sleep {
63 compatible = "arm,idle-state";
64 local-timer-stop;
65 arm,psci-suspend-param = <0x0010000>;
66 entry-latency-us = <700>;
67 exit-latency-us = <250>;
68 min-residency-us = <1000>;
69 };
70
71 CLUSTER_SLEEP: cluster-sleep {
72 compatible = "arm,idle-state";
73 local-timer-stop;
74 arm,psci-suspend-param = <0x1010000>;
75 entry-latency-us = <1000>;
76 exit-latency-us = <700>;
77 min-residency-us = <2700>;
78 wakeup-latency-us = <1500>;
79 };
80 };
81
Bintian Wang86e8f522015-02-07 14:57:52 +080082 cpu0: cpu@0 {
83 compatible = "arm,cortex-a53", "arm,armv8";
84 device_type = "cpu";
85 reg = <0x0 0x0>;
86 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +080087 next-level-cache = <&CLUSTER0_L2>;
Leo Yan99860542016-04-13 07:55:47 +080088 clocks = <&stub_clock 0>;
89 operating-points-v2 = <&cpu_opp_table>;
90 cooling-min-level = <4>;
91 cooling-max-level = <0>;
92 #cooling-cells = <2>; /* min followed by max */
Leo Yan58fa29b2016-04-13 07:55:39 +080093 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Leo Yancd0b69e2016-03-29 19:27:15 +080094 dynamic-power-coefficient = <311>;
Bintian Wang86e8f522015-02-07 14:57:52 +080095 };
96
97 cpu1: cpu@1 {
98 compatible = "arm,cortex-a53", "arm,armv8";
99 device_type = "cpu";
100 reg = <0x0 0x1>;
101 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800102 next-level-cache = <&CLUSTER0_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800103 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800104 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800105 };
106
107 cpu2: cpu@2 {
108 compatible = "arm,cortex-a53", "arm,armv8";
109 device_type = "cpu";
110 reg = <0x0 0x2>;
111 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800112 next-level-cache = <&CLUSTER0_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800113 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800114 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800115 };
116
117 cpu3: cpu@3 {
118 compatible = "arm,cortex-a53", "arm,armv8";
119 device_type = "cpu";
120 reg = <0x0 0x3>;
121 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800122 next-level-cache = <&CLUSTER0_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800123 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800124 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800125 };
126
127 cpu4: cpu@100 {
128 compatible = "arm,cortex-a53", "arm,armv8";
129 device_type = "cpu";
130 reg = <0x0 0x100>;
131 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800132 next-level-cache = <&CLUSTER1_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800133 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800134 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800135 };
136
137 cpu5: cpu@101 {
138 compatible = "arm,cortex-a53", "arm,armv8";
139 device_type = "cpu";
140 reg = <0x0 0x101>;
141 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800142 next-level-cache = <&CLUSTER1_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800143 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800144 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800145 };
146
147 cpu6: cpu@102 {
148 compatible = "arm,cortex-a53", "arm,armv8";
149 device_type = "cpu";
150 reg = <0x0 0x102>;
151 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800152 next-level-cache = <&CLUSTER1_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800153 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800154 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800155 };
156
157 cpu7: cpu@103 {
158 compatible = "arm,cortex-a53", "arm,armv8";
159 device_type = "cpu";
160 reg = <0x0 0x103>;
161 enable-method = "psci";
Leo Yan64851602016-02-26 13:28:34 +0800162 next-level-cache = <&CLUSTER1_L2>;
Leo Yan99860542016-04-13 07:55:47 +0800163 operating-points-v2 = <&cpu_opp_table>;
Leo Yan58fa29b2016-04-13 07:55:39 +0800164 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800165 };
Leo Yan64851602016-02-26 13:28:34 +0800166
167 CLUSTER0_L2: l2-cache0 {
168 compatible = "cache";
169 };
170
171 CLUSTER1_L2: l2-cache1 {
172 compatible = "cache";
173 };
Bintian Wang86e8f522015-02-07 14:57:52 +0800174 };
175
Leo Yan99860542016-04-13 07:55:47 +0800176 cpu_opp_table: cpu_opp_table {
177 compatible = "operating-points-v2";
178 opp-shared;
179
180 opp00 {
181 opp-hz = /bits/ 64 <208000000>;
182 opp-microvolt = <1040000>;
183 clock-latency-ns = <500000>;
184 };
185 opp01 {
186 opp-hz = /bits/ 64 <432000000>;
187 opp-microvolt = <1040000>;
188 clock-latency-ns = <500000>;
189 };
190 opp02 {
191 opp-hz = /bits/ 64 <729000000>;
192 opp-microvolt = <1090000>;
193 clock-latency-ns = <500000>;
194 };
195 opp03 {
196 opp-hz = /bits/ 64 <960000000>;
197 opp-microvolt = <1180000>;
198 clock-latency-ns = <500000>;
199 };
200 opp04 {
201 opp-hz = /bits/ 64 <1200000000>;
202 opp-microvolt = <1330000>;
203 clock-latency-ns = <500000>;
204 };
205 };
206
Bintian Wang86e8f522015-02-07 14:57:52 +0800207 gic: interrupt-controller@f6801000 {
208 compatible = "arm,gic-400";
209 reg = <0x0 0xf6801000 0 0x1000>, /* GICD */
210 <0x0 0xf6802000 0 0x2000>, /* GICC */
211 <0x0 0xf6804000 0 0x2000>, /* GICH */
212 <0x0 0xf6806000 0 0x2000>; /* GICV */
213 #address-cells = <0>;
214 #interrupt-cells = <3>;
215 interrupt-controller;
216 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
217 };
218
219 timer {
220 compatible = "arm,armv8-timer";
221 interrupt-parent = <&gic>;
222 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
223 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
224 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
225 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
226 };
227
228 soc {
229 compatible = "simple-bus";
230 #address-cells = <2>;
231 #size-cells = <2>;
232 ranges;
233
Leo Yan99860542016-04-13 07:55:47 +0800234 sram: sram@fff80000 {
235 compatible = "hisilicon,hi6220-sramctrl", "syscon";
236 reg = <0x0 0xfff80000 0x0 0x12000>;
237 };
238
Bintian Wang86e8f522015-02-07 14:57:52 +0800239 ao_ctrl: ao_ctrl@f7800000 {
240 compatible = "hisilicon,hi6220-aoctrl", "syscon";
241 reg = <0x0 0xf7800000 0x0 0x2000>;
242 #clock-cells = <1>;
243 };
244
245 sys_ctrl: sys_ctrl@f7030000 {
246 compatible = "hisilicon,hi6220-sysctrl", "syscon";
247 reg = <0x0 0xf7030000 0x0 0x2000>;
248 #clock-cells = <1>;
Chen Feng3e14cd42015-11-20 10:10:06 +0800249 #reset-cells = <1>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800250 };
251
252 media_ctrl: media_ctrl@f4410000 {
253 compatible = "hisilicon,hi6220-mediactrl", "syscon";
254 reg = <0x0 0xf4410000 0x0 0x1000>;
255 #clock-cells = <1>;
Xinliang Liu339d00c2016-06-20 11:50:05 +0800256 #reset-cells = <1>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800257 };
258
259 pm_ctrl: pm_ctrl@f7032000 {
260 compatible = "hisilicon,hi6220-pmctrl", "syscon";
261 reg = <0x0 0xf7032000 0x0 0x1000>;
262 #clock-cells = <1>;
263 };
264
Xinliang Liu3814b612016-08-22 15:48:02 -0700265 medianoc_ade: medianoc_ade@f4520000 {
266 compatible = "syscon";
267 reg = <0x0 0xf4520000 0x0 0x4000>;
268 };
269
Leo Yan99860542016-04-13 07:55:47 +0800270 stub_clock: stub_clock {
271 compatible = "hisilicon,hi6220-stub-clk";
272 hisilicon,hi6220-clk-sram = <&sram>;
273 #clock-cells = <1>;
274 mbox-names = "mbox-tx";
275 mboxes = <&mailbox 1 0 11>;
276 };
277
Bintian Wang86e8f522015-02-07 14:57:52 +0800278 uart0: uart@f8015000 { /* console */
279 compatible = "arm,pl011", "arm,primecell";
280 reg = <0x0 0xf8015000 0x0 0x1000>;
281 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
Tyler Bakera362ec82015-09-30 18:19:48 -0700282 clocks = <&ao_ctrl HI6220_UART0_PCLK>,
283 <&ao_ctrl HI6220_UART0_PCLK>;
Bintian Wang86e8f522015-02-07 14:57:52 +0800284 clock-names = "uartclk", "apb_pclk";
285 };
Tyler Bakera362ec82015-09-30 18:19:48 -0700286
287 uart1: uart@f7111000 {
288 compatible = "arm,pl011", "arm,primecell";
289 reg = <0x0 0xf7111000 0x0 0x1000>;
290 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
291 clocks = <&sys_ctrl HI6220_UART1_PCLK>,
292 <&sys_ctrl HI6220_UART1_PCLK>;
293 clock-names = "uartclk", "apb_pclk";
Guodong Xuc2aad9322016-04-13 07:55:48 +0800294 pinctrl-names = "default";
295 pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func1 &uart1_cfg_func2>;
Tyler Bakera362ec82015-09-30 18:19:48 -0700296 status = "disabled";
297 };
298
299 uart2: uart@f7112000 {
300 compatible = "arm,pl011", "arm,primecell";
301 reg = <0x0 0xf7112000 0x0 0x1000>;
302 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
303 clocks = <&sys_ctrl HI6220_UART2_PCLK>,
304 <&sys_ctrl HI6220_UART2_PCLK>;
305 clock-names = "uartclk", "apb_pclk";
Guodong Xuc2aad9322016-04-13 07:55:48 +0800306 pinctrl-names = "default";
307 pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>;
Tyler Bakera362ec82015-09-30 18:19:48 -0700308 status = "disabled";
309 };
310
311 uart3: uart@f7113000 {
312 compatible = "arm,pl011", "arm,primecell";
313 reg = <0x0 0xf7113000 0x0 0x1000>;
314 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
315 clocks = <&sys_ctrl HI6220_UART3_PCLK>,
316 <&sys_ctrl HI6220_UART3_PCLK>;
317 clock-names = "uartclk", "apb_pclk";
Guodong Xuc2aad9322016-04-13 07:55:48 +0800318 pinctrl-names = "default";
319 pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>;
320 status = "disabled";
Tyler Bakera362ec82015-09-30 18:19:48 -0700321 };
322
323 uart4: uart@f7114000 {
324 compatible = "arm,pl011", "arm,primecell";
325 reg = <0x0 0xf7114000 0x0 0x1000>;
326 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
327 clocks = <&sys_ctrl HI6220_UART4_PCLK>,
328 <&sys_ctrl HI6220_UART4_PCLK>;
329 clock-names = "uartclk", "apb_pclk";
Guodong Xuc2aad9322016-04-13 07:55:48 +0800330 pinctrl-names = "default";
331 pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>;
Tyler Bakera362ec82015-09-30 18:19:48 -0700332 status = "disabled";
333 };
Leo Yan9e927032016-04-13 07:55:38 +0800334
335 dual_timer0: timer@f8008000 {
336 compatible = "arm,sp804", "arm,primecell";
337 reg = <0x0 0xf8008000 0x0 0x1000>;
338 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
339 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
340 clocks = <&ao_ctrl HI6220_TIMER0_PCLK>,
341 <&ao_ctrl HI6220_TIMER0_PCLK>,
342 <&ao_ctrl HI6220_TIMER0_PCLK>;
343 clock-names = "timer1", "timer2", "apb_pclk";
344 };
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800345
Zhangfei Gao810bd152016-06-29 17:48:45 -0700346 rtc0: rtc@f8003000 {
347 compatible = "arm,pl031", "arm,primecell";
348 reg = <0x0 0xf8003000 0x0 0x1000>;
349 interrupts = <0 12 4>;
350 clocks = <&ao_ctrl HI6220_RTC0_PCLK>;
351 clock-names = "apb_pclk";
352 };
353
354 rtc1: rtc@f8004000 {
355 compatible = "arm,pl031", "arm,primecell";
356 reg = <0x0 0xf8004000 0x0 0x1000>;
357 interrupts = <0 8 4>;
358 clocks = <&ao_ctrl HI6220_RTC1_PCLK>;
359 clock-names = "apb_pclk";
360 };
361
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800362 pmx0: pinmux@f7010000 {
363 compatible = "pinctrl-single";
364 reg = <0x0 0xf7010000 0x0 0x27c>;
365 #address-cells = <1>;
366 #size-cells = <1>;
Tony Lindgrenbe76fd32016-11-07 08:27:49 -0700367 #pinctrl-cells = <1>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800368 #gpio-range-cells = <3>;
369 pinctrl-single,register-width = <32>;
370 pinctrl-single,function-mask = <7>;
371 pinctrl-single,gpio-range = <
372 &range 80 8 MUX_M0 /* gpio 3: [0..7] */
373 &range 88 8 MUX_M0 /* gpio 4: [0..7] */
374 &range 96 8 MUX_M0 /* gpio 5: [0..7] */
375 &range 104 8 MUX_M0 /* gpio 6: [0..7] */
376 &range 112 8 MUX_M0 /* gpio 7: [0..7] */
377 &range 120 2 MUX_M0 /* gpio 8: [0..1] */
378 &range 2 6 MUX_M1 /* gpio 8: [2..7] */
379 &range 8 8 MUX_M1 /* gpio 9: [0..7] */
380 &range 0 1 MUX_M1 /* gpio 10: [0] */
381 &range 16 7 MUX_M1 /* gpio 10: [1..7] */
382 &range 23 3 MUX_M1 /* gpio 11: [0..2] */
383 &range 28 5 MUX_M1 /* gpio 11: [3..7] */
384 &range 33 3 MUX_M1 /* gpio 12: [0..2] */
385 &range 43 5 MUX_M1 /* gpio 12: [3..7] */
386 &range 48 8 MUX_M1 /* gpio 13: [0..7] */
387 &range 56 8 MUX_M1 /* gpio 14: [0..7] */
388 &range 74 6 MUX_M1 /* gpio 15: [0..5] */
389 &range 122 1 MUX_M1 /* gpio 15: [6] */
390 &range 126 1 MUX_M1 /* gpio 15: [7] */
391 &range 127 8 MUX_M1 /* gpio 16: [0..7] */
392 &range 135 8 MUX_M1 /* gpio 17: [0..7] */
393 &range 143 8 MUX_M1 /* gpio 18: [0..7] */
394 &range 151 8 MUX_M1 /* gpio 19: [0..7] */
395 >;
396 range: gpio-range {
397 #pinctrl-single,gpio-range-cells = <3>;
398 };
399 };
400
401 pmx1: pinmux@f7010800 {
402 compatible = "pinconf-single";
403 reg = <0x0 0xf7010800 0x0 0x28c>;
404 #address-cells = <1>;
405 #size-cells = <1>;
Tony Lindgrenbe76fd32016-11-07 08:27:49 -0700406 #pinctrl-cells = <1>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800407 pinctrl-single,register-width = <32>;
408 };
409
410 pmx2: pinmux@f8001800 {
411 compatible = "pinconf-single";
412 reg = <0x0 0xf8001800 0x0 0x78>;
413 #address-cells = <1>;
414 #size-cells = <1>;
Tony Lindgrenbe76fd32016-11-07 08:27:49 -0700415 #pinctrl-cells = <1>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800416 pinctrl-single,register-width = <32>;
417 };
418
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800419 gpio0: gpio@f8011000 {
420 compatible = "arm,pl061", "arm,primecell";
421 reg = <0x0 0xf8011000 0x0 0x1000>;
422 interrupts = <0 52 0x4>;
423 gpio-controller;
424 #gpio-cells = <2>;
425 interrupt-controller;
426 #interrupt-cells = <2>;
427 clocks = <&ao_ctrl 2>;
428 clock-names = "apb_pclk";
429 };
430
431 gpio1: gpio@f8012000 {
432 compatible = "arm,pl061", "arm,primecell";
433 reg = <0x0 0xf8012000 0x0 0x1000>;
434 interrupts = <0 53 0x4>;
435 gpio-controller;
436 #gpio-cells = <2>;
437 interrupt-controller;
438 #interrupt-cells = <2>;
439 clocks = <&ao_ctrl 2>;
440 clock-names = "apb_pclk";
441 };
442
443 gpio2: gpio@f8013000 {
444 compatible = "arm,pl061", "arm,primecell";
445 reg = <0x0 0xf8013000 0x0 0x1000>;
446 interrupts = <0 54 0x4>;
447 gpio-controller;
448 #gpio-cells = <2>;
449 interrupt-controller;
450 #interrupt-cells = <2>;
451 clocks = <&ao_ctrl 2>;
452 clock-names = "apb_pclk";
453 };
454
455 gpio3: gpio@f8014000 {
456 compatible = "arm,pl061", "arm,primecell";
457 reg = <0x0 0xf8014000 0x0 0x1000>;
458 interrupts = <0 55 0x4>;
459 gpio-controller;
460 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800461 gpio-ranges = <&pmx0 0 80 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800462 interrupt-controller;
463 #interrupt-cells = <2>;
464 clocks = <&ao_ctrl 2>;
465 clock-names = "apb_pclk";
466 };
467
468 gpio4: gpio@f7020000 {
469 compatible = "arm,pl061", "arm,primecell";
470 reg = <0x0 0xf7020000 0x0 0x1000>;
471 interrupts = <0 56 0x4>;
472 gpio-controller;
473 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800474 gpio-ranges = <&pmx0 0 88 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800475 interrupt-controller;
476 #interrupt-cells = <2>;
477 clocks = <&ao_ctrl 2>;
478 clock-names = "apb_pclk";
479 };
480
481 gpio5: gpio@f7021000 {
482 compatible = "arm,pl061", "arm,primecell";
483 reg = <0x0 0xf7021000 0x0 0x1000>;
484 interrupts = <0 57 0x4>;
485 gpio-controller;
486 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800487 gpio-ranges = <&pmx0 0 96 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800488 interrupt-controller;
489 #interrupt-cells = <2>;
490 clocks = <&ao_ctrl 2>;
491 clock-names = "apb_pclk";
492 };
493
494 gpio6: gpio@f7022000 {
495 compatible = "arm,pl061", "arm,primecell";
496 reg = <0x0 0xf7022000 0x0 0x1000>;
497 interrupts = <0 58 0x4>;
498 gpio-controller;
499 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800500 gpio-ranges = <&pmx0 0 104 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800501 interrupt-controller;
502 #interrupt-cells = <2>;
503 clocks = <&ao_ctrl 2>;
504 clock-names = "apb_pclk";
505 };
506
507 gpio7: gpio@f7023000 {
508 compatible = "arm,pl061", "arm,primecell";
509 reg = <0x0 0xf7023000 0x0 0x1000>;
510 interrupts = <0 59 0x4>;
511 gpio-controller;
512 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800513 gpio-ranges = <&pmx0 0 112 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800514 interrupt-controller;
515 #interrupt-cells = <2>;
516 clocks = <&ao_ctrl 2>;
517 clock-names = "apb_pclk";
518 };
519
520 gpio8: gpio@f7024000 {
521 compatible = "arm,pl061", "arm,primecell";
522 reg = <0x0 0xf7024000 0x0 0x1000>;
523 interrupts = <0 60 0x4>;
524 gpio-controller;
525 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800526 gpio-ranges = <&pmx0 0 120 2 &pmx0 2 2 6>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800527 interrupt-controller;
528 #interrupt-cells = <2>;
529 clocks = <&ao_ctrl 2>;
530 clock-names = "apb_pclk";
531 };
532
533 gpio9: gpio@f7025000 {
534 compatible = "arm,pl061", "arm,primecell";
535 reg = <0x0 0xf7025000 0x0 0x1000>;
536 interrupts = <0 61 0x4>;
537 gpio-controller;
538 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800539 gpio-ranges = <&pmx0 0 8 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800540 interrupt-controller;
541 #interrupt-cells = <2>;
542 clocks = <&ao_ctrl 2>;
543 clock-names = "apb_pclk";
544 };
545
546 gpio10: gpio@f7026000 {
547 compatible = "arm,pl061", "arm,primecell";
548 reg = <0x0 0xf7026000 0x0 0x1000>;
549 interrupts = <0 62 0x4>;
550 gpio-controller;
551 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800552 gpio-ranges = <&pmx0 0 0 1 &pmx0 1 16 7>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800553 interrupt-controller;
554 #interrupt-cells = <2>;
555 clocks = <&ao_ctrl 2>;
556 clock-names = "apb_pclk";
557 };
558
559 gpio11: gpio@f7027000 {
560 compatible = "arm,pl061", "arm,primecell";
561 reg = <0x0 0xf7027000 0x0 0x1000>;
562 interrupts = <0 63 0x4>;
563 gpio-controller;
564 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800565 gpio-ranges = <&pmx0 0 23 3 &pmx0 3 28 5>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800566 interrupt-controller;
567 #interrupt-cells = <2>;
568 clocks = <&ao_ctrl 2>;
569 clock-names = "apb_pclk";
570 };
571
572 gpio12: gpio@f7028000 {
573 compatible = "arm,pl061", "arm,primecell";
574 reg = <0x0 0xf7028000 0x0 0x1000>;
575 interrupts = <0 64 0x4>;
576 gpio-controller;
577 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800578 gpio-ranges = <&pmx0 0 33 3 &pmx0 3 43 5>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800579 interrupt-controller;
580 #interrupt-cells = <2>;
581 clocks = <&ao_ctrl 2>;
582 clock-names = "apb_pclk";
583 };
584
585 gpio13: gpio@f7029000 {
586 compatible = "arm,pl061", "arm,primecell";
587 reg = <0x0 0xf7029000 0x0 0x1000>;
588 interrupts = <0 65 0x4>;
589 gpio-controller;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800590 #gpio-cells = <2>;
591 gpio-ranges = <&pmx0 0 48 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800592 interrupt-controller;
593 #interrupt-cells = <2>;
594 clocks = <&ao_ctrl 2>;
595 clock-names = "apb_pclk";
596 };
597
598 gpio14: gpio@f702a000 {
599 compatible = "arm,pl061", "arm,primecell";
600 reg = <0x0 0xf702a000 0x0 0x1000>;
601 interrupts = <0 66 0x4>;
602 gpio-controller;
603 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800604 gpio-ranges = <&pmx0 0 56 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800605 interrupt-controller;
606 #interrupt-cells = <2>;
607 clocks = <&ao_ctrl 2>;
608 clock-names = "apb_pclk";
609 };
610
611 gpio15: gpio@f702b000 {
612 compatible = "arm,pl061", "arm,primecell";
613 reg = <0x0 0xf702b000 0x0 0x1000>;
614 interrupts = <0 67 0x4>;
615 gpio-controller;
616 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800617 gpio-ranges = <
618 &pmx0 0 74 6
619 &pmx0 6 122 1
620 &pmx0 7 126 1
621 >;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800622 interrupt-controller;
623 #interrupt-cells = <2>;
624 clocks = <&ao_ctrl 2>;
625 clock-names = "apb_pclk";
626 };
627
628 gpio16: gpio@f702c000 {
629 compatible = "arm,pl061", "arm,primecell";
630 reg = <0x0 0xf702c000 0x0 0x1000>;
631 interrupts = <0 68 0x4>;
632 gpio-controller;
633 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800634 gpio-ranges = <&pmx0 0 127 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800635 interrupt-controller;
636 #interrupt-cells = <2>;
637 clocks = <&ao_ctrl 2>;
638 clock-names = "apb_pclk";
639 };
640
641 gpio17: gpio@f702d000 {
642 compatible = "arm,pl061", "arm,primecell";
643 reg = <0x0 0xf702d000 0x0 0x1000>;
644 interrupts = <0 69 0x4>;
645 gpio-controller;
646 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800647 gpio-ranges = <&pmx0 0 135 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800648 interrupt-controller;
649 #interrupt-cells = <2>;
650 clocks = <&ao_ctrl 2>;
651 clock-names = "apb_pclk";
652 };
653
654 gpio18: gpio@f702e000 {
655 compatible = "arm,pl061", "arm,primecell";
656 reg = <0x0 0xf702e000 0x0 0x1000>;
657 interrupts = <0 70 0x4>;
658 gpio-controller;
659 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800660 gpio-ranges = <&pmx0 0 143 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800661 interrupt-controller;
662 #interrupt-cells = <2>;
663 clocks = <&ao_ctrl 2>;
664 clock-names = "apb_pclk";
665 };
666
667 gpio19: gpio@f702f000 {
668 compatible = "arm,pl061", "arm,primecell";
669 reg = <0x0 0xf702f000 0x0 0x1000>;
670 interrupts = <0 71 0x4>;
671 gpio-controller;
672 #gpio-cells = <2>;
Zhong Kaihua379e9bf2016-04-13 07:55:41 +0800673 gpio-ranges = <&pmx0 0 151 8>;
Zhong Kaihuaf2bfacf2016-04-13 07:55:40 +0800674 interrupt-controller;
675 #interrupt-cells = <2>;
676 clocks = <&ao_ctrl 2>;
677 clock-names = "apb_pclk";
678 };
Zhong Kaihua60dac1b2016-04-13 07:55:42 +0800679
680 spi0: spi@f7106000 {
681 compatible = "arm,pl022", "arm,primecell";
682 reg = <0x0 0xf7106000 0x0 0x1000>;
683 interrupts = <0 50 4>;
684 bus-id = <0>;
685 enable-dma = <0>;
686 clocks = <&sys_ctrl HI6220_SPI_CLK>;
687 clock-names = "apb_pclk";
688 pinctrl-names = "default";
689 pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>;
690 num-cs = <1>;
691 cs-gpios = <&gpio6 2 0>;
692 status = "disabled";
693 };
Xinwei Kong5ff3a4d2016-04-13 07:55:43 +0800694
695 i2c0: i2c@f7100000 {
696 compatible = "snps,designware-i2c";
697 reg = <0x0 0xf7100000 0x0 0x1000>;
698 interrupts = <0 44 4>;
699 clocks = <&sys_ctrl HI6220_I2C0_CLK>;
700 i2c-sda-hold-time-ns = <300>;
701 pinctrl-names = "default";
702 pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>;
703 status = "disabled";
704 };
705
706 i2c1: i2c@f7101000 {
707 compatible = "snps,designware-i2c";
708 reg = <0x0 0xf7101000 0x0 0x1000>;
709 clocks = <&sys_ctrl HI6220_I2C1_CLK>;
710 interrupts = <0 45 4>;
711 i2c-sda-hold-time-ns = <300>;
712 pinctrl-names = "default";
713 pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
714 status = "disabled";
715 };
716
717 i2c2: i2c@f7102000 {
718 compatible = "snps,designware-i2c";
719 reg = <0x0 0xf7102000 0x0 0x1000>;
720 clocks = <&sys_ctrl HI6220_I2C2_CLK>;
721 interrupts = <0 46 4>;
722 i2c-sda-hold-time-ns = <300>;
723 pinctrl-names = "default";
724 pinctrl-0 = <&i2c2_pmx_func &i2c2_cfg_func>;
725 status = "disabled";
726 };
Zhangfei Gaob4b31a72016-04-13 07:55:45 +0800727
728 fixed_5v_hub: regulator@0 {
729 compatible = "regulator-fixed";
730 regulator-name = "fixed_5v_hub";
731 regulator-min-microvolt = <5000000>;
732 regulator-max-microvolt = <5000000>;
733 regulator-boot-on;
734 gpio = <&gpio0 7 0>;
735 regulator-always-on;
736 };
737
738 usb_phy: usbphy {
739 compatible = "hisilicon,hi6220-usb-phy";
740 #phy-cells = <0>;
741 phy-supply = <&fixed_5v_hub>;
742 hisilicon,peripheral-syscon = <&sys_ctrl>;
743 };
744
745 usb: usb@f72c0000 {
746 compatible = "hisilicon,hi6220-usb";
747 reg = <0x0 0xf72c0000 0x0 0x40000>;
748 phys = <&usb_phy>;
749 phy-names = "usb2-phy";
750 clocks = <&sys_ctrl HI6220_USBOTG_HCLK>;
751 clock-names = "otg";
752 dr_mode = "otg";
Zhangfei Gaob4b31a72016-04-13 07:55:45 +0800753 g-rx-fifo-size = <512>;
754 g-np-tx-fifo-size = <128>;
755 g-tx-fifo-size = <128 128 128 128 128 128>;
756 interrupts = <0 77 0x4>;
757 };
Leo Yan86073572016-04-13 07:55:46 +0800758
759 mailbox: mailbox@f7510000 {
760 compatible = "hisilicon,hi6220-mbox";
761 reg = <0x0 0xf7510000 0x0 0x1000>, /* IPC_S */
762 <0x0 0x06dff800 0x0 0x0800>; /* Mailbox buffer */
763 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
764 #mbox-cells = <3>;
765 };
Xinwei Kongd6b259d2016-04-13 07:55:51 +0800766
767 dwmmc_0: dwmmc0@f723d000 {
768 compatible = "hisilicon,hi6220-dw-mshc";
769 num-slots = <0x1>;
770 cap-mmc-highspeed;
771 non-removable;
772 reg = <0x0 0xf723d000 0x0 0x1000>;
773 interrupts = <0x0 0x48 0x4>;
774 clocks = <&sys_ctrl 2>, <&sys_ctrl 1>;
775 clock-names = "ciu", "biu";
Guodong Xu94914fc2016-08-25 11:00:41 +0800776 resets = <&sys_ctrl PERIPH_RSTDIS0_MMC0>;
Daniel Lezcano0fbdf992017-03-16 15:03:24 +0100777 reset-names = "reset";
Xinwei Kongd6b259d2016-04-13 07:55:51 +0800778 bus-width = <0x8>;
779 vmmc-supply = <&ldo19>;
780 pinctrl-names = "default";
781 pinctrl-0 = <&emmc_pmx_func &emmc_clk_cfg_func
782 &emmc_cfg_func &emmc_rst_cfg_func>;
783 };
784
785 dwmmc_1: dwmmc1@f723e000 {
786 compatible = "hisilicon,hi6220-dw-mshc";
787 num-slots = <0x1>;
788 card-detect-delay = <200>;
789 hisilicon,peripheral-syscon = <&ao_ctrl>;
790 cap-sd-highspeed;
Guodong Xu0f5d3ec2016-08-31 21:10:58 +0800791 sd-uhs-sdr12;
792 sd-uhs-sdr25;
793 sd-uhs-sdr50;
Xinwei Kongd6b259d2016-04-13 07:55:51 +0800794 reg = <0x0 0xf723e000 0x0 0x1000>;
795 interrupts = <0x0 0x49 0x4>;
796 #address-cells = <0x1>;
797 #size-cells = <0x0>;
798 clocks = <&sys_ctrl 4>, <&sys_ctrl 3>;
799 clock-names = "ciu", "biu";
Guodong Xu94914fc2016-08-25 11:00:41 +0800800 resets = <&sys_ctrl PERIPH_RSTDIS0_MMC1>;
Daniel Lezcano0fbdf992017-03-16 15:03:24 +0100801 reset-names = "reset";
Xinwei Kongd6b259d2016-04-13 07:55:51 +0800802 vqmmc-supply = <&ldo7>;
803 vmmc-supply = <&ldo10>;
804 bus-width = <0x4>;
805 disable-wp;
806 cd-gpios = <&gpio1 0 1>;
807 pinctrl-names = "default", "idle";
808 pinctrl-0 = <&sd_pmx_func &sd_clk_cfg_func &sd_cfg_func>;
809 pinctrl-1 = <&sd_pmx_idle &sd_clk_cfg_idle &sd_cfg_idle>;
810 };
811
812 dwmmc_2: dwmmc2@f723f000 {
813 compatible = "hisilicon,hi6220-dw-mshc";
814 num-slots = <0x1>;
815 reg = <0x0 0xf723f000 0x0 0x1000>;
816 interrupts = <0x0 0x4a 0x4>;
817 clocks = <&sys_ctrl HI6220_MMC2_CIUCLK>, <&sys_ctrl HI6220_MMC2_CLK>;
818 clock-names = "ciu", "biu";
Guodong Xu94914fc2016-08-25 11:00:41 +0800819 resets = <&sys_ctrl PERIPH_RSTDIS0_MMC2>;
Daniel Lezcano0fbdf992017-03-16 15:03:24 +0100820 reset-names = "reset";
Xinwei Kongd6b259d2016-04-13 07:55:51 +0800821 bus-width = <0x4>;
822 broken-cd;
823 pinctrl-names = "default", "idle";
824 pinctrl-0 = <&sdio_pmx_func &sdio_clk_cfg_func &sdio_cfg_func>;
825 pinctrl-1 = <&sdio_pmx_idle &sdio_clk_cfg_idle &sdio_cfg_idle>;
826 };
Leo Yan2158ab02016-03-29 19:27:14 +0800827
828 tsensor: tsensor@0,f7030700 {
829 compatible = "hisilicon,tsensor";
830 reg = <0x0 0xf7030700 0x0 0x1000>;
831 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
832 clocks = <&sys_ctrl 22>;
833 clock-names = "thermal_clk";
834 #thermal-sensor-cells = <1>;
835 };
Leo Yancd0b69e2016-03-29 19:27:15 +0800836
837 thermal-zones {
838
839 cls0: cls0 {
840 polling-delay = <1000>;
841 polling-delay-passive = <100>;
842 sustainable-power = <3326>;
843
844 /* sensor ID */
845 thermal-sensors = <&tsensor 2>;
846
847 trips {
848 threshold: trip-point@0 {
849 temperature = <65000>;
850 hysteresis = <0>;
851 type = "passive";
852 };
853
854 target: trip-point@1 {
855 temperature = <75000>;
856 hysteresis = <0>;
857 type = "passive";
858 };
859 };
860
861 cooling-maps {
862 map0 {
863 trip = <&target>;
864 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
865 };
866 };
867 };
868 };
Xinliang Liu3814b612016-08-22 15:48:02 -0700869
870 ade: ade@f4100000 {
871 compatible = "hisilicon,hi6220-ade";
872 reg = <0x0 0xf4100000 0x0 0x7800>;
873 reg-names = "ade_base";
874 hisilicon,noc-syscon = <&medianoc_ade>;
875 resets = <&media_ctrl MEDIA_ADE>;
876 interrupts = <0 115 4>; /* ldi interrupt */
877
878 clocks = <&media_ctrl HI6220_ADE_CORE>,
879 <&media_ctrl HI6220_CODEC_JPEG>,
880 <&media_ctrl HI6220_ADE_PIX_SRC>;
881 /*clock name*/
882 clock-names = "clk_ade_core",
883 "clk_codec_jpeg",
884 "clk_ade_pix";
885
886 assigned-clocks = <&media_ctrl HI6220_ADE_CORE>,
887 <&media_ctrl HI6220_CODEC_JPEG>;
888 assigned-clock-rates = <360000000>, <288000000>;
889 dma-coherent;
890 status = "disabled";
891
892 port {
893 ade_out: endpoint {
894 remote-endpoint = <&dsi_in>;
895 };
896 };
897 };
898
899 dsi: dsi@f4107800 {
900 compatible = "hisilicon,hi6220-dsi";
901 reg = <0x0 0xf4107800 0x0 0x100>;
902 clocks = <&media_ctrl HI6220_DSI_PCLK>;
903 clock-names = "pclk";
904 status = "disabled";
905
906 ports {
907 #address-cells = <1>;
908 #size-cells = <0>;
909
910 /* 0 for input port */
911 port@0 {
912 reg = <0>;
913 dsi_in: endpoint {
914 remote-endpoint = <&ade_out>;
915 };
916 };
917 };
918 };
Bintian Wang86e8f522015-02-07 14:57:52 +0800919 };
920};