ARM64: dts: add nandc node for rk3368
[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/power/rk3368-power.h>
50
51 / {
52         compatible = "rockchip,rk3368";
53         interrupt-parent = <&gic>;
54         #address-cells = <2>;
55         #size-cells = <2>;
56
57         aliases {
58                 i2c0 = &i2c0;
59                 i2c1 = &i2c1;
60                 i2c2 = &i2c2;
61                 i2c3 = &i2c3;
62                 i2c4 = &i2c4;
63                 i2c5 = &i2c5;
64                 serial0 = &uart0;
65                 serial1 = &uart1;
66                 serial2 = &uart2;
67                 serial3 = &uart3;
68                 serial4 = &uart4;
69                 spi0 = &spi0;
70                 spi1 = &spi1;
71                 spi2 = &spi2;
72                 lcdc = &lcdc;
73         };
74
75         cpus {
76                 #address-cells = <0x2>;
77                 #size-cells = <0x0>;
78
79                 cpu-map {
80                         cluster0 {
81                                 core0 {
82                                         cpu = <&cpu_b0>;
83                                 };
84                                 core1 {
85                                         cpu = <&cpu_b1>;
86                                 };
87                                 core2 {
88                                         cpu = <&cpu_b2>;
89                                 };
90                                 core3 {
91                                         cpu = <&cpu_b3>;
92                                 };
93                         };
94
95                         cluster1 {
96                                 core0 {
97                                         cpu = <&cpu_l0>;
98                                 };
99                                 core1 {
100                                         cpu = <&cpu_l1>;
101                                 };
102                                 core2 {
103                                         cpu = <&cpu_l2>;
104                                 };
105                                 core3 {
106                                         cpu = <&cpu_l3>;
107                                 };
108                         };
109                 };
110
111                 idle-states {
112                         entry-method = "psci";
113
114                         cpu_sleep: cpu-sleep-0 {
115                                 compatible = "arm,idle-state";
116                                 arm,psci-suspend-param = <0x1010000>;
117                                 entry-latency-us = <0x3fffffff>;
118                                 exit-latency-us = <0x40000000>;
119                                 min-residency-us = <0xffffffff>;
120                         };
121                 };
122
123                 cpu_l0: cpu@0 {
124                         device_type = "cpu";
125                         compatible = "arm,cortex-a53", "arm,armv8";
126                         reg = <0x0 0x0>;
127                         cpu-idle-states = <&cpu_sleep>;
128                         enable-method = "psci";
129                         clocks = <&cru ARMCLKL>;
130                         operating-points-v2 = <&cluster1_opp>;
131                 };
132
133                 cpu_l1: cpu@1 {
134                         device_type = "cpu";
135                         compatible = "arm,cortex-a53", "arm,armv8";
136                         reg = <0x0 0x1>;
137                         cpu-idle-states = <&cpu_sleep>;
138                         enable-method = "psci";
139                         operating-points-v2 = <&cluster1_opp>;
140                 };
141
142                 cpu_l2: cpu@2 {
143                         device_type = "cpu";
144                         compatible = "arm,cortex-a53", "arm,armv8";
145                         reg = <0x0 0x2>;
146                         cpu-idle-states = <&cpu_sleep>;
147                         enable-method = "psci";
148                         operating-points-v2 = <&cluster1_opp>;
149                 };
150
151                 cpu_l3: cpu@3 {
152                         device_type = "cpu";
153                         compatible = "arm,cortex-a53", "arm,armv8";
154                         reg = <0x0 0x3>;
155                         cpu-idle-states = <&cpu_sleep>;
156                         enable-method = "psci";
157                         operating-points-v2 = <&cluster1_opp>;
158                 };
159
160                 cpu_b0: cpu@100 {
161                         device_type = "cpu";
162                         compatible = "arm,cortex-a53", "arm,armv8";
163                         reg = <0x0 0x100>;
164                         cpu-idle-states = <&cpu_sleep>;
165                         enable-method = "psci";
166                         clocks = <&cru ARMCLKB>;
167                         operating-points-v2 = <&cluster0_opp>;
168                 };
169
170                 cpu_b1: cpu@101 {
171                         device_type = "cpu";
172                         compatible = "arm,cortex-a53", "arm,armv8";
173                         reg = <0x0 0x101>;
174                         cpu-idle-states = <&cpu_sleep>;
175                         enable-method = "psci";
176                         operating-points-v2 = <&cluster0_opp>;
177                 };
178
179                 cpu_b2: cpu@102 {
180                         device_type = "cpu";
181                         compatible = "arm,cortex-a53", "arm,armv8";
182                         reg = <0x0 0x102>;
183                         cpu-idle-states = <&cpu_sleep>;
184                         enable-method = "psci";
185                         operating-points-v2 = <&cluster0_opp>;
186                 };
187
188                 cpu_b3: cpu@103 {
189                         device_type = "cpu";
190                         compatible = "arm,cortex-a53", "arm,armv8";
191                         reg = <0x0 0x103>;
192                         cpu-idle-states = <&cpu_sleep>;
193                         enable-method = "psci";
194                         operating-points-v2 = <&cluster0_opp>;
195                 };
196         };
197
198         cluster0_opp: opp_table0 {
199                 compatible = "operating-points-v2";
200                 opp-shared;
201
202                 opp00 {
203                         opp-hz = /bits/ 64 <408000000>;
204                         opp-microvolt = <1200000>;
205                         clock-latency-ns = <40000>;
206                         opp-suspend;
207                 };
208                 opp01 {
209                         opp-hz = /bits/ 64 <600000000>;
210                         opp-microvolt = <1200000>;
211                 };
212                 opp02 {
213                         opp-hz = /bits/ 64 <816000000>;
214                         opp-microvolt = <1200000>;
215                 };
216                 opp03 {
217                         opp-hz = /bits/ 64 <1008000000>;
218                         opp-microvolt = <1200000>;
219                 };
220                 opp04 {
221                         opp-hz = /bits/ 64 <1200000000>;
222                         opp-microvolt = <1200000>;
223                 };
224         };
225
226         cluster1_opp: opp_table1 {
227                 compatible = "operating-points-v2";
228                 opp-shared;
229
230                 opp00 {
231                         opp-hz = /bits/ 64 <408000000>;
232                         opp-microvolt = <1200000>;
233                         clock-latency-ns = <40000>;
234                         opp-suspend;
235                 };
236                 opp01 {
237                         opp-hz = /bits/ 64 <600000000>;
238                         opp-microvolt = <1200000>;
239                 };
240                 opp02 {
241                         opp-hz = /bits/ 64 <816000000>;
242                         opp-microvolt = <1200000>;
243                 };
244                 opp03 {
245                         opp-hz = /bits/ 64 <1008000000>;
246                         opp-microvolt = <1200000>;
247                 };
248         };
249
250         arm-pmu {
251                 compatible = "arm,armv8-pmuv3";
252                 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
253                              <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
254                              <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
255                              <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
256                              <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
257                              <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
258                              <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
259                              <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
260                 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
261                                      <&cpu_l3>, <&cpu_b0>, <&cpu_b1>,
262                                      <&cpu_b2>, <&cpu_b3>;
263         };
264
265         amba {
266                 compatible = "arm,amba-bus";
267                 #address-cells = <2>;
268                 #size-cells = <2>;
269                 ranges;
270
271                 dmac_peri: dma-controller@ff250000 {
272                         compatible = "arm,pl330", "arm,primecell";
273                         reg = <0x0 0xff250000 0x0 0x4000>;
274                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
275                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
276                         #dma-cells = <1>;
277                         clocks = <&cru ACLK_DMAC_PERI>;
278                         clock-names = "apb_pclk";
279                 };
280
281                 dmac_bus: dma-controller@ff600000 {
282                         compatible = "arm,pl330", "arm,primecell";
283                         reg = <0x0 0xff600000 0x0 0x4000>;
284                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
285                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
286                         #dma-cells = <1>;
287                         clocks = <&cru ACLK_DMAC_BUS>;
288                         clock-names = "apb_pclk";
289                 };
290         };
291
292         psci {
293                 compatible = "arm,psci-0.2";
294                 method = "smc";
295         };
296
297         timer {
298                 compatible = "arm,armv8-timer";
299                 interrupts = <GIC_PPI 13
300                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
301                              <GIC_PPI 14
302                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
303                              <GIC_PPI 11
304                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
305                              <GIC_PPI 10
306                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
307         };
308
309         xin24m: oscillator {
310                 compatible = "fixed-clock";
311                 clock-frequency = <24000000>;
312                 clock-output-names = "xin24m";
313                 #clock-cells = <0>;
314         };
315
316         sdmmc: rksdmmc@ff0c0000 {
317                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
318                 reg = <0x0 0xff0c0000 0x0 0x4000>;
319                 clock-freq-min-max = <400000 150000000>;
320                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
321                 clock-names = "biu", "ciu";
322                 fifo-depth = <0x100>;
323                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
324                 status = "disabled";
325         };
326
327         sdio0: dwmmc@ff0d0000 {
328                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
329                 reg = <0x0 0xff0d0000 0x0 0x4000>;
330                 clock-freq-min-max = <400000 150000000>;
331                 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
332                          <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
333                 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
334                 fifo-depth = <0x100>;
335                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
336                 status = "disabled";
337         };
338
339         emmc: rksdmmc@ff0f0000 {
340                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
341                 reg = <0x0 0xff0f0000 0x0 0x4000>;
342                 clock-freq-min-max = <400000 150000000>;
343                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
344                 clock-names = "biu", "ciu";
345                 fifo-depth = <0x100>;
346                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
347                 status = "disabled";
348         };
349
350         saradc: saradc@ff100000 {
351                 compatible = "rockchip,saradc";
352                 reg = <0x0 0xff100000 0x0 0x100>;
353                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
354                 #io-channel-cells = <1>;
355                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
356                 clock-names = "saradc", "apb_pclk";
357                 status = "disabled";
358         };
359
360         spi0: spi@ff110000 {
361                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
362                 reg = <0x0 0xff110000 0x0 0x1000>;
363                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
364                 clock-names = "spiclk", "apb_pclk";
365                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
366                 pinctrl-names = "default";
367                 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
368                 #address-cells = <1>;
369                 #size-cells = <0>;
370                 status = "disabled";
371         };
372
373         spi1: spi@ff120000 {
374                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
375                 reg = <0x0 0xff120000 0x0 0x1000>;
376                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
377                 clock-names = "spiclk", "apb_pclk";
378                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
379                 pinctrl-names = "default";
380                 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
381                 #address-cells = <1>;
382                 #size-cells = <0>;
383                 status = "disabled";
384         };
385
386         spi2: spi@ff130000 {
387                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
388                 reg = <0x0 0xff130000 0x0 0x1000>;
389                 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
390                 clock-names = "spiclk", "apb_pclk";
391                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
392                 pinctrl-names = "default";
393                 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
394                 #address-cells = <1>;
395                 #size-cells = <0>;
396                 status = "disabled";
397         };
398
399         i2c0: i2c@ff650000 {
400                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
401                 reg = <0x0 0xff650000 0x0 0x1000>;
402                 clocks = <&cru PCLK_I2C0>;
403                 clock-names = "i2c";
404                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
405                 pinctrl-names = "default";
406                 pinctrl-0 = <&i2c0_xfer>;
407                 #address-cells = <1>;
408                 #size-cells = <0>;
409                 status = "disabled";
410         };
411
412         i2c2: i2c@ff140000 {
413                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
414                 reg = <0x0 0xff140000 0x0 0x1000>;
415                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
416                 #address-cells = <1>;
417                 #size-cells = <0>;
418                 clock-names = "i2c";
419                 clocks = <&cru PCLK_I2C2>;
420                 pinctrl-names = "default";
421                 pinctrl-0 = <&i2c2_xfer>;
422                 status = "disabled";
423         };
424
425         i2c3: i2c@ff150000 {
426                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
427                 reg = <0x0 0xff150000 0x0 0x1000>;
428                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
429                 #address-cells = <1>;
430                 #size-cells = <0>;
431                 clock-names = "i2c";
432                 clocks = <&cru PCLK_I2C3>;
433                 pinctrl-names = "default";
434                 pinctrl-0 = <&i2c3_xfer>;
435                 status = "disabled";
436         };
437
438         i2c4: i2c@ff160000 {
439                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
440                 reg = <0x0 0xff160000 0x0 0x1000>;
441                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
442                 #address-cells = <1>;
443                 #size-cells = <0>;
444                 clock-names = "i2c";
445                 clocks = <&cru PCLK_I2C4>;
446                 pinctrl-names = "default";
447                 pinctrl-0 = <&i2c4_xfer>;
448                 status = "disabled";
449         };
450
451         i2c5: i2c@ff170000 {
452                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
453                 reg = <0x0 0xff170000 0x0 0x1000>;
454                 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
455                 #address-cells = <1>;
456                 #size-cells = <0>;
457                 clock-names = "i2c";
458                 clocks = <&cru PCLK_I2C5>;
459                 pinctrl-names = "default";
460                 pinctrl-0 = <&i2c5_xfer>;
461                 status = "disabled";
462         };
463
464         uart0: serial@ff180000 {
465                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
466                 reg = <0x0 0xff180000 0x0 0x100>;
467                 clock-frequency = <24000000>;
468                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
469                 clock-names = "baudclk", "apb_pclk";
470                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
471                 reg-shift = <2>;
472                 reg-io-width = <4>;
473                 status = "disabled";
474         };
475
476         uart1: serial@ff190000 {
477                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
478                 reg = <0x0 0xff190000 0x0 0x100>;
479                 clock-frequency = <24000000>;
480                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
481                 clock-names = "baudclk", "apb_pclk";
482                 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
483                 reg-shift = <2>;
484                 reg-io-width = <4>;
485                 status = "disabled";
486         };
487
488         uart3: serial@ff1b0000 {
489                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
490                 reg = <0x0 0xff1b0000 0x0 0x100>;
491                 clock-frequency = <24000000>;
492                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
493                 clock-names = "baudclk", "apb_pclk";
494                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
495                 reg-shift = <2>;
496                 reg-io-width = <4>;
497                 status = "disabled";
498         };
499
500         uart4: serial@ff1c0000 {
501                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
502                 reg = <0x0 0xff1c0000 0x0 0x100>;
503                 clock-frequency = <24000000>;
504                 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
505                 clock-names = "baudclk", "apb_pclk";
506                 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
507                 reg-shift = <2>;
508                 reg-io-width = <4>;
509                 status = "disabled";
510         };
511
512         gmac: ethernet@ff290000 {
513                 compatible = "rockchip,rk3368-gmac";
514                 reg = <0x0 0xff290000 0x0 0x10000>;
515                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
516                 interrupt-names = "macirq";
517                 rockchip,grf = <&grf>;
518                 clocks = <&cru SCLK_MAC>,
519                         <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
520                         <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
521                         <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
522                 clock-names = "stmmaceth",
523                         "mac_clk_rx", "mac_clk_tx",
524                         "clk_mac_ref", "clk_mac_refout",
525                         "aclk_mac", "pclk_mac";
526                 status = "disabled";
527         };
528
529         nandc0: nandc@ff400000 {
530                 compatible = "rockchip,rk-nandc";
531                 reg = <0x0 0xff400000 0x0 0x4000>;
532                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
533                 nandc_id = <0>;
534                 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
535                 clock-names = "clk_nandc", "hclk_nandc";
536                 status = "disabled";
537         };
538
539         usb_host0_ehci: usb@ff500000 {
540                 compatible = "generic-ehci";
541                 reg = <0x0 0xff500000 0x0 0x100>;
542                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
543                 clocks = <&cru HCLK_HOST0>;
544                 clock-names = "usbhost";
545                 status = "disabled";
546         };
547
548         usb_otg: usb@ff580000 {
549                 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
550                                 "snps,dwc2";
551                 reg = <0x0 0xff580000 0x0 0x40000>;
552                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
553                 clocks = <&cru HCLK_OTG0>;
554                 clock-names = "otg";
555                 dr_mode = "otg";
556                 g-np-tx-fifo-size = <16>;
557                 g-rx-fifo-size = <275>;
558                 g-tx-fifo-size = <256 128 128 64 64 32>;
559                 g-use-dma;
560                 status = "disabled";
561         };
562
563         ddrpctl: syscon@ff610000 {
564                 compatible = "rockchip,rk3368-ddrpctl", "syscon";
565                 reg = <0x0 0xff610000 0x0 0x400>;
566         };
567
568         i2c1: i2c@ff660000 {
569                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
570                 reg = <0x0 0xff660000 0x0 0x1000>;
571                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
572                 #address-cells = <1>;
573                 #size-cells = <0>;
574                 clock-names = "i2c";
575                 clocks = <&cru PCLK_I2C1>;
576                 pinctrl-names = "default";
577                 pinctrl-0 = <&i2c1_xfer>;
578                 status = "disabled";
579         };
580
581         pwm0: pwm@ff680000 {
582                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
583                 reg = <0x0 0xff680000 0x0 0x10>;
584                 #pwm-cells = <3>;
585                 pinctrl-names = "default";
586                 pinctrl-0 = <&pwm0_pin>;
587                 clocks = <&cru PCLK_PWM1>;
588                 clock-names = "pwm";
589                 status = "disabled";
590         };
591
592         pwm1: pwm@ff680010 {
593                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
594                 reg = <0x0 0xff680010 0x0 0x10>;
595                 #pwm-cells = <3>;
596                 pinctrl-names = "default";
597                 pinctrl-0 = <&pwm1_pin>;
598                 clocks = <&cru PCLK_PWM1>;
599                 clock-names = "pwm";
600                 status = "disabled";
601         };
602
603         pwm2: pwm@ff680020 {
604                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
605                 reg = <0x0 0xff680020 0x0 0x10>;
606                 #pwm-cells = <3>;
607                 clocks = <&cru PCLK_PWM1>;
608                 clock-names = "pwm";
609                 status = "disabled";
610         };
611
612         pwm3: pwm@ff680030 {
613                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
614                 reg = <0x0 0xff680030 0x0 0x10>;
615                 #pwm-cells = <3>;
616                 pinctrl-names = "default";
617                 pinctrl-0 = <&pwm3_pin>;
618                 clocks = <&cru PCLK_PWM1>;
619                 clock-names = "pwm";
620                 status = "disabled";
621         };
622
623         uart2: serial@ff690000 {
624                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
625                 reg = <0x0 0xff690000 0x0 0x100>;
626                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
627                 clock-names = "baudclk", "apb_pclk";
628                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
629                 pinctrl-names = "default";
630                 pinctrl-0 = <&uart2_xfer>;
631                 reg-shift = <2>;
632                 reg-io-width = <4>;
633                 status = "disabled";
634         };
635
636         pmu: power-management@ff730000 {
637                 compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd";
638                 reg = <0x0 0xff730000 0x0 0x1000>;
639
640                 power: power-controller {
641                         status = "disabled";
642                         compatible = "rockchip,rk3368-power-controller";
643                         #power-domain-cells = <1>;
644                         #address-cells = <1>;
645                         #size-cells = <0>;
646
647                         /*
648                          * Note: Although SCLK_* are the working clocks
649                          * of device without including on the NOC, needed for
650                          * synchronous reset.
651                          *
652                          * The clocks on the which NOC:
653                          * ACLK_IEP/ACLK_VIP/ACLK_VOP0 are on ACLK_VIO0_NIU.
654                          * ACLK_ISP/ACLK_VOP1 are on ACLK_VIO1_NIU.
655                          * ACLK_RGA is on ACLK_RGA_NIU.
656                          * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
657                          *
658                          * Which clock are device clocks:
659                          *      clocks          devices
660                          *      *_IEP           IEP:Image Enhancement Processor
661                          *      *_ISP           ISP:Image Signal Processing
662                          *      *_VIP           VIP:Video Input Processor
663                          *      *_VOP*          VOP:Visual Output Processor
664                          *      *_RGA           RGA
665                          *      *_EDP*          EDP
666                          *      *_DPHY*         LVDS
667                          *      *_HDMI          HDMI
668                          *      *_MIPI_*        MIPI
669                          */
670                         pd_vio {
671                                 reg = <RK3368_PD_VIO>;
672                                 clocks = <&cru ACLK_IEP>,
673                                          <&cru ACLK_ISP>,
674                                          <&cru ACLK_VIP>,
675                                          <&cru ACLK_RGA>,
676                                          <&cru ACLK_VOP>,
677                                          <&cru ACLK_VOP_IEP>,
678                                          <&cru DCLK_VOP>,
679                                          <&cru HCLK_IEP>,
680                                          <&cru HCLK_ISP>,
681                                          <&cru HCLK_RGA>,
682                                          <&cru HCLK_VIP>,
683                                          <&cru HCLK_VOP>,
684                                          <&cru HCLK_VIO_HDCPMMU>,
685                                          <&cru PCLK_EDP_CTRL>,
686                                          <&cru PCLK_HDMI_CTRL>,
687                                          <&cru PCLK_HDCP>,
688                                          <&cru PCLK_ISP>,
689                                          <&cru PCLK_VIP>,
690                                          <&cru PCLK_DPHYRX>,
691                                          <&cru PCLK_DPHYTX0>,
692                                          <&cru PCLK_MIPI_CSI>,
693                                          <&cru PCLK_MIPI_DSI0>,
694                                          <&cru SCLK_VOP0_PWM>,
695                                          <&cru SCLK_EDP_24M>,
696                                          <&cru SCLK_EDP>,
697                                          <&cru SCLK_HDCP>,
698                                          <&cru SCLK_ISP>,
699                                          <&cru SCLK_RGA>,
700                                          <&cru SCLK_HDMI_CEC>,
701                                          <&cru SCLK_HDMI_HDCP>;
702                         };
703                         /*
704                          * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
705                          * (video endecoder & decoder) clocks that on the
706                          * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
707                          */
708                         pd_video {
709                                 reg = <RK3368_PD_VIDEO>;
710                                 clocks = <&cru ACLK_VIDEO>,
711                                          <&cru HCLK_VIDEO>,
712                                          <&cru SCLK_HEVC_CABAC>,
713                                          <&cru SCLK_HEVC_CORE>;
714                         };
715                         /*
716                          * Note: ACLK_GPU is the GPU clock,
717                          * and on the ACLK_GPU_NIU (NOC).
718                          */
719                         pd_gpu_1 {
720                                 reg = <RK3368_PD_GPU_1>;
721                                 clocks = <&cru ACLK_GPU_CFG>,
722                                          <&cru ACLK_GPU_MEM>,
723                                          <&cru SCLK_GPU_CORE>;
724                         };
725                 };
726         };
727
728         pmugrf: syscon@ff738000 {
729                 compatible = "rockchip,rk3368-pmugrf", "syscon";
730                 reg = <0x0 0xff738000 0x0 0x1000>;
731         };
732
733         cru: clock-controller@ff760000 {
734                 compatible = "rockchip,rk3368-cru";
735                 reg = <0x0 0xff760000 0x0 0x1000>;
736                 rockchip,grf = <&grf>;
737                 #clock-cells = <1>;
738                 #reset-cells = <1>;
739         };
740
741         grf: syscon@ff770000 {
742                 compatible = "rockchip,rk3368-grf", "syscon";
743                 reg = <0x0 0xff770000 0x0 0x1000>;
744         };
745
746         wdt: watchdog@ff800000 {
747                 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
748                 reg = <0x0 0xff800000 0x0 0x100>;
749                 clocks = <&cru PCLK_WDT>;
750                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
751                 status = "disabled";
752         };
753
754         gic: interrupt-controller@ffb71000 {
755                 compatible = "arm,gic-400";
756                 interrupt-controller;
757                 #interrupt-cells = <3>;
758                 #address-cells = <0>;
759
760                 reg = <0x0 0xffb71000 0x0 0x1000>,
761                       <0x0 0xffb72000 0x0 0x1000>,
762                       <0x0 0xffb74000 0x0 0x2000>,
763                       <0x0 0xffb76000 0x0 0x2000>;
764                 interrupts = <GIC_PPI 9
765                       (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
766         };
767
768         gpu: rogue-g6110@ffa30000 {
769                 compatible = "arm,rogue-G6110", "arm,rk3368-gpu";
770                 reg = <0x0 0xffa30000 0x0 0x10000>;
771                 clocks =
772                         <&cru SCLK_GPU_CORE>,
773                         <&cru ACLK_GPU_MEM>,
774                         <&cru ACLK_GPU_CFG>;
775                 clock-names =
776                         "clk_gpu",
777                         "aclk_gpu_mem",
778                         "aclk_gpu_cfg";
779                 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
780                 interrupt-names = "rogue-g6110-irq";
781         };
782
783         i2s_2ch: i2s-2ch@ff890000 {
784                 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
785                 reg = <0x0 0xff898000 0x0 0x1000>;
786                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
787                 #address-cells = <2>;
788                 #size-cells = <0>;
789                 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
790                 dma-names = "tx", "rx";
791                 clock-names = "i2s_hclk", "i2s_clk";
792                 clocks = <&cru HCLK_I2S_2CH>, <&cru SCLK_I2S_2CH>;
793                 status = "disabled";
794         };
795
796         i2s_8ch: i2s-8ch@ff898000 {
797                 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
798                 reg = <0x0 0xff898000 0x0 0x1000>;
799                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
800                 #address-cells = <1>;
801                 #size-cells = <0>;
802                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
803                 dma-names = "tx", "rx";
804                 clock-names = "i2s_hclk", "i2s_clk";
805                 clocks = <&cru HCLK_I2S_8CH>, <&cru SCLK_I2S_8CH>;
806                 pinctrl-names = "default";
807                 pinctrl-0 = <&i2s_8ch_bus>;
808                 status = "disabled";
809         };
810
811         rga: rga@ff920000 {
812                 compatible = "rockchip,rga2";
813                 dev_mode = <1>;
814                 reg = <0x0 0xff920000 0x0 0x1000>;
815                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
816                 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
817                 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
818                 status = "disabled";
819         };
820
821         pinctrl: pinctrl {
822                 compatible = "rockchip,rk3368-pinctrl";
823                 rockchip,grf = <&grf>;
824                 rockchip,pmu = <&pmugrf>;
825                 #address-cells = <0x2>;
826                 #size-cells = <0x2>;
827                 ranges;
828
829                 gpio0: gpio0@ff750000 {
830                         compatible = "rockchip,gpio-bank";
831                         reg = <0x0 0xff750000 0x0 0x100>;
832                         clocks = <&cru PCLK_GPIO0>;
833                         interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>;
834
835                         gpio-controller;
836                         #gpio-cells = <0x2>;
837
838                         interrupt-controller;
839                         #interrupt-cells = <0x2>;
840                 };
841
842                 gpio1: gpio1@ff780000 {
843                         compatible = "rockchip,gpio-bank";
844                         reg = <0x0 0xff780000 0x0 0x100>;
845                         clocks = <&cru PCLK_GPIO1>;
846                         interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>;
847
848                         gpio-controller;
849                         #gpio-cells = <0x2>;
850
851                         interrupt-controller;
852                         #interrupt-cells = <0x2>;
853                 };
854
855                 gpio2: gpio2@ff790000 {
856                         compatible = "rockchip,gpio-bank";
857                         reg = <0x0 0xff790000 0x0 0x100>;
858                         clocks = <&cru PCLK_GPIO2>;
859                         interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>;
860
861                         gpio-controller;
862                         #gpio-cells = <0x2>;
863
864                         interrupt-controller;
865                         #interrupt-cells = <0x2>;
866                 };
867
868                 gpio3: gpio3@ff7a0000 {
869                         compatible = "rockchip,gpio-bank";
870                         reg = <0x0 0xff7a0000 0x0 0x100>;
871                         clocks = <&cru PCLK_GPIO3>;
872                         interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>;
873
874                         gpio-controller;
875                         #gpio-cells = <0x2>;
876
877                         interrupt-controller;
878                         #interrupt-cells = <0x2>;
879                 };
880
881                 pcfg_pull_up: pcfg-pull-up {
882                         bias-pull-up;
883                 };
884
885                 pcfg_pull_down: pcfg-pull-down {
886                         bias-pull-down;
887                 };
888
889                 pcfg_pull_none: pcfg-pull-none {
890                         bias-disable;
891                 };
892
893                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
894                         bias-disable;
895                         drive-strength = <12>;
896                 };
897
898                 emmc {
899                         emmc_clk: emmc-clk {
900                                 rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none>;
901                         };
902
903                         emmc_cmd: emmc-cmd {
904                                 rockchip,pins = <1 26 RK_FUNC_2 &pcfg_pull_up>;
905                         };
906
907                         emmc_pwr: emmc-pwr {
908                                 rockchip,pins = <1 27 RK_FUNC_2 &pcfg_pull_up>;
909                         };
910
911                         emmc_bus1: emmc-bus1 {
912                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>;
913                         };
914
915                         emmc_bus4: emmc-bus4 {
916                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
917                                                 <1 19 RK_FUNC_2 &pcfg_pull_up>,
918                                                 <1 20 RK_FUNC_2 &pcfg_pull_up>,
919                                                 <1 21 RK_FUNC_2 &pcfg_pull_up>;
920                         };
921
922                         emmc_bus8: emmc-bus8 {
923                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
924                                                 <1 19 RK_FUNC_2 &pcfg_pull_up>,
925                                                 <1 20 RK_FUNC_2 &pcfg_pull_up>,
926                                                 <1 21 RK_FUNC_2 &pcfg_pull_up>,
927                                                 <1 22 RK_FUNC_2 &pcfg_pull_up>,
928                                                 <1 23 RK_FUNC_2 &pcfg_pull_up>,
929                                                 <1 24 RK_FUNC_2 &pcfg_pull_up>,
930                                                 <1 25 RK_FUNC_2 &pcfg_pull_up>;
931                         };
932                 };
933
934                 gmac {
935                         rgmii_pins: rgmii-pins {
936                                 rockchip,pins = <3 22 RK_FUNC_1 &pcfg_pull_none>,
937                                                 <3 24 RK_FUNC_1 &pcfg_pull_none>,
938                                                 <3 19 RK_FUNC_1 &pcfg_pull_none>,
939                                                 <3 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
940                                                 <3 9 RK_FUNC_1 &pcfg_pull_none_12ma>,
941                                                 <3 10 RK_FUNC_1 &pcfg_pull_none_12ma>,
942                                                 <3 14 RK_FUNC_1 &pcfg_pull_none_12ma>,
943                                                 <3 28 RK_FUNC_1 &pcfg_pull_none_12ma>,
944                                                 <3 13 RK_FUNC_1 &pcfg_pull_none_12ma>,
945                                                 <3 15 RK_FUNC_1 &pcfg_pull_none>,
946                                                 <3 16 RK_FUNC_1 &pcfg_pull_none>,
947                                                 <3 17 RK_FUNC_1 &pcfg_pull_none>,
948                                                 <3 18 RK_FUNC_1 &pcfg_pull_none>,
949                                                 <3 25 RK_FUNC_1 &pcfg_pull_none>,
950                                                 <3 20 RK_FUNC_1 &pcfg_pull_none>;
951                         };
952
953                         rmii_pins: rmii-pins {
954                                 rockchip,pins = <3 22 RK_FUNC_1 &pcfg_pull_none>,
955                                                 <3 24 RK_FUNC_1 &pcfg_pull_none>,
956                                                 <3 19 RK_FUNC_1 &pcfg_pull_none>,
957                                                 <3 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
958                                                 <3 9 RK_FUNC_1 &pcfg_pull_none_12ma>,
959                                                 <3 13 RK_FUNC_1 &pcfg_pull_none_12ma>,
960                                                 <3 15 RK_FUNC_1 &pcfg_pull_none>,
961                                                 <3 16 RK_FUNC_1 &pcfg_pull_none>,
962                                                 <3 20 RK_FUNC_1 &pcfg_pull_none>,
963                                                 <3 21 RK_FUNC_1 &pcfg_pull_none>;
964                         };
965                 };
966
967                 i2c0 {
968                         i2c0_xfer: i2c0-xfer {
969                                 rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,
970                                                 <0 7 RK_FUNC_1 &pcfg_pull_none>;
971                         };
972                 };
973
974                 i2c1 {
975                         i2c1_xfer: i2c1-xfer {
976                                 rockchip,pins = <2 21 RK_FUNC_1 &pcfg_pull_none>,
977                                                 <2 22 RK_FUNC_1 &pcfg_pull_none>;
978                         };
979                 };
980
981                 i2c2 {
982                         i2c2_xfer: i2c2-xfer {
983                                 rockchip,pins = <0 9 RK_FUNC_2 &pcfg_pull_none>,
984                                                 <3 31 RK_FUNC_2 &pcfg_pull_none>;
985                         };
986                 };
987
988                 i2c3 {
989                         i2c3_xfer: i2c3-xfer {
990                                 rockchip,pins = <1 16 RK_FUNC_1 &pcfg_pull_none>,
991                                                 <1 17 RK_FUNC_1 &pcfg_pull_none>;
992                         };
993                 };
994
995                 i2c4 {
996                         i2c4_xfer: i2c4-xfer {
997                                 rockchip,pins = <3 24 RK_FUNC_2 &pcfg_pull_none>,
998                                                 <3 25 RK_FUNC_2 &pcfg_pull_none>;
999                         };
1000                 };
1001
1002                 i2c5 {
1003                         i2c5_xfer: i2c5-xfer {
1004                                 rockchip,pins = <3 26 RK_FUNC_2 &pcfg_pull_none>,
1005                                                 <3 27 RK_FUNC_2 &pcfg_pull_none>;
1006                         };
1007                 };
1008
1009                 i2s {
1010                         i2s_8ch_bus: i2s-8ch-bus {
1011                                 rockchip,pins = <2 12 RK_FUNC_1 &pcfg_pull_none>,
1012                                                 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1013                                                 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1014                                                 <2 15 RK_FUNC_1 &pcfg_pull_none>,
1015                                                 <2 16 RK_FUNC_1 &pcfg_pull_none>,
1016                                                 <2 17 RK_FUNC_1 &pcfg_pull_none>,
1017                                                 <2 18 RK_FUNC_1 &pcfg_pull_none>,
1018                                                 <2 19 RK_FUNC_1 &pcfg_pull_none>,
1019                                                 <2 20 RK_FUNC_1 &pcfg_pull_none>;
1020                         };
1021                 };
1022
1023                 sdio0 {
1024                         sdio0_bus1: sdio0-bus1 {
1025                                 rockchip,pins = <2 28 RK_FUNC_1 &pcfg_pull_up>;
1026                         };
1027
1028                         sdio0_bus4: sdio0-bus4 {
1029                                 rockchip,pins = <2 28 RK_FUNC_1 &pcfg_pull_up>,
1030                                                 <2 29 RK_FUNC_1 &pcfg_pull_up>,
1031                                                 <2 30 RK_FUNC_1 &pcfg_pull_up>,
1032                                                 <2 31 RK_FUNC_1 &pcfg_pull_up>;
1033                         };
1034
1035                         sdio0_cmd: sdio0-cmd {
1036                                 rockchip,pins = <3 0 RK_FUNC_1 &pcfg_pull_up>;
1037                         };
1038
1039                         sdio0_clk: sdio0-clk {
1040                                 rockchip,pins = <3 1 RK_FUNC_1 &pcfg_pull_none>;
1041                         };
1042
1043                         sdio0_cd: sdio0-cd {
1044                                 rockchip,pins = <3 2 RK_FUNC_1 &pcfg_pull_up>;
1045                         };
1046
1047                         sdio0_wp: sdio0-wp {
1048                                 rockchip,pins = <3 3 RK_FUNC_1 &pcfg_pull_up>;
1049                         };
1050
1051                         sdio0_pwr: sdio0-pwr {
1052                                 rockchip,pins = <3 4 RK_FUNC_1 &pcfg_pull_up>;
1053                         };
1054
1055                         sdio0_bkpwr: sdio0-bkpwr {
1056                                 rockchip,pins = <3 5 RK_FUNC_1 &pcfg_pull_up>;
1057                         };
1058
1059                         sdio0_int: sdio0-int {
1060                                 rockchip,pins = <3 6 RK_FUNC_1 &pcfg_pull_up>;
1061                         };
1062                 };
1063
1064                 sdmmc {
1065                         sdmmc_clk: sdmmc-clk {
1066                                 rockchip,pins = <2 9 RK_FUNC_1 &pcfg_pull_none>;
1067                         };
1068
1069                         sdmmc_cmd: sdmmc-cmd {
1070                                 rockchip,pins = <2 10 RK_FUNC_1 &pcfg_pull_up>;
1071                         };
1072
1073                         sdmmc_cd: sdmcc-cd {
1074                                 rockchip,pins = <2 11 RK_FUNC_1 &pcfg_pull_up>;
1075                         };
1076
1077                         sdmmc_bus1: sdmmc-bus1 {
1078                                 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up>;
1079                         };
1080
1081                         sdmmc_bus4: sdmmc-bus4 {
1082                                 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up>,
1083                                                 <2 6 RK_FUNC_1 &pcfg_pull_up>,
1084                                                 <2 7 RK_FUNC_1 &pcfg_pull_up>,
1085                                                 <2 8 RK_FUNC_1 &pcfg_pull_up>;
1086                         };
1087                 };
1088
1089                 spi0 {
1090                         spi0_clk: spi0-clk {
1091                                 rockchip,pins = <1 29 RK_FUNC_2 &pcfg_pull_up>;
1092                         };
1093                         spi0_cs0: spi0-cs0 {
1094                                 rockchip,pins = <1 24 RK_FUNC_3 &pcfg_pull_up>;
1095                         };
1096                         spi0_cs1: spi0-cs1 {
1097                                 rockchip,pins = <1 25 RK_FUNC_3 &pcfg_pull_up>;
1098                         };
1099                         spi0_tx: spi0-tx {
1100                                 rockchip,pins = <1 23 RK_FUNC_3 &pcfg_pull_up>;
1101                         };
1102                         spi0_rx: spi0-rx {
1103                                 rockchip,pins = <1 22 RK_FUNC_3 &pcfg_pull_up>;
1104                         };
1105                 };
1106
1107                 spi1 {
1108                         spi1_clk: spi1-clk {
1109                                 rockchip,pins = <1 14 RK_FUNC_2 &pcfg_pull_up>;
1110                         };
1111                         spi1_cs0: spi1-cs0 {
1112                                 rockchip,pins = <1 15 RK_FUNC_2 &pcfg_pull_up>;
1113                         };
1114                         spi1_cs1: spi1-cs1 {
1115                                 rockchip,pins = <3 28 RK_FUNC_2 &pcfg_pull_up>;
1116                         };
1117                         spi1_rx: spi1-rx {
1118                                 rockchip,pins = <1 16 RK_FUNC_2 &pcfg_pull_up>;
1119                         };
1120                         spi1_tx: spi1-tx {
1121                                 rockchip,pins = <1 17 RK_FUNC_2 &pcfg_pull_up>;
1122                         };
1123                 };
1124
1125                 spi2 {
1126                         spi2_clk: spi2-clk {
1127                                 rockchip,pins = <0 12 RK_FUNC_2 &pcfg_pull_up>;
1128                         };
1129                         spi2_cs0: spi2-cs0 {
1130                                 rockchip,pins = <0 13 RK_FUNC_2 &pcfg_pull_up>;
1131                         };
1132                         spi2_rx: spi2-rx {
1133                                 rockchip,pins = <0 10 RK_FUNC_2 &pcfg_pull_up>;
1134                         };
1135                         spi2_tx: spi2-tx {
1136                                 rockchip,pins = <0 11 RK_FUNC_2 &pcfg_pull_up>;
1137                         };
1138                 };
1139
1140                 uart0 {
1141                         uart0_xfer: uart0-xfer {
1142                                 rockchip,pins = <2 24 RK_FUNC_1 &pcfg_pull_up>,
1143                                                 <2 25 RK_FUNC_1 &pcfg_pull_none>;
1144                         };
1145
1146                         uart0_cts: uart0-cts {
1147                                 rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>;
1148                         };
1149
1150                         uart0_rts: uart0-rts {
1151                                 rockchip,pins = <2 27 RK_FUNC_1 &pcfg_pull_none>;
1152                         };
1153                 };
1154
1155                 uart1 {
1156                         uart1_xfer: uart1-xfer {
1157                                 rockchip,pins = <0 20 RK_FUNC_3 &pcfg_pull_up>,
1158                                                 <0 21 RK_FUNC_3 &pcfg_pull_none>;
1159                         };
1160
1161                         uart1_cts: uart1-cts {
1162                                 rockchip,pins = <0 22 RK_FUNC_3 &pcfg_pull_none>;
1163                         };
1164
1165                         uart1_rts: uart1-rts {
1166                                 rockchip,pins = <0 23 RK_FUNC_3 &pcfg_pull_none>;
1167                         };
1168                 };
1169
1170                 uart2 {
1171                         uart2_xfer: uart2-xfer {
1172                                 rockchip,pins = <2 6 RK_FUNC_2 &pcfg_pull_up>,
1173                                                 <2 5 RK_FUNC_2 &pcfg_pull_none>;
1174                         };
1175                         /* no rts / cts for uart2 */
1176                 };
1177
1178                 uart3 {
1179                         uart3_xfer: uart3-xfer {
1180                                 rockchip,pins = <3 29 RK_FUNC_2 &pcfg_pull_up>,
1181                                                 <3 30 RK_FUNC_3 &pcfg_pull_none>;
1182                         };
1183
1184                         uart3_cts: uart3-cts {
1185                                 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none>;
1186                         };
1187
1188                         uart3_rts: uart3-rts {
1189                                 rockchip,pins = <3 17 RK_FUNC_2 &pcfg_pull_none>;
1190                         };
1191                 };
1192
1193                 uart4 {
1194                         uart4_xfer: uart4-xfer {
1195                                 rockchip,pins = <0 27 RK_FUNC_3 &pcfg_pull_up>,
1196                                                 <0 26 RK_FUNC_3 &pcfg_pull_none>;
1197                         };
1198
1199                         uart4_cts: uart4-cts {
1200                                 rockchip,pins = <0 24 RK_FUNC_3 &pcfg_pull_none>;
1201                         };
1202
1203                         uart4_rts: uart4-rts {
1204                                 rockchip,pins = <0 25 RK_FUNC_3 &pcfg_pull_none>;
1205                         };
1206                 };
1207
1208                 pwm0 {
1209                         pwm0_pin: pwm0-pin {
1210                                 rockchip,pins = <3 8 RK_FUNC_2 &pcfg_pull_none>;
1211                         };
1212
1213                         vop_pwm_pin: vop-pwm {
1214                                 rockchip,pins = <3 8 RK_FUNC_3 &pcfg_pull_none>;
1215                         };
1216                 };
1217
1218                 pwm1 {
1219                         pwm1_pin: pwm1-pin {
1220                                 rockchip,pins = <0 8 RK_FUNC_2 &pcfg_pull_none>;
1221                         };
1222                 };
1223
1224                 pwm3 {
1225                         pwm3_pin: pwm3-pin {
1226                                 rockchip,pins = <3 29 RK_FUNC_3 &pcfg_pull_none>;
1227                         };
1228                 };
1229
1230                 lcdc {
1231                         lcdc_lcdc: lcdc-lcdc {
1232                                 rockchip,pins =
1233                                                 <0 14 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D10
1234                                                 <0 15 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D11
1235                                                 <0 16 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D12
1236                                                 <0 17 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D13
1237                                                 <0 18 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D14
1238                                                 <0 18 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D15
1239                                                 <0 20 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D16
1240                                                 <0 21 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D17
1241                                                 <0 22 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D18
1242                                                 <0 23 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D19
1243                                                 <0 24 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D20
1244                                                 <0 25 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D21
1245                                                 <0 26 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D22
1246                                                 <0 27 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D23
1247                                                 <0 31 RK_FUNC_1 &pcfg_pull_none>,//DCLK
1248                                                 <0 30 RK_FUNC_1 &pcfg_pull_none>,//DEN
1249                                                 <0 28 RK_FUNC_1 &pcfg_pull_none>,//HSYNC
1250                                                 <0 29 RK_FUNC_1 &pcfg_pull_none>;//VSYN
1251                         };
1252
1253                         lcdc_gpio: lcdc-gpio {
1254                                 rockchip,pins =
1255                                                 <0 14 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D10
1256                                                 <0 15 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D11
1257                                                 <0 16 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D12
1258                                                 <0 17 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D13
1259                                                 <0 18 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D14
1260                                                 <0 19 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D15
1261                                                 <0 20 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D16
1262                                                 <0 21 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D17
1263                                                 <0 22 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D18
1264                                                 <0 23 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D19
1265                                                 <0 24 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D20
1266                                                 <0 25 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D21
1267                                                 <0 26 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D22
1268                                                 <0 27 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D23
1269                                                 <0 31 RK_FUNC_GPIO &pcfg_pull_none>,//DCLK
1270                                                 <0 30 RK_FUNC_GPIO &pcfg_pull_none>,//DEN
1271                                                 <0 28 RK_FUNC_GPIO &pcfg_pull_none>,//HSYNC
1272                                                 <0 29 RK_FUNC_GPIO &pcfg_pull_none>;//VSYN
1273                         };
1274                 };
1275         };
1276
1277         fb: fb {
1278                 compatible = "rockchip,rk-fb";
1279                 rockchip,disp-mode = <NO_DUAL>;
1280                 status = "disabled";
1281         };
1282
1283         rk_screen: screen {
1284                 compatible = "rockchip,screen";
1285                 status = "disabled";
1286         };
1287
1288         lcdc: lcdc@ff930000 {
1289                 compatible = "rockchip,rk3368-lcdc";
1290                 rockchip,grf = <&grf>;
1291                 rockchip,pmugrf = <&pmugrf>;
1292                 rockchip,cru = <&cru>;
1293                 rockchip,prop = <PRMRY>;
1294                 rockchip,pwr18 = <0>;
1295                 rockchip,iommu-enabled = <1>;
1296                 reg = <0x0 0xff930000 0x0 0x10000>;
1297                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1298                 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
1299                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
1300                 /*power-domains = <&power PD_VIO>;*/
1301                 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
1302                 reset-names = "axi", "ahb", "dclk";
1303                 status = "disabled";
1304         };
1305
1306         mipi: mipi@ff960000 {
1307                 compatible = "rockchip,rk3368-dsi";
1308                 rockchip,prop = <0>;
1309                 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
1310                 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
1311                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1312                 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>, <&cru PCLK_MIPI_DSI0>;
1313                 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
1314                 /*power-domains = <&power PD_VIO>;*/
1315                 status = "disabled";
1316         };
1317
1318         lvds: lvds@ff968000 {
1319                 compatible = "rockchip,rk3368-lvds";
1320                 rockchip,grf = <&grf>;
1321                 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
1322                 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
1323                 clocks = <&cru PCLK_DPHYTX0>, <&cru PCLK_MIPI_DSI0>;
1324                 clock-names = "pclk_lvds", "pclk_lvds_ctl";
1325                 /*power-domains = <&power PD_VIO>;*/
1326                 status = "disabled";
1327         };
1328
1329         edp: edp@ff970000 {
1330                 compatible = "rockchip,rk32-edp";
1331                 reg = <0x0 0xff970000 0x0 0x4000>;
1332                 rockchip,grf = <&grf>;
1333                 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
1334                 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
1335                 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
1336                 /*power-domains = <&power PD_VIO>;*/
1337                 resets = <&cru SRST_EDP_24M>, <&cru SRST_EDP>;
1338                 reset-names = "edp_24m", "edp_apb";
1339                 status = "disabled";
1340         };
1341
1342         iep_mmu: iep-mmu {
1343                 dbgname = "iep";
1344                 compatible = "rockchip,iep_mmu";
1345                 reg = <0x0 0xff900800 0x0 0x100>;
1346                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1347                 interrupt-names = "iep_mmu";
1348                 status = "disabled";
1349         };
1350
1351         vip_mmu: vip-mmu {
1352                 dbgname = "vip";
1353                 compatible = "rockchip,vip_mmu";
1354                 reg = <0x0 0xff950800 0x0 0x100>;
1355                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1356                 interrupt-names = "vip_mmu";
1357                 status = "disabled";
1358         };
1359
1360         vopb_mmu: vopb-mmu {
1361                 dbgname = "vop";
1362                 compatible = "rockchip,vopb_mmu";
1363                 reg = <0x0 0xff930300 0x0 0x100>;
1364                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1365                 interrupt-names = "vop_mmu";
1366                 status = "disabled";
1367         };
1368
1369         isp_mmu: isp-mmu {
1370                 dbgname = "isp_mmu";
1371                 compatible = "rockchip,isp_mmu";
1372                 reg = <0x0 0xff914000 0x0 0x100>,
1373                       <0x0 0xff915000 0x0 0x100>;
1374                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1375                 interrupt-names = "isp_mmu";
1376                 status = "disabled";
1377         };
1378
1379         hdcp_mmu: hdcp-mmu {
1380                  dbgname = "hdcp_mmu";
1381                  compatible = "rockchip,hdcp_mmu";
1382                  reg = <0x0 0xff940000 0x0 0x100>;
1383                  interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1384                  interrupt-names = "hdcp_mmu";
1385                 status = "disabled";
1386         };
1387
1388         hevc_mmu: hevc-mmu {
1389                 dbgname = "hevc";
1390                 compatible = "rockchip,hevc_mmu";
1391                 reg = <0x0 0xff9a0440 0x0 0x40>,
1392                       <0x0 0xff9a0480 0x0 0x40>;
1393                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1394                 interrupt-names = "hevc_mmu";
1395                 status = "disabled";
1396         };
1397
1398         vpu_mmu: vpu-mmu {
1399                 dbgname = "vpu";
1400                 compatible = "rockchip,vpu_mmu";
1401                 reg = <0x0 0xff9a0800 0x0 0x100>;
1402                 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
1403                              <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1404                 interrupt-names = "vepu_mmu", "vdpu_mmu";
1405                 status = "disabled";
1406         };
1407 };