rk: restore file mode
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3188.dtsi
1 #include <dt-bindings/clock/ddr.h>
2 #include <dt-bindings/rkfb/rk_fb.h>
3 #include <dt-bindings/suspend/rockchip-pm.h>
4 #include <dt-bindings/sensor-dev.h>
5
6 #include "skeleton.dtsi"
7 #include "rk3188-pinctrl.dtsi"
8 #include "rk3188-clocks.dtsi"
9
10 / {
11         compatible = "rockchip,rk3188";
12         interrupt-parent = <&gic>;
13         rockchip,sram = <&sram>;
14
15         aliases {
16                 serial0 = &uart0;
17                 serial1 = &uart1;
18                 serial2 = &uart2;
19                 serial3 = &uart3;
20                 i2c0 = &i2c0;
21                 i2c1 = &i2c1;
22                 i2c2 = &i2c2;
23                 i2c3 = &i2c3;
24                 i2c4 = &i2c4;
25                 lcdc0 = &lcdc0;
26                 lcdc1 = &lcdc1;
27                 spi0 = &spi0;
28                 spi1 = &spi1;
29         };
30
31         cpus {
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34
35                 cpu@0 {
36                         device_type = "cpu";
37                         compatible = "arm,cortex-a9";
38                         reg = <0>;
39                 };
40                 cpu@1 {
41                         device_type = "cpu";
42                         compatible = "arm,cortex-a9";
43                         reg = <1>;
44                 };
45                 cpu@2 {
46                         device_type = "cpu";
47                         compatible = "arm,cortex-a9";
48                         reg = <2>;
49                 };
50                 cpu@3 {
51                         device_type = "cpu";
52                         compatible = "arm,cortex-a9";
53                         reg = <3>;
54                 };
55         };
56
57         twd-wdt@1013c620 {
58                 compatible = "arm,cortex-a9-twd-wdt";
59                 reg = <0x1013c620 0x20>;
60                 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
61         };
62
63         gic: interrupt-controller@1013d000 {
64                 compatible = "arm,cortex-a9-gic";
65                 interrupt-controller;
66                 #interrupt-cells = <3>;
67                 reg = <0x1013d000 0x1000>,
68                       <0x1013c100 0x0100>;
69         };
70
71         L2: cache-controller@10138000 {
72                 compatible = "rockchip,pl310-cache", "arm,pl310-cache";
73                 reg = <0x10138000 0x1000>;
74                 cache-unified;
75                 cache-level = <2>;
76                 arm,tag-latency = <1 1 1>;
77                 arm,data-latency = <3 1 2>;
78                 rockchip,prefetch-ctrl = <0x70000003>;
79                 /* L2X0_DYNAMIC_CLK_GATING_EN | L2X0_STNDBY_MODE_EN */
80                 rockchip,power-ctrl = <0x3>;
81 /*
82                 (0x1 << 0) |    // Full line of write zero behavior Enabled
83                 (0x1 << 25) |   // Round-robin replacement
84                 (0x1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) |
85                 (0x1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) |
86                 (0x1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT)
87 */
88                 rockchip,aux-ctrl = <0x72000001 (~0x72000001)>;
89         };
90
91         cpu_axi_bus: cpu_axi_bus {
92                 compatible = "rockchip,cpu_axi_bus";
93                 #address-cells = <1>;
94                 #size-cells = <1>;
95                 ranges;
96                 qos {
97                         #address-cells = <1>;
98                         #size-cells = <1>;
99                         ranges;
100                         dmac {
101                                 reg = <0x10129000 0x20>;
102                                 rockchip,priority = <0 0>;
103                         };
104                         cpu0 {
105                                 reg = <0x1012a000 0x20>;
106                                 rockchip,priority = <0 0>;
107                         };
108                         cpu1_r {
109                                 reg = <0x1012a080 0x20>;
110                                 rockchip,priority = <0 0>;
111                         };
112                         cpu1_w {
113                                 reg = <0x1012a100 0x20>;
114                                 rockchip,priority = <0 0>;
115                         };
116                         peri {
117                                 reg = <0x1012c000 0x20>;
118                                 rockchip,priority = <2 2>;
119                         };
120                         gpu {
121                                 reg = <0x1012d000 0x20>;
122                                 rockchip,priority = <2 1>;
123                         };
124                         vpu {
125                                 reg = <0x1012e000 0x20>;
126                         };
127                         vop0 {
128                                 reg = <0x1012f000 0x20>;
129                                 rockchip,priority = <3 3>;
130                         };
131                         cif0 {
132                                 reg = <0x1012f080 0x20>;
133                         };
134                         ipp {
135                                 reg = <0x1012f100 0x20>;
136                         };
137                         vop1 {
138                                 reg = <0x1012f180 0x20>;
139                                 rockchip,priority = <3 3>;
140                         };
141                         cif1 {
142                                 reg = <0x1012f200 0x20>;
143                         };
144                         rga {
145                                 reg = <0x1012f280 0x20>;
146                         };
147                 };
148                 msch {
149                         #address-cells = <1>;
150                         #size-cells = <1>;
151                         ranges;
152                         msch {
153                                 reg = <0x10128000 0x18>;
154                                 rockchip,read-latency = <0x3f>;
155                         };
156                 };
157         };
158
159         bootrom@10120000 {
160                 compatible = "rockchip,bootrom";
161                 reg = <0x10120000 0x4000>;
162         };
163
164         bootram@10080000 {
165                 compatible = "rockchip,bootram";
166                 reg = <0x10080000 0x20>; /* 32 bytes */
167         };
168
169         sram: sram@10080020 {
170                 compatible = "mmio-sram";
171                 reg = <0x10080020 (0x8000 - 0x20)>; /* 32k - 32 */
172                 map-exec;
173         };
174
175         pmu@20004000 {
176                 compatible = "rockchip,pmu";
177                 reg = <0x20004000 0x4000>;
178         };
179
180         timer@20038000 {
181                 compatible = "rockchip,timer";
182                 reg = <0x20038000 0x20>;
183                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
184                 rockchip,percpu = <0>;
185         };
186
187         timer@20038020 {
188                 compatible = "rockchip,timer";
189                 reg = <0x20038020 0x20>;
190                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
191                 rockchip,percpu = <1>;
192         };
193
194         timer@20038040 {
195                 compatible = "rockchip,timer";
196                 reg = <0x20038040 0x20>;
197                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
198                 rockchip,percpu = <2>;
199         };
200
201         timer@20038060 {
202                 compatible = "rockchip,timer";
203                 reg = <0x20038060 0x20>;
204                 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
205                 rockchip,percpu = <3>;
206         };
207
208         timer@20038080 {
209                 compatible = "rockchip,timer";
210                 reg = <0x20038080 0x20>;
211                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
212                 rockchip,broadcast = <1>;
213         };
214
215         timer@200380a0 {
216                 compatible = "rockchip,timer";
217                 reg = <0x200380a0 0x20>;
218                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
219                 rockchip,clocksource = <1>;
220         };
221
222         watchdog:wdt@2004c000 {
223                 compatible = "rockchip,watch dog";
224                 reg = <0x2004c000 0x100>;
225                 clocks = <&clk_gates7 15>;
226                 clock-names = "pclk_wdt";
227                 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
228                 rockchip,irq = <1>;
229                 rockchip,timeout = <5>;
230                 rockchip,atboot = <1>;
231                 rockchip,debug = <0>;
232                 status = "disabled";
233         };
234
235         amba {
236                 #address-cells = <1>;
237                 #size-cells = <1>;
238                 compatible = "arm,amba-bus";
239                 interrupt-parent = <&gic>;
240                 ranges;
241
242                 pdma0: pdma@20018000 {
243                         compatible = "arm,pl330", "arm,primecell";
244                         reg = <0x20018000 0x4000>;
245                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
246                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
247                         #dma-cells = <1>;
248
249                 };
250
251                 pdma1: pdma@20078000 {
252                         compatible = "arm,pl330", "arm,primecell";
253                         reg = <0x20078000 0x4000>;
254                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
255                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
256                         #dma-cells = <1>;
257
258                 };
259         };
260
261         emmc: rksdmmc@1021C000 {
262                 compatible = "rockchip,rk_mmc";
263                 reg = <0x1021C000 0x4000>;
264                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;/*irq=57*/
265                 #address-cells = <1>;
266                 #size-cells = <0>;
267                 //pinctrl-names = "default",,"suspend";
268                 //pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_wp &sd0_pwr &sd0_bus1 &sd0_bus4>;
269                 clocks = <&clk_gates2 14>;
270                 num-slots = <1>;
271                 
272                 fifo-depth = <0x80>;
273                 bus-width = <4>;
274         };
275
276         sdmmc: rksdmmc@10214000 {
277                 compatible = "rockchip,rk_mmc";
278                 reg = <0x10214000 0x4000>;
279                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; /*irq=55*/
280                 #address-cells = <1>;
281                 #size-cells = <0>;
282                 pinctrl-names = "default","suspend";
283                 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_wp &sd0_pwr &sd0_bus1 &sd0_bus4>;
284                 pinctrl-1 = <&sd0_cd_gpio>; //for int gpio?
285                 clocks = <&clk_gates2 11>;
286                 num-slots = <1>; 
287    
288                 fifo-depth = <0x100>;
289                 bus-width = <4>;
290         };
291
292         sdio: rksdmmc@10218000 {
293                 compatible = "rockchip,rk_mmc";
294                 reg = <0x10218000 0x4000>;
295                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
296                 #address-cells = <1>;
297                 #size-cells = <0>;
298                 pinctrl-names = "default","suspend";
299                 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_wp &sd1_bus1 &sd1_bus4>;
300                 clocks = <&clk_gates2 13>;        
301                 num-slots = <1>;
302
303                 fifo-depth = <0x100>;
304                 bus-width = <4>;
305         };
306
307         uart0: serial@10124000 {
308                 compatible = "rockchip,serial";
309                 reg = <0x10124000 0x100>;
310                 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
311                 clock-frequency = <24000000>;
312                 clocks = <&clk_uart0>, <&clk_gates8 0>;
313                 clock-names = "sclk_uart", "pclk_uart";
314                 reg-shift = <2>;
315                 reg-io-width = <4>;
316                 dmas = <&pdma0 0>, <&pdma0 1>;
317                 #dma-cells = <2>;
318                 pinctrl-names = "default";
319                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
320                 status = "disabled";
321         };
322
323         uart1: serial@10126000 {
324                 compatible = "rockchip,serial";
325                 reg = <0x10126000 0x100>;
326                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
327                 clock-frequency = <24000000>;
328                 clocks = <&clk_uart1>, <&clk_gates8 1>;
329                 clock-names = "sclk_uart", "pclk_uart";
330                 reg-shift = <2>;
331                 reg-io-width = <4>;
332                 dmas = <&pdma0 2>, <&pdma0 3>;
333                 #dma-cells = <2>;
334                 pinctrl-names = "default";
335                 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
336                 status = "disabled";
337         };
338
339         uart2: serial@20064000 {
340                 compatible = "rockchip,serial";
341                 reg = <0x20064000 0x100>;
342                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
343                 clock-frequency = <24000000>;
344                 clocks = <&clk_uart2>, <&clk_gates8 2>;
345                 clock-names = "sclk_uart", "pclk_uart";
346                 current-speed = <115200>;
347                 reg-shift = <2>;
348                 reg-io-width = <4>;
349                 pinctrl-names = "default";
350                 pinctrl-0 = <&uart2_xfer>;
351                 status = "disabled";
352         };
353
354         uart3: serial@20068000 {
355                 compatible = "rockchip,serial";
356                 reg = <0x20068000 0x100>;
357                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
358                 clock-frequency = <24000000>;
359                 clocks = <&clk_uart3>, <&clk_gates8 3>;
360                 clock-names = "sclk_uart", "pclk_uart";
361                 reg-shift = <2>;
362                 reg-io-width = <4>;
363                 dmas = <&pdma1 8>, <&pdma1 9>;
364                 #dma-cells = <2>;
365                 pinctrl-names = "default";
366                 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
367                 status = "disabled";
368         };
369
370         fiq-debugger {
371                 compatible = "rockchip,fiq-debugger";
372                 rockchip,serial-id = <2>;
373                 rockchip,signal-irq = <112>;
374                 rockchip,wake-irq = <0>;
375                 status = "disabled";
376         };
377
378         spi0: spi@20070000 {
379                 compatible = "rockchip,rockchip-spi";
380                 reg = <0x20070000 0x1000>;
381                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
382                 #address-cells = <1>;
383                 #size-cells = <0>;
384                 pinctrl-names = "default";
385                 pinctrl-0 = <&spi0_txd &spi0_rxd &spi0_clk &spi0_cs0 &spi0_cs1>;
386                 rockchip,spi-src-clk = <0>;
387                 num-cs = <2>;
388                 clocks =<&clk_spi0>, <&clk_gates7 12>;
389                 clock-names = "spi","pclk_spi0";
390                 dmas = <&pdma1 10>, <&pdma1 11>;
391                 #dma-cells = <2>;
392                 dma-names = "tx", "rx";
393                 status = "disabled";
394         };
395
396         spi1: spi@20074000 {
397                 compatible = "rockchip,rockchip-spi";
398                 reg = <0x20074000 0x1000>;
399                 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
400                 #address-cells = <1>;
401                 #size-cells = <0>;
402                 pinctrl-names = "default";
403                 pinctrl-0 = <&spi1_txd &spi1_rxd &spi1_clk &spi1_cs0 &spi1_cs1>;
404                 rockchip,spi-src-clk = <1>;
405                 num-cs = <2>;
406                 clocks = <&clk_spi1>, <&clk_gates7 13>;
407                 clock-names = "spi","pclk_spi1";
408                 dmas = <&pdma1 12>, <&pdma1 13>;
409                 #dma-cells = <2>;
410                 dma-names = "tx", "rx";
411                 status = "disabled";
412         };
413
414         i2c0: i2c@2002d000 {
415                 compatible = "rockchip,rk30-i2c";
416                 reg = <0x2002d000 0x1000>;
417                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
418                 #address-cells = <1>;
419                 #size-cells = <0>;
420                 pinctrl-names = "default", "gpio";
421                 pinctrl-0 = <&i2c0_sda &i2c0_scl>;
422                 pinctrl-1 = <&i2c0_gpio>;
423                 gpios = <&gpio1 GPIO_D0 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D1 GPIO_ACTIVE_LOW>;
424                 clocks = <&clk_gates8 4>;
425                 rockchip,check-idle = <1>;
426                 status = "disabled";
427         };
428
429         i2c1: i2c@2002f000 {
430                 compatible = "rockchip,rk30-i2c";
431                 reg = <0x2002f000 0x1000>;
432                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
433                 #address-cells = <1>;
434                 #size-cells = <0>;
435                 pinctrl-names = "default", "gpio";
436                 pinctrl-0 = <&i2c1_sda &i2c1_scl>;
437                 pinctrl-1 = <&i2c1_gpio>;
438                 gpios = <&gpio1 GPIO_D2 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D3 GPIO_ACTIVE_LOW>;
439                 clocks = <&clk_gates8 5>;
440                 rockchip,check-idle = <1>;
441                 status = "disabled";
442         };
443
444         i2c2: i2c@20056000 {
445                 compatible = "rockchip,rk30-i2c";
446                 reg = <0x20056000 0x1000>;
447                 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
448                 #address-cells = <1>;
449                 #size-cells = <0>;
450                 pinctrl-names = "default", "gpio";
451                 pinctrl-0 = <&i2c2_sda &i2c2_scl>;
452                 pinctrl-1 = <&i2c2_gpio>;
453                 gpios = <&gpio1 GPIO_D4 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D5 GPIO_ACTIVE_LOW>;
454                 clocks = <&clk_gates8 6>;
455                 rockchip,check-idle = <1>;
456                 status = "disabled";
457         };
458
459         i2c3: i2c@2005a000 {
460                 compatible = "rockchip,rk30-i2c";
461                 reg = <0x2005a000 0x1000>;
462                 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
463                 #address-cells = <1>;
464                 #size-cells = <0>;
465                 pinctrl-names = "default", "gpio";
466                 pinctrl-0 = <&i2c3_sda &i2c3_scl>;
467                 pinctrl-1 = <&i2c3_gpio>;
468                 gpios = <&gpio3 GPIO_B6 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_B7 GPIO_ACTIVE_LOW>;
469                 clocks = <&clk_gates8 7>;
470                 rockchip,check-idle = <1>;
471                 status = "disabled";
472         };
473
474         i2c4: i2c@2005e000 {
475                 compatible = "rockchip,rk30-i2c";
476                 reg = <0x2005e000 0x1000>;
477                 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
478                 #address-cells = <1>;
479                 #size-cells = <0>;
480                 pinctrl-names = "default", "gpio";
481                 pinctrl-0 = <&i2c4_sda &i2c4_scl>;
482                 pinctrl-1 = <&i2c4_gpio>;
483                 gpios = <&gpio1 GPIO_D6 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D7 GPIO_ACTIVE_LOW>;
484                 clocks = <&clk_gates8 8>;
485                 rockchip,check-idle = <1>;
486                 status = "disabled";
487         };
488
489         clocks-init{
490                 compatible = "rockchip,clocks-init";
491                 rockchip,clocks-init-parent =
492                         <&clk_core &clk_apll>,  <&aclk_cpu &clk_gpll>,
493                         <&aclk_peri &clk_gpll>, <&clk_i2s_pll_mux &clk_cpll>,
494                         <&clk_uart_pll_mux &clk_gpll>;
495                 rockchip,clocks-init-rate =
496                         <&clk_core 792000000>,  <&clk_gpll 768000000>,
497                         <&clk_cpll 594000000>,  <&aclk_cpu 192000000>,
498                         <&hclk_cpu 96000000>,   <&pclk_cpu 48000000>,
499                         <&pclk_ahb2apb 48000000>,       <&aclk_peri 192000000>,
500                         <&hclk_peri 96000000>,  <&pclk_peri 48000000>,
501                         <&clk_gpu 200000000>, <&aclk_lcdc0 300000000>,
502                         <&aclk_lcdc1 300000000>;
503         };
504
505         rockchip_suspend: rockchip_suspend {
506                 //compatible = "rockchip,rkpm_suspend";
507                 // define value is in dt-bindint/suspend/rockchip-pm.h
508                 rockchip,ctrbits = <
509                                                 (
510                                                 RKPM_CTR_PWR_DMNS
511                                                 |RKPM_CTR_GTCLKS
512                                                 |RKPM_CTR_PLLS
513                                                 |RKPM_CTR_SYSCLK_DIV
514                                                 )
515                                         >;
516               rockchip,pmic-gpios=<
517                                                 RKPM_PINGPIO_BITS_OUTPUT(GPIO0_A0,RKPM_GPIO_OUT_L)
518                                                 RKPM_PINGPIO_BITS_INTPUT(GPIO0_A1,RKPM_GPIO_PULL_UP)
519                                                 >;
520         };
521
522         fb: fb{
523                 compatible = "rockchip,rk-fb";
524                 rockchip,disp-mode = <DUAL>;
525         };
526
527         rk_screen: rk_screen{
528                 compatible = "rockchip,screen";
529         };
530
531         nandc: nandc {
532                 compatible = "rockchip,rk-nandc";
533                 reg = <0x10050000 0x4000>;
534                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
535         };
536
537         lcdc0:lcdc@1010c000 {
538                 compatible = "rockchip,rk3188-lcdc";
539                 rockchip,prop = <PRMRY>;
540                 rochchip,pwr18 = <0>;
541                 reg = <0x1010c000 0x1000>;
542                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
543                 status = "disabled";
544         };
545
546         lcdc1:lcdc@1010e000 {
547                 compatible = "rockchip,rk3188-lcdc";
548                 rockchip,prop = <EXTEND>;
549                 rockchip,pwr18 = <0>;
550                 reg = <0x1010e000 0x1000>;
551                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
552                 pinctrl-names = "default", "gpio";
553                 pinctrl-0 = <&lcdc1_lcdc>;
554                 pinctrl-1 = <&lcdc1_gpio>;
555                 status = "disabled";
556         };
557
558         rga@10114000 {
559                 compatible = "rockchip,rga";
560                 reg = <0x10114000 0x1000>;
561                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
562                 clocks = <&clk_gates6 10>, <&clk_gates6 11>;
563                 clock-names = "hclk_rga", "aclk_rga";           
564         };
565
566         adc: adc@2006c000 {
567                 compatible = "rockchip,saradc";
568                 reg = <0x2006c000 0x100>;
569                 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
570                 #io-channel-cells = <1>;
571                 io-channel-ranges;
572                 rockchip,adc-vref = <1800>;
573                 clock-frequency = <1000000>;
574                 clocks = <&clk_saradc>, <&clk_gates7 14>;
575                 clock-names = "saradc", "pclk_saradc";
576                 status = "disabled";
577         };
578
579         spdif: rockchip-spdif@0x1011e000 {
580                 compatible = "rockchip-spdif";
581                 reg = <0x1011e000 0x2000>;
582                 clocks = <&clk_spdif>;
583                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
584                 dmas = <&pdma0 8>;
585                 dma-names = "tx";
586                 pinctrl-names = "default";
587                 pinctrl-0 = <&spdif_tx>;
588         };
589
590         i2s0: rockchip-i2s@0x1011a000 {
591                 compatible = "rockchip-i2s";
592                 reg = <0x1011a000 0x2000>;
593                 i2s-id = <0>;
594                 clocks = <&clk_i2s>;
595                 clock-names = "i2s_clk";
596                 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
597                 dmas = <&pdma0 6>,
598                         <&pdma0 7>;
599                 dma-names = "tx", "rx";
600                 pinctrl-names = "default", "sleep";
601                 pinctrl-0 = <&i2s0_mclk &i2s0_sclk &i2s0_lrckrx &i2s0_lrcktx &i2s0_sdi &i2s0_sdo>;
602                 pinctrl-1 = <&i2s0_gpio>;
603         };
604
605         pwm0: pwm@20030000{
606                 compatible = "rockchip,pwm";
607                 reg = <0x20030000 0x10>;
608                 #pwm-cells = <2>;
609                 pinctrl-names = "default";
610                 pinctrl-0 = <&pwm0_pin>;
611                 clocks = <&clk_gates7 10>;
612                 clock-names = "pclk_pwm";
613                 status = "disabled";
614
615         };
616
617         pwm1: pwm@20030010{
618                 compatible = "rockchip,pwm";
619                 reg = <0x20030010 0x10>; /*0x20030000*/
620                 #pwm-cells = <2>;
621                 pinctrl-names = "default";
622                 pinctrl-0 = <&pwm1_pin>;
623                 clocks = <&clk_gates7 10>;
624                 clock-names = "pclk_pwm";
625                 status = "disabled";
626
627         };
628         pwm2: pwm@20050020{
629                 compatible = "rockchip,pwm";
630                 reg = <0x20050020 0x10>; /*0x20030000*/
631                 #pwm-cells = <2>;
632                 pinctrl-names = "default";
633                 clock-names = "pclk_pwm";
634                 clocks = <&clk_gates7 11>;
635                 pinctrl-0 = <&pwm2_pin>;
636                 status = "disabled";
637
638         };
639
640         pwm3: pwm@20050030{
641                 compatible = "rockchip,pwm";
642                 reg = <0x20050030 0x10>; /*0x20030000*/
643                 #pwm-cells = <2>;
644                 pinctrl-names = "default";
645                 pinctrl-0 = <&pwm3_pin>;
646                 clocks = <&clk_gates7 11>;
647                 clock-names = "pclk_pwm";
648                 status = "disabled";
649
650         };
651         dvfs {
652                 vd_arm:
653                 vd_arm {
654                         regulator_name="vdd_arm";
655                         suspend_volt=<1000>; //mV
656                         pd_a9 {
657                                 clk_core_dvfs_table:
658                                 clk_core {
659                                         operating-points = <
660                                                 /* KHz    uV */
661                                                 312000 900000
662                                                 504000 950000
663                                                 816000 1000000
664                                                 1008000 1100000
665                                                 1200000 1200000
666                                                 1416000 1300000
667                                                 1608000 1350000
668                                                 >;
669                                         status = "okay";
670                                 };
671                         };
672                 };
673
674                 vd_logic:
675                 vd_logic {
676                         regulator_name="vdd_logic";
677                         suspend_volt=<1000>; //mV
678
679                         pd_gpu {
680                                 clk_gpu_dvfs_table:
681                                 clk_gpu {
682                                         operating-points = <
683                                                 /* KHz    uV */
684                                                 200000 1200000
685                                                 300000 1200000
686                                                 400000 1200000
687                                                 >;
688                                         status = "okay";
689                                 };
690                         };
691
692                         pd_ddr {
693                                 clk_ddr_dvfs_table:
694                                 clk_ddr {
695                                         operating-points = <
696                                                 /* KHz    uV */
697                                                 200000 1200000
698                                                 300000 1200000
699                                                 400000 1200000
700                                                 >;
701                                         status = "disable";
702                                 };
703                         };
704                 };
705         };
706         ion{
707                 compatible = "rockchip,ion";
708                 #address-cells = <1>;
709                 #size-cells = <0>;
710                 rockchip,ion-heap@1 { /* CMA HEAP */
711                         compatible = "rockchip,ion-reserve";
712                         reg = <1>;
713                         memory-reservation = <0x00000000 0x10000000>; /* 256MB */
714                 };
715                 rockchip,ion-heap@3 { /* SYSTEM HEAP */
716                         reg = <3>;
717                 };
718         };
719
720         dwc_control_usb: dwc-control-usb@200080ac {
721                 compatible = "rockchip,rk3188-dwc-control-usb";
722                 reg = <0x200080ac 0x4>,
723                       <0x2000810c 0x10>,
724                       <0x2000811c 0x10>,
725                       <0x2000812c 0x8>,
726                       <0x20008138 0x8>;
727                 reg-names = "GRF_SOC_STATUS0",
728                     "GRF_UOC0_BASE",
729                     "GRF_UOC1_BASE",
730                     "GRF_UOC2_BASE",
731                     "GRF_UOC3_BASE";
732                 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
733                 interrupt-names = "otg_bvalid";
734                 gpios = <&gpio0 GPIO_C0 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_D5 GPIO_ACTIVE_LOW>;
735                 clocks = <&clk_gates4 5>;
736                 clock-names = "hclk_usb_peri";
737                 rockchip,remote_wakeup;
738                 rockchip,usb_irq_wakeup;
739
740                 usb_bc{
741                         compatible = "rockchip,ctrl";
742                         rk_usb,bvalid   = <0xac 10 1>;
743                         rk_usb,iddig    = <0xac 13 1>;
744                         rk_usb,line     = <0xac 11 2>;
745                         rk_usb,softctrl = <0x114 2 1>;
746                         rk_usb,opmode   = <0x118 1 2>;
747                         rk_usb,xcvrsel  = <0x118 3 2>;
748                         rk_usb,termsel  = <0x118 5 1>; 
749                 };
750         };
751         
752
753         usb0: usb@10180000 {
754                 compatible = "rockchip,rk3188_usb20_otg";
755                 reg = <0x10180000 0x40000>;
756                 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
757                 clocks = <&clk_gates1 5>, <&clk_gates5 13>;
758                 clock-names = "clk_usbphy0", "hclk_usb0";
759                 /*0 - Normal, 1 - Force Host, 2 - Force Device*/
760                 rockchip,usb-mode = <0>;
761         };
762
763         usb1: usb@101c0000 {
764                 compatible = "rockchip,rk3188_usb20_host";
765                 reg = <0x101c0000 0x40000>;
766                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
767                 clocks = <&clk_gates1 6>, <&clk_gates7 3>;
768                 clock-names = "clk_usbphy1", "hclk_usb1";
769         };
770
771         usb2: usb@10240000 {
772                 compatible = "rockchip,rk3188_rk_ehci_host";
773                 reg = <0x10240000 0x40000>;
774                 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
775                 clocks = <&clk_ehci1phy480m>, <&clk_gates7 4>,
776                  <&clk_ehci1phy12m>, <&otgphy1_480m>;
777                 clock-names = "ehci1phy_480m", "hclk_ehci1",
778                       "ehci1phy_12m", "ehci1_usbphy1";
779         };
780
781         vmac@10204000 {
782                 compatible = "rockchip,vmac";
783                 reg = <0x10204000 0x4000>;
784                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
785                 pinctrl-names = "default", "gpio";
786                 pinctrl-0 = <&rmii_clkoutpin &rmii_txpins &rmii_rxpins &rmii_mdpins>;
787                 pinctrl-1 = <&rmii_clkinpin &rmii_txpins &rmii_rxpins &rmii_mdpins>;
788         };
789
790         ap0_vcc_domain: ap0-vcc-domain {
791                         compatible = "rockchip,io_vol_domain";
792                         pinctrl-names = "default", "1.8V", "3.3V";
793                         pinctrl-0 = <&ap0_vcc >;
794                         pinctrl-1 = <&ap0_vcc_18>;
795                         pinctrl-2 = <&ap0_vcc_33>;
796         };
797         ap1_vcc_domain: ap1-vcc-domain{
798                         compatible = "rockchip,io_vol_domain";
799                         pinctrl-names = "default", "1.8V", "3.3V";
800                         pinctrl-0 = <&ap1_vcc >;
801                         pinctrl-1 = <&ap1_vcc_18>;
802                         pinctrl-2 = <&ap1_vcc_33>;
803         };
804         cif_vcc_domain: cif-vcc-domain{
805                         compatible = "rockchip,io_vol_domain";
806                         pinctrl-names = "default", "1.8V", "3.3V";
807                         pinctrl-0 = <&cif_vcc>;
808                         pinctrl-1 = <&cif_vcc_18>;
809                         pinctrl-2 = <&cif_vcc_33>;
810         };
811         flash_vcc_domain: flash-vcc-domain{
812                         compatible = "rockchip,io_vol_domain";
813                         pinctrl-names = "default", "1.8V", "3.3V";
814                         pinctrl-0 = <&flash_vcc>;
815                         pinctrl-1 = <&flash_vcc_18>;
816                         pinctrl-2 = <&flash_vcc_33>;    
817         };
818         vccio0_vcc_domain: vccio0-vcc-domain{
819                         compatible = "rockchip,io_vol_domain";
820                         pinctrl-names = "default", "1.8V", "3.3V";
821                         pinctrl-0 = <&vccio0_vcc>;
822                         pinctrl-1 = <&vccio0_vcc_18>;
823                         pinctrl-2 = <&vccio0_vcc_33>;   
824         };
825         vccio1_vcc_domain: vccio1-vcc-domain{
826                         compatible = "rockchip,io_vol_domain";
827                         pinctrl-names = "default", "1.8V", "3.3V";
828                         pinctrl-0 = <&vccio1_vcc>;
829                         pinctrl-1 = <&vccio1_vcc_18>;
830                         pinctrl-2 = <&vccio1_vcc_33>;   
831         };
832         lcdc0_vcc_domain: lcdc0-vcc-domain{
833                         compatible = "rockchip,io_vol_domain";
834                         pinctrl-names = "default", "1.8V", "3.3V";
835                         pinctrl-0 = <&lcdc0_vcc>;
836                         pinctrl-1 = <&lcdc0_vcc_18>;
837                         pinctrl-2 = <&lcdc0_vcc_33>;    
838         };
839         lcdc1_vcc_domain: lcdc1-vcc-domain{
840                         compatible = "rockchip,io_vol_domain";
841                         pinctrl-names = "default", "1.8V", "3.3V";
842                         pinctrl-0 = <&lcdc1_vcc>;
843                         pinctrl-1 = <&lcdc1_vcc_18>;
844                         pinctrl-2 = <&lcdc1_vcc_33>;    
845         };
846
847 };