arm64: dts: rockchip: rk3368: init aclk_cci_pre 576M
[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/power/rk3368-power.h>
49 #include <dt-bindings/soc/rockchip,boot-mode.h>
50 #include <dt-bindings/thermal/thermal.h>
51 #include <dt-bindings/display/mipi_dsi.h>
52 #include <dt-bindings/display/drm_mipi_dsi.h>
53 #include <dt-bindings/display/media-bus-format.h>
54
55 / {
56         compatible = "rockchip,rk3368";
57         interrupt-parent = <&gic>;
58         #address-cells = <2>;
59         #size-cells = <2>;
60
61         aliases {
62                 ethernet0 = &gmac;
63                 i2c0 = &i2c0;
64                 i2c1 = &i2c1;
65                 i2c2 = &i2c2;
66                 i2c3 = &i2c3;
67                 i2c4 = &i2c4;
68                 i2c5 = &i2c5;
69                 serial0 = &uart0;
70                 serial1 = &uart1;
71                 serial2 = &uart2;
72                 serial3 = &uart3;
73                 serial4 = &uart4;
74                 spi0 = &spi0;
75                 spi1 = &spi1;
76                 spi2 = &spi2;
77         };
78
79         cpus {
80                 #address-cells = <0x2>;
81                 #size-cells = <0x0>;
82
83                 cpu-map {
84                         cluster0 {
85                                 core0 {
86                                         cpu = <&cpu_l0>;
87                                 };
88                                 core1 {
89                                         cpu = <&cpu_l1>;
90                                 };
91                                 core2 {
92                                         cpu = <&cpu_l2>;
93                                 };
94                                 core3 {
95                                         cpu = <&cpu_l3>;
96                                 };
97                         };
98
99                         cluster1 {
100                                 core0 {
101                                         cpu = <&cpu_b0>;
102                                 };
103                                 core1 {
104                                         cpu = <&cpu_b1>;
105                                 };
106                                 core2 {
107                                         cpu = <&cpu_b2>;
108                                 };
109                                 core3 {
110                                         cpu = <&cpu_b3>;
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 = <&cluster0_opp>;
135                         sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
136                         #cooling-cells = <2>; /* min followed by max */
137                         dynamic-power-coefficient = <149>;
138                 };
139
140                 cpu_l1: cpu@1 {
141                         device_type = "cpu";
142                         compatible = "arm,cortex-a53", "arm,armv8";
143                         reg = <0x0 0x1>;
144                         cpu-idle-states = <&cpu_sleep>;
145                         enable-method = "psci";
146                         clocks = <&cru ARMCLKL>;
147                         operating-points-v2 = <&cluster0_opp>;
148                         sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
149                 };
150
151                 cpu_l2: cpu@2 {
152                         device_type = "cpu";
153                         compatible = "arm,cortex-a53", "arm,armv8";
154                         reg = <0x0 0x2>;
155                         cpu-idle-states = <&cpu_sleep>;
156                         enable-method = "psci";
157                         clocks = <&cru ARMCLKL>;
158                         operating-points-v2 = <&cluster0_opp>;
159                         sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
160                 };
161
162                 cpu_l3: cpu@3 {
163                         device_type = "cpu";
164                         compatible = "arm,cortex-a53", "arm,armv8";
165                         reg = <0x0 0x3>;
166                         cpu-idle-states = <&cpu_sleep>;
167                         enable-method = "psci";
168                         clocks = <&cru ARMCLKL>;
169                         operating-points-v2 = <&cluster0_opp>;
170                         sched-energy-costs = <&RK3368_CPU_COST_0 &RK3368_CLUSTER_COST_0>;
171                 };
172
173                 cpu_b0: cpu@100 {
174                         device_type = "cpu";
175                         compatible = "arm,cortex-a53", "arm,armv8";
176                         reg = <0x0 0x100>;
177                         cpu-idle-states = <&cpu_sleep>;
178                         enable-method = "psci";
179                         clocks = <&cru ARMCLKB>;
180                         operating-points-v2 = <&cluster1_opp>;
181                         sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
182                         #cooling-cells = <2>; /* min followed by max */
183                         dynamic-power-coefficient = <160>;
184                 };
185
186                 cpu_b1: cpu@101 {
187                         device_type = "cpu";
188                         compatible = "arm,cortex-a53", "arm,armv8";
189                         reg = <0x0 0x101>;
190                         cpu-idle-states = <&cpu_sleep>;
191                         enable-method = "psci";
192                         clocks = <&cru ARMCLKB>;
193                         operating-points-v2 = <&cluster1_opp>;
194                         sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
195                 };
196
197                 cpu_b2: cpu@102 {
198                         device_type = "cpu";
199                         compatible = "arm,cortex-a53", "arm,armv8";
200                         reg = <0x0 0x102>;
201                         cpu-idle-states = <&cpu_sleep>;
202                         enable-method = "psci";
203                         clocks = <&cru ARMCLKB>;
204                         operating-points-v2 = <&cluster1_opp>;
205                         sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
206                 };
207
208                 cpu_b3: cpu@103 {
209                         device_type = "cpu";
210                         compatible = "arm,cortex-a53", "arm,armv8";
211                         reg = <0x0 0x103>;
212                         cpu-idle-states = <&cpu_sleep>;
213                         enable-method = "psci";
214                         clocks = <&cru ARMCLKB>;
215                         operating-points-v2 = <&cluster1_opp>;
216                         sched-energy-costs = <&RK3368_CPU_COST_1 &RK3368_CLUSTER_COST_1>;
217                 };
218         };
219
220         cluster0_opp: opp_table0 {
221                 compatible = "operating-points-v2";
222                 opp-shared;
223
224                 opp@216000000 {
225                         opp-hz = /bits/ 64 <216000000>;
226                         opp-microvolt = <950000 950000 1350000>;
227                         clock-latency-ns = <40000>;
228                         opp-suspend;
229                 };
230                 opp@408000000 {
231                         opp-hz = /bits/ 64 <408000000>;
232                         opp-microvolt = <950000 950000 1350000>;
233                         clock-latency-ns = <40000>;
234                 };
235                 opp@600000000 {
236                         opp-hz = /bits/ 64 <600000000>;
237                         opp-microvolt = <950000 950000 1350000>;
238                         clock-latency-ns = <40000>;
239                 };
240                 opp@816000000 {
241                         opp-hz = /bits/ 64 <816000000>;
242                         opp-microvolt = <1025000 1025000 1350000>;
243                         clock-latency-ns = <40000>;
244                 };
245                 opp@1008000000 {
246                         opp-hz = /bits/ 64 <1008000000>;
247                         opp-microvolt = <1125000 1125000 1350000>;
248                         clock-latency-ns = <40000>;
249                 };
250                 opp@1200000000 {
251                         opp-hz = /bits/ 64 <1200000000>;
252                         opp-microvolt = <1225000 1225000 1350000>;
253                         clock-latency-ns = <40000>;
254                 };
255         };
256
257         cluster1_opp: opp_table1 {
258                 compatible = "operating-points-v2";
259                 opp-shared;
260
261                 opp@216000000 {
262                         opp-hz = /bits/ 64 <216000000>;
263                         opp-microvolt = <950000 950000 1350000>;
264                         clock-latency-ns = <40000>;
265                         opp-suspend;
266                 };
267                 opp@408000000 {
268                         opp-hz = /bits/ 64 <408000000>;
269                         opp-microvolt = <950000 950000 1350000>;
270                         clock-latency-ns = <40000>;
271                 };
272                 opp@600000000 {
273                         opp-hz = /bits/ 64 <600000000>;
274                         opp-microvolt = <950000 950000 1350000>;
275                         clock-latency-ns = <40000>;
276                 };
277                 opp@816000000 {
278                         opp-hz = /bits/ 64 <816000000>;
279                         opp-microvolt = <975000 975000 1350000>;
280                         clock-latency-ns = <40000>;
281                 };
282                 opp@1008000000 {
283                         opp-hz = /bits/ 64 <1008000000>;
284                         opp-microvolt = <1050000 1050000 1350000>;
285                         clock-latency-ns = <40000>;
286                 };
287                 opp@1200000000 {
288                         opp-hz = /bits/ 64 <1200000000>;
289                         opp-microvolt = <1150000 1150000 1350000>;
290                         clock-latency-ns = <40000>;
291                 };
292                 opp@1296000000 {
293                         opp-hz = /bits/ 64 <1296000000>;
294                         opp-microvolt = <1225000 1225000 1350000>;
295                         clock-latency-ns = <40000>;
296                 };
297                 opp@1416000000 {
298                         opp-hz = /bits/ 64 <1416000000>;
299                         opp-microvolt = <1300000 1300000 1350000>;
300                         clock-latency-ns = <40000>;
301                 };
302                 opp@1512000000 {
303                         opp-hz = /bits/ 64 <1512000000>;
304                         opp-microvolt = <1350000 1350000 1350000>;
305                         clock-latency-ns = <40000>;
306                 };
307         };
308
309         energy-costs {
310                 RK3368_CPU_COST_0: rk3368-core-cost0 {
311                         busy-cost-data = <
312                                 146    44       /*  216M */
313                                 276    72       /*  408M */
314                                 406    99       /*  600M */
315                                 552    147      /*  816M */
316                                 682    200      /* 1008M */
317                                 812    255      /* 1200M */
318                         >;
319                         idle-cost-data = <
320                                   6
321                                   6
322                                   0
323                         >;
324                 };
325
326                 RK3368_CPU_COST_1: rk3368-core-cost1 {
327                         busy-cost-data = <
328                                 146    53       /*  216M */
329                                 276    86       /*  408M */
330                                 406    118      /*  600M */
331                                 552    166      /*  816M */
332                                 682    226      /* 1008M */
333                                 812    309      /* 1200M */
334                                 878    371      /* 1200M */
335                                 959    446      /* 1416M */
336                                 1024   513      /* 1512M */
337                         >;
338                         idle-cost-data = <
339                                    6
340                                    6
341                                    0
342                         >;
343                 };
344
345                 RK3368_CLUSTER_COST_0: rk3368-cluster-cost0 {
346                         busy-cost-data = <
347                                 146    9        /*  216M */
348                                 276    14       /*  408M */
349                                 406    20       /*  600M */
350                                 552    29       /*  816M */
351                                 682    40       /* 1008M */
352                                 812    51       /* 1200M */
353                         >;
354                         idle-cost-data = <
355                                 56
356                                 56
357                                 56
358                         >;
359                 };
360
361                 RK3368_CLUSTER_COST_1: rk3368-cluster-cost1 {
362                         busy-cost-data = <
363                                 146    11       /*  216M */
364                                 276    17       /*  408M */
365                                 406    24       /*  600M */
366                                 552    33       /*  816M */
367                                 682    45       /* 1008M */
368                                 812    62       /* 1200M */
369                                 878    74       /* 1200M */
370                                 959    89       /* 1416M */
371                                 1024   103      /* 1512M */
372                         >;
373                         idle-cost-data = <
374                                 56
375                                 56
376                                 56
377                         >;
378                 };
379         };
380
381         cpu_avs: cpu-avs {
382                 cluster0-avs {
383                         cluster-id = <0>;
384                         min-volt = <950000>; /* uV */
385                         min-freq = <216000>; /* KHz */
386                         leakage-adjust-volt = <
387                         /*  mA        mA         uV */
388                             0         254        0
389                         >;
390                         nvmem-cells = <&cpu_leakage>;
391                         nvmem-cell-names = "cpu_leakage";
392                 };
393                 cluster1-avs {
394                         cluster-id = <1>;
395                         min-volt = <950000>; /* uV */
396                         min-freq = <216000>; /* KHz */
397                         leakage-adjust-volt = <
398                         /*  mA        mA         uV */
399                             0         254        0
400                         >;
401                         nvmem-cells = <&cpu_leakage>;
402                         nvmem-cell-names = "cpu_leakage";
403                 };
404         };
405
406         arm-pmu {
407                 compatible = "arm,armv8-pmuv3";
408                 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
409                              <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
410                              <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
411                              <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
412                              <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
413                              <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
414                              <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
415                              <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
416                 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
417                                      <&cpu_l3>, <&cpu_b0>, <&cpu_b1>,
418                                      <&cpu_b2>, <&cpu_b3>;
419         };
420
421         amba {
422                 compatible = "arm,amba-bus";
423                 #address-cells = <2>;
424                 #size-cells = <2>;
425                 ranges;
426
427                 dmac_peri: dma-controller@ff250000 {
428                         compatible = "arm,pl330", "arm,primecell";
429                         reg = <0x0 0xff250000 0x0 0x4000>;
430                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
431                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
432                         #dma-cells = <1>;
433                         clocks = <&cru ACLK_DMAC_PERI>;
434                         clock-names = "apb_pclk";
435                         arm,pl330-broken-no-flushp;
436                         peripherals-req-type-burst;
437                 };
438
439                 dmac_bus: dma-controller@ff600000 {
440                         compatible = "arm,pl330", "arm,primecell";
441                         reg = <0x0 0xff600000 0x0 0x4000>;
442                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
443                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
444                         #dma-cells = <1>;
445                         clocks = <&cru ACLK_DMAC_BUS>;
446                         clock-names = "apb_pclk";
447                         arm,pl330-broken-no-flushp;
448                         peripherals-req-type-burst;
449                 };
450         };
451
452         psci {
453                 compatible = "arm,psci-0.2";
454                 method = "smc";
455         };
456
457         timer {
458                 compatible = "arm,armv8-timer";
459                 interrupts = <GIC_PPI 13
460                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
461                              <GIC_PPI 14
462                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
463                              <GIC_PPI 11
464                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
465                              <GIC_PPI 10
466                         (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
467         };
468
469         xin24m: oscillator {
470                 compatible = "fixed-clock";
471                 clock-frequency = <24000000>;
472                 clock-output-names = "xin24m";
473                 #clock-cells = <0>;
474         };
475
476         xin32k: xin32k {
477                 compatible = "fixed-clock";
478                 clock-frequency = <32768>;
479                 clock-output-names = "xin32k";
480                 #clock-cells = <0>;
481         };
482
483         sdmmc: dwmmc@ff0c0000 {
484                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
485                 reg = <0x0 0xff0c0000 0x0 0x4000>;
486                 clock-freq-min-max = <400000 150000000>;
487                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
488                          <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
489                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
490                 fifo-depth = <0x100>;
491                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
492                 status = "disabled";
493         };
494
495         sdio0: dwmmc@ff0d0000 {
496                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
497                 reg = <0x0 0xff0d0000 0x0 0x4000>;
498                 clock-freq-min-max = <400000 150000000>;
499                 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
500                          <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
501                 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
502                 fifo-depth = <0x100>;
503                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
504                 status = "disabled";
505         };
506
507         emmc: dwmmc@ff0f0000 {
508                 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
509                 reg = <0x0 0xff0f0000 0x0 0x4000>;
510                 clock-freq-min-max = <400000 150000000>;
511                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
512                          <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
513                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
514                 fifo-depth = <0x100>;
515                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
516                 status = "disabled";
517         };
518
519         saradc: saradc@ff100000 {
520                 compatible = "rockchip,saradc";
521                 reg = <0x0 0xff100000 0x0 0x100>;
522                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
523                 #io-channel-cells = <1>;
524                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
525                 clock-names = "saradc", "apb_pclk";
526                 resets = <&cru SRST_SARADC>;
527                 reset-names = "saradc-apb";
528                 status = "disabled";
529         };
530
531         spi0: spi@ff110000 {
532                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
533                 reg = <0x0 0xff110000 0x0 0x1000>;
534                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
535                 clock-names = "spiclk", "apb_pclk";
536                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
537                 pinctrl-names = "default";
538                 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
539                 #address-cells = <1>;
540                 #size-cells = <0>;
541                 status = "disabled";
542         };
543
544         spi1: spi@ff120000 {
545                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
546                 reg = <0x0 0xff120000 0x0 0x1000>;
547                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
548                 clock-names = "spiclk", "apb_pclk";
549                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
550                 pinctrl-names = "default";
551                 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
552                 #address-cells = <1>;
553                 #size-cells = <0>;
554                 status = "disabled";
555         };
556
557         spi2: spi@ff130000 {
558                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
559                 reg = <0x0 0xff130000 0x0 0x1000>;
560                 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
561                 clock-names = "spiclk", "apb_pclk";
562                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
563                 pinctrl-names = "default";
564                 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
565                 #address-cells = <1>;
566                 #size-cells = <0>;
567                 status = "disabled";
568         };
569
570         i2c0: i2c@ff650000 {
571                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
572                 reg = <0x0 0xff650000 0x0 0x1000>;
573                 clocks = <&cru PCLK_I2C0>;
574                 clock-names = "i2c";
575                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
576                 pinctrl-names = "default";
577                 pinctrl-0 = <&i2c0_xfer>;
578                 #address-cells = <1>;
579                 #size-cells = <0>;
580                 status = "disabled";
581         };
582
583         i2c2: i2c@ff140000 {
584                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
585                 reg = <0x0 0xff140000 0x0 0x1000>;
586                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
587                 #address-cells = <1>;
588                 #size-cells = <0>;
589                 clock-names = "i2c";
590                 clocks = <&cru PCLK_I2C2>;
591                 pinctrl-names = "default";
592                 pinctrl-0 = <&i2c2_xfer>;
593                 status = "disabled";
594         };
595
596         i2c3: i2c@ff150000 {
597                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
598                 reg = <0x0 0xff150000 0x0 0x1000>;
599                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
600                 #address-cells = <1>;
601                 #size-cells = <0>;
602                 clock-names = "i2c";
603                 clocks = <&cru PCLK_I2C3>;
604                 pinctrl-names = "default";
605                 pinctrl-0 = <&i2c3_xfer>;
606                 status = "disabled";
607         };
608
609         i2c4: i2c@ff160000 {
610                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
611                 reg = <0x0 0xff160000 0x0 0x1000>;
612                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
613                 #address-cells = <1>;
614                 #size-cells = <0>;
615                 clock-names = "i2c";
616                 clocks = <&cru PCLK_I2C4>;
617                 pinctrl-names = "default";
618                 pinctrl-0 = <&i2c4_xfer>;
619                 status = "disabled";
620         };
621
622         i2c5: i2c@ff170000 {
623                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
624                 reg = <0x0 0xff170000 0x0 0x1000>;
625                 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
626                 #address-cells = <1>;
627                 #size-cells = <0>;
628                 clock-names = "i2c";
629                 clocks = <&cru PCLK_I2C5>;
630                 pinctrl-names = "default";
631                 pinctrl-0 = <&i2c5_xfer>;
632                 status = "disabled";
633         };
634
635         uart0: serial@ff180000 {
636                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
637                 reg = <0x0 0xff180000 0x0 0x100>;
638                 clock-frequency = <24000000>;
639                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
640                 clock-names = "baudclk", "apb_pclk";
641                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
642                 reg-shift = <2>;
643                 reg-io-width = <4>;
644                 status = "disabled";
645         };
646
647         uart1: serial@ff190000 {
648                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
649                 reg = <0x0 0xff190000 0x0 0x100>;
650                 clock-frequency = <24000000>;
651                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
652                 clock-names = "baudclk", "apb_pclk";
653                 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
654                 reg-shift = <2>;
655                 reg-io-width = <4>;
656                 status = "disabled";
657         };
658
659         uart3: serial@ff1b0000 {
660                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
661                 reg = <0x0 0xff1b0000 0x0 0x100>;
662                 clock-frequency = <24000000>;
663                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
664                 clock-names = "baudclk", "apb_pclk";
665                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
666                 reg-shift = <2>;
667                 reg-io-width = <4>;
668                 status = "disabled";
669         };
670
671         uart4: serial@ff1c0000 {
672                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
673                 reg = <0x0 0xff1c0000 0x0 0x100>;
674                 clock-frequency = <24000000>;
675                 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
676                 clock-names = "baudclk", "apb_pclk";
677                 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
678                 reg-shift = <2>;
679                 reg-io-width = <4>;
680                 status = "disabled";
681         };
682
683         thermal_zones: thermal-zones {
684                 soc_thermal: soc-thermal {
685                         polling-delay-passive = <200>; /* milliseconds */
686                         polling-delay = <200>; /* milliseconds */
687                         sustainable-power = <600>; /* milliwatts */
688
689                         thermal-sensors = <&tsadc 0>;
690                         trips {
691                                 threshold: trip-point@0 {
692                                         temperature = <70000>; /* millicelsius */
693                                         hysteresis = <2000>; /* millicelsius */
694                                         type = "passive";
695                                 };
696                                 target: trip-point@1 {
697                                         temperature = <80000>; /* millicelsius */
698                                         hysteresis = <2000>; /* millicelsius */
699                                         type = "passive";
700                                 };
701                                 soc_crit: soc-crit {
702                                         temperature = <95000>; /* millicelsius */
703                                         hysteresis = <2000>; /* millicelsius */
704                                         type = "critical";
705                                 };
706                         };
707
708                         cooling-maps {
709                                 map0 {
710                                         trip = <&target>;
711                                         cooling-device =
712                                         <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
713                                         contribution = <1024>;
714                                 };
715                                 map1 {
716                                         trip = <&target>;
717                                         cooling-device =
718                                         <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
719                                         contribution = <1024>;
720                                 };
721                                 map2 {
722                                         trip = <&target>;
723                                         cooling-device =
724                                         <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
725                                         contribution = <1024>;
726                                 };
727                         };
728                 };
729
730                 gpu_thermal: gpu-thermal {
731                         polling-delay-passive = <200>; /* milliseconds */
732                         polling-delay = <200>; /* milliseconds */
733                         thermal-sensors = <&tsadc 1>;
734                 };
735         };
736
737         tsadc: tsadc@ff280000 {
738                 compatible = "rockchip,rk3368-tsadc-legacy";
739                 reg = <0x0 0xff280000 0x0 0x100>;
740                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
741                 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
742                 clock-names = "tsadc", "apb_pclk";
743                 clock-frequency = <32768>;
744                 resets = <&cru SRST_TSADC>;
745                 reset-names = "tsadc-apb";
746                 nvmem-cells = <&temp_adjust>;
747                 nvmem-cell-names = "temp_adjust";
748                 #thermal-sensor-cells = <1>;
749                 hw-shut-temp = <95000>;
750                 status = "disabled";
751         };
752
753         gmac: ethernet@ff290000 {
754                 compatible = "rockchip,rk3368-gmac";
755                 reg = <0x0 0xff290000 0x0 0x10000>;
756                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
757                 interrupt-names = "macirq";
758                 rockchip,grf = <&grf>;
759                 clocks = <&cru SCLK_MAC>,
760                         <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
761                         <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
762                         <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
763                 clock-names = "stmmaceth",
764                         "mac_clk_rx", "mac_clk_tx",
765                         "clk_mac_ref", "clk_mac_refout",
766                         "aclk_mac", "pclk_mac";
767                 status = "disabled";
768         };
769
770         nandc0: nandc@ff400000 {
771                 compatible = "rockchip,rk-nandc";
772                 reg = <0x0 0xff400000 0x0 0x4000>;
773                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
774                 nandc_id = <0>;
775                 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
776                 clock-names = "clk_nandc", "hclk_nandc";
777                 status = "disabled";
778         };
779
780         usb_host0_ehci: usb@ff500000 {
781                 compatible = "generic-ehci";
782                 reg = <0x0 0xff500000 0x0 0x20000>;
783                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
784                 clocks = <&cru HCLK_HOST0>, <&u2phy>;
785                 clock-names = "usbhost", "utmi";
786                 phys = <&u2phy_host>;
787                 phy-names = "usb";
788                 status = "disabled";
789         };
790
791         usb_host0_ohci: usb@ff520000 {
792                 compatible = "generic-ohci";
793                 reg = <0x0 0xff520000 0x0 0x20000>;
794                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
795                 clocks = <&cru HCLK_HOST0>, <&u2phy>;
796                 clock-names = "usbhost", "utmi";
797                 phys = <&u2phy_host>;
798                 phy-names = "usb";
799                 status = "disabled";
800         };
801
802         usb_otg: usb@ff580000 {
803                 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
804                                 "snps,dwc2";
805                 reg = <0x0 0xff580000 0x0 0x40000>;
806                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
807                 clocks = <&cru HCLK_OTG0>;
808                 clock-names = "otg";
809                 dr_mode = "otg";
810                 g-np-tx-fifo-size = <16>;
811                 g-rx-fifo-size = <275>;
812                 g-tx-fifo-size = <256 128 128 64 64 32>;
813                 g-use-dma;
814                 status = "disabled";
815         };
816
817         ddrpctl: syscon@ff610000 {
818                 compatible = "rockchip,rk3368-ddrpctl", "syscon";
819                 reg = <0x0 0xff610000 0x0 0x400>;
820         };
821
822         i2c1: i2c@ff660000 {
823                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
824                 reg = <0x0 0xff660000 0x0 0x1000>;
825                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
826                 #address-cells = <1>;
827                 #size-cells = <0>;
828                 clock-names = "i2c";
829                 clocks = <&cru PCLK_I2C1>;
830                 pinctrl-names = "default";
831                 pinctrl-0 = <&i2c1_xfer>;
832                 status = "disabled";
833         };
834
835         pwm0: pwm@ff680000 {
836                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
837                 reg = <0x0 0xff680000 0x0 0x10>;
838                 #pwm-cells = <3>;
839                 pinctrl-names = "default";
840                 pinctrl-0 = <&pwm0_pin>;
841                 clocks = <&cru PCLK_PWM1>;
842                 clock-names = "pwm";
843                 status = "disabled";
844         };
845
846         pwm1: pwm@ff680010 {
847                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
848                 reg = <0x0 0xff680010 0x0 0x10>;
849                 #pwm-cells = <3>;
850                 pinctrl-names = "default";
851                 pinctrl-0 = <&pwm1_pin>;
852                 clocks = <&cru PCLK_PWM1>;
853                 clock-names = "pwm";
854                 status = "disabled";
855         };
856
857         pwm2: pwm@ff680020 {
858                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
859                 reg = <0x0 0xff680020 0x0 0x10>;
860                 #pwm-cells = <3>;
861                 clocks = <&cru PCLK_PWM1>;
862                 clock-names = "pwm";
863                 status = "disabled";
864         };
865
866         pwm3: pwm@ff680030 {
867                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
868                 reg = <0x0 0xff680030 0x0 0x10>;
869                 #pwm-cells = <3>;
870                 pinctrl-names = "default";
871                 pinctrl-0 = <&pwm3_pin>;
872                 clocks = <&cru PCLK_PWM1>;
873                 clock-names = "pwm";
874                 status = "disabled";
875         };
876
877         uart2: serial@ff690000 {
878                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
879                 reg = <0x0 0xff690000 0x0 0x100>;
880                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
881                 clock-names = "baudclk", "apb_pclk";
882                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
883                 pinctrl-names = "default";
884                 pinctrl-0 = <&uart2_xfer>;
885                 reg-shift = <2>;
886                 reg-io-width = <4>;
887                 status = "disabled";
888         };
889
890         mbox: mbox@ff6b0000 {
891                 compatible = "rockchip,rk3368-mailbox";
892                 reg = <0x0 0xff6b0000 0x0 0x1000>;
893                 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
894                              <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
895                              <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
896                              <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
897                 clocks = <&cru PCLK_MAILBOX>;
898                 clock-names = "pclk_mailbox";
899                 #mbox-cells = <1>;
900                 status = "disabled";
901         };
902
903         mailbox: mailbox@ff6b0000 {
904                 compatible = "rockchip,rk3368-mbox-legacy";
905                 reg = <0x0 0xff6b0000 0x0 0x1000>,
906                       <0x0 0xff8cf000 0x0 0x1000>; /* the end 4k of sram */
907                 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
908                              <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
909                              <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
910                              <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
911                 clocks = <&cru PCLK_MAILBOX>;
912                 clock-names = "pclk_mailbox";
913                 #mbox-cells = <1>;
914                 status = "disabled";
915         };
916
917         mailbox_scpi: mailbox-scpi {
918                 compatible = "rockchip,rk3368-scpi-legacy";
919                 mboxes = <&mailbox 0>, <&mailbox 1>, <&mailbox 2>;
920                 chan-nums = <3>;
921                 status = "disabled";
922         };
923
924         qos_iep: qos@ffad0000 {
925                 compatible = "syscon";
926                 reg = <0x0 0xffad0000 0x0 0x20>;
927         };
928
929         qos_isp_r0: qos@ffad0080 {
930                 compatible = "syscon";
931                 reg = <0x0 0xffad0080 0x0 0x20>;
932         };
933
934         qos_isp_r1: qos@ffad0100 {
935                 compatible = "syscon";
936                 reg = <0x0 0xffad0100 0x0 0x20>;
937         };
938
939         qos_isp_w0: qos@ffad0180 {
940                 compatible = "syscon";
941                 reg = <0x0 0xffad0180 0x0 0x20>;
942         };
943
944         qos_isp_w1: qos@ffad0200 {
945                 compatible = "syscon";
946                 reg = <0x0 0xffad0200 0x0 0x20>;
947         };
948
949         qos_vip: qos@ffad0280 {
950                 compatible = "syscon";
951                 reg = <0x0 0xffad0280 0x0 0x20>;
952         };
953
954         qos_vop: qos@ffad0300 {
955                 compatible = "syscon";
956                 reg = <0x0 0xffad0300 0x0 0x20>;
957         };
958
959         qos_rga_r: qos@ffad0380 {
960                 compatible = "syscon";
961                 reg = <0x0 0xffad0380 0x0 0x20>;
962         };
963
964         qos_rga_w: qos@ffad0400 {
965                 compatible = "syscon";
966                 reg = <0x0 0xffad0400 0x0 0x20>;
967         };
968
969         qos_hevc_r: qos@ffae0000 {
970                 compatible = "syscon";
971                 reg = <0x0 0xffae0000 0x0 0x20>;
972         };
973
974         qos_vpu_r: qos@ffae0100 {
975                 compatible = "syscon";
976                 reg = <0x0 0xffae0100 0x0 0x20>;
977         };
978
979         qos_vpu_w: qos@ffae0180 {
980                 compatible = "syscon";
981                 reg = <0x0 0xffae0180 0x0 0x20>;
982         };
983
984         qos_gpu: qos@ffaf0000 {
985                 compatible = "syscon";
986                 reg = <0x0 0xffaf0000 0x0 0x20>;
987         };
988
989         pmu: power-management@ff730000 {
990                 compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd";
991                 reg = <0x0 0xff730000 0x0 0x1000>;
992
993                 power: power-controller {
994                         compatible = "rockchip,rk3368-power-controller";
995                         #power-domain-cells = <1>;
996                         #address-cells = <1>;
997                         #size-cells = <0>;
998
999                         /*
1000                          * Note: Although SCLK_* are the working clocks
1001                          * of device without including on the NOC, needed for
1002                          * synchronous reset.
1003                          *
1004                          * The clocks on the which NOC:
1005                          * ACLK_IEP/ACLK_VIP/ACLK_VOP0 are on ACLK_VIO0_NIU.
1006                          * ACLK_ISP/ACLK_VOP1 are on ACLK_VIO1_NIU.
1007                          * ACLK_RGA is on ACLK_RGA_NIU.
1008                          * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
1009                          *
1010                          * Which clock are device clocks:
1011                          *      clocks          devices
1012                          *      *_IEP           IEP:Image Enhancement Processor
1013                          *      *_ISP           ISP:Image Signal Processing
1014                          *      *_VIP           VIP:Video Input Processor
1015                          *      *_VOP*          VOP:Visual Output Processor
1016                          *      *_RGA           RGA
1017                          *      *_EDP*          EDP
1018                          *      *_DPHY*         LVDS
1019                          *      *_HDMI          HDMI
1020                          *      *_MIPI_*        MIPI
1021                          */
1022                         pd_vio {
1023                                 reg = <RK3368_PD_VIO>;
1024                                 clocks = <&cru ACLK_IEP>,
1025                                          <&cru ACLK_ISP>,
1026                                          <&cru ACLK_VIP>,
1027                                          <&cru ACLK_RGA>,
1028                                          <&cru ACLK_VOP>,
1029                                          <&cru ACLK_VOP_IEP>,
1030                                          <&cru DCLK_VOP>,
1031                                          <&cru HCLK_IEP>,
1032                                          <&cru HCLK_ISP>,
1033                                          <&cru HCLK_RGA>,
1034                                          <&cru HCLK_VIP>,
1035                                          <&cru HCLK_VOP>,
1036                                          <&cru HCLK_VIO_HDCPMMU>,
1037                                          <&cru PCLK_EDP_CTRL>,
1038                                          <&cru PCLK_HDMI_CTRL>,
1039                                          <&cru PCLK_HDCP>,
1040                                          <&cru PCLK_ISP>,
1041                                          <&cru PCLK_VIP>,
1042                                          <&cru PCLK_DPHYRX>,
1043                                          <&cru PCLK_DPHYTX0>,
1044                                          <&cru PCLK_MIPI_CSI>,
1045                                          <&cru PCLK_MIPI_DSI0>,
1046                                          <&cru SCLK_VOP0_PWM>,
1047                                          <&cru SCLK_EDP_24M>,
1048                                          <&cru SCLK_EDP>,
1049                                          <&cru SCLK_HDCP>,
1050                                          <&cru SCLK_ISP>,
1051                                          <&cru SCLK_RGA>,
1052                                          <&cru SCLK_HDMI_CEC>,
1053                                          <&cru SCLK_HDMI_HDCP>;
1054                                 pm_qos = <&qos_iep>,
1055                                          <&qos_isp_r0>,
1056                                          <&qos_isp_r1>,
1057                                          <&qos_isp_w0>,
1058                                          <&qos_isp_w1>,
1059                                          <&qos_vip>,
1060                                          <&qos_vop>,
1061                                          <&qos_rga_r>,
1062                                          <&qos_rga_w>;
1063                         };
1064                         /*
1065                          * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
1066                          * (video endecoder & decoder) clocks that on the
1067                          * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
1068                          */
1069                         pd_video {
1070                                 reg = <RK3368_PD_VIDEO>;
1071                                 clocks = <&cru ACLK_VIDEO>,
1072                                          <&cru HCLK_VIDEO>,
1073                                          <&cru SCLK_HEVC_CABAC>,
1074                                          <&cru SCLK_HEVC_CORE>;
1075                                 pm_qos = <&qos_hevc_r>,
1076                                          <&qos_vpu_r>,
1077                                          <&qos_vpu_w>;
1078                         };
1079                         /*
1080                          * Note: ACLK_GPU is the GPU clock,
1081                          * and on the ACLK_GPU_NIU (NOC).
1082                          */
1083                         pd_gpu_1 {
1084                                 reg = <RK3368_PD_GPU_1>;
1085                                 clocks = <&cru ACLK_GPU_CFG>,
1086                                          <&cru ACLK_GPU_MEM>,
1087                                          <&cru SCLK_GPU_CORE>;
1088                                 pm_qos = <&qos_gpu>;
1089                         };
1090                 };
1091         };
1092
1093         pmugrf: syscon@ff738000 {
1094                 compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
1095                 reg = <0x0 0xff738000 0x0 0x1000>;
1096
1097                 pmu_io_domains: io-domains {
1098                         compatible = "rockchip,rk3368-pmu-io-voltage-domain";
1099                         status = "disabled";
1100                 };
1101
1102                 reboot-mode {
1103                         compatible = "syscon-reboot-mode";
1104                         offset = <0x200>;
1105                         mode-normal = <BOOT_NORMAL>;
1106                         mode-recovery = <BOOT_RECOVERY>;
1107                         mode-bootloader = <BOOT_FASTBOOT>;
1108                         mode-loader = <BOOT_BL_DOWNLOAD>;
1109                 };
1110         };
1111
1112         cru: clock-controller@ff760000 {
1113                 compatible = "rockchip,rk3368-cru";
1114                 reg = <0x0 0xff760000 0x0 0x1000>;
1115                 rockchip,grf = <&grf>;
1116                 #clock-cells = <1>;
1117                 #reset-cells = <1>;
1118                 assigned-clocks =
1119                         <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1120                         <&cru ACLK_BUS>, <&cru ACLK_PERI>,
1121                         <&cru HCLK_BUS>, <&cru HCLK_PERI>,
1122                         <&cru PCLK_BUS>, <&cru PCLK_PERI>,
1123                         <&cru ACLK_CCI_PRE>;
1124                 assigned-clock-rates =
1125                         <576000000>, <400000000>,
1126                         <300000000>, <300000000>,
1127                         <150000000>, <150000000>,
1128                         <75000000>, <75000000>,
1129                         <576000000>;
1130         };
1131
1132         grf: syscon@ff770000 {
1133                 compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd";
1134                 reg = <0x0 0xff770000 0x0 0x1000>;
1135                 #address-cells = <1>;
1136                 #size-cells = <1>;
1137
1138                 edp_phy: edp-phy {
1139                         compatible = "rockchip,rk3368-dp-phy";
1140                         clocks = <&cru SCLK_EDP_24M>;
1141                         clock-names = "24m";
1142                         resets = <&cru SRST_EDP_24M>;
1143                         reset-names = "edp_24m";
1144                         #phy-cells = <0>;
1145                         status = "disabled";
1146                 };
1147
1148                 io_domains: io-domains {
1149                         compatible = "rockchip,rk3368-io-voltage-domain";
1150                         status = "disabled";
1151                 };
1152
1153                 u2phy: usb2-phy@700 {
1154                         compatible = "rockchip,rk3368-usb2phy";
1155                         reg = <0x700 0x2c>;
1156                         clocks = <&cru SCLK_OTGPHY0>;
1157                         clock-names = "phyclk";
1158                         #clock-cells = <0>;
1159                         clock-output-names = "usbotg_out";
1160                         assigned-clocks = <&cru SCLK_USBPHY480M>;
1161                         assigned-clock-parents = <&u2phy>;
1162                         status = "disabled";
1163
1164                         u2phy_host: host-port {
1165                                 #phy-cells = <0>;
1166                                 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1167                                 interrupt-names = "linestate";
1168                                 status = "disabled";
1169                         };
1170                 };
1171         };
1172
1173         wdt: watchdog@ff800000 {
1174                 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
1175                 reg = <0x0 0xff800000 0x0 0x100>;
1176                 clocks = <&cru PCLK_WDT>;
1177                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
1178                 status = "disabled";
1179         };
1180
1181         timer@ff810000 {
1182                 compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
1183                 reg = <0x0 0xff810000 0x0 0x20>;
1184                 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1185         };
1186
1187         i2s_2ch: i2s-2ch@ff890000 {
1188                 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
1189                 reg = <0x0 0xff890000 0x0 0x1000>;
1190                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1191                 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
1192                 dma-names = "tx", "rx";
1193                 clock-names = "i2s_clk", "i2s_hclk";
1194                 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
1195                 status = "disabled";
1196         };
1197
1198         i2s_8ch: i2s-8ch@ff898000 {
1199                 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
1200                 reg = <0x0 0xff898000 0x0 0x1000>;
1201                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
1202                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1203                 dma-names = "tx", "rx";
1204                 clock-names = "i2s_clk", "i2s_hclk";
1205                 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
1206                 pinctrl-names = "default";
1207                 pinctrl-0 = <&i2s_8ch_bus>;
1208                 status = "disabled";
1209         };
1210
1211         iep: iep@ff900000 {
1212                 compatible = "rockchip,iep";
1213                 iommu_enabled = <1>;
1214                 iommus = <&iep_mmu>;
1215                 reg = <0x0 0xff900000 0x0 0x800>;
1216                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1217                 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
1218                 clock-names = "aclk_iep", "hclk_iep";
1219                 power-domains = <&power RK3368_PD_VIO>;
1220                 allocator = <1>;
1221                 version = <2>;
1222                 status = "disabled";
1223         };
1224
1225         iep_mmu: iommu@ff900800 {
1226                 compatible = "rockchip,iommu";
1227                 reg = <0x0 0xff900800 0x0 0x100>;
1228                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
1229                 interrupt-names = "iep_mmu";
1230                 power-domains = <&power RK3368_PD_VIO>;
1231                 #iommu-cells = <0>;
1232                 status = "disabled";
1233         };
1234
1235         isp: isp@ff910000 {
1236                 compatible = "rockchip,rk3368-isp", "rockchip,isp";
1237                 reg = <0x0 0xff910000 0x0 0x4000>;
1238                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1239                 power-domains = <&power RK3368_PD_VIO>;
1240                 clocks =
1241                         <&cru ACLK_RGA>, <&cru HCLK_ISP>, <&cru SCLK_ISP>,
1242                         <&cru SCLK_ISP>, <&cru PCLK_ISP>, <&cru SCLK_VIP_OUT>,
1243                         <&cru SCLK_VIP_OUT>, <&cru PCLK_MIPI_CSI>,
1244                         <&cru PCLK_DPHYRX>, <&cru ACLK_VIO0_NOC>;
1245                 clock-names =
1246                         "aclk_isp", "hclk_isp", "clk_isp",
1247                         "clk_isp_jpe", "pclkin_isp", "clk_cif_out",
1248                         "clk_cif_pll", "hclk_mipiphy1",
1249                         "pclk_dphyrx", "clk_vio0_noc";
1250
1251                 pinctrl-names =
1252                         "default", "isp_dvp8bit2", "isp_dvp10bit",
1253                         "isp_dvp12bit", "isp_dvp8bit0", "isp_dvp8bit4",
1254                         "isp_mipi_fl", "isp_mipi_fl_prefl",
1255                         "isp_flash_as_gpio", "isp_flash_as_trigger_out";
1256                 pinctrl-0 = <&cif_clkout>;
1257                 pinctrl-1 = <&cif_clkout &isp_dvp_d2d9>;
1258                 pinctrl-2 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d0d1>;
1259                 pinctrl-3 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d0d1 &isp_dvp_d10d11>;
1260                 pinctrl-4 = <&cif_clkout &isp_dvp_d0d7>;
1261                 pinctrl-5 = <&cif_clkout &isp_dvp_d4d11>;
1262                 pinctrl-6 = <&cif_clkout>;
1263                 pinctrl-7 = <&cif_clkout &isp_prelight>;
1264                 pinctrl-8 = <&isp_flash_trigger_as_gpio>;
1265                 pinctrl-9 = <&isp_flash_trigger>;
1266                 rockchip,isp,mipiphy = <2>;
1267                 rockchip,isp,cifphy = <1>;
1268                 rockchip,isp,mipiphy1,reg = <0xff964000 0x4000>;
1269                 rockchip,isp,csiphy,reg = <0xff96C000 0x4000>;
1270                 rockchip,grf = <&grf>;
1271                 rockchip,cru = <&cru>;
1272                 rockchip,gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
1273                 rockchip,isp,iommu-enable = <1>;
1274                 iommus = <&isp_mmu>;
1275                 status = "disabled";
1276         };
1277
1278         isp_mmu: iommu@ff914000 {
1279                 compatible = "rockchip,iommu";
1280                 reg = <0x0 0xff914000 0x0 0x100>,
1281                       <0x0 0xff915000 0x0 0x100>;
1282                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1283                 interrupt-names = "isp_mmu";
1284                 clocks = <&cru ACLK_RGA>, <&cru HCLK_ISP>;
1285                 clock-names = "aclk", "hclk";
1286                 rk_iommu,disable_reset_quirk;
1287                 #iommu-cells = <0>;
1288                 power-domains = <&power RK3368_PD_VIO>;
1289                 status = "disabled";
1290         };
1291
1292         vop: vop@ff930000 {
1293                 compatible = "rockchip,rk3368-vop";
1294                 reg = <0x0 0xff930000 0x0 0x2fc>;
1295                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1296                 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
1297                 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1298                 assigned-clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
1299                 assigned-clock-rates = <400000000>, <200000000>;
1300                 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
1301                 reset-names = "axi", "ahb", "dclk";
1302                 power-domains = <&power RK3368_PD_VIO>;
1303                 iommus = <&vop_mmu>;
1304                 status = "disabled";
1305
1306                 vop_out: port {
1307                         #address-cells = <1>;
1308                         #size-cells = <0>;
1309
1310                         vop_out_mipi: endpoint@0 {
1311                                 reg = <0>;
1312                                 remote-endpoint = <&mipi_in_vop>;
1313                         };
1314
1315                         vop_out_edp: endpoint@1 {
1316                                 reg = <1>;
1317                                 remote-endpoint = <&edp_in_vop>;
1318                         };
1319                 };
1320         };
1321
1322         display_subsystem: display-subsystem {
1323                 compatible = "rockchip,display-subsystem";
1324                 ports = <&vop_out>;
1325                 status = "disabled";
1326         };
1327
1328         vop_mmu: iommu@ff930300 {
1329                 compatible = "rockchip,iommu";
1330                 reg = <0x0 0xff930300 0x0 0x100>;
1331                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1332                 interrupt-names = "vop_mmu";
1333                 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
1334                 clock-names = "aclk", "hclk";
1335                 power-domains = <&power RK3368_PD_VIO>;
1336                 #iommu-cells = <0>;
1337                 status = "disabled";
1338         };
1339
1340         mipi_dsi_host: mipi-dsi-host@ff960000 {
1341                 compatible = "rockchip,rk3368-mipi-dsi";
1342                 reg = <0x0 0xff960000 0x0 0x4000>;
1343                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1344                 clocks = <&cru PCLK_MIPI_DSI0>;
1345                 clock-names = "pclk";
1346                 resets = <&cru SRST_MIPIDSI0>;
1347                 reset-names = "apb";
1348                 phys = <&mipi_dphy>;
1349                 phy-names = "mipi_dphy";
1350                 rockchip,grf = <&grf>;
1351                 power-domains = <&power RK3368_PD_VIO>;
1352                 #address-cells = <1>;
1353                 #size-cells = <0>;
1354                 status = "disabled";
1355
1356                 ports {
1357                         port {
1358                                 mipi_in_vop: endpoint {
1359                                         remote-endpoint = <&vop_out_mipi>;
1360                                 };
1361                         };
1362                 };
1363         };
1364
1365         mipi_dphy: mipi-dphy@ff968000 {
1366                 compatible = "rockchip,rk3368-mipi-dphy";
1367                 reg = <0x0 0xff968000 0x0 0x4000>;
1368                 #phy-cells = <0>;
1369                 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>;
1370                 clock-names = "ref", "pclk";
1371                 resets = <&cru SRST_MIPIDPHYTX>;
1372                 reset-names = "apb";
1373                 status = "disabled";
1374         };
1375
1376         edp: edp@ff970000 {
1377                 compatible = "rockchip,rk3368-edp";
1378                 reg = <0x0 0xff970000 0x0 0x8000>;
1379                 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
1380                 clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
1381                 clock-names = "dp", "pclk";
1382                 resets = <&cru SRST_EDP>;
1383                 reset-names = "dp";
1384                 power-domains = <&power RK3368_PD_VIO>;
1385                 rockchip,grf = <&grf>;
1386                 phys = <&edp_phy>;
1387                 phy-names = "dp";
1388                 pinctrl-names = "default";
1389                 pinctrl-0 = <&edp_hpd>;
1390                 status = "disabled";
1391
1392                 ports {
1393                         #address-cells = <1>;
1394                         #size-cells = <0>;
1395
1396                         edp_in: port@0 {
1397                                 reg = <0>;
1398
1399                                 edp_in_vop: endpoint {
1400                                         remote-endpoint = <&vop_out_edp>;
1401                                 };
1402                         };
1403                 };
1404         };
1405
1406         hevc_mmu: iommu@ff9a0440 {
1407                 compatible = "rockchip,iommu";
1408                 reg = <0x0 0xff9a0440 0x0 0x40>,
1409                       <0x0 0xff9a0480 0x0 0x40>;
1410                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1411                 interrupt-names = "hevc_mmu";
1412                 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
1413                 clock-names = "aclk", "hclk";
1414                 power-domains = <&power RK3368_PD_VIDEO>;
1415                 #iommu-cells = <0>;
1416                 status = "disabled";
1417         };
1418
1419         vpu_mmu: iommu@ff9a0800 {
1420                 compatible = "rockchip,iommu";
1421                 reg = <0x0 0xff9a0800 0x0 0x100>;
1422                 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
1423                              <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1424                 interrupt-names = "vepu_mmu", "vdpu_mmu";
1425                 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
1426                 clock-names = "aclk", "hclk";
1427                 power-domains = <&power RK3368_PD_VIDEO>;
1428                 #iommu-cells = <0>;
1429                 status = "disabled";
1430         };
1431
1432         vpu: vpu_service {
1433                 compatible = "rockchip,vpu_sub";
1434                 iommu_enabled = <1>;
1435                 iommus = <&vpu_mmu>;
1436                 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
1437                              <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1438                 interrupt-names = "irq_enc","irq_dec";
1439                 dev_mode = <0>;
1440                 name = "vpu_service";
1441                 allocator = <1>;
1442         };
1443
1444         hevc: hevc_service {
1445                 compatible = "rockchip,hevc_sub";
1446                 iommu_enabled = <1>;
1447                 iommus = <&hevc_mmu>;
1448                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1449                 interrupt-names = "irq_dec";
1450                 dev_mode = <1>;
1451                 name = "hevc_service";
1452                 allocator = <1>;
1453         };
1454
1455         vpu_combo: vpu_combo@ff9a0000 {
1456                 compatible = "rockchip,vpu_combo";
1457                 reg = <0x0 0xff9a0000 0x0 0x440>;
1458                 rockchip,grf = <&grf>;
1459                 subcnt = <2>;
1460                 rockchip,sub = <&vpu>, <&hevc>;
1461                 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>,
1462                          <&cru SCLK_HEVC_CORE>, <&cru SCLK_HEVC_CABAC>;
1463                 clock-names = "aclk_vcodec", "hclk_vcodec",
1464                               "clk_core", "clk_cabac";
1465                 resets = <&cru SRST_VIDEO_AXI>, <&cru SRST_VIDEO_AHB>,
1466                          <&cru SRST_VIDEO>;
1467                 reset-names = "video_a", "video_h", "video";
1468                 mode_bit = <12>;
1469                 mode_ctrl = <0x418>;
1470                 name = "vpu_combo";
1471                 power-domains = <&power RK3368_PD_VIDEO>;
1472                 status = "disabled";
1473         };
1474
1475         gic: interrupt-controller@ffb71000 {
1476                 compatible = "arm,gic-400";
1477                 interrupt-controller;
1478                 #interrupt-cells = <3>;
1479                 #address-cells = <0>;
1480
1481                 reg = <0x0 0xffb71000 0x0 0x1000>,
1482                       <0x0 0xffb72000 0x0 0x2000>,
1483                       <0x0 0xffb74000 0x0 0x2000>,
1484                       <0x0 0xffb76000 0x0 0x2000>;
1485                 interrupts = <GIC_PPI 9
1486                       (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
1487         };
1488
1489         gpu: rogue-g6110@ffa30000 {
1490                 compatible = "arm,rogue-G6110", "arm,rk3368-gpu";
1491                 reg = <0x0 0xffa30000 0x0 0x10000>;
1492                 clocks =
1493                         <&cru SCLK_GPU_CORE>,
1494                         <&cru ACLK_GPU_MEM>,
1495                         <&cru ACLK_GPU_CFG>;
1496                 clock-names =
1497                         "sclk_gpu_core",
1498                         "aclk_gpu_mem",
1499                         "aclk_gpu_cfg";
1500                 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1501                 interrupt-names = "rogue-g6110-irq";
1502                 power-domains = <&power RK3368_PD_GPU_1>;
1503                 operating-points-v2 = <&gpu_opp_table>;
1504                 #cooling-cells = <2>; /* min followed by max */
1505                 gpu_power_model: power_model {
1506                         compatible = "arm,mali-simple-power-model";
1507                         voltage = <900>;
1508                         frequency = <500>;
1509                         static-power = <300>;
1510                         dynamic-power = <396>;
1511                         ts = <32000 4700 (-80) 2>;
1512                         thermal-zone = "gpu-thermal";
1513                 };
1514         };
1515
1516         gpu_opp_table: gpu_opp_table {
1517                 compatible = "operating-points-v2";
1518                 opp-shared;
1519
1520                 opp@200000000 {
1521                         opp-hz = /bits/ 64 <200000000>;
1522                         opp-microvolt = <1100000>;
1523                 };
1524                 opp@288000000 {
1525                         opp-hz = /bits/ 64 <288000000>;
1526                         opp-microvolt = <1100000>;
1527                 };
1528                 opp@400000000 {
1529                         opp-hz = /bits/ 64 <400000000>;
1530                         opp-microvolt = <1100000>;
1531                 };
1532                 opp@576000000 {
1533                         opp-hz = /bits/ 64 <576000000>;
1534                         opp-microvolt = <1200000>;
1535                 };
1536         };
1537
1538         efuse: efuse@ffb00000 {
1539                 compatible = "rockchip,rk3368-efuse";
1540                 reg = <0x0 0xffb00000 0x0 0x20>;
1541                 #address-cells = <1>;
1542                 #size-cells = <1>;
1543                 clocks = <&cru PCLK_EFUSE256>;
1544                 clock-names = "pclk_efuse";
1545
1546                 /* Data cells */
1547                 cpu_leakage: cpu-leakage@17 {
1548                         reg = <0x17 0x1>;
1549                 };
1550                 temp_adjust: temp-adjust@1f {
1551                         reg = <0x1f 0x1>;
1552                 };
1553         };
1554
1555         pinctrl: pinctrl {
1556                 compatible = "rockchip,rk3368-pinctrl";
1557                 rockchip,grf = <&grf>;
1558                 rockchip,pmu = <&pmugrf>;
1559                 #address-cells = <0x2>;
1560                 #size-cells = <0x2>;
1561                 ranges;
1562
1563                 gpio0: gpio0@ff750000 {
1564                         compatible = "rockchip,gpio-bank";
1565                         reg = <0x0 0xff750000 0x0 0x100>;
1566                         clocks = <&cru PCLK_GPIO0>;
1567                         interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>;
1568
1569                         gpio-controller;
1570                         #gpio-cells = <0x2>;
1571
1572                         interrupt-controller;
1573                         #interrupt-cells = <0x2>;
1574                 };
1575
1576                 gpio1: gpio1@ff780000 {
1577                         compatible = "rockchip,gpio-bank";
1578                         reg = <0x0 0xff780000 0x0 0x100>;
1579                         clocks = <&cru PCLK_GPIO1>;
1580                         interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>;
1581
1582                         gpio-controller;
1583                         #gpio-cells = <0x2>;
1584
1585                         interrupt-controller;
1586                         #interrupt-cells = <0x2>;
1587                 };
1588
1589                 gpio2: gpio2@ff790000 {
1590                         compatible = "rockchip,gpio-bank";
1591                         reg = <0x0 0xff790000 0x0 0x100>;
1592                         clocks = <&cru PCLK_GPIO2>;
1593                         interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>;
1594
1595                         gpio-controller;
1596                         #gpio-cells = <0x2>;
1597
1598                         interrupt-controller;
1599                         #interrupt-cells = <0x2>;
1600                 };
1601
1602                 gpio3: gpio3@ff7a0000 {
1603                         compatible = "rockchip,gpio-bank";
1604                         reg = <0x0 0xff7a0000 0x0 0x100>;
1605                         clocks = <&cru PCLK_GPIO3>;
1606                         interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>;
1607
1608                         gpio-controller;
1609                         #gpio-cells = <0x2>;
1610
1611                         interrupt-controller;
1612                         #interrupt-cells = <0x2>;
1613                 };
1614
1615                 pcfg_pull_up: pcfg-pull-up {
1616                         bias-pull-up;
1617                 };
1618
1619                 pcfg_pull_down: pcfg-pull-down {
1620                         bias-pull-down;
1621                 };
1622
1623                 pcfg_pull_none: pcfg-pull-none {
1624                         bias-disable;
1625                 };
1626
1627                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1628                         bias-disable;
1629                         drive-strength = <12>;
1630                 };
1631
1632                 edp {
1633                         edp_hpd: edp-hpd {
1634                                 rockchip,pins = <2 23 RK_FUNC_2 &pcfg_pull_none>;
1635                         };
1636                 };
1637
1638                 emmc {
1639                         emmc_clk: emmc-clk {
1640                                 rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none>;
1641                         };
1642
1643                         emmc_cmd: emmc-cmd {
1644                                 rockchip,pins = <1 26 RK_FUNC_2 &pcfg_pull_up>;
1645                         };
1646
1647                         emmc_pwr: emmc-pwr {
1648                                 rockchip,pins = <1 27 RK_FUNC_2 &pcfg_pull_up>;
1649                         };
1650
1651                         emmc_bus1: emmc-bus1 {
1652                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>;
1653                         };
1654
1655                         emmc_bus4: emmc-bus4 {
1656                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
1657                                                 <1 19 RK_FUNC_2 &pcfg_pull_up>,
1658                                                 <1 20 RK_FUNC_2 &pcfg_pull_up>,
1659                                                 <1 21 RK_FUNC_2 &pcfg_pull_up>;
1660                         };
1661
1662                         emmc_bus8: emmc-bus8 {
1663                                 rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
1664                                                 <1 19 RK_FUNC_2 &pcfg_pull_up>,
1665                                                 <1 20 RK_FUNC_2 &pcfg_pull_up>,
1666                                                 <1 21 RK_FUNC_2 &pcfg_pull_up>,
1667                                                 <1 22 RK_FUNC_2 &pcfg_pull_up>,
1668                                                 <1 23 RK_FUNC_2 &pcfg_pull_up>,
1669                                                 <1 24 RK_FUNC_2 &pcfg_pull_up>,
1670                                                 <1 25 RK_FUNC_2 &pcfg_pull_up>;
1671                         };
1672                 };
1673
1674                 gmac {
1675                         rgmii_pins: rgmii-pins {
1676                                 rockchip,pins = <3 22 RK_FUNC_1 &pcfg_pull_none>,
1677                                                 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1678                                                 <3 19 RK_FUNC_1 &pcfg_pull_none>,
1679                                                 <3 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
1680                                                 <3 9 RK_FUNC_1 &pcfg_pull_none_12ma>,
1681                                                 <3 10 RK_FUNC_1 &pcfg_pull_none_12ma>,
1682                                                 <3 14 RK_FUNC_1 &pcfg_pull_none_12ma>,
1683                                                 <3 28 RK_FUNC_1 &pcfg_pull_none_12ma>,
1684                                                 <3 13 RK_FUNC_1 &pcfg_pull_none_12ma>,
1685                                                 <3 15 RK_FUNC_1 &pcfg_pull_none>,
1686                                                 <3 16 RK_FUNC_1 &pcfg_pull_none>,
1687                                                 <3 17 RK_FUNC_1 &pcfg_pull_none>,
1688                                                 <3 18 RK_FUNC_1 &pcfg_pull_none>,
1689                                                 <3 25 RK_FUNC_1 &pcfg_pull_none>,
1690                                                 <3 20 RK_FUNC_1 &pcfg_pull_none>;
1691                         };
1692
1693                         rmii_pins: rmii-pins {
1694                                 rockchip,pins = <3 22 RK_FUNC_1 &pcfg_pull_none>,
1695                                                 <3 24 RK_FUNC_1 &pcfg_pull_none>,
1696                                                 <3 19 RK_FUNC_1 &pcfg_pull_none>,
1697                                                 <3 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
1698                                                 <3 9 RK_FUNC_1 &pcfg_pull_none_12ma>,
1699                                                 <3 13 RK_FUNC_1 &pcfg_pull_none_12ma>,
1700                                                 <3 15 RK_FUNC_1 &pcfg_pull_none>,
1701                                                 <3 16 RK_FUNC_1 &pcfg_pull_none>,
1702                                                 <3 20 RK_FUNC_1 &pcfg_pull_none>,
1703                                                 <3 21 RK_FUNC_1 &pcfg_pull_none>;
1704                         };
1705                 };
1706
1707                 i2c0 {
1708                         i2c0_xfer: i2c0-xfer {
1709                                 rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>,
1710                                                 <0 7 RK_FUNC_1 &pcfg_pull_none>;
1711                         };
1712                 };
1713
1714                 i2c1 {
1715                         i2c1_xfer: i2c1-xfer {
1716                                 rockchip,pins = <2 21 RK_FUNC_1 &pcfg_pull_none>,
1717                                                 <2 22 RK_FUNC_1 &pcfg_pull_none>;
1718                         };
1719                 };
1720
1721                 i2c2 {
1722                         i2c2_xfer: i2c2-xfer {
1723                                 rockchip,pins = <0 9 RK_FUNC_2 &pcfg_pull_none>,
1724                                                 <3 31 RK_FUNC_2 &pcfg_pull_none>;
1725                         };
1726                 };
1727
1728                 i2c3 {
1729                         i2c3_xfer: i2c3-xfer {
1730                                 rockchip,pins = <1 16 RK_FUNC_1 &pcfg_pull_none>,
1731                                                 <1 17 RK_FUNC_1 &pcfg_pull_none>;
1732                         };
1733                 };
1734
1735                 i2c4 {
1736                         i2c4_xfer: i2c4-xfer {
1737                                 rockchip,pins = <3 24 RK_FUNC_2 &pcfg_pull_none>,
1738                                                 <3 25 RK_FUNC_2 &pcfg_pull_none>;
1739                         };
1740                 };
1741
1742                 i2c5 {
1743                         i2c5_xfer: i2c5-xfer {
1744                                 rockchip,pins = <3 26 RK_FUNC_2 &pcfg_pull_none>,
1745                                                 <3 27 RK_FUNC_2 &pcfg_pull_none>;
1746                         };
1747                 };
1748
1749                 i2s {
1750                         i2s_8ch_bus: i2s-8ch-bus {
1751                                 rockchip,pins = <2 12 RK_FUNC_1 &pcfg_pull_none>,
1752                                                 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1753                                                 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1754                                                 <2 15 RK_FUNC_1 &pcfg_pull_none>,
1755                                                 <2 16 RK_FUNC_1 &pcfg_pull_none>,
1756                                                 <2 17 RK_FUNC_1 &pcfg_pull_none>,
1757                                                 <2 18 RK_FUNC_1 &pcfg_pull_none>,
1758                                                 <2 19 RK_FUNC_1 &pcfg_pull_none>,
1759                                                 <2 20 RK_FUNC_1 &pcfg_pull_none>;
1760                         };
1761                 };
1762
1763                 pwm0 {
1764                         pwm0_pin: pwm0-pin {
1765                                 rockchip,pins = <3 8 RK_FUNC_2 &pcfg_pull_none>;
1766                         };
1767
1768                         vop_pwm_pin: vop-pwm {
1769                                 rockchip,pins = <3 8 RK_FUNC_3 &pcfg_pull_none>;
1770                         };
1771                 };
1772
1773                 pwm1 {
1774                         pwm1_pin: pwm1-pin {
1775                                 rockchip,pins = <0 8 RK_FUNC_2 &pcfg_pull_none>;
1776                         };
1777                 };
1778
1779                 pwm3 {
1780                         pwm3_pin: pwm3-pin {
1781                                 rockchip,pins = <3 29 RK_FUNC_3 &pcfg_pull_none>;
1782                         };
1783                 };
1784
1785                 sdio0 {
1786                         sdio0_bus1: sdio0-bus1 {
1787                                 rockchip,pins = <2 28 RK_FUNC_1 &pcfg_pull_up>;
1788                         };
1789
1790                         sdio0_bus4: sdio0-bus4 {
1791                                 rockchip,pins = <2 28 RK_FUNC_1 &pcfg_pull_up>,
1792                                                 <2 29 RK_FUNC_1 &pcfg_pull_up>,
1793                                                 <2 30 RK_FUNC_1 &pcfg_pull_up>,
1794                                                 <2 31 RK_FUNC_1 &pcfg_pull_up>;
1795                         };
1796
1797                         sdio0_cmd: sdio0-cmd {
1798                                 rockchip,pins = <3 0 RK_FUNC_1 &pcfg_pull_up>;
1799                         };
1800
1801                         sdio0_clk: sdio0-clk {
1802                                 rockchip,pins = <3 1 RK_FUNC_1 &pcfg_pull_none>;
1803                         };
1804
1805                         sdio0_cd: sdio0-cd {
1806                                 rockchip,pins = <3 2 RK_FUNC_1 &pcfg_pull_up>;
1807                         };
1808
1809                         sdio0_wp: sdio0-wp {
1810                                 rockchip,pins = <3 3 RK_FUNC_1 &pcfg_pull_up>;
1811                         };
1812
1813                         sdio0_pwr: sdio0-pwr {
1814                                 rockchip,pins = <3 4 RK_FUNC_1 &pcfg_pull_up>;
1815                         };
1816
1817                         sdio0_bkpwr: sdio0-bkpwr {
1818                                 rockchip,pins = <3 5 RK_FUNC_1 &pcfg_pull_up>;
1819                         };
1820
1821                         sdio0_int: sdio0-int {
1822                                 rockchip,pins = <3 6 RK_FUNC_1 &pcfg_pull_up>;
1823                         };
1824                 };
1825
1826                 sdmmc {
1827                         sdmmc_clk: sdmmc-clk {
1828                                 rockchip,pins = <2 9 RK_FUNC_1 &pcfg_pull_none>;
1829                         };
1830
1831                         sdmmc_cmd: sdmmc-cmd {
1832                                 rockchip,pins = <2 10 RK_FUNC_1 &pcfg_pull_up>;
1833                         };
1834
1835                         sdmmc_cd: sdmmc-cd {
1836                                 rockchip,pins = <2 11 RK_FUNC_1 &pcfg_pull_up>;
1837                         };
1838
1839                         sdmmc_bus1: sdmmc-bus1 {
1840                                 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up>;
1841                         };
1842
1843                         sdmmc_bus4: sdmmc-bus4 {
1844                                 rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up>,
1845                                                 <2 6 RK_FUNC_1 &pcfg_pull_up>,
1846                                                 <2 7 RK_FUNC_1 &pcfg_pull_up>,
1847                                                 <2 8 RK_FUNC_1 &pcfg_pull_up>;
1848                         };
1849                 };
1850
1851                 spi0 {
1852                         spi0_clk: spi0-clk {
1853                                 rockchip,pins = <1 29 RK_FUNC_2 &pcfg_pull_up>;
1854                         };
1855                         spi0_cs0: spi0-cs0 {
1856                                 rockchip,pins = <1 24 RK_FUNC_3 &pcfg_pull_up>;
1857                         };
1858                         spi0_cs1: spi0-cs1 {
1859                                 rockchip,pins = <1 25 RK_FUNC_3 &pcfg_pull_up>;
1860                         };
1861                         spi0_tx: spi0-tx {
1862                                 rockchip,pins = <1 23 RK_FUNC_3 &pcfg_pull_up>;
1863                         };
1864                         spi0_rx: spi0-rx {
1865                                 rockchip,pins = <1 22 RK_FUNC_3 &pcfg_pull_up>;
1866                         };
1867                 };
1868
1869                 spi1 {
1870                         spi1_clk: spi1-clk {
1871                                 rockchip,pins = <1 14 RK_FUNC_2 &pcfg_pull_up>;
1872                         };
1873                         spi1_cs0: spi1-cs0 {
1874                                 rockchip,pins = <1 15 RK_FUNC_2 &pcfg_pull_up>;
1875                         };
1876                         spi1_cs1: spi1-cs1 {
1877                                 rockchip,pins = <3 28 RK_FUNC_2 &pcfg_pull_up>;
1878                         };
1879                         spi1_rx: spi1-rx {
1880                                 rockchip,pins = <1 16 RK_FUNC_2 &pcfg_pull_up>;
1881                         };
1882                         spi1_tx: spi1-tx {
1883                                 rockchip,pins = <1 17 RK_FUNC_2 &pcfg_pull_up>;
1884                         };
1885                 };
1886
1887                 spi2 {
1888                         spi2_clk: spi2-clk {
1889                                 rockchip,pins = <0 12 RK_FUNC_2 &pcfg_pull_up>;
1890                         };
1891                         spi2_cs0: spi2-cs0 {
1892                                 rockchip,pins = <0 13 RK_FUNC_2 &pcfg_pull_up>;
1893                         };
1894                         spi2_rx: spi2-rx {
1895                                 rockchip,pins = <0 10 RK_FUNC_2 &pcfg_pull_up>;
1896                         };
1897                         spi2_tx: spi2-tx {
1898                                 rockchip,pins = <0 11 RK_FUNC_2 &pcfg_pull_up>;
1899                         };
1900                 };
1901
1902                 uart0 {
1903                         uart0_xfer: uart0-xfer {
1904                                 rockchip,pins = <2 24 RK_FUNC_1 &pcfg_pull_up>,
1905                                                 <2 25 RK_FUNC_1 &pcfg_pull_none>;
1906                         };
1907
1908                         uart0_cts: uart0-cts {
1909                                 rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>;
1910                         };
1911
1912                         uart0_rts: uart0-rts {
1913                                 rockchip,pins = <2 27 RK_FUNC_1 &pcfg_pull_none>;
1914                         };
1915                 };
1916
1917                 uart1 {
1918                         uart1_xfer: uart1-xfer {
1919                                 rockchip,pins = <0 20 RK_FUNC_3 &pcfg_pull_up>,
1920                                                 <0 21 RK_FUNC_3 &pcfg_pull_none>;
1921                         };
1922
1923                         uart1_cts: uart1-cts {
1924                                 rockchip,pins = <0 22 RK_FUNC_3 &pcfg_pull_none>;
1925                         };
1926
1927                         uart1_rts: uart1-rts {
1928                                 rockchip,pins = <0 23 RK_FUNC_3 &pcfg_pull_none>;
1929                         };
1930                 };
1931
1932                 uart2 {
1933                         uart2_xfer: uart2-xfer {
1934                                 rockchip,pins = <2 6 RK_FUNC_2 &pcfg_pull_up>,
1935                                                 <2 5 RK_FUNC_2 &pcfg_pull_none>;
1936                         };
1937                         /* no rts / cts for uart2 */
1938                 };
1939
1940                 uart3 {
1941                         uart3_xfer: uart3-xfer {
1942                                 rockchip,pins = <3 29 RK_FUNC_2 &pcfg_pull_up>,
1943                                                 <3 30 RK_FUNC_3 &pcfg_pull_none>;
1944                         };
1945
1946                         uart3_cts: uart3-cts {
1947                                 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none>;
1948                         };
1949
1950                         uart3_rts: uart3-rts {
1951                                 rockchip,pins = <3 17 RK_FUNC_2 &pcfg_pull_none>;
1952                         };
1953                 };
1954
1955                 uart4 {
1956                         uart4_xfer: uart4-xfer {
1957                                 rockchip,pins = <0 27 RK_FUNC_3 &pcfg_pull_up>,
1958                                                 <0 26 RK_FUNC_3 &pcfg_pull_none>;
1959                         };
1960
1961                         uart4_cts: uart4-cts {
1962                                 rockchip,pins = <0 24 RK_FUNC_3 &pcfg_pull_none>;
1963                         };
1964
1965                         uart4_rts: uart4-rts {
1966                                 rockchip,pins = <0 25 RK_FUNC_3 &pcfg_pull_none>;
1967                         };
1968                 };
1969
1970                 isp {
1971                         cif_clkout: cif-clkout {
1972                                 rockchip,pins = <1 11 RK_FUNC_1 &pcfg_pull_none>;//cif_clkout
1973                         };
1974
1975                         isp_dvp_d2d9: isp-dvp-d2d9 {
1976                                 rockchip,pins =
1977                                                 <1 0 RK_FUNC_1 &pcfg_pull_none>,//cif_data2
1978                                                 <1 1 RK_FUNC_1 &pcfg_pull_none>,//cif_data3
1979                                                 <1 2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
1980                                                 <1 3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
1981                                                 <1 4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
1982                                                 <1 5 RK_FUNC_1 &pcfg_pull_none>,//cif_data7
1983                                                 <1 6 RK_FUNC_1 &pcfg_pull_none>,//cif_data8
1984                                                 <1 7 RK_FUNC_1 &pcfg_pull_none>,//cif_data9
1985                                                 <1 8 RK_FUNC_1 &pcfg_pull_none>,//cif_sync
1986                                                 <1 9 RK_FUNC_1 &pcfg_pull_none>,//cif_href
1987                                                 <1 10 RK_FUNC_1 &pcfg_pull_none>,//cif_clkin
1988                                                 <1 11 RK_FUNC_1 &pcfg_pull_none>;//cif_clkout
1989                         };
1990
1991                         isp_dvp_d0d1: isp-dvp-d0d1 {
1992                                 rockchip,pins =
1993                                                 <1 12 RK_FUNC_1 &pcfg_pull_none>,//cif_data0
1994                                                 <1 13 RK_FUNC_1 &pcfg_pull_none>;//cif_data1
1995                         };
1996
1997                         isp_dvp_d10d11:isp_d10d11 {
1998                                 rockchip,pins =
1999                                                 <1 14 RK_FUNC_1 &pcfg_pull_none>,//cif_data10
2000                                                 <1 15 RK_FUNC_1 &pcfg_pull_none>;//cif_data11
2001                         };
2002
2003                         isp_dvp_d0d7: isp-dvp-d0d7 {
2004                                 rockchip,pins =
2005                                                 <1 12 RK_FUNC_1 &pcfg_pull_none>,//cif_data0
2006                                                 <1 13 RK_FUNC_1 &pcfg_pull_none>,//cif_data1
2007                                                 <1 0 RK_FUNC_1 &pcfg_pull_none>,//cif_data2
2008                                                 <1 1 RK_FUNC_1 &pcfg_pull_none>,//cif_data3
2009                                                 <1 2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
2010                                                 <1 3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
2011                                                 <1 4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
2012                                                 <1 5 RK_FUNC_1 &pcfg_pull_none>;//cif_data7
2013                         };
2014
2015                         isp_dvp_d4d11: isp-dvp-d4d11 {
2016                                 rockchip,pins =
2017                                                 <1 2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
2018                                                 <1 3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
2019                                                 <1 4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
2020                                                 <1 5 RK_FUNC_1 &pcfg_pull_none>,//cif_data7
2021                                                 <1 6 RK_FUNC_1 &pcfg_pull_none>,//cif_data8
2022                                                 <1 7 RK_FUNC_1 &pcfg_pull_none>,//cif_data9
2023                                                 <1 14 RK_FUNC_1 &pcfg_pull_none>,//cif_data10
2024                                                 <1 17 RK_FUNC_1 &pcfg_pull_none>;//cif_data11
2025                         };
2026
2027                         isp_shutter: isp-shutter {
2028                                 rockchip,pins =
2029                                                 <3 19 RK_FUNC_2 &pcfg_pull_none>, //SHUTTEREN
2030                                                 <3 22 RK_FUNC_2 &pcfg_pull_none>;//SHUTTERTRIG
2031                         };
2032
2033                         isp_flash_trigger: isp-flash-trigger {
2034                                 rockchip,pins = <3 20 RK_FUNC_2 &pcfg_pull_none>; //ISP_FLASHTRIGOU
2035                         };
2036
2037                         isp_prelight: isp-prelight {
2038                                 rockchip,pins = <3 21 RK_FUNC_2 &pcfg_pull_none>;//ISP_PRELIGHTTRIG
2039                         };
2040
2041                         isp_flash_trigger_as_gpio: isp_flash_trigger_as_gpio {
2042                                 rockchip,pins = <3 20 RK_FUNC_GPIO &pcfg_pull_none>;//ISP_FLASHTRIGOU
2043                         };
2044                 };
2045         };
2046 };