ARM64: dts: rk3366: add iep device
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3366.dtsi
1 /*
2  * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
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/rk3366-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/irq.h>
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/display/rk_fb.h>
49 #include <dt-bindings/power/rk3366-power.h>
50 #include <dt-bindings/soc/rockchip_boot-mode.h>
51
52 / {
53         compatible = "rockchip,rk3366";
54         interrupt-parent = <&gic>;
55         #address-cells = <2>;
56         #size-cells = <2>;
57
58         aliases {
59                 i2c0 = &i2c0;
60                 i2c1 = &i2c1;
61                 i2c2 = &i2c2;
62                 i2c3 = &i2c3;
63                 i2c4 = &i2c4;
64                 i2c5 = &i2c5;
65                 serial0 = &uart0;
66                 serial2 = &uart2;
67                 serial3 = &uart3;
68                 spi0 = &spi0;
69                 spi1 = &spi1;
70         };
71
72         cpus {
73                 #address-cells = <0x2>;
74                 #size-cells = <0x0>;
75
76                 cpu0: cpu@0 {
77                         device_type = "cpu";
78                         compatible = "arm,cortex-a53","arm,armv8";
79                         reg = <0x0 0x0>;
80                         enable-method = "psci";
81                         clocks = <&cru ARMCLK>;
82                         operating-points-v2 = <&cpu0_opp_table>;
83                 };
84
85                 cpu1: cpu@1 {
86                         device_type = "cpu";
87                         compatible = "arm,cortex-a53","arm,armv8";
88                         reg = <0x0 0x1>;
89                         enable-method = "psci";
90                         operating-points-v2 = <&cpu0_opp_table>;
91                 };
92
93                 cpu2: cpu@2 {
94                         device_type = "cpu";
95                         compatible = "arm,cortex-a53","arm,armv8";
96                         reg = <0x0 0x2>;
97                         enable-method = "psci";
98                         operating-points-v2 = <&cpu0_opp_table>;
99                 };
100
101                 cpu3: cpu@3 {
102                         device_type = "cpu";
103                         compatible = "arm,cortex-a53","arm,armv8";
104                         reg = <0x0 0x3>;
105                         enable-method = "psci";
106                         operating-points-v2 = <&cpu0_opp_table>;
107                 };
108         };
109
110         cpu0_opp_table: opp_table0 {
111                 compatible = "operating-points-v2";
112                 opp-shared;
113
114                 opp00 {
115                         opp-hz = /bits/ 64 <408000000>;
116                         opp-microvolt = <1200000>;
117                         clock-latency-ns = <40000>;
118                         opp-suspend;
119                 };
120                 opp01 {
121                         opp-hz = /bits/ 64 <600000000>;
122                         opp-microvolt = <1200000>;
123                 };
124                 opp02 {
125                         opp-hz = /bits/ 64 <816000000>;
126                         opp-microvolt = <1200000>;
127                 };
128                 opp03 {
129                         opp-hz = /bits/ 64 <1008000000>;
130                         opp-microvolt = <1200000>;
131                 };
132                 opp04 {
133                         opp-hz = /bits/ 64 <1200000000>;
134                         opp-microvolt = <1200000>;
135                 };
136         };
137
138         psci {
139                 compatible = "arm,psci-1.0";
140                 method = "smc";
141         };
142
143         timer {
144                 compatible = "arm,armv8-timer";
145                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
146                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
147                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
148                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
149         };
150
151         xin24m: xin24m {
152                 compatible = "fixed-clock";
153                 #clock-cells = <0>;
154                 clock-frequency = <24000000>;
155                 clock-output-names = "xin24m";
156         };
157
158         gic: interrupt-controller@ffb71000 {
159                 compatible = "arm,gic-400";
160                 interrupt-controller;
161                 #interrupt-cells = <3>;
162                 #address-cells = <0>;
163
164                 reg = <0x0 0xffb71000 0x0 0x1000>,
165                       <0x0 0xffb72000 0x0 0x1000>,
166                       <0x0 0xffb74000 0x0 0x2000>,
167                       <0x0 0xffb76000 0x0 0x2000>;
168                 interrupts = <GIC_PPI 9
169                       (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
170         };
171
172         nandc0: nandc@ff0c0000 {
173                 compatible = "rockchip,rk-nandc";
174                 reg = <0x0 0xff0c0000 0x0 0x4000>;
175                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
176                 nandc_id = <0>;
177                 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
178                 clock-names = "clk_nandc", "hclk_nandc";
179                 status = "disabled";
180         };
181
182         saradc: saradc@ff100000 {
183                 compatible = "rockchip,saradc";
184                 reg = <0x0 0xff100000 0x0 0x100>;
185                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
186                 #io-channel-cells = <1>;
187                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
188                 clock-names = "saradc", "apb_pclk";
189                 status = "disabled";
190         };
191
192         spi0: spi@ff110000 {
193                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
194                 reg = <0x0 0xff110000 0x0 0x1000>;
195                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
196                 clock-names = "spiclk", "apb_pclk";
197                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
198                 pinctrl-names = "default";
199                 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
200                 #address-cells = <1>;
201                 #size-cells = <0>;
202                 status = "disabled";
203         };
204
205         spi1: spi@ff120000 {
206                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
207                 reg = <0x0 0xff120000 0x0 0x1000>;
208                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
209                 clock-names = "spiclk", "apb_pclk";
210                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
211                 pinctrl-names = "default";
212                 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
213                 #address-cells = <1>;
214                 #size-cells = <0>;
215                 status = "disabled";
216         };
217
218         sdmmc: rksdmmc@ff400000 {
219                 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
220                 clock-freq-min-max = <400000 150000000>;
221                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
222                          <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
223                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
224                 fifo-depth = <0x100>;
225                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
226                 reg = <0x0 0xff400000 0x0 0x4000>;
227                 status = "disabled";
228         };
229
230         sdio: rksdmmc@ff410000 {
231                 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
232                 clock-freq-min-max = <400000 150000000>;
233                 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO0>,
234                          <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
235                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
236                 fifo-depth = <0x100>;
237                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
238                 reg = <0x0 0xff410000 0x0 0x4000>;
239                 status = "disabled";
240         };
241
242         emmc: rksdmmc@ff420000 {
243                 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
244                 clock-freq-min-max = <400000 150000000>;
245                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
246                          <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
247                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
248                 fifo-depth = <0x100>;
249                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
250                 reg = <0x0 0xff420000 0x0 0x4000>;
251                 status = "disabled";
252         };
253
254         gmac: eth@ff440000 {
255                 compatible = "rockchip,rk3366-gmac";
256                 reg = <0x0 0xff440000 0x0 0x10000>;
257                 rockchip,grf = <&grf>;
258                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
259                 interrupt-names = "macirq";
260                 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
261                          <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
262                          <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
263                          <&cru PCLK_GMAC>;
264                 clock-names = "stmmaceth", "mac_clk_rx",
265                               "mac_clk_tx", "clk_mac_ref",
266                               "clk_mac_refout", "aclk_mac",
267                               "pclk_mac";
268                 resets = <&cru SRST_MAC>;
269                 reset-names = "stmmaceth";
270                 status = "disabled";
271         };
272
273         i2c0: i2c@ff650000 {
274                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
275                 reg = <0x0 0xff728000 0x0 0x1000>;
276                 clocks = <&cru PCLK_I2C0>;
277                 clock-names = "i2c";
278                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
279                 pinctrl-names = "default";
280                 pinctrl-0 = <&i2c0_xfer>;
281                 #address-cells = <1>;
282                 #size-cells = <0>;
283                 status = "disabled";
284         };
285
286         i2c2: i2c@ff140000 {
287                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
288                 reg = <0x0 0xff140000 0x0 0x1000>;
289                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
290                 #address-cells = <1>;
291                 #size-cells = <0>;
292                 clock-names = "i2c";
293                 clocks = <&cru PCLK_I2C2>;
294                 pinctrl-names = "default";
295                 pinctrl-0 = <&i2c2_xfer>;
296                 status = "disabled";
297         };
298
299         i2c3: i2c@ff150000 {
300                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
301                 reg = <0x0 0xff150000 0x0 0x1000>;
302                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
303                 #address-cells = <1>;
304                 #size-cells = <0>;
305                 clock-names = "i2c";
306                 clocks = <&cru PCLK_I2C3>;
307                 pinctrl-names = "default";
308                 pinctrl-0 = <&i2c3_xfer>;
309                 status = "disabled";
310         };
311
312         i2c4: i2c@ff160000 {
313                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
314                 reg = <0x0 0xff160000 0x0 0x1000>;
315                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
316                 #address-cells = <1>;
317                 #size-cells = <0>;
318                 clock-names = "i2c";
319                 clocks = <&cru PCLK_I2C4>;
320                 pinctrl-names = "default";
321                 pinctrl-0 = <&i2c4_xfer>;
322                 status = "disabled";
323         };
324
325         i2c5: i2c@ff170000 {
326                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
327                 reg = <0x0 0xff170000 0x0 0x1000>;
328                 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
329                 #address-cells = <1>;
330                 #size-cells = <0>;
331                 clock-names = "i2c";
332                 clocks = <&cru PCLK_I2C5>;
333                 pinctrl-names = "default";
334                 pinctrl-0 = <&i2c5_xfer>;
335                 status = "disabled";
336         };
337
338         uart0: serial@ff180000 {
339                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
340                 reg = <0x0 0xff180000 0x0 0x100>;
341                 clock-frequency = <24000000>;
342                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
343                 clock-names = "baudclk", "apb_pclk";
344                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
345                 reg-shift = <2>;
346                 reg-io-width = <4>;
347                 pinctrl-names = "default";
348                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
349                 status = "disabled";
350         };
351
352         uart3: serial@ff1b0000 {
353                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
354                 reg = <0x0 0xff1b0000 0x0 0x100>;
355                 clock-frequency = <24000000>;
356                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
357                 clock-names = "baudclk", "apb_pclk";
358                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
359                 reg-shift = <2>;
360                 reg-io-width = <4>;
361                 pinctrl-names = "default";
362                 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
363                 status = "disabled";
364         };
365
366         usb_host0_echi: usb@ff480000 {
367                 compatible = "generic-ehci";
368                 reg = <0x0 0xff480000 0x0 0x20000>;
369                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
370                 clocks = <&cru SCLK_OTG_PHY0>, <&cru HCLK_HOST>;
371                 clock-names = "sclk_otgphy0", "hclk_host0";
372                 status = "disabled";
373         };
374
375         usb_host0_ohci: usb@ff4a0000 {
376                 compatible = "generic-ohci";
377                 reg = <0x0 0xff4a0000 0x0 0x20000>;
378                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
379                 clocks = <&cru SCLK_OTG_PHY0>, <&cru HCLK_HOST>;
380                 clock-names = "sclk_otgphy0", "hclk_host0";
381                 status = "disabled";
382         };
383
384         usb_otg: usb@ff4c0000 {
385                 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
386                              "snps,dwc2";
387                 reg = <0x0 0xff4c0000 0x0 0x40000>;
388                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
389                 clocks = <&cru HCLK_OTG>;
390                 clock-names = "otg";
391                 dr_mode = "otg";
392                 g-np-tx-fifo-size = <16>;
393                 g-rx-fifo-size = <275>;
394                 g-tx-fifo-size = <256 128 128 64 64 32>;
395                 g-use-dma;
396                 status = "disabled";
397         };
398
399         i2c1: i2c@ff660000 {
400                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
401                 reg = <0x0 0xff660000 0x0 0x1000>;
402                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
403                 #address-cells = <1>;
404                 #size-cells = <0>;
405                 clock-names = "i2c";
406                 clocks = <&cru PCLK_I2C1>;
407                 pinctrl-names = "default";
408                 pinctrl-0 = <&i2c1_xfer>;
409                 status = "disabled";
410         };
411
412         pwm0: pwm@ff680000 {
413                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
414                 reg = <0x0 0xff680000 0x0 0x10>;
415                 #pwm-cells = <3>;
416                 pinctrl-names = "default";
417                 pinctrl-0 = <&pwm0_pin>;
418                 clocks = <&cru PCLK_RKPWM>;
419                 clock-names = "pwm";
420                 status = "disabled";
421         };
422
423         pwm1: pwm@ff680010 {
424                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
425                 reg = <0x0 0xff680010 0x0 0x10>;
426                 #pwm-cells = <3>;
427                 pinctrl-names = "default";
428                 pinctrl-0 = <&pwm1_pin>;
429                 clocks = <&cru PCLK_RKPWM>;
430                 clock-names = "pwm";
431                 status = "disabled";
432         };
433
434         pwm2: pwm@ff680020 {
435                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
436                 reg = <0x0 0xff680020 0x0 0x10>;
437                 #pwm-cells = <3>;
438                 clocks = <&cru PCLK_RKPWM>;
439                 clock-names = "pwm";
440                 status = "disabled";
441         };
442
443         pwm3: pwm@ff680030 {
444                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
445                 reg = <0x0 0xff680030 0x0 0x10>;
446                 #pwm-cells = <3>;
447                 pinctrl-names = "default";
448                 pinctrl-0 = <&pwm3_t2_pin>;
449                 clocks = <&cru PCLK_RKPWM>;
450                 clock-names = "pwm";
451                 status = "disabled";
452         };
453
454         uart2: serial@ff690000 {
455                 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
456                 reg = <0x0 0xff690000 0x0 0x100>;
457                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
458                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
459                 clock-names = "baudclk", "apb_pclk";
460                 reg-shift = <2>;
461                 reg-io-width = <4>;
462                 pinctrl-names = "default";
463                 pinctrl-0 = <&uart2_t1_xfer>;
464                 status = "disabled";
465         };
466
467         pmu: power-management@ff730000 {
468                 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
469                 reg = <0x0 0xff730000 0x0 0x1000>;
470
471                 power: power-controller {
472                         status = "disabled";
473                         compatible = "rockchip,rk3366-power-controller";
474                         #power-domain-cells = <1>;
475                         #address-cells = <1>;
476                         #size-cells = <0>;
477
478                         /*
479                          * Note: Although SCLK_* are the working clocks
480                          * of device without including on the NOC, needed for
481                          * synchronous reset.
482                          *
483                          * The clocks on the which NOC:
484                          * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
485                          * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
486                          * ACLK_ISP is on ACLK_ISP_NIU.
487                          * ACLK_HDCP is on ACLK_HDCP_NIU.
488                          * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
489                          *
490                          * Which clock are device clocks:
491                          *      clocks          devices
492                          *      *_IEP           IEP:Image Enhancement Processor
493                          *      *_ISP           ISP:Image Signal Processing
494                          *      *_VOP*          VOP:Visual Output Processor
495                          *      *_RGA           RGA
496                          *      *_DPHY*         LVDS
497                          *      *_HDMI          HDMI
498                          *      *_MIPI_*        MIPI
499                          */
500                         pd_vio {
501                                 reg = <RK3366_PD_VIO>;
502                                 clocks = <&cru ACLK_IEP>,
503                                          <&cru ACLK_ISP>,
504                                          <&cru ACLK_RGA>,
505                                          <&cru ACLK_HDCP>,
506                                          <&cru ACLK_VOP_FULL>,
507                                          <&cru ACLK_VOP_LITE>,
508                                          <&cru ACLK_VOP_IEP>,
509                                          <&cru DCLK_VOP_FULL>,
510                                          <&cru DCLK_VOP_LITE>,
511                                          <&cru HCLK_IEP>,
512                                          <&cru HCLK_ISP>,
513                                          <&cru HCLK_RGA>,
514                                          <&cru HCLK_VOP_FULL>,
515                                          <&cru HCLK_VOP_LITE>,
516                                          <&cru HCLK_VIO_HDCPMMU>,
517                                          <&cru PCLK_HDMI_CTRL>,
518                                          <&cru PCLK_HDCP>,
519                                          <&cru PCLK_MIPI_DSI0>,
520                                          <&cru SCLK_VOP_FULL_PWM>,
521                                          <&cru SCLK_HDCP>,
522                                          <&cru SCLK_ISP>,
523                                          <&cru SCLK_RGA>,
524                                          <&cru SCLK_HDMI_CEC>,
525                                          <&cru SCLK_HDMI_HDCP>;
526                         };
527
528                         /*
529                          * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
530                          * (video endecoder & decoder) clocks that on the
531                          * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
532                          */
533                         pd_vpu {
534                                 reg = <RK3366_PD_VPU>;
535                                 clocks = <&cru ACLK_VIDEO>,
536                                          <&cru HCLK_VIDEO>;
537                         };
538
539                         /*
540                          * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
541                          * (video decoder) clocks that on the
542                          * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
543                          */
544                         pd_rkvdec {
545                                 reg = <RK3366_PD_RKVDEC>;
546                                 clocks = <&cru ACLK_RKVDEC>,
547                                          <&cru HCLK_RKVDEC>;
548                         };
549
550                         pd_video {
551                                 reg = <RK3366_PD_VIDEO>;
552                                 clocks = <&cru ACLK_VIDEO>,
553                                          <&cru ACLK_RKVDEC>,
554                                          <&cru HCLK_VIDEO>,
555                                          <&cru HCLK_RKVDEC>,
556                                          <&cru SCLK_HEVC_CABAC>,
557                                          <&cru SCLK_HEVC_CORE>;
558                         };
559
560                         /*
561                          * Note: ACLK_GPU is the GPU clock,
562                          * and on the ACLK_GPU_NIU (NOC).
563                          */
564                         pd_gpu {
565                                 reg = <RK3366_PD_GPU>;
566                                 clocks = <&cru ACLK_GPU>;
567                         };
568                 };
569         };
570
571         pmugrf: syscon@ff738000 {
572                 compatible = "rockchip,rk3366-pmugrf", "syscon", "simple-mfd";
573                 reg = <0x0 0xff738000 0x0 0x1000>;
574
575                 reboot-mode {
576                         compatible = "syscon-reboot-mode";
577                         offset = <0x200>;
578                         mode-normal = <BOOT_NORMAL>;
579                         mode-recovery = <BOOT_RECOVERY>;
580                         mode-fastboot = <BOOT_FASTBOOT>;
581                         mode-loader = <BOOT_LOADER>;
582                 };
583         };
584
585         amba {
586                 compatible = "arm,amba-bus";
587                 #address-cells = <2>;
588                 #size-cells = <2>;
589                 ranges;
590
591                 dmac_peri: dma-controller@ff250000 {
592                         compatible = "arm,pl330", "arm,primecell";
593                         reg = <0x0 0xff250000 0x0 0x4000>;
594                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
595                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
596                         #dma-cells = <1>;
597                         clocks = <&cru ACLK_DMAC_PERI>;
598                         clock-names = "apb_pclk";
599                 };
600
601                 dmac_bus: dma-controller@ff600000 {
602                         compatible = "arm,pl330", "arm,primecell";
603                         reg = <0x0 0xff600000 0x0 0x4000>;
604                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
605                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
606                         #dma-cells = <1>;
607                         clocks = <&cru ACLK_DMAC_BUS>;
608                         clock-names = "apb_pclk";
609                 };
610         };
611
612         cru: clock-controller@ff760000 {
613                 compatible = "rockchip,rk3366-cru";
614                 reg = <0x0 0xff760000 0x0 0x1000>;
615                 rockchip,grf = <&grf>;
616                 #clock-cells = <1>;
617                 #reset-cells = <1>;
618                 assigned-clocks =
619                         <&cru PLL_CPLL>, <&cru PLL_GPLL>,
620                         <&cru PLL_NPLL>, <&cru PLL_MPLL>,
621                         <&cru PLL_WPLL>, <&cru PLL_BPLL>,
622                         <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
623                         <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>;
624                 assigned-clock-rates =
625                         <750000000>, <576000000>,
626                         <594000000>, <594000000>,
627                         <960000000>, <520000000>,
628                         <375000000>, <288000000>,
629                         <100000000>, <100000000>;
630         };
631
632         grf: syscon@ff770000 {
633                 compatible = "rockchip,rk3366-grf", "syscon";
634                 reg = <0x0 0xff770000 0x0 0x1000>;
635         };
636
637         wdt: watchdog@ff800000 {
638                 compatible = "snps,dw-wdt";
639                 reg = <0x0 0xff800000 0x0 0x100>;
640                 clocks = <&cru PCLK_WDT>;
641                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
642                 status = "disabled";
643         };
644
645         spdif: spdif@ff880000 {
646                 compatible = "rockchip,rk3366-spdif";
647                 reg = <0x0 0xff880000 0x0 0x1000>;
648                 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
649                 dmas = <&dmac_bus 3>;
650                 dma-names = "tx";
651                 clock-names = "hclk", "mclk";
652                 clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF_8CH>;
653                 pinctrl-names = "default";
654                 pinctrl-0 = <&spdif_bus>;
655                 status = "disabled";
656         };
657
658         i2s_2ch: i2s-2ch@ff890000 {
659                 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
660                 reg = <0x0 0xff890000 0x0 0x1000>;
661                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
662                 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
663                 dma-names = "tx", "rx";
664                 clock-names = "i2s_hclk", "i2s_clk";
665                 clocks = <&cru HCLK_I2S_2CH>, <&cru SCLK_I2S_2CH>;
666                 status = "disabled";
667         };
668
669         i2s_8ch: i2s-8ch@ff898000 {
670                 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
671                 reg = <0x0 0xff898000 0x0 0x1000>;
672                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
673                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
674                 dma-names = "tx", "rx";
675                 clock-names = "i2s_hclk", "i2s_clk";
676                 clocks = <&cru HCLK_I2S_8CH>, <&cru SCLK_I2S_8CH>;
677                 pinctrl-names = "default";
678                 pinctrl-0 = <&i2s_8ch_bus>;
679                 status = "disabled";
680         };
681
682         fb: fb {
683                 compatible = "rockchip,rk-fb";
684                 rockchip,disp-mode = <DUAL>;
685                 status = "disabled";
686         };
687
688         rk_screen: screen {
689                 compatible = "rockchip,screen";
690                 status = "disabled";
691         };
692
693         vop_lite: vop@ff8f0000 {
694                 compatible = "rockchip,rk3366-lcdc-lite";
695                 rockchip,grf = <&grf>;
696                 rockchip,pwr18 = <0>;
697                 rockchip,iommu-enabled = <1>;
698                 reg = <0x0 0xff8f0000 0x0 0x1000>;
699                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
700                 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
701                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
702                 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
703                 reset-names = "axi", "ahb", "dclk";
704                 status = "disabled";
705         };
706
707         vopl_mmu: vopl-mmu {
708                 dbgname = "vop";
709                 compatible = "rockchip,vopl_mmu";
710                 reg = <0x0 0xff8f0f00 0x0 0x100>;
711                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
712                 interrupt-names = "vopl_mmu";
713                 status = "disabled";
714         };
715
716         iep: iep@ff900000 {
717                 compatible = "rockchip,iep";
718                 iommu_enabled = <1>;
719                 reg = <0x0 0xff900000 0x0 0x800>;
720                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
721                 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
722                 clock-names = "aclk_iep", "hclk_iep";
723                 version = <2>;
724                 status = "disabled";
725         };
726
727         rga: rga@ff920000 {
728                 compatible = "rockchip,rga2";
729                 dev_mode = <1>;
730                 reg = <0x0 0xff920000 0x0 0x1000>;
731                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
732                 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
733                 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
734                 status = "disabled";
735         };
736
737         vop_big: vop@ff930000 {
738                 compatible = "rockchip,rk3366-lcdc-big";
739                 rockchip,grf = <&grf>;
740                 rockchip,prop = <PRMRY>;
741                 rockchip,pwr18 = <0>;
742                 rockchip,iommu-enabled = <1>;
743                 reg = <0x0 0xff930000 0x0 0x23f0>;
744                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
745                 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
746                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
747                 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
748                 reset-names = "axi", "ahb", "dclk";
749                 status = "disabled";
750         };
751
752         vopb_mmu: vopb-mmu {
753                 dbgname = "vop";
754                 compatible = "rockchip,vopb_mmu";
755                 reg = <0x0 0xff932400 0x0 0x100>;
756                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
757                 interrupt-names = "vop_mmu";
758                 status = "disabled";
759         };
760
761         iep_mmu: iep-mmu {
762                 dbgname = "iep";
763                 compatible = "rockchip,iep_mmu";
764                 reg = <0x0 0xff900800 0x0 0x100>;
765                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
766                 interrupt-names = "iep_mmu";
767                 status = "disabled";
768         };
769
770         vpu_mmu: vpu_mmu {
771                 dbgname = "vpu";
772                 compatible = "rockchip,vpu_mmu";
773                 reg = <0x0 0xff9a0800 0x0 0x100>;
774                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
775                 interrupt-names = "vpu_mmu";
776                 status = "disabled";
777         };
778
779         vdec_mmu: vdec_mmu {
780                 dbgname = "vdec";
781                 compatible = "rockchip,vdec_mmu";
782                 reg = <0x0 0xff9b0480 0x0 0x40>,
783                       <0x0 0xff9b04c0 0x0 0x40>;
784                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
785                 interrupt-names = "vdec_mmu";
786                 status = "disabled";
787         };
788
789         dsihost0: mipi@ff960000 {
790                 compatible = "rockchip,rk3368-dsi";
791                 rockchip,prop = <0>;
792                 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
793                 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
794                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
795                 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
796                 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
797                 status = "disabled";
798         };
799
800         lvds: lvds@ff968000 {
801                 compatible = "rockchip,rk3366-lvds";
802                 rockchip,grf = <&grf>;
803                 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
804                 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
805                 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
806                 clock-names = "pclk_lvds", "pclk_lvds_ctl";
807                 status = "disabled";
808         };
809
810         hdmi: hdmi@ff980000 {
811                 compatible = "rockchip,rk3366-hdmi";
812                 reg = <0x0 0xff980000 0x0 0x20000>;
813                 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
814                              <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
815                 clocks = <&cru PCLK_HDMI_CTRL>,
816                          <&cru SCLK_HDMI_HDCP>,
817                          <&cru SCLK_HDMI_CEC>,
818                          <&cru DCLK_HDMIPHY>;
819                 clock-names = "pclk_hdmi",
820                               "hdcp_clk_hdmi",
821                               "cec_clk_hdmi",
822                               "dclk_hdmi_phy";
823                 resets = <&cru SRST_HDMI>;
824                 reset-names = "hdmi";
825                 pinctrl-names = "default", "gpio";
826                 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
827                 pinctrl-1 = <&i2c5_gpio>;
828                 status = "disabled";
829         };
830
831         vpu: vpu_service@ff9a0000 {
832                 compatible = "rockchip,vpu_service";
833                 rockchip,grf = <&grf>;
834                 iommu_enabled = <1>;
835                 reg = <0x0 0xff9a0000 0x0 0x800>;
836                 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
837                         <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
838                 interrupt-names = "irq_dec", "irq_enc";
839                 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
840                 clock-names = "aclk_vcodec", "hclk_vcodec";
841                 resets = <&cru SRST_VIDEO_AHB>, <&cru SRST_VIDEO_AXI>;
842                 reset-names = "video_h", "video_a";
843                 name = "vpu_service";
844                 dev_mode = <0>;
845                 status = "disabled";
846         };
847
848         rkvdec: rkvdec@ff9b0000 {
849                 compatible = "rockchip,rkvdec";
850                 rockchip,grf = <&grf>;
851                 iommu_enabled = <1>;
852                 reg = <0x0 0xff9b0000 0x0 0x400>;
853                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
854                 interrupt-names = "irq_dec";
855                 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,<&cru SCLK_HEVC_CABAC>,<&cru SCLK_HEVC_CORE>;
856                 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_cabac", "clk_core";
857                 resets = <&cru SRST_RKVDEC_AHB>, <&cru SRST_VIDEO_AXI>;
858                 reset-names = "video_h", "video_a";
859                 dev_mode = <2>;
860                 name = "rkvdec";
861                 status = "disabled";
862         };
863
864         pinctrl: pinctrl {
865                 compatible = "rockchip,rk3366-pinctrl";
866                 rockchip,grf = <&grf>;
867                 rockchip,pmu = <&pmugrf>;
868                 #address-cells = <0x2>;
869                 #size-cells = <0x2>;
870                 ranges;
871
872                 gpio0: gpio0@ff750000 {
873                         compatible = "rockchip,gpio-bank";
874                         reg = <0x0 0xff750000 0x0 0x100>;
875                         clocks = <&cru PCLK_GPIO0>;
876                         interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
877
878                         gpio-controller;
879                         #gpio-cells = <0x2>;
880
881                         interrupt-controller;
882                         #interrupt-cells = <0x2>;
883                 };
884
885                 gpio1: gpio1@ff780000 {
886                         compatible = "rockchip,gpio-bank";
887                         reg = <0x0 0xff758000 0x0 0x100>;
888                         clocks = <&cru PCLK_GPIO1>;
889                         interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
890
891                         gpio-controller;
892                         #gpio-cells = <0x2>;
893
894                         interrupt-controller;
895                         #interrupt-cells = <0x2>;
896                 };
897
898                 gpio2: gpio2@ff790000 {
899                         compatible = "rockchip,gpio-bank";
900                         reg = <0x0 0xff790000 0x0 0x100>;
901                         clocks = <&cru PCLK_GPIO2>;
902                         interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
903
904                         gpio-controller;
905                         #gpio-cells = <0x2>;
906
907                         interrupt-controller;
908                         #interrupt-cells = <0x2>;
909                 };
910
911                 gpio3: gpio3@ff7a0000 {
912                         compatible = "rockchip,gpio-bank";
913                         reg = <0x0 0xff7a0000 0x0 0x100>;
914                         clocks = <&cru PCLK_GPIO3>;
915                         interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
916
917                         gpio-controller;
918                         #gpio-cells = <0x2>;
919
920                         interrupt-controller;
921                         #interrupt-cells = <0x2>;
922                 };
923
924                 gpio4: gpio4@ff7b0000 {
925                         compatible = "rockchip,gpio-bank";
926                         reg = <0x0 0xff7b0000 0x0 0x100>;
927                         clocks = <&cru PCLK_GPIO4>;
928                         interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
929
930                         gpio-controller;
931                         #gpio-cells = <0x2>;
932
933                         interrupt-controller;
934                         #interrupt-cells = <0x2>;
935                 };
936
937                 gpio5: gpio5@ff7c0000 {
938                         compatible = "rockchip,gpio-bank";
939                         reg = <0x0 0xff7c0000 0x0 0x100>;
940                         clocks = <&cru PCLK_GPIO5>;
941                         interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
942
943                         gpio-controller;
944                         #gpio-cells = <0x2>;
945
946                         interrupt-controller;
947                         #interrupt-cells = <0x2>;
948                 };
949
950                 pcfg_pull_up: pcfg-pull-up {
951                         bias-pull-up;
952                 };
953
954                 pcfg_pull_down: pcfg-pull-down {
955                         bias-pull-down;
956                 };
957
958                 pcfg_pull_none: pcfg-pull-none {
959                         bias-disable;
960                 };
961
962                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
963                         bias-disable;
964                         drive-strength = <12>;
965                 };
966
967                 emmc {
968                         emmc_clk: emmc-clk {
969                                 rockchip,pins =
970                                         <3 4 RK_FUNC_2 &pcfg_pull_none>;
971                         };
972
973                         emmc_cmd: emmc-cmd {
974                                 rockchip,pins =
975                                         <2 26 RK_FUNC_2 &pcfg_pull_up>;
976                         };
977
978                         emmc_pwr: emmc-pwr {
979                                 rockchip,pins =
980                                         <2 27 RK_FUNC_2 &pcfg_pull_up>;
981                         };
982
983                         emmc_bus1: emmc-bus1 {
984                                 rockchip,pins =
985                                         <2 18 RK_FUNC_2 &pcfg_pull_up>;
986                         };
987
988                         emmc_bus4: emmc-bus4 {
989                                 rockchip,pins =
990                                         <2 18 RK_FUNC_2 &pcfg_pull_up>,
991                                         <2 19 RK_FUNC_2 &pcfg_pull_up>,
992                                         <2 20 RK_FUNC_2 &pcfg_pull_up>,
993                                         <2 21 RK_FUNC_2 &pcfg_pull_up>;
994                         };
995
996                         emmc_bus8: emmc-bus8 {
997                                 rockchip,pins =
998                                         <2 18 RK_FUNC_2 &pcfg_pull_up>,
999                                         <2 19 RK_FUNC_2 &pcfg_pull_up>,
1000                                         <2 20 RK_FUNC_2 &pcfg_pull_up>,
1001                                         <2 21 RK_FUNC_2 &pcfg_pull_up>,
1002                                         <2 22 RK_FUNC_2 &pcfg_pull_up>,
1003                                         <2 23 RK_FUNC_2 &pcfg_pull_up>,
1004                                         <2 24 RK_FUNC_2 &pcfg_pull_up>,
1005                                         <2 25 RK_FUNC_2 &pcfg_pull_up>;
1006                         };
1007                 };
1008
1009                 sdmmc {
1010                         sdmmc_cd: sdmmc-cd {
1011                                 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
1012                         };
1013
1014                         sdmmc_bus1: sdmmc-bus1 {
1015                                 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
1016                         };
1017
1018                         sdmmc_bus4: sdmmc-bus4 {
1019                                 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
1020                                                 <5 1 RK_FUNC_1 &pcfg_pull_up>,
1021                                                 <5 2 RK_FUNC_1 &pcfg_pull_up>,
1022                                                 <5 3 RK_FUNC_1 &pcfg_pull_up>;
1023                         };
1024
1025                         sdmmc_clk: sdmmc-clk {
1026                                 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
1027                         };
1028
1029                         sdmmc_cmd: sdmmc-cmd {
1030                                 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
1031                         };
1032                 };
1033
1034                 sdio {
1035                         sdio_bus1: sdio-bus1 {
1036                                 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
1037                         };
1038
1039                         sdio_bus4: sdio-bus4 {
1040                                 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
1041                                                 <3 13 RK_FUNC_1 &pcfg_pull_up>,
1042                                                 <3 14 RK_FUNC_1 &pcfg_pull_up>,
1043                                                 <3 15 RK_FUNC_1 &pcfg_pull_up>;
1044                         };
1045
1046                         sdio_cmd: sdio-cmd {
1047                                 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
1048                         };
1049
1050                         sdio_clk: sdio-clk {
1051                                 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
1052                         };
1053
1054                         sdio_cd: sdio-cd {
1055                                 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
1056                         };
1057
1058                         sdio_wp: sdio-wp {
1059                                 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
1060                         };
1061
1062                         sdio_int: sdio-int {
1063                                 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
1064                         };
1065
1066                         sdio_pwr: sdio-pwr {
1067                                 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
1068                         };
1069                 };
1070
1071                 hdmi_i2c {
1072                         hdmii2c_xfer: hdmii2c-xfer {
1073                                 rockchip,pins =
1074                                         <5 13 RK_FUNC_2 &pcfg_pull_none>,
1075                                         <5 14 RK_FUNC_2 &pcfg_pull_none>;
1076                         };
1077                 };
1078
1079                 hdmi_pin {
1080                         hdmi_cec: hdmi-cec {
1081                                 rockchip,pins =
1082                                         <5 12 RK_FUNC_1 &pcfg_pull_none>;
1083                         };
1084                 };
1085
1086                 i2c0 {
1087                         i2c0_xfer: i2c0-xfer {
1088                                 rockchip,pins =
1089                                         <0 3 RK_FUNC_1 &pcfg_pull_none>,
1090                                         <0 4 RK_FUNC_1 &pcfg_pull_none>;
1091                         };
1092                 };
1093
1094                 i2c1 {
1095                         i2c1_xfer: i2c1-xfer {
1096                                 rockchip,pins =
1097                                         <4 25 RK_FUNC_1 &pcfg_pull_none>,
1098                                         <4 26 RK_FUNC_1 &pcfg_pull_none>;
1099                         };
1100                 };
1101
1102                 i2c2 {
1103                         i2c2_xfer: i2c2-xfer {
1104                                 rockchip,pins =
1105                                         <5 15 RK_FUNC_2 &pcfg_pull_none>,
1106                                         <5 16 RK_FUNC_2 &pcfg_pull_none>;
1107                         };
1108
1109                         i2c2_gpio: i2c2-gpio {
1110                                 rockchip,pins =
1111                                         <5 15 RK_FUNC_GPIO &pcfg_pull_none>,
1112                                         <5 16 RK_FUNC_GPIO &pcfg_pull_none>;
1113                         };
1114                 };
1115
1116                 i2c3 {
1117                         i2c3_xfer: i2c3-xfer {
1118                                 rockchip,pins =
1119                                         <2 16 RK_FUNC_2 &pcfg_pull_none>,
1120                                         <2 17 RK_FUNC_2 &pcfg_pull_none>;
1121                         };
1122                 };
1123
1124                 i2c4 {
1125                         i2c4_xfer: i2c4-xfer {
1126                                 rockchip,pins =
1127                                         <5 8 RK_FUNC_1 &pcfg_pull_none>,
1128                                         <5 9 RK_FUNC_1 &pcfg_pull_none>;
1129                         };
1130
1131                         i2c4_gpio: i2c4-gpio {
1132                                 rockchip,pins =
1133                                         <5 8 RK_FUNC_GPIO &pcfg_pull_none>,
1134                                         <5 9 RK_FUNC_GPIO &pcfg_pull_none>;
1135                         };
1136                 };
1137
1138                 i2c5 {
1139                         i2c5_xfer: i2c5-xfer {
1140                                 rockchip,pins =
1141                                         <5 13 RK_FUNC_1 &pcfg_pull_none>,
1142                                         <5 14 RK_FUNC_1 &pcfg_pull_none>;
1143                         };
1144                         i2c5_gpio: i2c5-gpio {
1145                                 rockchip,pins =
1146                                         <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
1147                                         <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
1148                         };
1149                 };
1150
1151                 i2s {
1152                         i2s_8ch_bus: i2s-8ch-bus {
1153                                 rockchip,pins =
1154                                         <4 16 RK_FUNC_1 &pcfg_pull_none>,
1155                                         <4 17 RK_FUNC_1 &pcfg_pull_none>,
1156                                         <4 18 RK_FUNC_1 &pcfg_pull_none>,
1157                                         <4 19 RK_FUNC_1 &pcfg_pull_none>,
1158                                         <4 20 RK_FUNC_1 &pcfg_pull_none>,
1159                                         <4 21 RK_FUNC_1 &pcfg_pull_none>,
1160                                         <4 22 RK_FUNC_1 &pcfg_pull_none>,
1161                                         <4 23 RK_FUNC_1 &pcfg_pull_none>,
1162                                         <4 24 RK_FUNC_1 &pcfg_pull_none>;
1163                         };
1164                 };
1165
1166                 spdif {
1167                         spdif_bus: spdif-bus {
1168                                 rockchip,pins =
1169                                         <5 19 RK_FUNC_1 &pcfg_pull_none>;
1170                         };
1171                 };
1172
1173                 spi0 {
1174                         spi0_clk: spi0-clk {
1175                                 rockchip,pins =
1176                                         <2 29 RK_FUNC_2 &pcfg_pull_up>;
1177                         };
1178                         spi0_cs0: spi0-cs0 {
1179                                 rockchip,pins =
1180                                         <2 24 RK_FUNC_3 &pcfg_pull_up>;
1181                         };
1182                         spi0_cs1: spi0-cs1 {
1183                                 rockchip,pins =
1184                                         <2 25 RK_FUNC_3 &pcfg_pull_up>;
1185                         };
1186                         spi0_tx: spi0-tx {
1187                                 rockchip,pins =
1188                                         <2 23 RK_FUNC_3 &pcfg_pull_up>;
1189                         };
1190                         spi0_rx: spi0-rx {
1191                                 rockchip,pins =
1192                                         <2 22 RK_FUNC_3 &pcfg_pull_up>;
1193                         };
1194                 };
1195
1196                 spi1 {
1197                         spi1_clk: spi1-clk {
1198                                 rockchip,pins =
1199                                         <2 4 RK_FUNC_3 &pcfg_pull_up>;
1200                         };
1201                         spi1_cs0: spi1-cs0 {
1202                                 rockchip,pins =
1203                                         <2 5 RK_FUNC_3 &pcfg_pull_up>;
1204                         };
1205                         spi1_tx: spi1-tx {
1206                                 rockchip,pins =
1207                                         <2 6 RK_FUNC_3 &pcfg_pull_up>;
1208                         };
1209                         spi1_rx: spi1-rx {
1210                                 rockchip,pins =
1211                                         <2 7 RK_FUNC_3 &pcfg_pull_up>;
1212                         };
1213                 };
1214
1215                 uart0 {
1216                         uart0_xfer: uart0-xfer {
1217                                 rockchip,pins =
1218                                         <3 8 RK_FUNC_1 &pcfg_pull_up>,
1219                                         <3 9 RK_FUNC_1 &pcfg_pull_none>;
1220                         };
1221
1222                         uart0_cts: uart0-cts {
1223                                 rockchip,pins =
1224                                         <3 10 RK_FUNC_1 &pcfg_pull_none>;
1225                         };
1226
1227                         uart0_rts: uart0-rts {
1228                                 rockchip,pins =
1229                                         <3 11 RK_FUNC_1 &pcfg_pull_none>;
1230                         };
1231                 };
1232
1233                 uart2_t0 {
1234                         uart2_t0_xfer: uart2_t0-xfer {
1235                                 rockchip,pins =
1236                                         <0 22 RK_FUNC_1 &pcfg_pull_up>,
1237                                         <0 21 RK_FUNC_1 &pcfg_pull_none>;
1238                         };
1239                         /* no rts / cts for uart2 */
1240                 };
1241
1242                 uart2_t1 {
1243                         uart2_t1_xfer: uart2_t1-xfer {
1244                                 rockchip,pins =
1245                                         <5 0 RK_FUNC_2 &pcfg_pull_up>,
1246                                         <5 1 RK_FUNC_2 &pcfg_pull_none>;
1247                         };
1248                         /* no rts / cts for uart2 */
1249                 };
1250
1251                 uart2_t2 {
1252                         uart2_t2_xfer: uart2_t2-xfer {
1253                                 rockchip,pins =
1254                                         <5 14 RK_FUNC_3 &pcfg_pull_up>,
1255                                         <5 13 RK_FUNC_3 &pcfg_pull_none>;
1256                         };
1257                         /* no rts / cts for uart2 */
1258                 };
1259
1260                 uart3 {
1261                         uart3_xfer: uart3-xfer {
1262                                 rockchip,pins =
1263                                         <5 15 RK_FUNC_1 &pcfg_pull_up>,
1264                                         <5 16 RK_FUNC_1 &pcfg_pull_none>;
1265                         };
1266
1267                         uart3_cts: uart3-cts {
1268                                 rockchip,pins =
1269                                         <5 17 RK_FUNC_1 &pcfg_pull_none>;
1270                         };
1271
1272                         uart3_rts: uart3-rts {
1273                                 rockchip,pins =
1274                                         <5 18 RK_FUNC_1 &pcfg_pull_none>;
1275                         };
1276                 };
1277
1278                 pwm0 {
1279                         pwm0_pin: pwm0-pin {
1280                                 rockchip,pins =
1281                                         <0 8 RK_FUNC_1 &pcfg_pull_none>;
1282                         };
1283                 };
1284
1285                 pwm1 {
1286                         pwm1_pin: pwm1-pin {
1287                                 rockchip,pins =
1288                                         <1 6 RK_FUNC_2 &pcfg_pull_none>;
1289                         };
1290                 };
1291
1292                 pwm2_t0 {
1293                         pwm2_t0_pin: pwm2_t0-pin {
1294                                 rockchip,pins =
1295                                         <2 15 RK_FUNC_3 &pcfg_pull_none>;
1296                         };
1297                 };
1298
1299                 pwm2_t1 {
1300                         pwm2_t1_pin: pwm2_t1-pin {
1301                                 rockchip,pins =
1302                                         <5 17 RK_FUNC_2 &pcfg_pull_none>;
1303                         };
1304                 };
1305
1306                 pwm3_t0 {
1307                         pwm3_t0_pin: pwm3_t0-pin {
1308                                 rockchip,pins =
1309                                         <1 0 RK_FUNC_2 &pcfg_pull_none>;
1310                         };
1311                 };
1312
1313                 pwm3_t1 {
1314                         pwm3_t1_pin: pwm3_t1-pin {
1315                                 rockchip,pins =
1316                                         <0 21 RK_FUNC_2 &pcfg_pull_none>;
1317                         };
1318                 };
1319
1320                 pwm3_t2 {
1321                         pwm3_t2_pin: pwm3_t2-pin {
1322                                 rockchip,pins =
1323                                         <5 18 RK_FUNC_2 &pcfg_pull_none>;
1324                         };
1325                 };
1326
1327                 lcdc {
1328                         lcdc_lcdc: lcdc-lcdc {
1329                                 rockchip,pins =
1330                                         <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1331                                         <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1332                                         <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1333                                         <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1334                                         <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1335                                         <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1336                                         <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1337                                         <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1338                                         <1 0  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1339                                         <1 1  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1340                                         <1 2  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1341                                         <1 3  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1342                                         <1 4  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1343                                         <1 5  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1344                                         <1 6  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1345                                         <1 7  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1346                                         <1 8  RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1347                                         <1 9  RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1348                         };
1349
1350                         lcdc_gpio: lcdc-gpio {
1351                                 rockchip,pins =
1352                                         <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1353                                         <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1354                                         <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1355                                         <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1356                                         <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1357                                         <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1358                                         <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1359                                         <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1360                                         <1 0  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1361                                         <1 1  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1362                                         <1 2  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1363                                         <1 3  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1364                                         <1 4  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1365                                         <1 5  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1366                                         <1 6  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1367                                         <1 7  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1368                                         <1 8  RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1369                                         <1 9  RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1370                         };
1371                 };
1372
1373                 gmac {
1374                         rgmii_pins: rgmii-pins {
1375                                 rockchip,pins =
1376                                         /* mac_rxd3 */
1377                                         <2 7  RK_FUNC_1 &pcfg_pull_none>,
1378                                         /* mac_rxd2 */
1379                                         <2 6  RK_FUNC_1 &pcfg_pull_none>,
1380                                         /* mac_txd3 */
1381                                         <2 5  RK_FUNC_1 &pcfg_pull_none_12ma>,
1382                                         /* mac_txd2 */
1383                                         <2 4  RK_FUNC_1 &pcfg_pull_none_12ma>,
1384                                         /* mac_rxd1 */
1385                                         <2 3  RK_FUNC_1 &pcfg_pull_none>,
1386                                         /* mac_rxd0 */
1387                                         <2 2  RK_FUNC_1 &pcfg_pull_none>,
1388                                         /* mac_txd1 */
1389                                         <2 1  RK_FUNC_1 &pcfg_pull_none_12ma>,
1390                                         /* mac_txd0 */
1391                                         <2 0  RK_FUNC_1 &pcfg_pull_none>,
1392                                         /* mac_txclkout */
1393                                         <2 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
1394                                         /* mac_crs */
1395                                         /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1396                                         /* mac_rxclkin */
1397                                         <2 14 RK_FUNC_1 &pcfg_pull_none>,
1398                                         /* mac_mdio */
1399                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
1400                                         /* mac_txen */
1401                                         <2 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1402                                         /* mac_clk */
1403                                         <2 11 RK_FUNC_1 &pcfg_pull_none>,
1404                                         /* mac_rxer */
1405                                         /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1406                                         /* mac_rxdv */
1407                                         <2 9  RK_FUNC_1 &pcfg_pull_none>,
1408                                         /* mac_mdc */
1409                                         <2 8  RK_FUNC_1 &pcfg_pull_none>;
1410                         };
1411
1412                         rmii_pins: rmii-pins {
1413                                 rockchip,pins =
1414                                         /* mac_rxd1 */
1415                                         <2 3  RK_FUNC_1 &pcfg_pull_none>,
1416                                         /* mac_rxd0 */
1417                                         <2 2  RK_FUNC_1 &pcfg_pull_none>,
1418                                         /* mac_txd1 */
1419                                         <2 1  RK_FUNC_1 &pcfg_pull_none>,
1420                                         /* mac_txd0 */
1421                                         <2 0  RK_FUNC_1 &pcfg_pull_none>,
1422                                         /* mac_crs */
1423                                         /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1424                                         /* mac_rxclkin */
1425                                         <2 14 RK_FUNC_1 &pcfg_pull_none>,
1426                                         /* mac_mdio */
1427                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
1428                                         /* mac_txen */
1429                                         <2 12 RK_FUNC_1 &pcfg_pull_none>,
1430                                         /* mac_clk */
1431                                         <2 11 RK_FUNC_1 &pcfg_pull_none>,
1432                                         /* mac_rxer */
1433                                         /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1434                                         /* mac_rxdv */
1435                                         <2 9  RK_FUNC_1 &pcfg_pull_none>,
1436                                         /* mac_mdc */
1437                                         <2 8  RK_FUNC_1 &pcfg_pull_none>;
1438                         };
1439                 };
1440
1441                 eth_phy {
1442                         eth_phy_pwr: eth-phy-pwr {
1443                                 rockchip,pins =
1444                                         <0 25 RK_FUNC_GPIO &pcfg_pull_none>;
1445                         };
1446                 };
1447         };
1448
1449         gpu: gpu@ffa30000 {
1450                 compatible = "arm,malit764",
1451                              "arm,malit76x",
1452                              "arm,malit7xx",
1453                              "arm,mali-midgard";
1454
1455                 reg = <0x0 0xffa30000 0 0x10000>;
1456
1457                 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
1458                              <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
1459                              <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1460                 interrupt-names = "GPU", "MMU", "JOB";
1461
1462                 clocks = <&cru ACLK_GPU>;
1463                 clock-names = "clk_mali";
1464
1465                 operating-points = <
1466                         /* KHz    uV */
1467                         500000 1150000
1468                         420000 1050000
1469                         300000 950000
1470                         200000 900000
1471                         100000 900000 >;
1472                 status = "disabled";
1473         };
1474 };