7415e34a9c622aac2d55adf784e1b0dabac39363
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3368.dtsi
1 /*
2  * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de>
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This library is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This library is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 #include <dt-bindings/clock/rk3368-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/irq.h>
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/display/rk_fb.h>
49 #include <dt-bindings/display/mipi_dsi.h>
50 #include <dt-bindings/power/rk3368-power.h>
51 #include <dt-bindings/soc/rockchip,boot-mode.h>
52 #include <dt-bindings/thermal/thermal.h>
53
54 / {
55         compatible = "rockchip,rk3368";
56         interrupt-parent = <&gic>;
57         #address-cells = <2>;
58         #size-cells = <2>;
59
60         aliases {
61                 ethernet0 = &gmac;
62                 i2c0 = &i2c0;
63                 i2c1 = &i2c1;
64                 i2c2 = &i2c2;
65                 i2c3 = &i2c3;
66                 i2c4 = &i2c4;
67                 i2c5 = &i2c5;
68                 serial0 = &uart0;
69                 serial1 = &uart1;
70                 serial2 = &uart2;
71                 serial3 = &uart3;
72                 serial4 = &uart4;
73                 spi0 = &spi0;
74                 spi1 = &spi1;
75                 spi2 = &spi2;
76                 lcdc = &lcdc;
77         };
78
79         cpus {
80                 #address-cells = <0x2>;
81                 #size-cells = <0x0>;
82
83                 cpu-map {
84                         cluster0 {
85                                 core0 {
86                                         cpu = <&cpu_b0>;
87                                 };
88                                 core1 {
89                                         cpu = <&cpu_b1>;
90                                 };
91                                 core2 {
92                                         cpu = <&cpu_b2>;
93                                 };
94                                 core3 {
95                                         cpu = <&cpu_b3>;
96                                 };
97                         };
98
99                         cluster1 {
100                                 core0 {
101                                         cpu = <&cpu_l0>;
102                                 };
103                                 core1 {
104                                         cpu = <&cpu_l1>;
105                                 };
106                                 core2 {
107                                         cpu = <&cpu_l2>;
108                                 };
109                                 core3 {
110                                         cpu = <&cpu_l3>;
111                                 };
112                         };
113                 };
114
115                 idle-states {
116                         entry-method = "psci";
117
118                         cpu_sleep: cpu-sleep-0 {
119                                 compatible = "arm,idle-state";
120                                 arm,psci-suspend-param = <0x1010000>;
121                                 entry-latency-us = <0x3fffffff>;
122                                 exit-latency-us = <0x40000000>;
123                                 min-residency-us = <0xffffffff>;
124                         };
125                 };
126
127                 cpu_l0: cpu@0 {
128                         device_type = "cpu";
129                         compatible = "arm,cortex-a53", "arm,armv8";
130                         reg = <0x0 0x0>;
131                         cpu-idle-states = <&cpu_sleep>;
132                         enable-method = "psci";
133                         clocks = <&cru ARMCLKL>;
134                         operating-points-v2 = <&cluster1_opp>;
135
136                         #cooling-cells = <2>; /* min followed by max */
137                 };
138
139                 cpu_l1: cpu@1 {
140                         device_type = "cpu";
141                         compatible = "arm,cortex-a53", "arm,armv8";
142                         reg = <0x0 0x1>;
143                         cpu-idle-states = <&cpu_sleep>;
144                         enable-method = "psci";
145                         clocks = <&cru ARMCLKL>;
146                         operating-points-v2 = <&cluster1_opp>;
147                 };
148
149                 cpu_l2: cpu@2 {
150                         device_type = "cpu";
151                         compatible = "arm,cortex-a53", "arm,armv8";
152                         reg = <0x0 0x2>;
153                         cpu-idle-states = <&cpu_sleep>;
154                         enable-method = "psci";
155                         clocks = <&cru ARMCLKL>;
156                         operating-points-v2 = <&cluster1_opp>;
157                 };
158
159                 cpu_l3: cpu@3 {
160                         device_type = "cpu";
161                         compatible = "arm,cortex-a53", "arm,armv8";
162                         reg = <0x0 0x3>;
163                         cpu-idle-states = <&cpu_sleep>;
164                         enable-method = "psci";
165                         clocks = <&cru ARMCLKL>;
166                         operating-points-v2 = <&cluster1_opp>;
167                 };
168
169                 cpu_b0: cpu@100 {
170                         device_type = "cpu";
171                         compatible = "arm,cortex-a53", "arm,armv8";
172                         reg = <0x0 0x100>;
173                         cpu-idle-states = <&cpu_sleep>;
174                         enable-method = "psci";
175                         clocks = <&cru ARMCLKB>;
176                         operating-points-v2 = <&cluster0_opp>;
177
178                         #cooling-cells = <2>; /* min followed by max */
179                 };
180
181                 cpu_b1: cpu@101 {
182                         device_type = "cpu";
183                         compatible = "arm,cortex-a53", "arm,armv8";
184                         reg = <0x0 0x101>;
185                         cpu-idle-states = <&cpu_sleep>;
186                         enable-method = "psci";
187                         clocks = <&cru ARMCLKB>;
188                         operating-points-v2 = <&cluster0_opp>;
189                 };
190
191                 cpu_b2: cpu@102 {
192                         device_type = "cpu";
193                         compatible = "arm,cortex-a53", "arm,armv8";
194                         reg = <0x0 0x102>;
195                         cpu-idle-states = <&cpu_sleep>;
196                         enable-method = "psci";
197                         clocks = <&cru ARMCLKB>;
198                         operating-points-v2 = <&cluster0_opp>;
199                 };
200
201                 cpu_b3: cpu@103 {
202                         device_type = "cpu";
203                         compatible = "arm,cortex-a53", "arm,armv8";
204                         reg = <0x0 0x103>;
205                         cpu-idle-states = <&cpu_sleep>;
206                         enable-method = "psci";
207                         clocks = <&cru ARMCLKB>;
208                         operating-points-v2 = <&cluster0_opp>;
209                 };
210         };
211
212         cluster0_opp: opp_table0 {
213                 compatible = "operating-points-v2";
214                 opp-shared;
215
216                 opp@408000000 {
217                         opp-hz = /bits/ 64 <408000000>;
218                         opp-microvolt = <1200000>;
219                         clock-latency-ns = <40000>;
220                         opp-suspend;
221                 };
222                 opp@600000000 {
223                         opp-hz = /bits/ 64 <600000000>;
224                         opp-microvolt = <1200000>;
225                 };
226                 opp@816000000 {
227                         opp-hz = /bits/ 64 <816000000>;
228                         opp-microvolt = <1200000>;
229                 };
230                 opp@1008000000 {
231                         opp-hz = /bits/ 64 <1008000000>;
232                         opp-microvolt = <1200000>;
233                 };
234                 opp@1200000000 {
235                         opp-hz = /bits/ 64 <1200000000>;
236                         opp-microvolt = <1200000>;
237                 };
238         };
239
240         cluster1_opp: opp_table1 {
241                 compatible = "operating-points-v2";
242                 opp-shared;
243
244                 opp@408000000 {
245                         opp-hz = /bits/ 64 <408000000>;
246                         opp-microvolt = <1200000>;
247                         clock-latency-ns = <40000>;
248                         opp-suspend;
249                 };
250                 opp@600000000 {
251                         opp-hz = /bits/ 64 <600000000>;
252                         opp-microvolt = <1200000>;
253                 };
254                 opp@816000000 {
255                         opp-hz = /bits/ 64 <816000000>;
256                         opp-microvolt = <1200000>;
257                 };
258                 opp@1008000000 {
259                         opp-hz = /bits/ 64 <1008000000>;
260                         opp-microvolt = <1200000>;
261                 };
262         };
263
264         arm-pmu {
265                 compatible = "arm,armv8-pmuv3";
266                 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
267                              <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
268                              <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
269                              <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
270                              <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
271                              <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
272                              <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
273                              <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
274                 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
275                                      <&cpu_l3>, <&cpu_b0>, <&cpu_b1>,
276                                      <&cpu_b2>, <&cpu_b3>;
277         };
278
279         amba {
280                 compatible = "arm,amba-bus";
281                 #address-cells = <2>;
282                 #size-cells = <2>;
283                 ranges;
284
285                 dmac_peri: dma-controller@ff250000 {
286                         compatible = "arm,pl330", "arm,primecell";
287                         reg = <0x0 0xff250000 0x0 0x4000>;
288                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
289                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
290                         #dma-cells = <1>;
291                         clocks = <&cru ACLK_DMAC_PERI>;
292                         clock-names = "apb_pclk";
293                         arm,pl330-broken-no-flushp;
294                         peripherals-req-type-burst;
295                 };
296
297                 dmac_bus: dma-controller@ff600000 {
298                         compatible = "arm,pl330", "arm,primecell";
299                         reg = <0x0 0xff600000 0x0 0x4000>;
300                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
301                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
302                         #dma-cells = <1>;
303                         clocks = <&cru ACLK_DMAC_BUS>;
304                         clock-names = "apb_pclk";
305                         arm,pl330-broken-no-flushp;
306                         peripherals-req-type-burst;
307                 };
308         };
309
310         psci {
311                 compatible = "arm,psci-0.2";
312                 method = "smc";
313         };
314
315         timer {
316                 compatible = "arm,armv8-timer";
317                 interrupts = <GIC_PPI 13
318                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
319                              <GIC_PPI 14
320                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
321                              <GIC_PPI 11
322                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
323                              <GIC_PPI 10
324                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
325         };
326
327         xin24m: oscillator {
328                 compatible = "fixed-clock";
329                 clock-frequency = <24000000>;
330                 clock-output-names = "xin24m";
331                 #clock-cells = <0>;
332         };
333
334         sdmmc: rksdmmc@ff0c0000 {
335                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
336                 reg = <0x0 0xff0c0000 0x0 0x4000>;
337                 clock-freq-min-max = <400000 150000000>;
338                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
339                          <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
340                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
341                 fifo-depth = <0x100>;
342                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
343                 status = "disabled";
344         };
345
346         sdio0: dwmmc@ff0d0000 {
347                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
348                 reg = <0x0 0xff0d0000 0x0 0x4000>;
349                 clock-freq-min-max = <400000 150000000>;
350                 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
351                          <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
352                 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
353                 fifo-depth = <0x100>;
354                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
355                 status = "disabled";
356         };
357
358         emmc: rksdmmc@ff0f0000 {
359                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
360                 reg = <0x0 0xff0f0000 0x0 0x4000>;
361                 clock-freq-min-max = <400000 150000000>;
362                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
363                          <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
364                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
365                 fifo-depth = <0x100>;
366                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
367                 status = "disabled";
368         };
369
370         saradc: saradc@ff100000 {
371                 compatible = "rockchip,saradc";
372                 reg = <0x0 0xff100000 0x0 0x100>;
373                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
374                 #io-channel-cells = <1>;
375                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
376                 clock-names = "saradc", "apb_pclk";
377                 resets = <&cru SRST_SARADC>;
378                 reset-names = "saradc-apb";
379                 status = "disabled";
380         };
381
382         spi0: spi@ff110000 {
383                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
384                 reg = <0x0 0xff110000 0x0 0x1000>;
385                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
386                 clock-names = "spiclk", "apb_pclk";
387                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
388                 pinctrl-names = "default";
389                 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
390                 #address-cells = <1>;
391                 #size-cells = <0>;
392                 status = "disabled";
393         };
394
395         spi1: spi@ff120000 {
396                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
397                 reg = <0x0 0xff120000 0x0 0x1000>;
398                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
399                 clock-names = "spiclk", "apb_pclk";
400                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
401                 pinctrl-names = "default";
402                 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
403                 #address-cells = <1>;
404                 #size-cells = <0>;
405                 status = "disabled";
406         };
407
408         spi2: spi@ff130000 {
409                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
410                 reg = <0x0 0xff130000 0x0 0x1000>;
411                 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
412                 clock-names = "spiclk", "apb_pclk";
413                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
414                 pinctrl-names = "default";
415                 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
416                 #address-cells = <1>;
417                 #size-cells = <0>;
418                 status = "disabled";
419         };
420
421         i2c0: i2c@ff650000 {
422                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
423                 reg = <0x0 0xff650000 0x0 0x1000>;
424                 clocks = <&cru PCLK_I2C0>;
425                 clock-names = "i2c";
426                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
427                 pinctrl-names = "default";
428                 pinctrl-0 = <&i2c0_xfer>;
429                 #address-cells = <1>;
430                 #size-cells = <0>;
431                 status = "disabled";
432         };
433
434         i2c2: i2c@ff140000 {
435                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
436                 reg = <0x0 0xff140000 0x0 0x1000>;
437                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
438                 #address-cells = <1>;
439                 #size-cells = <0>;
440                 clock-names = "i2c";
441                 clocks = <&cru PCLK_I2C2>;
442                 pinctrl-names = "default";
443                 pinctrl-0 = <&i2c2_xfer>;
444                 status = "disabled";
445         };
446
447         i2c3: i2c@ff150000 {
448                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
449                 reg = <0x0 0xff150000 0x0 0x1000>;
450                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
451                 #address-cells = <1>;
452                 #size-cells = <0>;
453                 clock-names = "i2c";
454                 clocks = <&cru PCLK_I2C3>;
455                 pinctrl-names = "default";
456                 pinctrl-0 = <&i2c3_xfer>;
457                 status = "disabled";
458         };
459
460         i2c4: i2c@ff160000 {
461                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
462                 reg = <0x0 0xff160000 0x0 0x1000>;
463                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
464                 #address-cells = <1>;
465                 #size-cells = <0>;
466                 clock-names = "i2c";
467                 clocks = <&cru PCLK_I2C4>;
468                 pinctrl-names = "default";
469                 pinctrl-0 = <&i2c4_xfer>;
470                 status = "disabled";
471         };
472
473         i2c5: i2c@ff170000 {
474                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
475                 reg = <0x0 0xff170000 0x0 0x1000>;
476                 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
477                 #address-cells = <1>;
478                 #size-cells = <0>;
479                 clock-names = "i2c";
480                 clocks = <&cru PCLK_I2C5>;
481                 pinctrl-names = "default";
482                 pinctrl-0 = <&i2c5_xfer>;
483                 status = "disabled";
484         };
485
486         uart0: serial@ff180000 {
487                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
488                 reg = <0x0 0xff180000 0x0 0x100>;
489                 clock-frequency = <24000000>;
490                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
491                 clock-names = "baudclk", "apb_pclk";
492                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
493                 reg-shift = <2>;
494                 reg-io-width = <4>;
495                 status = "disabled";
496         };
497
498         uart1: serial@ff190000 {
499                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
500                 reg = <0x0 0xff190000 0x0 0x100>;
501                 clock-frequency = <24000000>;
502                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
503                 clock-names = "baudclk", "apb_pclk";
504                 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
505                 reg-shift = <2>;
506                 reg-io-width = <4>;
507                 status = "disabled";
508         };
509
510         uart3: serial@ff1b0000 {
511                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
512                 reg = <0x0 0xff1b0000 0x0 0x100>;
513                 clock-frequency = <24000000>;
514                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
515                 clock-names = "baudclk", "apb_pclk";
516                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
517                 reg-shift = <2>;
518                 reg-io-width = <4>;
519                 status = "disabled";
520         };
521
522         uart4: serial@ff1c0000 {
523                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
524                 reg = <0x0 0xff1c0000 0x0 0x100>;
525                 clock-frequency = <24000000>;
526                 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
527                 clock-names = "baudclk", "apb_pclk";
528                 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
529                 reg-shift = <2>;
530                 reg-io-width = <4>;
531                 status = "disabled";
532         };
533
534         thermal-zones {
535                 #include "rk3368-thermal.dtsi"
536         };
537
538         tsadc: tsadc@ff280000 {
539                 compatible = "rockchip,rk3368-tsadc";
540                 reg = <0x0 0xff280000 0x0 0x100>;
541                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
542                 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
543                 clock-names = "tsadc", "apb_pclk";
544                 resets = <&cru SRST_TSADC>;
545                 reset-names = "tsadc-apb";
546                 pinctrl-names = "init", "default", "sleep";
547                 pinctrl-0 = <&otp_gpio>;
548                 pinctrl-1 = <&otp_out>;
549                 pinctrl-2 = <&otp_gpio>;
550                 #thermal-sensor-cells = <1>;
551                 rockchip,hw-tshut-temp = <95000>;
552                 status = "disabled";
553         };
554
555         gmac: ethernet@ff290000 {
556                 compatible = "rockchip,rk3368-gmac";
557                 reg = <0x0 0xff290000 0x0 0x10000>;
558                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
559                 interrupt-names = "macirq";
560                 rockchip,grf = <&grf>;
561                 clocks = <&cru SCLK_MAC>,
562                         <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
563                         <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
564                         <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
565                 clock-names = "stmmaceth",
566                         "mac_clk_rx", "mac_clk_tx",
567                         "clk_mac_ref", "clk_mac_refout",
568                         "aclk_mac", "pclk_mac";
569                 status = "disabled";
570         };
571
572         nandc0: nandc@ff400000 {
573                 compatible = "rockchip,rk-nandc";
574                 reg = <0x0 0xff400000 0x0 0x4000>;
575                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
576                 nandc_id = <0>;
577                 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
578                 clock-names = "clk_nandc", "hclk_nandc";
579                 status = "disabled";
580         };
581
582         usb_host0_ehci: usb@ff500000 {
583                 compatible = "generic-ehci";
584                 reg = <0x0 0xff500000 0x0 0x100>;
585                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
586                 clocks = <&cru HCLK_HOST0>;
587                 clock-names = "usbhost";
588                 status = "disabled";
589         };
590
591         usb_otg: usb@ff580000 {
592                 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
593                                 "snps,dwc2";
594                 reg = <0x0 0xff580000 0x0 0x40000>;
595                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
596                 clocks = <&cru HCLK_OTG0>;
597                 clock-names = "otg";
598                 dr_mode = "otg";
599                 g-np-tx-fifo-size = <16>;
600                 g-rx-fifo-size = <275>;
601                 g-tx-fifo-size = <256 128 128 64 64 32>;
602                 g-use-dma;
603                 status = "disabled";
604         };
605
606         ddrpctl: syscon@ff610000 {
607                 compatible = "rockchip,rk3368-ddrpctl", "syscon";
608                 reg = <0x0 0xff610000 0x0 0x400>;
609         };
610
611         i2c1: i2c@ff660000 {
612                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
613                 reg = <0x0 0xff660000 0x0 0x1000>;
614                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
615                 #address-cells = <1>;
616                 #size-cells = <0>;
617                 clock-names = "i2c";
618                 clocks = <&cru PCLK_I2C1>;
619                 pinctrl-names = "default";
620                 pinctrl-0 = <&i2c1_xfer>;
621                 status = "disabled";
622         };
623
624         pwm0: pwm@ff680000 {
625                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
626                 reg = <0x0 0xff680000 0x0 0x10>;
627                 #pwm-cells = <3>;
628                 pinctrl-names = "default";
629                 pinctrl-0 = <&pwm0_pin>;
630                 clocks = <&cru PCLK_PWM1>;
631                 clock-names = "pwm";
632                 status = "disabled";
633         };
634
635         pwm1: pwm@ff680010 {
636                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
637                 reg = <0x0 0xff680010 0x0 0x10>;
638                 #pwm-cells = <3>;
639                 pinctrl-names = "default";
640                 pinctrl-0 = <&pwm1_pin>;
641                 clocks = <&cru PCLK_PWM1>;
642                 clock-names = "pwm";
643                 status = "disabled";
644         };
645
646         pwm2: pwm@ff680020 {
647                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
648                 reg = <0x0 0xff680020 0x0 0x10>;
649                 #pwm-cells = <3>;
650                 clocks = <&cru PCLK_PWM1>;
651                 clock-names = "pwm";
652                 status = "disabled";
653         };
654
655         pwm3: pwm@ff680030 {
656                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
657                 reg = <0x0 0xff680030 0x0 0x10>;
658                 #pwm-cells = <3>;
659                 pinctrl-names = "default";
660                 pinctrl-0 = <&pwm3_pin>;
661                 clocks = <&cru PCLK_PWM1>;
662                 clock-names = "pwm";
663                 status = "disabled";
664         };
665
666         uart2: serial@ff690000 {
667                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
668                 reg = <0x0 0xff690000 0x0 0x100>;
669                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
670                 clock-names = "baudclk", "apb_pclk";
671                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
672                 pinctrl-names = "default";
673                 pinctrl-0 = <&uart2_xfer>;
674                 reg-shift = <2>;
675                 reg-io-width = <4>;
676                 status = "disabled";
677         };
678
679         mbox: mbox@ff6b0000 {
680                 compatible = "rockchip,rk3368-mailbox";
681                 reg = <0x0 0xff6b0000 0x0 0x1000>;
682                 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
683                              <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
684                              <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
685                              <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
686                 clocks = <&cru PCLK_MAILBOX>;
687                 clock-names = "pclk_mailbox";
688                 #mbox-cells = <1>;
689         };
690
691         pmu: power-management@ff730000 {
692                 compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd";
693                 reg = <0x0 0xff730000 0x0 0x1000>;
694
695                 power: power-controller {
696                         status = "disabled";
697                         compatible = "rockchip,rk3368-power-controller";
698                         #power-domain-cells = <1>;
699                         #address-cells = <1>;
700                         #size-cells = <0>;
701
702                         /*
703                          * Note: Although SCLK_* are the working clocks
704                          * of device without including on the NOC, needed for
705                          * synchronous reset.
706                          *
707                          * The clocks on the which NOC:
708                          * ACLK_IEP/ACLK_VIP/ACLK_VOP0 are on ACLK_VIO0_NIU.
709                          * ACLK_ISP/ACLK_VOP1 are on ACLK_VIO1_NIU.
710                          * ACLK_RGA is on ACLK_RGA_NIU.
711                          * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
712                          *
713                          * Which clock are device clocks:
714                          *      clocks          devices
715                          *      *_IEP           IEP:Image Enhancement Processor
716                          *      *_ISP           ISP:Image Signal Processing
717                          *      *_VIP           VIP:Video Input Processor
718                          *      *_VOP*          VOP:Visual Output Processor
719                          *      *_RGA           RGA
720                          *      *_EDP*          EDP
721                          *      *_DPHY*         LVDS
722                          *      *_HDMI          HDMI
723                          *      *_MIPI_*        MIPI
724                          */
725                         pd_vio {
726                                 reg = <RK3368_PD_VIO>;
727                                 clocks = <&cru ACLK_IEP>,
728                                          <&cru ACLK_ISP>,
729                                          <&cru ACLK_VIP>,
730                                          <&cru ACLK_RGA>,
731                                          <&cru ACLK_VOP>,
732                                          <&cru ACLK_VOP_IEP>,
733                                          <&cru DCLK_VOP>,
734                                          <&cru HCLK_IEP>,
735                                          <&cru HCLK_ISP>,
736                                          <&cru HCLK_RGA>,
737                                          <&cru HCLK_VIP>,
738                                          <&cru HCLK_VOP>,
739                                          <&cru HCLK_VIO_HDCPMMU>,
740                                          <&cru PCLK_EDP_CTRL>,
741                                          <&cru PCLK_HDMI_CTRL>,
742                                          <&cru PCLK_HDCP>,
743                                          <&cru PCLK_ISP>,
744                                          <&cru PCLK_VIP>,
745                                          <&cru PCLK_DPHYRX>,
746                                          <&cru PCLK_DPHYTX0>,
747                                          <&cru PCLK_MIPI_CSI>,
748                                          <&cru PCLK_MIPI_DSI0>,
749                                          <&cru SCLK_VOP0_PWM>,
750                                          <&cru SCLK_EDP_24M>,
751                                          <&cru SCLK_EDP>,
752                                          <&cru SCLK_HDCP>,
753                                          <&cru SCLK_ISP>,
754                                          <&cru SCLK_RGA>,
755                                          <&cru SCLK_HDMI_CEC>,
756                                          <&cru SCLK_HDMI_HDCP>;
757                         };
758                         /*
759                          * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
760                          * (video endecoder & decoder) clocks that on the
761                          * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
762                          */
763                         pd_video {
764                                 reg = <RK3368_PD_VIDEO>;
765                                 clocks = <&cru ACLK_VIDEO>,
766                                          <&cru HCLK_VIDEO>,
767                                          <&cru SCLK_HEVC_CABAC>,
768                                          <&cru SCLK_HEVC_CORE>;
769                         };
770                         /*
771                          * Note: ACLK_GPU is the GPU clock,
772                          * and on the ACLK_GPU_NIU (NOC).
773                          */
774                         pd_gpu_1 {
775                                 reg = <RK3368_PD_GPU_1>;
776                                 clocks = <&cru ACLK_GPU_CFG>,
777                                          <&cru ACLK_GPU_MEM>,
778                                          <&cru SCLK_GPU_CORE>;
779                         };
780                 };
781         };
782
783         pmugrf: syscon@ff738000 {
784                 compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
785                 reg = <0x0 0xff738000 0x0 0x1000>;
786
787                 reboot-mode {
788                         compatible = "syscon-reboot-mode";
789                         offset = <0x200>;
790                         mode-normal = <BOOT_NORMAL>;
791                         mode-recovery = <BOOT_RECOVERY>;
792                         mode-bootloader = <BOOT_FASTBOOT>;
793                         mode-loader = <BOOT_BL_DOWNLOAD>;
794
795                 };
796         };
797
798         cru: clock-controller@ff760000 {
799                 compatible = "rockchip,rk3368-cru";
800                 reg = <0x0 0xff760000 0x0 0x1000>;
801                 rockchip,grf = <&grf>;
802                 #clock-cells = <1>;
803                 #reset-cells = <1>;
804                 assigned-clocks =
805                         <&cru PLL_GPLL>, <&cru PLL_CPLL>,
806                         <&cru PLL_NPLL>,
807                         <&cru ACLK_BUS>, <&cru ACLK_PERI>,
808                         <&cru HCLK_BUS>, <&cru HCLK_PERI>,
809                         <&cru PCLK_BUS>, <&cru PCLK_PERI>;
810                 assigned-clock-rates =
811                         <576000000>, <400000000>,
812                         <1188000000>,
813                         <300000000>, <300000000>,
814                         <150000000>, <150000000>,
815                         <75000000>, <75000000>;
816         };
817
818         grf: syscon@ff770000 {
819                 compatible = "rockchip,rk3368-grf", "syscon";
820                 reg = <0x0 0xff770000 0x0 0x1000>;
821         };
822
823         wdt: watchdog@ff800000 {
824                 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
825                 reg = <0x0 0xff800000 0x0 0x100>;
826                 clocks = <&cru PCLK_WDT>;
827                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
828                 status = "disabled";
829         };
830
831         timer@ff810000 {
832                 compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
833                 reg = <0x0 0xff810000 0x0 0x20>;
834                 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
835         };
836
837         gic: interrupt-controller@ffb71000 {
838                 compatible = "arm,gic-400";
839                 interrupt-controller;
840                 #interrupt-cells = <3>;
841                 #address-cells = <0>;
842
843                 reg = <0x0 0xffb71000 0x0 0x1000>,
844                       <0x0 0xffb72000 0x0 0x2000>,
845                       <0x0 0xffb74000 0x0 0x2000>,
846                       <0x0 0xffb76000 0x0 0x2000>;
847                 interrupts = <GIC_PPI 9
848                       (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
849         };
850
851         gpu: rogue-g6110@ffa30000 {
852                 compatible = "arm,rogue-G6110", "arm,rk3368-gpu";
853                 reg = <0x0 0xffa30000 0x0 0x10000>;
854                 clocks =
855                         <&cru SCLK_GPU_CORE>,
856                         <&cru ACLK_GPU_MEM>,
857                         <&cru ACLK_GPU_CFG>;
858                 clock-names =
859                         "sclk_gpu_core",
860                         "aclk_gpu_mem",
861                         "aclk_gpu_cfg";
862                 operating-points = <
863                         /* KHz uV */
864                         200000 1100000
865                         288000 1100000
866                         400000 1150000
867                         576000 1200000
868                 >;
869                 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
870                 interrupt-names = "rogue-g6110-irq";
871         };
872
873         i2s_2ch: i2s-2ch@ff890000 {
874                 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
875                 reg = <0x0 0xff890000 0x0 0x1000>;
876                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
877                 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
878                 dma-names = "tx", "rx";
879                 clock-names = "i2s_clk", "i2s_hclk";
880                 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
881                 status = "disabled";
882         };
883
884         i2s_8ch: i2s-8ch@ff898000 {
885                 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
886                 reg = <0x0 0xff898000 0x0 0x1000>;
887                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
888                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
889                 dma-names = "tx", "rx";
890                 clock-names = "i2s_clk", "i2s_hclk";
891                 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
892                 pinctrl-names = "default";
893                 pinctrl-0 = <&i2s_8ch_bus>;
894                 status = "disabled";
895         };
896
897         isp: isp@ff910000 {
898                 compatible = "rockchip,rk3368-isp", "rockchip,isp";
899                 reg = <0x0 0xff910000 0x0 0x10000>;
900                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
901                 /*power-domains = <&power PD_VIO>;*/
902                 clocks =
903                         <&cru ACLK_RGA>, <&cru HCLK_ISP>, <&cru SCLK_ISP>,
904                         <&cru SCLK_ISP>, <&cru PCLK_ISP>, <&cru SCLK_VIP_OUT>,
905                         <&cru SCLK_VIP_OUT>, <&cru PCLK_MIPI_CSI>,
906                         <&cru PCLK_DPHYRX>, <&cru ACLK_VIO0_NOC>;
907                 clock-names =
908                         "aclk_isp", "hclk_isp", "clk_isp",
909                         "clk_isp_jpe", "pclkin_isp", "clk_cif_out",
910                         "clk_cif_pll", "hclk_mipiphy1",
911                         "pclk_dphyrx", "clk_vio0_noc";
912                 pinctrl-names =
913                         "default", "isp_dvp8bit2", "isp_dvp10bit", "isp_dvp12bit",
914                         "isp_dvp8bit0", "isp_dvp8bit4", "isp_mipi_fl",
915                         "isp_mipi_fl_prefl", "isp_flash_as_gpio",
916                         "isp_flash_as_trigger_out";
917                 pinctrl-0 = <&cif_clkout>;
918                 pinctrl-1 = <&cif_clkout &isp_dvp_d2d9>;
919                 pinctrl-2 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d0d1>;
920                 pinctrl-3 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d0d1 &isp_dvp_d10d11>;
921                 pinctrl-4 = <&cif_clkout &isp_dvp_d0d7>;
922                 pinctrl-5 = <&cif_clkout &isp_dvp_d4d11>;
923                 pinctrl-6 = <&cif_clkout>;
924                 pinctrl-7 = <&cif_clkout &isp_prelight>;
925                 pinctrl-8 = <&isp_flash_trigger_as_gpio>;
926                 pinctrl-9 = <&isp_flash_trigger>;
927                 rockchip,isp,mipiphy = <2>;
928                 rockchip,isp,cifphy = <1>;
929                 rockchip,isp,mipiphy1,reg = <0xff964000 0x4000>;
930                 rockchip,isp,csiphy,reg = <0xff96C000 0x4000>;
931                 rockchip,grf = <&grf>;
932                 rockchip,cru = <&cru>;
933                 rockchip,gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
934                 rockchip,isp,iommu_enable = <1>;
935                 status = "disabled";
936         };
937
938         rga: rga@ff920000 {
939                 compatible = "rockchip,rga2";
940                 dev_mode = <1>;
941                 reg = <0x0 0xff920000 0x0 0x1000>;
942                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
943                 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
944                 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
945                 status = "disabled";
946         };
947
948         pinctrl: pinctrl {
949                 compatible = "rockchip,rk3368-pinctrl";
950                 rockchip,grf = <&grf>;
951                 rockchip,pmu = <&pmugrf>;
952                 #address-cells = <0x2>;
953                 #size-cells = <0x2>;
954                 ranges;
955
956                 gpio0: gpio0@ff750000 {
957                         compatible = "rockchip,gpio-bank";
958                         reg = <0x0 0xff750000 0x0 0x100>;
959                         clocks = <&cru PCLK_GPIO0>;
960                         interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>;
961
962                         gpio-controller;
963                         #gpio-cells = <0x2>;
964
965                         interrupt-controller;
966                         #interrupt-cells = <0x2>;
967                 };
968
969                 gpio1: gpio1@ff780000 {
970                         compatible = "rockchip,gpio-bank";
971                         reg = <0x0 0xff780000 0x0 0x100>;
972                         clocks = <&cru PCLK_GPIO1>;
973                         interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>;
974
975                         gpio-controller;
976                         #gpio-cells = <0x2>;
977
978                         interrupt-controller;
979                         #interrupt-cells = <0x2>;
980                 };
981
982                 gpio2: gpio2@ff790000 {
983                         compatible = "rockchip,gpio-bank";
984                         reg = <0x0 0xff790000 0x0 0x100>;
985                         clocks = <&cru PCLK_GPIO2>;
986                         interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>;
987
988                         gpio-controller;
989                         #gpio-cells = <0x2>;
990
991                         interrupt-controller;
992                         #interrupt-cells = <0x2>;
993                 };
994
995                 gpio3: gpio3@ff7a0000 {
996                         compatible = "rockchip,gpio-bank";
997                         reg = <0x0 0xff7a0000 0x0 0x100>;
998                         clocks = <&cru PCLK_GPIO3>;
999                         interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>;
1000
1001                         gpio-controller;
1002                         #gpio-cells = <0x2>;
1003
1004                         interrupt-controller;
1005                         #interrupt-cells = <0x2>;
1006                 };
1007
1008                 pcfg_pull_up: pcfg-pull-up {
1009                         bias-pull-up;
1010                 };
1011
1012                 pcfg_pull_down: pcfg-pull-down {
1013                         bias-pull-down;
1014                 };
1015
1016                 pcfg_pull_none: pcfg-pull-none {
1017                         bias-disable;
1018                 };
1019
1020                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1021                         bias-disable;
1022                         drive-strength = <12>;
1023                 };
1024
1025                 emmc {
1026                         emmc_clk: emmc-clk {
1027                                 rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none>;
1028                         };
1029
1030                         emmc_cmd: emmc-cmd {
1031                                 rockchip,pins = <1 26 RK_FUNC_2 &pcfg_pull_up>;
1032                         };
1033
1034                         emmc_pwr: emmc-pwr {
1035                                 rockchip,pins = <1 27 RK_FUNC_2 &pcfg_pull_up>;
1036                         };
1037
1038                         emmc_bus1: emmc-bus1 {
1039                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>;
1040                         };
1041
1042                         emmc_bus4: emmc-bus4 {
1043                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
1044                                                 <1 19 RK_FUNC_2 &pcfg_pull_up>,
1045                                                 <1 20 RK_FUNC_2 &pcfg_pull_up>,
1046                                                 <1 21 RK_FUNC_2 &pcfg_pull_up>;
1047                         };
1048
1049                         emmc_bus8: emmc-bus8 {
1050                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
1051                                                 <1 19 RK_FUNC_2 &pcfg_pull_up>,
1052                                                 <1 20 RK_FUNC_2 &pcfg_pull_up>,
1053                                                 <1 21 RK_FUNC_2 &pcfg_pull_up>,
1054                                                 <1 22 RK_FUNC_2 &pcfg_pull_up>,
1055                                                 <1 23 RK_FUNC_2 &pcfg_pull_up>,
1056                                                 <1 24 RK_FUNC_2 &pcfg_pull_up>,
1057                                                 <1 25 RK_FUNC_2 &pcfg_pull_up>;
1058                         };
1059                 };
1060
1061                 gmac {
1062                         rgmii_pins: rgmii-pins {
1063                                 rockchip,pins = <3 22 RK_FUNC_1 &pcfg_pull_none>,
1064                                                 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1065                                                 <3 19 RK_FUNC_1 &pcfg_pull_none>,
1066                                                 <3 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
1067                                                 <3 9 RK_FUNC_1 &pcfg_pull_none_12ma>,
1068                                                 <3 10 RK_FUNC_1 &pcfg_pull_none_12ma>,
1069                                                 <3 14 RK_FUNC_1 &pcfg_pull_none_12ma>,
1070                                                 <3 28 RK_FUNC_1 &pcfg_pull_none_12ma>,
1071                                                 <3 13 RK_FUNC_1 &pcfg_pull_none_12ma>,
1072                                                 <3 15 RK_FUNC_1 &pcfg_pull_none>,
1073                                                 <3 16 RK_FUNC_1 &pcfg_pull_none>,
1074                                                 <3 17 RK_FUNC_1 &pcfg_pull_none>,
1075                                                 <3 18 RK_FUNC_1 &pcfg_pull_none>,
1076                                                 <3 25 RK_FUNC_1 &pcfg_pull_none>,
1077                                                 <3 20 RK_FUNC_1 &pcfg_pull_none>;
1078                         };
1079
1080                         rmii_pins: rmii-pins {
1081                                 rockchip,pins = <3 22 RK_FUNC_1 &pcfg_pull_none>,
1082                                                 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1083                                                 <3 19 RK_FUNC_1 &pcfg_pull_none>,
1084                                                 <3 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
1085                                                 <3 9 RK_FUNC_1 &pcfg_pull_none_12ma>,
1086                                                 <3 13 RK_FUNC_1 &pcfg_pull_none_12ma>,
1087                                                 <3 15 RK_FUNC_1 &pcfg_pull_none>,
1088                                                 <3 16 RK_FUNC_1 &pcfg_pull_none>,
1089                                                 <3 20 RK_FUNC_1 &pcfg_pull_none>,
1090                                                 <3 21 RK_FUNC_1 &pcfg_pull_none>;
1091                         };
1092                 };
1093
1094                 hdmi_i2c {
1095                         hdmii2c_xfer: hdmii2c-xfer {
1096                                 rockchip,pins = <3 26 RK_FUNC_1 &pcfg_pull_none>,
1097                                                 <3 27 RK_FUNC_1 &pcfg_pull_none>;
1098                         };
1099                 };
1100
1101                 hdmi_pin {
1102                         hdmi_cec: hdmi-cec {
1103                                 rockchip,pins = <3 23 RK_FUNC_1 &pcfg_pull_none>;
1104                         };
1105                 };
1106
1107                 i2c0 {
1108                         i2c0_xfer: i2c0-xfer {
1109                                 rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,
1110                                                 <0 7 RK_FUNC_1 &pcfg_pull_none>;
1111                         };
1112                 };
1113
1114                 i2c1 {
1115                         i2c1_xfer: i2c1-xfer {
1116                                 rockchip,pins = <2 21 RK_FUNC_1 &pcfg_pull_none>,
1117                                                 <2 22 RK_FUNC_1 &pcfg_pull_none>;
1118                         };
1119                 };
1120
1121                 i2c2 {
1122                         i2c2_xfer: i2c2-xfer {
1123                                 rockchip,pins = <0 9 RK_FUNC_2 &pcfg_pull_none>,
1124                                                 <3 31 RK_FUNC_2 &pcfg_pull_none>;
1125                         };
1126                 };
1127
1128                 i2c3 {
1129                         i2c3_xfer: i2c3-xfer {
1130                                 rockchip,pins = <1 16 RK_FUNC_1 &pcfg_pull_none>,
1131                                                 <1 17 RK_FUNC_1 &pcfg_pull_none>;
1132                         };
1133                 };
1134
1135                 i2c4 {
1136                         i2c4_xfer: i2c4-xfer {
1137                                 rockchip,pins = <3 24 RK_FUNC_2 &pcfg_pull_none>,
1138                                                 <3 25 RK_FUNC_2 &pcfg_pull_none>;
1139                         };
1140                 };
1141
1142                 i2c5 {
1143                         i2c5_xfer: i2c5-xfer {
1144                                 rockchip,pins = <3 26 RK_FUNC_2 &pcfg_pull_none>,
1145                                                 <3 27 RK_FUNC_2 &pcfg_pull_none>;
1146                         };
1147                         i2c5_gpio: i2c5-gpio {
1148                                 rockchip,pins = <3 26 RK_FUNC_GPIO &pcfg_pull_none>,
1149                                                 <3 27 RK_FUNC_GPIO &pcfg_pull_none>;
1150                         };
1151                 };
1152
1153                 i2s {
1154                         i2s_8ch_bus: i2s-8ch-bus {
1155                                 rockchip,pins = <2 12 RK_FUNC_1 &pcfg_pull_none>,
1156                                                 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1157                                                 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1158                                                 <2 15 RK_FUNC_1 &pcfg_pull_none>,
1159                                                 <2 16 RK_FUNC_1 &pcfg_pull_none>,
1160                                                 <2 17 RK_FUNC_1 &pcfg_pull_none>,
1161                                                 <2 18 RK_FUNC_1 &pcfg_pull_none>,
1162                                                 <2 19 RK_FUNC_1 &pcfg_pull_none>,
1163                                                 <2 20 RK_FUNC_1 &pcfg_pull_none>;
1164                         };
1165                 };
1166
1167                 sdio0 {
1168                         sdio0_bus1: sdio0-bus1 {
1169                                 rockchip,pins = <2 28 RK_FUNC_1 &pcfg_pull_up>;
1170                         };
1171
1172                         sdio0_bus4: sdio0-bus4 {
1173                                 rockchip,pins = <2 28 RK_FUNC_1 &pcfg_pull_up>,
1174                                                 <2 29 RK_FUNC_1 &pcfg_pull_up>,
1175                                                 <2 30 RK_FUNC_1 &pcfg_pull_up>,
1176                                                 <2 31 RK_FUNC_1 &pcfg_pull_up>;
1177                         };
1178
1179                         sdio0_cmd: sdio0-cmd {
1180                                 rockchip,pins = <3 0 RK_FUNC_1 &pcfg_pull_up>;
1181                         };
1182
1183                         sdio0_clk: sdio0-clk {
1184                                 rockchip,pins = <3 1 RK_FUNC_1 &pcfg_pull_none>;
1185                         };
1186
1187                         sdio0_cd: sdio0-cd {
1188                                 rockchip,pins = <3 2 RK_FUNC_1 &pcfg_pull_up>;
1189                         };
1190
1191                         sdio0_wp: sdio0-wp {
1192                                 rockchip,pins = <3 3 RK_FUNC_1 &pcfg_pull_up>;
1193                         };
1194
1195                         sdio0_pwr: sdio0-pwr {
1196                                 rockchip,pins = <3 4 RK_FUNC_1 &pcfg_pull_up>;
1197                         };
1198
1199                         sdio0_bkpwr: sdio0-bkpwr {
1200                                 rockchip,pins = <3 5 RK_FUNC_1 &pcfg_pull_up>;
1201                         };
1202
1203                         sdio0_int: sdio0-int {
1204                                 rockchip,pins = <3 6 RK_FUNC_1 &pcfg_pull_up>;
1205                         };
1206                 };
1207
1208                 sdmmc {
1209                         sdmmc_clk: sdmmc-clk {
1210                                 rockchip,pins = <2 9 RK_FUNC_1 &pcfg_pull_none>;
1211                         };
1212
1213                         sdmmc_cmd: sdmmc-cmd {
1214                                 rockchip,pins = <2 10 RK_FUNC_1 &pcfg_pull_up>;
1215                         };
1216
1217                         sdmmc_cd: sdmmc-cd {
1218                                 rockchip,pins = <2 11 RK_FUNC_1 &pcfg_pull_up>;
1219                         };
1220
1221                         sdmmc_bus1: sdmmc-bus1 {
1222                                 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up>;
1223                         };
1224
1225                         sdmmc_bus4: sdmmc-bus4 {
1226                                 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up>,
1227                                                 <2 6 RK_FUNC_1 &pcfg_pull_up>,
1228                                                 <2 7 RK_FUNC_1 &pcfg_pull_up>,
1229                                                 <2 8 RK_FUNC_1 &pcfg_pull_up>;
1230                         };
1231                 };
1232
1233                 spi0 {
1234                         spi0_clk: spi0-clk {
1235                                 rockchip,pins = <1 29 RK_FUNC_2 &pcfg_pull_up>;
1236                         };
1237                         spi0_cs0: spi0-cs0 {
1238                                 rockchip,pins = <1 24 RK_FUNC_3 &pcfg_pull_up>;
1239                         };
1240                         spi0_cs1: spi0-cs1 {
1241                                 rockchip,pins = <1 25 RK_FUNC_3 &pcfg_pull_up>;
1242                         };
1243                         spi0_tx: spi0-tx {
1244                                 rockchip,pins = <1 23 RK_FUNC_3 &pcfg_pull_up>;
1245                         };
1246                         spi0_rx: spi0-rx {
1247                                 rockchip,pins = <1 22 RK_FUNC_3 &pcfg_pull_up>;
1248                         };
1249                 };
1250
1251                 spi1 {
1252                         spi1_clk: spi1-clk {
1253                                 rockchip,pins = <1 14 RK_FUNC_2 &pcfg_pull_up>;
1254                         };
1255                         spi1_cs0: spi1-cs0 {
1256                                 rockchip,pins = <1 15 RK_FUNC_2 &pcfg_pull_up>;
1257                         };
1258                         spi1_cs1: spi1-cs1 {
1259                                 rockchip,pins = <3 28 RK_FUNC_2 &pcfg_pull_up>;
1260                         };
1261                         spi1_rx: spi1-rx {
1262                                 rockchip,pins = <1 16 RK_FUNC_2 &pcfg_pull_up>;
1263                         };
1264                         spi1_tx: spi1-tx {
1265                                 rockchip,pins = <1 17 RK_FUNC_2 &pcfg_pull_up>;
1266                         };
1267                 };
1268
1269                 spi2 {
1270                         spi2_clk: spi2-clk {
1271                                 rockchip,pins = <0 12 RK_FUNC_2 &pcfg_pull_up>;
1272                         };
1273                         spi2_cs0: spi2-cs0 {
1274                                 rockchip,pins = <0 13 RK_FUNC_2 &pcfg_pull_up>;
1275                         };
1276                         spi2_rx: spi2-rx {
1277                                 rockchip,pins = <0 10 RK_FUNC_2 &pcfg_pull_up>;
1278                         };
1279                         spi2_tx: spi2-tx {
1280                                 rockchip,pins = <0 11 RK_FUNC_2 &pcfg_pull_up>;
1281                         };
1282                 };
1283
1284                 tsadc {
1285                         otp_gpio: otp-gpio {
1286                                 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
1287                         };
1288
1289                         otp_out: otp-out {
1290                                 rockchip,pins = <0 3 RK_FUNC_1 &pcfg_pull_none>;
1291                         };
1292                 };
1293
1294                 uart0 {
1295                         uart0_xfer: uart0-xfer {
1296                                 rockchip,pins = <2 24 RK_FUNC_1 &pcfg_pull_up>,
1297                                                 <2 25 RK_FUNC_1 &pcfg_pull_none>;
1298                         };
1299
1300                         uart0_cts: uart0-cts {
1301                                 rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>;
1302                         };
1303
1304                         uart0_rts: uart0-rts {
1305                                 rockchip,pins = <2 27 RK_FUNC_1 &pcfg_pull_none>;
1306                         };
1307                 };
1308
1309                 uart1 {
1310                         uart1_xfer: uart1-xfer {
1311                                 rockchip,pins = <0 20 RK_FUNC_3 &pcfg_pull_up>,
1312                                                 <0 21 RK_FUNC_3 &pcfg_pull_none>;
1313                         };
1314
1315                         uart1_cts: uart1-cts {
1316                                 rockchip,pins = <0 22 RK_FUNC_3 &pcfg_pull_none>;
1317                         };
1318
1319                         uart1_rts: uart1-rts {
1320                                 rockchip,pins = <0 23 RK_FUNC_3 &pcfg_pull_none>;
1321                         };
1322                 };
1323
1324                 uart2 {
1325                         uart2_xfer: uart2-xfer {
1326                                 rockchip,pins = <2 6 RK_FUNC_2 &pcfg_pull_up>,
1327                                                 <2 5 RK_FUNC_2 &pcfg_pull_none>;
1328                         };
1329                         /* no rts / cts for uart2 */
1330                 };
1331
1332                 uart3 {
1333                         uart3_xfer: uart3-xfer {
1334                                 rockchip,pins = <3 29 RK_FUNC_2 &pcfg_pull_up>,
1335                                                 <3 30 RK_FUNC_3 &pcfg_pull_none>;
1336                         };
1337
1338                         uart3_cts: uart3-cts {
1339                                 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none>;
1340                         };
1341
1342                         uart3_rts: uart3-rts {
1343                                 rockchip,pins = <3 17 RK_FUNC_2 &pcfg_pull_none>;
1344                         };
1345                 };
1346
1347                 uart4 {
1348                         uart4_xfer: uart4-xfer {
1349                                 rockchip,pins = <0 27 RK_FUNC_3 &pcfg_pull_up>,
1350                                                 <0 26 RK_FUNC_3 &pcfg_pull_none>;
1351                         };
1352
1353                         uart4_cts: uart4-cts {
1354                                 rockchip,pins = <0 24 RK_FUNC_3 &pcfg_pull_none>;
1355                         };
1356
1357                         uart4_rts: uart4-rts {
1358                                 rockchip,pins = <0 25 RK_FUNC_3 &pcfg_pull_none>;
1359                         };
1360                 };
1361
1362                 pwm0 {
1363                         pwm0_pin: pwm0-pin {
1364                                 rockchip,pins = <3 8 RK_FUNC_2 &pcfg_pull_none>;
1365                         };
1366
1367                         vop_pwm_pin: vop-pwm {
1368                                 rockchip,pins = <3 8 RK_FUNC_3 &pcfg_pull_none>;
1369                         };
1370                 };
1371
1372                 pwm1 {
1373                         pwm1_pin: pwm1-pin {
1374                                 rockchip,pins = <0 8 RK_FUNC_2 &pcfg_pull_none>;
1375                         };
1376                 };
1377
1378                 pwm3 {
1379                         pwm3_pin: pwm3-pin {
1380                                 rockchip,pins = <3 29 RK_FUNC_3 &pcfg_pull_none>;
1381                         };
1382                 };
1383
1384                 lcdc {
1385                         lcdc_lcdc: lcdc-lcdc {
1386                                 rockchip,pins =
1387                                                 <0 14 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D10
1388                                                 <0 15 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D11
1389                                                 <0 16 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D12
1390                                                 <0 17 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D13
1391                                                 <0 18 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D14
1392                                                 <0 18 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D15
1393                                                 <0 20 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D16
1394                                                 <0 21 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D17
1395                                                 <0 22 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D18
1396                                                 <0 23 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D19
1397                                                 <0 24 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D20
1398                                                 <0 25 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D21
1399                                                 <0 26 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D22
1400                                                 <0 27 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D23
1401                                                 <0 31 RK_FUNC_1 &pcfg_pull_none>,//DCLK
1402                                                 <0 30 RK_FUNC_1 &pcfg_pull_none>,//DEN
1403                                                 <0 28 RK_FUNC_1 &pcfg_pull_none>,//HSYNC
1404                                                 <0 29 RK_FUNC_1 &pcfg_pull_none>;//VSYN
1405                         };
1406
1407                         lcdc_gpio: lcdc-gpio {
1408                                 rockchip,pins =
1409                                                 <0 14 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D10
1410                                                 <0 15 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D11
1411                                                 <0 16 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D12
1412                                                 <0 17 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D13
1413                                                 <0 18 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D14
1414                                                 <0 19 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D15
1415                                                 <0 20 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D16
1416                                                 <0 21 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D17
1417                                                 <0 22 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D18
1418                                                 <0 23 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D19
1419                                                 <0 24 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D20
1420                                                 <0 25 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D21
1421                                                 <0 26 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D22
1422                                                 <0 27 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D23
1423                                                 <0 31 RK_FUNC_GPIO &pcfg_pull_none>,//DCLK
1424                                                 <0 30 RK_FUNC_GPIO &pcfg_pull_none>,//DEN
1425                                                 <0 28 RK_FUNC_GPIO &pcfg_pull_none>,//HSYNC
1426                                                 <0 29 RK_FUNC_GPIO &pcfg_pull_none>;//VSYN
1427                         };
1428                 };
1429
1430                 isp {
1431                         cif_clkout: cif-clkout {
1432                                 rockchip,pins = <1 11 RK_FUNC_1 &pcfg_pull_none>;//cif_clkout
1433                         };
1434
1435                         isp_dvp_d2d9: isp-dvp-d2d9 {
1436                                 rockchip,pins =
1437                                                 <1 0 RK_FUNC_1 &pcfg_pull_none>,//cif_data2
1438                                                 <1 1 RK_FUNC_1 &pcfg_pull_none>,//cif_data3
1439                                                 <1 2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
1440                                                 <1 3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
1441                                                 <1 4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
1442                                                 <1 5 RK_FUNC_1 &pcfg_pull_none>,//cif_data7
1443                                                 <1 6 RK_FUNC_1 &pcfg_pull_none>,//cif_data8
1444                                                 <1 7 RK_FUNC_1 &pcfg_pull_none>,//cif_data9
1445                                                 <1 8 RK_FUNC_1 &pcfg_pull_none>,//cif_sync
1446                                                 <1 9 RK_FUNC_1 &pcfg_pull_none>,//cif_href
1447                                                 <1 10 RK_FUNC_1 &pcfg_pull_none>,//cif_clkin
1448                                                 <1 11 RK_FUNC_1 &pcfg_pull_none>;//cif_clkout
1449                         };
1450
1451                         isp_dvp_d0d1: isp-dvp-d0d1 {
1452                                 rockchip,pins =
1453                                                 <1 12 RK_FUNC_1 &pcfg_pull_none>,//cif_data0
1454                                                 <1 13 RK_FUNC_1 &pcfg_pull_none>;//cif_data1
1455                         };
1456
1457                         isp_dvp_d10d11:isp_d10d11 {
1458                                 rockchip,pins =
1459                                                 <1 14 RK_FUNC_1 &pcfg_pull_none>,//cif_data10
1460                                                 <1 15 RK_FUNC_1 &pcfg_pull_none>;//cif_data11
1461                         };
1462
1463                         isp_dvp_d0d7: isp-dvp-d0d7 {
1464                                 rockchip,pins =
1465                                                 <1 12 RK_FUNC_1 &pcfg_pull_none>,//cif_data0
1466                                                 <1 13 RK_FUNC_1 &pcfg_pull_none>,//cif_data1
1467                                                 <1 0 RK_FUNC_1 &pcfg_pull_none>,//cif_data2
1468                                                 <1 1 RK_FUNC_1 &pcfg_pull_none>,//cif_data3
1469                                                 <1 2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
1470                                                 <1 3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
1471                                                 <1 4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
1472                                                 <1 5 RK_FUNC_1 &pcfg_pull_none>;//cif_data7
1473                         };
1474
1475                         isp_dvp_d4d11: isp-dvp-d4d11 {
1476                                 rockchip,pins =
1477                                                 <1 2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
1478                                                 <1 3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
1479                                                 <1 4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
1480                                                 <1 5 RK_FUNC_1 &pcfg_pull_none>,//cif_data7
1481                                                 <1 6 RK_FUNC_1 &pcfg_pull_none>,//cif_data8
1482                                                 <1 7 RK_FUNC_1 &pcfg_pull_none>,//cif_data9
1483                                                 <1 14 RK_FUNC_1 &pcfg_pull_none>,//cif_data10
1484                                                 <1 17 RK_FUNC_1 &pcfg_pull_none>;//cif_data11
1485                         };
1486
1487                         isp_shutter: isp-shutter {
1488                                 rockchip,pins =
1489                                                 <3 19 RK_FUNC_2 &pcfg_pull_none>, //SHUTTEREN
1490                                                 <3 22 RK_FUNC_2 &pcfg_pull_none>;//SHUTTERTRIG
1491                         };
1492
1493                         isp_flash_trigger: isp-flash-trigger {
1494                                 rockchip,pins = <3 20 RK_FUNC_2 &pcfg_pull_none>; //ISP_FLASHTRIGOU
1495                         };
1496
1497                         isp_prelight: isp-prelight {
1498                                 rockchip,pins = <3 21 RK_FUNC_2 &pcfg_pull_none>;//ISP_PRELIGHTTRIG
1499                         };
1500
1501                         isp_flash_trigger_as_gpio: isp_flash_trigger_as_gpio {
1502                                 rockchip,pins = <3 20 RK_FUNC_GPIO &pcfg_pull_none>;//ISP_FLASHTRIGOU
1503                         };
1504                 };
1505         };
1506
1507         fb: fb {
1508                 compatible = "rockchip,rk-fb";
1509                 rockchip,disp-mode = <NO_DUAL>;
1510                 status = "disabled";
1511         };
1512
1513         rk_screen: screen {
1514                 compatible = "rockchip,screen";
1515                 status = "disabled";
1516         };
1517
1518         lcdc: lcdc@ff930000 {
1519                 compatible = "rockchip,rk3368-lcdc";
1520                 rockchip,grf = <&grf>;
1521                 rockchip,pmugrf = <&pmugrf>;
1522                 rockchip,cru = <&cru>;
1523                 rockchip,prop = <PRMRY>;
1524                 rockchip,pwr18 = <0>;
1525                 rockchip,iommu-enabled = <1>;
1526                 reg = <0x0 0xff930000 0x0 0x10000>;
1527                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1528                 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
1529                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
1530                 /*power-domains = <&power PD_VIO>;*/
1531                 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
1532                 reset-names = "axi", "ahb", "dclk";
1533                 status = "disabled";
1534         };
1535
1536         mipi: mipi@ff960000 {
1537                 compatible = "rockchip,rk3368-dsi";
1538                 rockchip,prop = <0>;
1539                 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
1540                 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
1541                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1542                 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>, <&cru PCLK_MIPI_DSI0>;
1543                 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
1544                 /*power-domains = <&power PD_VIO>;*/
1545                 status = "disabled";
1546         };
1547
1548         lvds: lvds@ff968000 {
1549                 compatible = "rockchip,rk3368-lvds";
1550                 rockchip,grf = <&grf>;
1551                 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
1552                 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
1553                 clocks = <&cru PCLK_DPHYTX0>, <&cru PCLK_MIPI_DSI0>;
1554                 clock-names = "pclk_lvds", "pclk_lvds_ctl";
1555                 /*power-domains = <&power PD_VIO>;*/
1556                 status = "disabled";
1557         };
1558
1559         edp: edp@ff970000 {
1560                 compatible = "rockchip,rk32-edp";
1561                 reg = <0x0 0xff970000 0x0 0x4000>;
1562                 rockchip,grf = <&grf>;
1563                 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
1564                 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
1565                 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
1566                 /*power-domains = <&power PD_VIO>;*/
1567                 resets = <&cru SRST_EDP_24M>, <&cru SRST_EDP>;
1568                 reset-names = "edp_24m", "edp_apb";
1569                 status = "disabled";
1570         };
1571
1572         hdmi: hdmi@ff980000 {
1573                 compatible = "rockchip,rk3368-hdmi";
1574                 reg = <0x0 0xff980000 0x0 0x20000>;
1575                 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
1576                 clocks = <&cru PCLK_HDMI_CTRL>,
1577                          <&cru SCLK_HDMI_HDCP>,
1578                          <&cru SCLK_HDMI_CEC>;
1579                 clock-names = "pclk_hdmi", "hdcp_clk_hdmi", "cec_clk_hdmi";
1580                 /*power-domains = <&power PD_VIO>;*/
1581                 resets = <&cru SRST_HDMI>;
1582                 reset-names = "hdmi";
1583                 pinctrl-names = "default", "gpio";
1584                 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
1585                 pinctrl-1 = <&i2c5_gpio>;
1586                 status = "disabled";
1587         };
1588
1589         iep_mmu: iep-mmu {
1590                 dbgname = "iep";
1591                 compatible = "rockchip,iep_mmu";
1592                 reg = <0x0 0xff900800 0x0 0x100>;
1593                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1594                 interrupt-names = "iep_mmu";
1595                 status = "disabled";
1596         };
1597
1598         vip_mmu: vip-mmu {
1599                 dbgname = "vip";
1600                 compatible = "rockchip,vip_mmu";
1601                 reg = <0x0 0xff950800 0x0 0x100>;
1602                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1603                 interrupt-names = "vip_mmu";
1604                 status = "disabled";
1605         };
1606
1607         vopb_mmu: vopb-mmu {
1608                 dbgname = "vop";
1609                 compatible = "rockchip,vopb_mmu";
1610                 reg = <0x0 0xff930300 0x0 0x100>;
1611                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1612                 interrupt-names = "vop_mmu";
1613                 status = "disabled";
1614         };
1615
1616         isp_mmu: isp-mmu {
1617                 dbgname = "isp_mmu";
1618                 compatible = "rockchip,isp_mmu";
1619                 reg = <0x0 0xff914000 0x0 0x100>,
1620                       <0x0 0xff915000 0x0 0x100>;
1621                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1622                 interrupt-names = "isp_mmu";
1623                 status = "disabled";
1624         };
1625
1626         hdcp_mmu: hdcp-mmu {
1627                  dbgname = "hdcp_mmu";
1628                  compatible = "rockchip,hdcp_mmu";
1629                  reg = <0x0 0xff940000 0x0 0x100>;
1630                  interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1631                  interrupt-names = "hdcp_mmu";
1632                 status = "disabled";
1633         };
1634
1635         hevc_mmu: hevc-mmu {
1636                 dbgname = "hevc";
1637                 compatible = "rockchip,hevc_mmu";
1638                 reg = <0x0 0xff9a0440 0x0 0x40>,
1639                       <0x0 0xff9a0480 0x0 0x40>;
1640                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1641                 interrupt-names = "hevc_mmu";
1642                 status = "disabled";
1643         };
1644
1645         vpu_mmu: vpu-mmu {
1646                 dbgname = "vpu";
1647                 compatible = "rockchip,vpu_mmu";
1648                 reg = <0x0 0xff9a0800 0x0 0x100>;
1649                 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
1650                              <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1651                 interrupt-names = "vepu_mmu", "vdpu_mmu";
1652                 status = "disabled";
1653         };
1654 };