ARM64: dts: rk3399: add RGA device node
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399.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/rk3399-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/interrupt-controller/irq.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/power/rk3399-power.h>
49 #include <dt-bindings/thermal/thermal.h>
50
51 / {
52         compatible = "rockchip,rk3399";
53         interrupt-parent = <&gic>;
54         #address-cells = <2>;
55         #size-cells = <2>;
56
57         aliases {
58                 i2c0 = &i2c0;
59                 i2c1 = &i2c1;
60                 i2c2 = &i2c2;
61                 i2c3 = &i2c3;
62                 i2c4 = &i2c4;
63                 i2c5 = &i2c5;
64                 i2c6 = &i2c6;
65                 i2c7 = &i2c7;
66                 i2c8 = &i2c8;
67                 serial0 = &uart0;
68                 serial1 = &uart1;
69                 serial2 = &uart2;
70                 serial3 = &uart3;
71                 serial4 = &uart4;
72         };
73
74         psci {
75                 compatible = "arm,psci-1.0";
76                 method = "smc";
77         };
78
79         cpus {
80                 #address-cells = <2>;
81                 #size-cells = <0>;
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                         };
107                 };
108
109                 cpu_l0: cpu@0 {
110                         device_type = "cpu";
111                         compatible = "arm,cortex-a53", "arm,armv8";
112                         reg = <0x0 0x0>;
113                         enable-method = "psci";
114                         #cooling-cells = <2>; /* min followed by max */
115                         clocks = <&cru ARMCLKL>;
116                         operating-points-v2 = <&cluster0_opp>;
117                 };
118
119                 cpu_l1: cpu@1 {
120                         device_type = "cpu";
121                         compatible = "arm,cortex-a53", "arm,armv8";
122                         reg = <0x0 0x1>;
123                         enable-method = "psci";
124                         clocks = <&cru ARMCLKL>;
125                         operating-points-v2 = <&cluster0_opp>;
126                 };
127
128                 cpu_l2: cpu@2 {
129                         device_type = "cpu";
130                         compatible = "arm,cortex-a53", "arm,armv8";
131                         reg = <0x0 0x2>;
132                         enable-method = "psci";
133                         clocks = <&cru ARMCLKL>;
134                         operating-points-v2 = <&cluster0_opp>;
135                 };
136
137                 cpu_l3: cpu@3 {
138                         device_type = "cpu";
139                         compatible = "arm,cortex-a53", "arm,armv8";
140                         reg = <0x0 0x3>;
141                         enable-method = "psci";
142                         clocks = <&cru ARMCLKL>;
143                         operating-points-v2 = <&cluster0_opp>;
144                 };
145
146                 cpu_b0: cpu@100 {
147                         device_type = "cpu";
148                         compatible = "arm,cortex-a72", "arm,armv8";
149                         reg = <0x0 0x100>;
150                         enable-method = "psci";
151                         #cooling-cells = <2>; /* min followed by max */
152                         clocks = <&cru ARMCLKB>;
153                         operating-points-v2 = <&cluster1_opp>;
154                 };
155
156                 cpu_b1: cpu@101 {
157                         device_type = "cpu";
158                         compatible = "arm,cortex-a72", "arm,armv8";
159                         reg = <0x0 0x101>;
160                         enable-method = "psci";
161                         clocks = <&cru ARMCLKB>;
162                         operating-points-v2 = <&cluster1_opp>;
163                 };
164         };
165
166         cluster0_opp: opp_table0 {
167                 compatible = "operating-points-v2";
168                 opp-shared;
169
170                 opp00 {
171                         opp-hz = /bits/ 64 <408000000>;
172                         opp-microvolt = <800000>;
173                         clock-latency-ns = <40000>;
174                 };
175                 opp01 {
176                         opp-hz = /bits/ 64 <600000000>;
177                         opp-microvolt = <800000>;
178                 };
179                 opp02 {
180                         opp-hz = /bits/ 64 <816000000>;
181                         opp-microvolt = <800000>;
182                 };
183                 opp03 {
184                         opp-hz = /bits/ 64 <1008000000>;
185                         opp-microvolt = <875000>;
186                 };
187                 opp04 {
188                         opp-hz = /bits/ 64 <1200000000>;
189                         opp-microvolt = <925000>;
190                 };
191                 opp05 {
192                         opp-hz = /bits/ 64 <1416000000>;
193                         opp-microvolt = <1025000>;
194                 };
195         };
196
197         cluster1_opp: opp_table1 {
198                 compatible = "operating-points-v2";
199                 opp-shared;
200
201                 opp00 {
202                         opp-hz = /bits/ 64 <408000000>;
203                         opp-microvolt = <800000>;
204                         clock-latency-ns = <40000>;
205                 };
206                 opp01 {
207                         opp-hz = /bits/ 64 <600000000>;
208                         opp-microvolt = <800000>;
209                 };
210                 opp02 {
211                         opp-hz = /bits/ 64 <816000000>;
212                         opp-microvolt = <800000>;
213                 };
214                 opp03 {
215                         opp-hz = /bits/ 64 <1008000000>;
216                         opp-microvolt = <850000>;
217                 };
218                 opp04 {
219                         opp-hz = /bits/ 64 <1200000000>;
220                         opp-microvolt = <925000>;
221                 };
222         };
223
224         timer {
225                 compatible = "arm,armv8-timer";
226                 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
227                              <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
228                              <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
229                              <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
230         };
231
232         arm-pmu {
233                 compatible = "arm,armv8-pmuv3";
234                 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW>;
235         };
236
237         xin24m: xin24m {
238                 compatible = "fixed-clock";
239                 #clock-cells = <0>;
240                 clock-frequency = <24000000>;
241                 clock-output-names = "xin24m";
242         };
243
244         amba {
245                 compatible = "arm,amba-bus";
246                 #address-cells = <2>;
247                 #size-cells = <2>;
248                 ranges;
249
250                 dmac_bus: dma-controller@ff6d0000 {
251                         compatible = "arm,pl330", "arm,primecell";
252                         reg = <0x0 0xff6d0000 0x0 0x4000>;
253                         interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
254                                      <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
255                         #dma-cells = <1>;
256                         clocks = <&cru ACLK_DMAC0_PERILP>;
257                         clock-names = "apb_pclk";
258                 };
259
260                 dmac_peri: dma-controller@ff6e0000 {
261                         compatible = "arm,pl330", "arm,primecell";
262                         reg = <0x0 0xff6e0000 0x0 0x4000>;
263                         interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
264                                      <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
265                         #dma-cells = <1>;
266                         clocks = <&cru ACLK_DMAC1_PERILP>;
267                         clock-names = "apb_pclk";
268                 };
269         };
270
271         gmac: eth@fe300000 {
272                 compatible = "rockchip,rk3399-gmac";
273                 reg = <0x0 0xfe300000 0x0 0x10000>;
274                 rockchip,grf = <&grf>;
275                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
276                 interrupt-names = "macirq";
277                 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
278                          <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
279                          <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
280                          <&cru PCLK_GMAC>;
281                 clock-names = "stmmaceth", "mac_clk_rx",
282                               "mac_clk_tx", "clk_mac_ref",
283                               "clk_mac_refout", "aclk_mac",
284                               "pclk_mac";
285                 resets = <&cru SRST_A_GMAC>;
286                 reset-names = "stmmaceth";
287                 status = "disabled";
288         };
289
290         emmc_phy: phy {
291                 compatible = "rockchip,rk3399-emmc-phy";
292                 reg-offset = <0xf780>;
293                 #phy-cells = <0>;
294                 rockchip,grf = <&grf>;
295                 status = "disabled";
296         };
297
298         sdio0: dwmmc@fe310000 {
299                 compatible = "rockchip,rk3399-dw-mshc", "rockchip,rk3288-dw-mshc";
300                 reg = <0x0 0xfe310000 0x0 0x4000>;
301                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
302                 clock-freq-min-max = <400000 150000000>;
303                 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
304                          <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
305                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
306                 fifo-depth = <0x100>;
307                 status = "disabled";
308         };
309
310         sdmmc: dwmmc@fe320000 {
311                 compatible = "rockchip,rk3399-dw-mshc", "rockchip,rk3288-dw-mshc";
312                 reg = <0x0 0xfe320000 0x0 0x4000>;
313                 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
314                 clock-freq-min-max = <400000 150000000>;
315                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
316                          <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
317                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
318                 fifo-depth = <0x100>;
319                 status = "disabled";
320         };
321
322         sdhci: sdhci@fe330000 {
323                 compatible = "arasan,sdhci-5.1";
324                 reg = <0x0 0xfe330000 0x0 0x10000>;
325                 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
326                 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
327                 clock-names = "clk_xin", "clk_ahb";
328                 phys = <&emmc_phy>;
329                 phy-names = "phy_arasan";
330                 status = "disabled";
331         };
332
333         usb2phy: usb2phy {
334                 compatible = "rockchip,rk3399-usb-phy";
335                 rockchip,grf = <&grf>;
336                 #address-cells = <1>;
337                 #size-cells = <0>;
338
339                 usb2phy0: usb2-phy0 {
340                         #phy-cells = <0>;
341                         #clock-cells = <0>;
342                         reg = <0xe458>;
343                 };
344
345                 usb2phy1: usb2-phy1 {
346                         #phy-cells = <0>;
347                         #clock-cells = <0>;
348                         reg = <0xe468>;
349                 };
350         };
351
352         usb_host0_echi: usb@fe380000 {
353                 compatible = "generic-ehci";
354                 reg = <0x0 0xfe380000 0x0 0x20000>;
355                 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
356                 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
357                 clock-names = "hclk_host0", "hclk_host0_arb";
358                 phys = <&usb2phy0>;
359                 phy-names = "usb2_phy0";
360                 status = "disabled";
361         };
362
363         usb_host0_ohci: usb@fe3a0000 {
364                 compatible = "generic-ohci";
365                 reg = <0x0 0xfe3a0000 0x0 0x20000>;
366                 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
367                 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>;
368                 clock-names = "hclk_host0", "hclk_host0_arb";
369                 status = "disabled";
370         };
371
372         usb_host1_echi: usb@fe3c0000 {
373                 compatible = "generic-ehci";
374                 reg = <0x0 0xfe3c0000 0x0 0x20000>;
375                 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
376                 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>;
377                 clock-names = "hclk_host1", "hclk_host1_arb";
378                 phys = <&usb2phy1>;
379                 phy-names = "usb2_phy1";
380                 status = "disabled";
381         };
382
383         usb_host1_ohci: usb@fe3e0000 {
384                 compatible = "generic-ohci";
385                 reg = <0x0 0xfe3e0000 0x0 0x20000>;
386                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
387                 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>;
388                 clock-names = "hclk_host1", "hclk_host1_arb";
389                 status = "disabled";
390         };
391
392         usbdrd3_0: usb@fe800000 {
393                 compatible = "rockchip,dwc3";
394                 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
395                          <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
396                          <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
397                 clock-names = "clk_usb3otg0_ref", "clk_usb3otg0_suspend",
398                               "aclk_usb3otg0", "aclk_usb3_rksoc_axi_perf",
399                               "aclk_usb3", "aclk_usb3_grf";
400                 #address-cells = <2>;
401                 #size-cells = <2>;
402                 ranges;
403                 status = "disabled";
404                 usbdrd_dwc3_0: dwc3 {
405                         compatible = "snps,dwc3";
406                         reg = <0x0 0xfe800000 0x0 0x100000>;
407                         interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
408                         dr_mode = "otg";
409                         tx-fifo-resize;
410                         snps,dis_enblslpm_quirk;
411                         snps,phyif_utmi_16_bits;
412                         snps,dis_u2_freeclk_exists_quirk;
413                         snps,dis_del_phy_power_chg_quirk;
414                         status = "disabled";
415                 };
416         };
417
418         usbdrd3_1: usb@fe900000 {
419                 compatible = "rockchip,dwc3";
420                 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
421                          <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
422                          <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
423                 clock-names = "clk_usb3otg1_ref", "clk_usb3otg1_suspend",
424                               "aclk_usb3otg1", "aclk_usb3_rksoc_axi_perf",
425                               "aclk_usb3", "aclk_usb3_grf";
426                 #address-cells = <2>;
427                 #size-cells = <2>;
428                 ranges;
429                 status = "disabled";
430                 usbdrd_dwc3_1: dwc3 {
431                         compatible = "snps,dwc3";
432                         reg = <0x0 0xfe900000 0x0 0x100000>;
433                         interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
434                         dr_mode = "otg";
435                         tx-fifo-resize;
436                         snps,dis_enblslpm_quirk;
437                         snps,phyif_utmi_16_bits;
438                         snps,dis_u2_freeclk_exists_quirk;
439                         snps,dis_del_phy_power_chg_quirk;
440                         status = "disabled";
441                 };
442         };
443
444         gic: interrupt-controller@fee00000 {
445                 compatible = "arm,gic-v3";
446                 #interrupt-cells = <3>;
447                 #address-cells = <2>;
448                 #size-cells = <2>;
449                 ranges;
450                 interrupt-controller;
451
452                 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
453                       <0x0 0xfef00000 0 0xc0000>, /* GICR */
454                       <0x0 0xfff00000 0 0x10000>, /* GICC */
455                       <0x0 0xfff10000 0 0x10000>, /* GICH */
456                       <0x0 0xfff20000 0 0x10000>; /* GICV */
457                 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
458                 its: interrupt-controller@fee20000 {
459                         compatible = "arm,gic-v3-its";
460                         msi-controller;
461                         reg = <0x0 0xfee20000 0x0 0x20000>;
462                 };
463         };
464
465         saradc: saradc@ff100000 {
466                 compatible = "rockchip,rk3399-saradc";
467                 reg = <0x0 0xff100000 0x0 0x100>;
468                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
469                 #io-channel-cells = <1>;
470                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
471                 clock-names = "saradc", "apb_pclk";
472                 status = "disabled";
473         };
474
475         i2c0: i2c@ff3c0000 {
476                 compatible = "rockchip,rk3399-i2c";
477                 reg = <0x0 0xff3c0000 0x0 0x1000>;
478                 clocks =  <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
479                 clock-names = "i2c", "pclk";
480                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
481                 pinctrl-names = "default";
482                 pinctrl-0 = <&i2c0_xfer>;
483                 #address-cells = <1>;
484                 #size-cells = <0>;
485                 status = "disabled";
486         };
487
488         i2c1: i2c@ff110000 {
489                 compatible = "rockchip,rk3399-i2c";
490                 reg = <0x0 0xff110000 0x0 0x1000>;
491                 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
492                 clock-names = "i2c", "pclk";
493                 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
494                 pinctrl-names = "default";
495                 pinctrl-0 = <&i2c1_xfer>;
496                 #address-cells = <1>;
497                 #size-cells = <0>;
498                 status = "disabled";
499         };
500
501         i2c2: i2c@ff120000 {
502                 compatible = "rockchip,rk3399-i2c";
503                 reg = <0x0 0xff120000 0x0 0x1000>;
504                 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
505                 clock-names = "i2c", "pclk";
506                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
507                 pinctrl-names = "default";
508                 pinctrl-0 = <&i2c2_xfer>;
509                 #address-cells = <1>;
510                 #size-cells = <0>;
511                 status = "disabled";
512         };
513
514         i2c3: i2c@ff130000 {
515                 compatible = "rockchip,rk3399-i2c";
516                 reg = <0x0 0xff130000 0x0 0x1000>;
517                 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
518                 clock-names = "i2c", "pclk";
519                 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
520                 pinctrl-names = "default";
521                 pinctrl-0 = <&i2c3_xfer>;
522                 #address-cells = <1>;
523                 #size-cells = <0>;
524                 status = "disabled";
525         };
526
527         i2c5: i2c@ff140000 {
528                 compatible = "rockchip,rk3399-i2c";
529                 reg = <0x0 0xff140000 0x0 0x1000>;
530                 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
531                 clock-names = "i2c", "pclk";
532                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
533                 pinctrl-names = "default";
534                 pinctrl-0 = <&i2c5_xfer>;
535                 #address-cells = <1>;
536                 #size-cells = <0>;
537                 status = "disabled";
538         };
539
540         i2c6: i2c@ff150000 {
541                 compatible = "rockchip,rk3399-i2c";
542                 reg = <0x0 0xff150000 0x0 0x1000>;
543                 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
544                 clock-names = "i2c", "pclk";
545                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
546                 pinctrl-names = "default";
547                 pinctrl-0 = <&i2c6_xfer>;
548                 #address-cells = <1>;
549                 #size-cells = <0>;
550                 status = "disabled";
551         };
552
553         i2c7: i2c@ff160000 {
554                 compatible = "rockchip,rk3399-i2c";
555                 reg = <0x0 0xff160000 0x0 0x1000>;
556                 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
557                 clock-names = "i2c", "pclk";
558                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
559                 pinctrl-names = "default";
560                 pinctrl-0 = <&i2c7_xfer>;
561                 #address-cells = <1>;
562                 #size-cells = <0>;
563                 status = "disabled";
564         };
565
566         uart0: serial@ff180000 {
567                 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
568                 reg = <0x0 0xff180000 0x0 0x100>;
569                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
570                 clock-names = "baudclk", "apb_pclk";
571                 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
572                 reg-shift = <2>;
573                 reg-io-width = <4>;
574                 pinctrl-names = "default";
575                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
576                 status = "disabled";
577         };
578
579         uart1: serial@ff190000 {
580                 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
581                 reg = <0x0 0xff190000 0x0 0x100>;
582                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
583                 clock-names = "baudclk", "apb_pclk";
584                 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
585                 reg-shift = <2>;
586                 reg-io-width = <4>;
587                 pinctrl-names = "default";
588                 pinctrl-0 = <&uart1_xfer>;
589                 status = "disabled";
590         };
591
592         uart2: serial@ff1a0000 {
593                 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
594                 reg = <0x0 0xff1a0000 0x0 0x100>;
595                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
596                 clock-names = "baudclk", "apb_pclk";
597                 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
598                 reg-shift = <2>;
599                 reg-io-width = <4>;
600                 pinctrl-names = "default";
601                 pinctrl-0 = <&uart2c_xfer>;
602                 status = "disabled";
603         };
604
605         uart3: serial@ff1b0000 {
606                 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
607                 reg = <0x0 0xff1b0000 0x0 0x100>;
608                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
609                 clock-names = "baudclk", "apb_pclk";
610                 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
611                 reg-shift = <2>;
612                 reg-io-width = <4>;
613                 pinctrl-names = "default";
614                 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
615                 status = "disabled";
616         };
617
618         spi0: spi@ff1c0000 {
619                 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
620                 reg = <0x0 0xff1c0000 0x0 0x1000>;
621                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
622                 clock-names = "spiclk", "apb_pclk";
623                 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
624                 pinctrl-names = "default";
625                 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
626                 #address-cells = <1>;
627                 #size-cells = <0>;
628                 status = "disabled";
629         };
630
631         spi1: spi@ff1d0000 {
632                 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
633                 reg = <0x0 0xff1d0000 0x0 0x1000>;
634                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
635                 clock-names = "spiclk", "apb_pclk";
636                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
637                 pinctrl-names = "default";
638                 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
639                 #address-cells = <1>;
640                 #size-cells = <0>;
641                 status = "disabled";
642         };
643
644         spi2: spi@ff1e0000 {
645                 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
646                 reg = <0x0 0xff1e0000 0x0 0x1000>;
647                 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
648                 clock-names = "spiclk", "apb_pclk";
649                 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
650                 pinctrl-names = "default";
651                 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
652                 #address-cells = <1>;
653                 #size-cells = <0>;
654                 status = "disabled";
655         };
656
657         spi4: spi@ff1f0000 {
658                 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
659                 reg = <0x0 0xff1f0000 0x0 0x1000>;
660                 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
661                 clock-names = "spiclk", "apb_pclk";
662                 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
663                 pinctrl-names = "default";
664                 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
665                 #address-cells = <1>;
666                 #size-cells = <0>;
667                 status = "disabled";
668         };
669
670         spi5: spi@ff200000 {
671                 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
672                 reg = <0x0 0xff200000 0x0 0x1000>;
673                 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
674                 clock-names = "spiclk", "apb_pclk";
675                 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
676                 pinctrl-names = "default";
677                 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
678                 #address-cells = <1>;
679                 #size-cells = <0>;
680                 status = "disabled";
681         };
682
683         thermal-zones {
684                 cpu {
685                         polling-delay-passive = <100>; /* milliseconds */
686                         polling-delay = <1000>; /* milliseconds */
687
688                         thermal-sensors = <&tsadc 0>;
689
690                         trips {
691                                 cpu_alert0: cpu_alert0 {
692                                         temperature = <70000>; /* millicelsius */
693                                         hysteresis = <2000>; /* millicelsius */
694                                         type = "passive";
695                                 };
696                                 cpu_alert1: cpu_alert1 {
697                                         temperature = <75000>; /* millicelsius */
698                                         hysteresis = <2000>; /* millicelsius */
699                                         type = "passive";
700                                 };
701                                 cpu_crit: cpu_crit {
702                                         temperature = <95000>; /* millicelsius */
703                                         hysteresis = <2000>; /* millicelsius */
704                                         type = "critical";
705                                 };
706                         };
707
708                         cooling-maps {
709                                 map0 {
710                                         trip = <&cpu_alert0>;
711                                         cooling-device =
712                                                 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
713                                 };
714                                 map1 {
715                                         trip = <&cpu_alert1>;
716                                         cooling-device =
717                                                 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
718                                 };
719                         };
720                 };
721
722                 gpu {
723                         polling-delay-passive = <100>; /* milliseconds */
724                         polling-delay = <1000>; /* milliseconds */
725
726                         thermal-sensors = <&tsadc 1>;
727
728                         trips {
729                                 gpu_alert0: gpu_alert0 {
730                                         temperature = <75000>; /* millicelsius */
731                                         hysteresis = <2000>; /* millicelsius */
732                                         type = "passive";
733                                 };
734                                 gpu_crit: gpu_crit {
735                                         temperature = <950000>; /* millicelsius */
736                                         hysteresis = <2000>; /* millicelsius */
737                                         type = "critical";
738                                 };
739                         };
740
741                         cooling-maps {
742                                 map0 {
743                                         trip = <&gpu_alert0>;
744                                         cooling-device =
745                                                 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
746                                 };
747                         };
748                 };
749         };
750
751         tsadc: tsadc@ff260000 {
752                 compatible = "rockchip,rk3399-tsadc";
753                 reg = <0x0 0xff260000 0x0 0x100>;
754                 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
755                 rockchip,grf = <&grf>;
756                 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
757                 clock-names = "tsadc", "apb_pclk";
758                 assigned-clocks = <&cru SCLK_TSADC>;
759                 assigned-clock-rates = <750000>;
760                 resets = <&cru SRST_TSADC>;
761                 reset-names = "tsadc-apb";
762                 pinctrl-names = "init", "default", "sleep";
763                 pinctrl-0 = <&otp_gpio>;
764                 pinctrl-1 = <&otp_out>;
765                 pinctrl-2 = <&otp_gpio>;
766                 #thermal-sensor-cells = <1>;
767                 rockchip,hw-tshut-temp = <95000>;
768                 status = "disabled";
769         };
770
771         pmu: power-management@ff31000 {
772                 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
773                 reg = <0x0 0xff310000 0x0 0x1000>;
774
775                 power: power-controller {
776                         status = "disabled";
777                         compatible = "rockchip,rk3399-power-controller";
778                         #power-domain-cells = <1>;
779                         #address-cells = <1>;
780                         #size-cells = <0>;
781
782                         pd_center {
783                                 reg = <RK3399_PD_CENTER>;
784                                 #address-cells = <1>;
785                                 #size-cells = <0>;
786
787                                 pd_vdu {
788                                         reg = <RK3399_PD_VDU>;
789                                 };
790                                 pd_vcodec {
791                                         reg = <RK3399_PD_VCODEC>;
792                                 };
793                                 pd_iep {
794                                         reg = <RK3399_PD_IEP>;
795                                 };
796                                 pd_rga {
797                                         reg = <RK3399_PD_RGA>;
798                                 };
799                         };
800                         pd_vio {
801                                 reg = <RK3399_PD_VIO>;
802                                 #address-cells = <1>;
803                                 #size-cells = <0>;
804
805                                 pd_isp0 {
806                                         reg = <RK3399_PD_ISP0>;
807                                 };
808                                 pd_isp1 {
809                                         reg = <RK3399_PD_ISP1>;
810                                 };
811                                 pd_hdcp {
812                                         reg = <RK3399_PD_HDCP>;
813                                 };
814                                 pd_vo {
815                                         reg = <RK3399_PD_VO>;
816                                         #address-cells = <1>;
817                                         #size-cells = <0>;
818
819                                         pd_vopb {
820                                                 reg = <RK3399_PD_VOPB>;
821                                         };
822                                         pd_vopl {
823                                                 reg = <RK3399_PD_VOPL>;
824                                         };
825                                 };
826                         };
827                         pd_gpu {
828                                 reg = <RK3399_PD_GPU>;
829                         };
830                 };
831         };
832
833         pmugrf: syscon@ff320000 {
834                 compatible = "rockchip,rk3399-pmugrf", "syscon";
835                 reg = <0x0 0xff320000 0x0 0x1000>;
836         };
837
838         spi3: spi@ff350000 {
839                 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
840                 reg = <0x0 0xff350000 0x0 0x1000>;
841                 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
842                 clock-names = "spiclk", "apb_pclk";
843                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
844                 pinctrl-names = "default";
845                 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
846                 #address-cells = <1>;
847                 #size-cells = <0>;
848                 status = "disabled";
849         };
850
851         uart4: serial@ff370000 {
852                 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
853                 reg = <0x0 0xff370000 0x0 0x100>;
854                 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
855                 clock-names = "baudclk", "apb_pclk";
856                 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
857                 reg-shift = <2>;
858                 reg-io-width = <4>;
859                 pinctrl-names = "default";
860                 pinctrl-0 = <&uart4_xfer>;
861                 status = "disabled";
862         };
863
864         i2c4: i2c@ff3d0000 {
865                 compatible = "rockchip,rk3399-i2c";
866                 reg = <0x0 0xff3d0000 0x0 0x1000>;
867                 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
868                 clock-names = "i2c", "pclk";
869                 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
870                 pinctrl-names = "default";
871                 pinctrl-0 = <&i2c4_xfer>;
872                 #address-cells = <1>;
873                 #size-cells = <0>;
874                 status = "disabled";
875         };
876
877         i2c8: i2c@ff3e0000 {
878                 compatible = "rockchip,rk3399-i2c";
879                 reg = <0x0 0xff3e0000 0x0 0x1000>;
880                 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
881                 clock-names = "i2c", "pclk";
882                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
883                 pinctrl-names = "default";
884                 pinctrl-0 = <&i2c8_xfer>;
885                 #address-cells = <1>;
886                 #size-cells = <0>;
887                 status = "disabled";
888         };
889
890         pwm0: pwm@ff420000 {
891                 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
892                 reg = <0x0 0xff420000 0x0 0x10>;
893                 #pwm-cells = <3>;
894                 pinctrl-names = "default";
895                 pinctrl-0 = <&pwm0_pin>;
896                 clocks = <&pmucru PCLK_RKPWM_PMU>;
897                 clock-names = "pwm";
898                 status = "disabled";
899         };
900
901         pwm1: pwm@ff420010 {
902                 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
903                 reg = <0x0 0xff420010 0x0 0x10>;
904                 #pwm-cells = <3>;
905                 pinctrl-names = "default";
906                 pinctrl-0 = <&pwm1_pin>;
907                 clocks = <&pmucru PCLK_RKPWM_PMU>;
908                 clock-names = "pwm";
909                 status = "disabled";
910         };
911
912         pwm2: pwm@ff420020 {
913                 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
914                 reg = <0x0 0xff420020 0x0 0x10>;
915                 #pwm-cells = <3>;
916                 pinctrl-names = "default";
917                 pinctrl-0 = <&pwm2_pin>;
918                 clocks = <&pmucru PCLK_RKPWM_PMU>;
919                 clock-names = "pwm";
920                 status = "disabled";
921         };
922
923         pwm3: pwm@ff420030 {
924                 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
925                 reg = <0x0 0xff420030 0x0 0x10>;
926                 #pwm-cells = <3>;
927                 pinctrl-names = "default";
928                 pinctrl-0 = <&pwm3a_pin>;
929                 clocks = <&pmucru PCLK_RKPWM_PMU>;
930                 clock-names = "pwm";
931                 status = "disabled";
932         };
933
934         rga: rga@ff680000 {
935                 compatible = "rockchip,rk3399-rga";
936                 reg = <0x0 0xff680000 0x0 0x10000>;
937                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
938                 interrupt-names = "rga";
939                 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
940                 clock-names = "aclk", "hclk", "sclk";
941                 resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
942                 reset-names = "core", "axi", "ahb";
943                 status = "disabled";
944         };
945
946         pmucru: pmu-clock-controller@ff750000 {
947                 compatible = "rockchip,rk3399-pmucru";
948                 reg = <0x0 0xff750000 0x0 0x1000>;
949                 #clock-cells = <1>;
950                 #reset-cells = <1>;
951                 assigned-clocks = <&pmucru PLL_PPLL>;
952                 assigned-clock-rates = <676000000>;
953         };
954
955         cru: clock-controller@ff760000 {
956                 compatible = "rockchip,rk3399-cru";
957                 reg = <0x0 0xff760000 0x0 0x1000>;
958                 #clock-cells = <1>;
959                 #reset-cells = <1>;
960                 assigned-clocks =
961                         <&cru ACLK_VOP0>, <&cru HCLK_VOP0>,
962                         <&cru ACLK_VOP1>, <&cru HCLK_VOP1>,
963                         <&cru ARMCLKL>, <&cru ARMCLKB>,
964                         <&cru PLL_GPLL>, <&cru PLL_CPLL>,
965                         <&cru PLL_NPLL>,
966                         <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
967                         <&cru PCLK_PERIHP>,
968                         <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
969                         <&cru PCLK_PERILP0>,
970                         <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>;
971                 assigned-clock-rates =
972                          <400000000>,  <200000000>,
973                          <400000000>,  <200000000>,
974                          <816000000>, <1008000000>,
975                          <594000000>,  <800000000>,
976                         <1000000000>,
977                          <150000000>,   <75000000>,
978                           <37500000>,
979                          <100000000>,  <100000000>,
980                           <50000000>,
981                          <100000000>,   <50000000>;
982         };
983
984         grf: syscon@ff770000 {
985                 compatible = "rockchip,rk3399-grf", "syscon";
986                 reg = <0x0 0xff770000 0x0 0x10000>;
987         };
988
989         wdt0: watchdog@ff840000 {
990                 compatible = "snps,dw-wdt";
991                 reg = <0x0 0xff840000 0x0 0x100>;
992                 clocks = <&cru PCLK_WDT>;
993                 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
994                 status = "disabled";
995         };
996
997         spdif: spdif@ff870000 {
998                 compatible = "rockchip,rk3399-spdif";
999                 reg = <0x0 0xff870000 0x0 0x1000>;
1000                 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
1001                 dmas = <&dmac_bus 7>;
1002                 dma-names = "tx";
1003                 clock-names = "mclk", "hclk";
1004                 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1005                 pinctrl-names = "default";
1006                 pinctrl-0 = <&spdif_bus>;
1007                 status = "disabled";
1008         };
1009
1010         i2s0: i2s@ff880000 {
1011                 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1012                 reg = <0x0 0xff880000 0x0 0x1000>;
1013                 rockchip,grf = <&grf>;
1014                 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1015                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1016                 dma-names = "tx", "rx";
1017                 clock-names = "i2s_clk", "i2s_hclk";
1018                 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1019                 pinctrl-names = "default";
1020                 pinctrl-0 = <&i2s0_8ch_bus>;
1021                 status = "disabled";
1022         };
1023
1024         i2s1: i2s@ff890000 {
1025                 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1026                 reg = <0x0 0xff890000 0x0 0x1000>;
1027                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
1028                 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1029                 dma-names = "tx", "rx";
1030                 clock-names = "i2s_clk", "i2s_hclk";
1031                 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1032                 pinctrl-names = "default";
1033                 pinctrl-0 = <&i2s1_2ch_bus>;
1034                 status = "disabled";
1035         };
1036
1037         i2s2: i2s@ff8a0000 {
1038                 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1039                 reg = <0x0 0xff8a0000 0x0 0x1000>;
1040                 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1041                 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1042                 dma-names = "tx", "rx";
1043                 clock-names = "i2s_clk", "i2s_hclk";
1044                 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1045                 status = "disabled";
1046         };
1047
1048         gpu: gpu@ff9a0000 {
1049                 compatible = "arm,malit860",
1050                              "arm,malit86x",
1051                              "arm,malit8xx",
1052                              "arm,mali-midgard";
1053
1054                 reg = <0x0 0xff9a0000 0x0 0x10000>;
1055
1056                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
1057                              <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
1058                              <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
1059                 interrupt-names = "GPU", "JOB", "MMU";
1060
1061                 clocks = <&cru ACLK_GPU>;
1062                 clock-names = "clk_mali";
1063                 #cooling-cells = <2>; /* min followed by max */
1064                 operating-points-v2 = <&gpu_opp_table>;
1065                 status = "disabled";
1066         };
1067
1068         gpu_opp_table: gpu_opp_table {
1069                 compatible = "operating-points-v2";
1070                 opp-shared;
1071
1072                 opp00 {
1073                         opp-hz = /bits/ 64 <200000000>;
1074                         opp-microvolt = <900000>;
1075                 };
1076                 opp01 {
1077                         opp-hz = /bits/ 64 <300000000>;
1078                         opp-microvolt = <900000>;
1079                 };
1080                 opp02 {
1081                         opp-hz = /bits/ 64 <400000000>;
1082                         opp-microvolt = <900000>;
1083                 };
1084
1085         };
1086
1087         vopl: vop@ff8f0000 {
1088                 compatible = "rockchip,rk3399-vop-lit";
1089                 reg = <0x0 0xff8f0000 0x0 0x3efc>;
1090                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
1091                 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1092                 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1093                 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1094                 reset-names = "axi", "ahb", "dclk";
1095                 iommus = <&vopl_mmu>;
1096                 status = "disabled";
1097
1098                 vopl_out: port {
1099                         #address-cells = <1>;
1100                         #size-cells = <0>;
1101
1102                         vopl_out_mipi: endpoint@0 {
1103                                 reg = <0>;
1104                                 remote-endpoint = <&mipi_in_vopl>;
1105                         };
1106
1107                         vopl_out_edp: endpoint@1 {
1108                                 reg = <1>;
1109                                 remote-endpoint = <&edp_in_vopl>;
1110                         };
1111                 };
1112         };
1113
1114         vopl_mmu: iommu@ff8f3f00 {
1115                 compatible = "rockchip,iommu";
1116                 reg = <0x0 0xff8f3f00 0x0 0x100>;
1117                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
1118                 interrupt-names = "vopl_mmu";
1119                 #iommu-cells = <0>;
1120                 status = "disabled";
1121         };
1122
1123         vopb: vop@ff900000 {
1124                 compatible = "rockchip,rk3399-vop-big";
1125                 reg = <0x0 0xff900000 0x0 0x3efc>;
1126                 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1127                 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1128                 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1129                 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1130                 reset-names = "axi", "ahb", "dclk";
1131                 iommus = <&vopb_mmu>;
1132                 status = "disabled";
1133
1134                 vopb_out: port {
1135                         #address-cells = <1>;
1136                         #size-cells = <0>;
1137
1138                         vopb_out_edp: endpoint@0 {
1139                                 reg = <0>;
1140                                 remote-endpoint = <&edp_in_vopb>;
1141                         };
1142
1143                         vopb_out_mipi: endpoint@1 {
1144                                 reg = <1>;
1145                                 remote-endpoint = <&mipi_in_vopb>;
1146                         };
1147                 };
1148         };
1149
1150         vopb_mmu: iommu@ff903f00 {
1151                 compatible = "rockchip,iommu";
1152                 reg = <0x0 0xff903f00 0x0 0x100>;
1153                 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1154                 interrupt-names = "vopb_mmu";
1155                 #iommu-cells = <0>;
1156                 status = "disabled";
1157         };
1158
1159         mipi_dsi: mipi@ff960000 {
1160                 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
1161                 reg = <0x0 0xff960000 0x0 0x8000>;
1162                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1163                 clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>,
1164                          <&cru SCLK_DPHY_TX0_CFG>;
1165                 clock-names = "ref", "pclk", "phy_cfg";
1166                 rockchip,grf = <&grf>;
1167                 #address-cells = <1>;
1168                 #size-cells = <0>;
1169                 status = "disabled";
1170
1171                 ports {
1172                         #address-cells = <1>;
1173                         #size-cells = <0>;
1174                         reg = <1>;
1175
1176                         mipi_in: port {
1177                                 #address-cells = <1>;
1178                                 #size-cells = <0>;
1179
1180                                 mipi_in_vopb: endpoint@0 {
1181                                         reg = <0>;
1182                                         remote-endpoint = <&vopb_out_mipi>;
1183                                 };
1184                                 mipi_in_vopl: endpoint@1 {
1185                                         reg = <1>;
1186                                         remote-endpoint = <&vopl_out_mipi>;
1187                                 };
1188                         };
1189                 };
1190         };
1191
1192         edp: edp@ff970000 {
1193                 compatible = "rockchip,rk3399-edp";
1194                 reg = <0x0 0xff970000 0x0 0x8000>;
1195                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1196                 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>;
1197                 clock-names = "dp", "pclk";
1198                 resets = <&cru SRST_P_EDP_CTRL>;
1199                 reset-names = "dp";
1200                 rockchip,grf = <&grf>;
1201                 status = "disabled";
1202                 pinctrl-names = "default";
1203                 pinctrl-0 = <&edp_hpd>;
1204
1205                 ports {
1206                         #address-cells = <1>;
1207                         #size-cells = <0>;
1208
1209                         edp_in: port@0 {
1210                                 reg = <0>;
1211                                 #address-cells = <1>;
1212                                 #size-cells = <0>;
1213
1214                                 edp_in_vopb: endpoint@0 {
1215                                         reg = <0>;
1216                                         remote-endpoint = <&vopb_out_edp>;
1217                                 };
1218
1219                                 edp_in_vopl: endpoint@1 {
1220                                         reg = <1>;
1221                                         remote-endpoint = <&vopl_out_edp>;
1222                                 };
1223                         };
1224                 };
1225         };
1226
1227         display_subsystem: display-subsystem {
1228                 compatible = "rockchip,display-subsystem";
1229                 ports = <&vopl_out>, <&vopb_out>;
1230                 status = "disabled";
1231         };
1232
1233         pinctrl: pinctrl {
1234                 compatible = "rockchip,rk3399-pinctrl";
1235                 rockchip,grf = <&grf>;
1236                 rockchip,pmu = <&pmugrf>;
1237                 #address-cells = <0x2>;
1238                 #size-cells = <0x2>;
1239                 ranges;
1240
1241                 gpio0: gpio0@ff720000 {
1242                         compatible = "rockchip,gpio-bank";
1243                         reg = <0x0 0xff720000 0x0 0x100>;
1244                         clocks = <&pmucru PCLK_GPIO0_PMU>;
1245                         interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1246
1247                         gpio-controller;
1248                         #gpio-cells = <0x2>;
1249
1250                         interrupt-controller;
1251                         #interrupt-cells = <0x2>;
1252                 };
1253
1254                 gpio1: gpio1@ff730000 {
1255                         compatible = "rockchip,gpio-bank";
1256                         reg = <0x0 0xff730000 0x0 0x100>;
1257                         clocks = <&pmucru PCLK_GPIO1_PMU>;
1258                         interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1259
1260                         gpio-controller;
1261                         #gpio-cells = <0x2>;
1262
1263                         interrupt-controller;
1264                         #interrupt-cells = <0x2>;
1265                 };
1266
1267                 gpio2: gpio2@ff780000 {
1268                         compatible = "rockchip,gpio-bank";
1269                         reg = <0x0 0xff780000 0x0 0x100>;
1270                         clocks = <&cru PCLK_GPIO2>;
1271                         interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1272
1273                         gpio-controller;
1274                         #gpio-cells = <0x2>;
1275
1276                         interrupt-controller;
1277                         #interrupt-cells = <0x2>;
1278                 };
1279
1280                 gpio3: gpio3@ff788000 {
1281                         compatible = "rockchip,gpio-bank";
1282                         reg = <0x0 0xff788000 0x0 0x100>;
1283                         clocks = <&cru PCLK_GPIO3>;
1284                         interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1285
1286                         gpio-controller;
1287                         #gpio-cells = <0x2>;
1288
1289                         interrupt-controller;
1290                         #interrupt-cells = <0x2>;
1291                 };
1292
1293                 gpio4: gpio4@ff790000 {
1294                         compatible = "rockchip,gpio-bank";
1295                         reg = <0x0 0xff790000 0x0 0x100>;
1296                         clocks = <&cru PCLK_GPIO4>;
1297                         interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1298
1299                         gpio-controller;
1300                         #gpio-cells = <0x2>;
1301
1302                         interrupt-controller;
1303                         #interrupt-cells = <0x2>;
1304                 };
1305
1306                 pcfg_pull_up: pcfg-pull-up {
1307                         bias-pull-up;
1308                 };
1309
1310                 pcfg_pull_down: pcfg-pull-down {
1311                         bias-pull-down;
1312                 };
1313
1314                 pcfg_pull_none: pcfg-pull-none {
1315                         bias-disable;
1316                 };
1317
1318                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1319                         bias-disable;
1320                         drive-strength = <12>;
1321                 };
1322
1323                 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1324                         bias-pull-up;
1325                         drive-strength = <8>;
1326                 };
1327
1328                 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1329                         bias-pull-down;
1330                         drive-strength = <4>;
1331                 };
1332
1333                 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1334                         bias-pull-up;
1335                         drive-strength = <2>;
1336                 };
1337
1338                 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1339                         bias-pull-down;
1340                         drive-strength = <12>;
1341                 };
1342
1343                 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1344                         bias-disable;
1345                         drive-strength = <13>;
1346                 };
1347
1348                 emmc {
1349                         emmc_pwr: emmc-pwr {
1350                                 rockchip,pins =
1351                                         <0 5 RK_FUNC_1 &pcfg_pull_up>;
1352                         };
1353                 };
1354
1355                 gmac {
1356                         rgmii_pins: rgmii-pins {
1357                                 rockchip,pins =
1358                                         /* mac_txclk */
1359                                         <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1360                                         /* mac_rxclk */
1361                                         <3 14 RK_FUNC_1 &pcfg_pull_none>,
1362                                         /* mac_mdio */
1363                                         <3 13 RK_FUNC_1 &pcfg_pull_none>,
1364                                         /* mac_txen */
1365                                         <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1366                                         /* mac_clk */
1367                                         <3 11 RK_FUNC_1 &pcfg_pull_none>,
1368                                         /* mac_rxdv */
1369                                         <3 9 RK_FUNC_1 &pcfg_pull_none>,
1370                                         /* mac_mdc */
1371                                         <3 8 RK_FUNC_1 &pcfg_pull_none>,
1372                                         /* mac_rxd1 */
1373                                         <3 7 RK_FUNC_1 &pcfg_pull_none>,
1374                                         /* mac_rxd0 */
1375                                         <3 6 RK_FUNC_1 &pcfg_pull_none>,
1376                                         /* mac_txd1 */
1377                                         <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1378                                         /* mac_txd0 */
1379                                         <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1380                                         /* mac_rxd3 */
1381                                         <3 3 RK_FUNC_1 &pcfg_pull_none>,
1382                                         /* mac_rxd2 */
1383                                         <3 2 RK_FUNC_1 &pcfg_pull_none>,
1384                                         /* mac_txd3 */
1385                                         <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1386                                         /* mac_txd2 */
1387                                         <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1388                         };
1389
1390                         rmii_pins: rmii-pins {
1391                                 rockchip,pins =
1392                                         /* mac_mdio */
1393                                         <3 13 RK_FUNC_1 &pcfg_pull_none>,
1394                                         /* mac_txen */
1395                                         <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1396                                         /* mac_clk */
1397                                         <3 11 RK_FUNC_1 &pcfg_pull_none>,
1398                                         /* mac_rxer */
1399                                         <3 10 RK_FUNC_1 &pcfg_pull_none>,
1400                                         /* mac_rxdv */
1401                                         <3 9 RK_FUNC_1 &pcfg_pull_none>,
1402                                         /* mac_mdc */
1403                                         <3 8 RK_FUNC_1 &pcfg_pull_none>,
1404                                         /* mac_rxd1 */
1405                                         <3 7 RK_FUNC_1 &pcfg_pull_none>,
1406                                         /* mac_rxd0 */
1407                                         <3 6 RK_FUNC_1 &pcfg_pull_none>,
1408                                         /* mac_txd1 */
1409                                         <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1410                                         /* mac_txd0 */
1411                                         <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1412                         };
1413                 };
1414
1415                 i2c0 {
1416                         i2c0_xfer: i2c0-xfer {
1417                                 rockchip,pins =
1418                                         <1 15 RK_FUNC_2 &pcfg_pull_none>,
1419                                         <1 16 RK_FUNC_2 &pcfg_pull_none>;
1420                         };
1421                 };
1422
1423                 i2c1 {
1424                         i2c1_xfer: i2c1-xfer {
1425                                 rockchip,pins =
1426                                         <4 2 RK_FUNC_1 &pcfg_pull_none>,
1427                                         <4 1 RK_FUNC_1 &pcfg_pull_none>;
1428                         };
1429                 };
1430
1431                 i2c2 {
1432                         i2c2_xfer: i2c2-xfer {
1433                                 rockchip,pins =
1434                                         <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1435                                         <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1436                         };
1437                 };
1438
1439                 i2c3 {
1440                         i2c3_xfer: i2c3-xfer {
1441                                 rockchip,pins =
1442                                         <4 17 RK_FUNC_1 &pcfg_pull_none>,
1443                                         <4 16 RK_FUNC_1 &pcfg_pull_none>;
1444                         };
1445                 };
1446
1447                 i2c4 {
1448                         i2c4_xfer: i2c4-xfer {
1449                                 rockchip,pins =
1450                                         <1 12 RK_FUNC_1 &pcfg_pull_none>,
1451                                         <1 11 RK_FUNC_1 &pcfg_pull_none>;
1452                         };
1453                 };
1454
1455                 i2c5 {
1456                         i2c5_xfer: i2c5-xfer {
1457                                 rockchip,pins =
1458                                         <3 11 RK_FUNC_2 &pcfg_pull_none>,
1459                                         <3 10 RK_FUNC_2 &pcfg_pull_none>;
1460                         };
1461                 };
1462
1463                 i2c6 {
1464                         i2c6_xfer: i2c6-xfer {
1465                                 rockchip,pins =
1466                                         <2 10 RK_FUNC_2 &pcfg_pull_none>,
1467                                         <2 9 RK_FUNC_2 &pcfg_pull_none>;
1468                         };
1469                 };
1470
1471                 i2c7 {
1472                         i2c7_xfer: i2c7-xfer {
1473                                 rockchip,pins =
1474                                         <2 8 RK_FUNC_2 &pcfg_pull_none>,
1475                                         <2 7 RK_FUNC_2 &pcfg_pull_none>;
1476                         };
1477                 };
1478
1479                 i2c8 {
1480                         i2c8_xfer: i2c8-xfer {
1481                                 rockchip,pins =
1482                                         <1 21 RK_FUNC_1 &pcfg_pull_none>,
1483                                         <1 20 RK_FUNC_1 &pcfg_pull_none>;
1484                         };
1485                 };
1486
1487                 i2s0 {
1488                         i2s0_8ch_bus: i2s0-8ch-bus {
1489                                 rockchip,pins =
1490                                         <3 24 RK_FUNC_1 &pcfg_pull_none>,
1491                                         <3 25 RK_FUNC_1 &pcfg_pull_none>,
1492                                         <3 26 RK_FUNC_1 &pcfg_pull_none>,
1493                                         <3 27 RK_FUNC_1 &pcfg_pull_none>,
1494                                         <3 28 RK_FUNC_1 &pcfg_pull_none>,
1495                                         <3 29 RK_FUNC_1 &pcfg_pull_none>,
1496                                         <3 30 RK_FUNC_1 &pcfg_pull_none>,
1497                                         <3 31 RK_FUNC_1 &pcfg_pull_none>,
1498                                         <4 0 RK_FUNC_1 &pcfg_pull_none>;
1499                         };
1500                 };
1501
1502                 i2s1 {
1503                         i2s1_2ch_bus: i2s1-2ch-bus {
1504                                 rockchip,pins =
1505                                         <4 3 RK_FUNC_1 &pcfg_pull_none>,
1506                                         <4 4 RK_FUNC_1 &pcfg_pull_none>,
1507                                         <4 5 RK_FUNC_1 &pcfg_pull_none>,
1508                                         <4 6 RK_FUNC_1 &pcfg_pull_none>,
1509                                         <4 7 RK_FUNC_1 &pcfg_pull_none>;
1510                         };
1511                 };
1512
1513                 sdio0 {
1514                         sdio0_bus1: sdio0-bus1 {
1515                                 rockchip,pins =
1516                                         <2 20 RK_FUNC_1 &pcfg_pull_up>;
1517                         };
1518
1519                         sdio0_bus4: sdio0-bus4 {
1520                                 rockchip,pins =
1521                                         <2 20 RK_FUNC_1 &pcfg_pull_up>,
1522                                         <2 21 RK_FUNC_1 &pcfg_pull_up>,
1523                                         <2 22 RK_FUNC_1 &pcfg_pull_up>,
1524                                         <2 23 RK_FUNC_1 &pcfg_pull_up>;
1525                         };
1526
1527                         sdio0_cmd: sdio0-cmd {
1528                                 rockchip,pins =
1529                                         <2 24 RK_FUNC_1 &pcfg_pull_up>;
1530                         };
1531
1532                         sdio0_clk: sdio0-clk {
1533                                 rockchip,pins =
1534                                         <2 25 RK_FUNC_1 &pcfg_pull_none>;
1535                         };
1536
1537                         sdio0_cd: sdio0-cd {
1538                                 rockchip,pins =
1539                                         <2 26 RK_FUNC_1 &pcfg_pull_up>;
1540                         };
1541
1542                         sdio0_pwr: sdio0-pwr {
1543                                 rockchip,pins =
1544                                         <2 27 RK_FUNC_1 &pcfg_pull_up>;
1545                         };
1546
1547                         sdio0_bkpwr: sdio0-bkpwr {
1548                                 rockchip,pins =
1549                                         <2 28 RK_FUNC_1 &pcfg_pull_up>;
1550                         };
1551
1552                         sdio0_wp: sdio0-wp {
1553                                 rockchip,pins =
1554                                         <0 3 RK_FUNC_1 &pcfg_pull_up>;
1555                         };
1556
1557                         sdio0_int: sdio0-int {
1558                                 rockchip,pins =
1559                                         <0 4 RK_FUNC_1 &pcfg_pull_up>;
1560                         };
1561                 };
1562
1563                 sdmmc {
1564                         sdmmc_bus1: sdmmc-bus1 {
1565                                 rockchip,pins =
1566                                         <4 8 RK_FUNC_1 &pcfg_pull_up>;
1567                         };
1568
1569                         sdmmc_bus4: sdmmc-bus4 {
1570                                 rockchip,pins =
1571                                         <4 8 RK_FUNC_1 &pcfg_pull_up>,
1572                                         <4 9 RK_FUNC_1 &pcfg_pull_up>,
1573                                         <4 10 RK_FUNC_1 &pcfg_pull_up>,
1574                                         <4 11 RK_FUNC_1 &pcfg_pull_up>;
1575                         };
1576
1577                         sdmmc_clk: sdmmc-clk {
1578                                 rockchip,pins =
1579                                         <4 12 RK_FUNC_1 &pcfg_pull_none>;
1580                         };
1581
1582                         sdmmc_cmd: sdmmc-cmd {
1583                                 rockchip,pins =
1584                                         <4 13 RK_FUNC_1 &pcfg_pull_up>;
1585                         };
1586
1587                         sdmmc_cd: sdmcc-cd {
1588                                 rockchip,pins =
1589                                         <0 7 RK_FUNC_1 &pcfg_pull_up>;
1590                         };
1591
1592                         sdmmc_wp: sdmmc-wp {
1593                                 rockchip,pins =
1594                                         <0 8 RK_FUNC_1 &pcfg_pull_up>;
1595                         };
1596                 };
1597
1598                 spdif {
1599                         spdif_bus: spdif-bus {
1600                                 rockchip,pins =
1601                                         <4 21 RK_FUNC_1 &pcfg_pull_none>;
1602                         };
1603                 };
1604
1605                 spi0 {
1606                         spi0_clk: spi0-clk {
1607                                 rockchip,pins =
1608                                         <3 6 RK_FUNC_2 &pcfg_pull_up>;
1609                         };
1610                         spi0_cs0: spi0-cs0 {
1611                                 rockchip,pins =
1612                                         <3 7 RK_FUNC_2 &pcfg_pull_up>;
1613                         };
1614                         spi0_cs1: spi0-cs1 {
1615                                 rockchip,pins =
1616                                         <3 8 RK_FUNC_2 &pcfg_pull_up>;
1617                         };
1618                         spi0_tx: spi0-tx {
1619                                 rockchip,pins =
1620                                         <3 5 RK_FUNC_2 &pcfg_pull_up>;
1621                         };
1622                         spi0_rx: spi0-rx {
1623                                 rockchip,pins =
1624                                         <3 4 RK_FUNC_2 &pcfg_pull_up>;
1625                         };
1626                 };
1627
1628                 spi1 {
1629                         spi1_clk: spi1-clk {
1630                                 rockchip,pins =
1631                                         <1 9 RK_FUNC_2 &pcfg_pull_up>;
1632                         };
1633                         spi1_cs0: spi1-cs0 {
1634                                 rockchip,pins =
1635                                         <1 10 RK_FUNC_2 &pcfg_pull_up>;
1636                         };
1637                         spi1_rx: spi1-rx {
1638                                 rockchip,pins =
1639                                         <1 7 RK_FUNC_2 &pcfg_pull_up>;
1640                         };
1641                         spi1_tx: spi1-tx {
1642                                 rockchip,pins =
1643                                         <1 8 RK_FUNC_2 &pcfg_pull_up>;
1644                         };
1645                 };
1646
1647                 spi2 {
1648                         spi2_clk: spi2-clk {
1649                                 rockchip,pins =
1650                                         <2 11 RK_FUNC_1 &pcfg_pull_up>;
1651                         };
1652                         spi2_cs0: spi2-cs0 {
1653                                 rockchip,pins =
1654                                         <2 12 RK_FUNC_1 &pcfg_pull_up>;
1655                         };
1656                         spi2_rx: spi2-rx {
1657                                 rockchip,pins =
1658                                         <2 9 RK_FUNC_1 &pcfg_pull_up>;
1659                         };
1660                         spi2_tx: spi2-tx {
1661                                 rockchip,pins =
1662                                         <2 10 RK_FUNC_1 &pcfg_pull_up>;
1663                         };
1664                 };
1665
1666                 spi3 {
1667                         spi3_clk: spi3-clk {
1668                                 rockchip,pins =
1669                                         <1 17 RK_FUNC_1 &pcfg_pull_up>;
1670                         };
1671                         spi3_cs0: spi3-cs0 {
1672                                 rockchip,pins =
1673                                         <1 18 RK_FUNC_1 &pcfg_pull_up>;
1674                         };
1675                         spi3_rx: spi3-rx {
1676                                 rockchip,pins =
1677                                         <1 15 RK_FUNC_1 &pcfg_pull_up>;
1678                         };
1679                         spi3_tx: spi3-tx {
1680                                 rockchip,pins =
1681                                         <1 16 RK_FUNC_1 &pcfg_pull_up>;
1682                         };
1683                 };
1684
1685                 spi4 {
1686                         spi4_clk: spi4-clk {
1687                                 rockchip,pins =
1688                                         <3 2 RK_FUNC_2 &pcfg_pull_up>;
1689                         };
1690                         spi4_cs0: spi4-cs0 {
1691                                 rockchip,pins =
1692                                         <3 3 RK_FUNC_2 &pcfg_pull_up>;
1693                         };
1694                         spi4_rx: spi4-rx {
1695                                 rockchip,pins =
1696                                         <3 0 RK_FUNC_2 &pcfg_pull_up>;
1697                         };
1698                         spi4_tx: spi4-tx {
1699                                 rockchip,pins =
1700                                         <3 1 RK_FUNC_2 &pcfg_pull_up>;
1701                         };
1702                 };
1703
1704                 spi5 {
1705                         spi5_clk: spi5-clk {
1706                                 rockchip,pins =
1707                                         <2 22 RK_FUNC_2 &pcfg_pull_up>;
1708                         };
1709                         spi5_cs0: spi5-cs0 {
1710                                 rockchip,pins =
1711                                         <2 23 RK_FUNC_2 &pcfg_pull_up>;
1712                         };
1713                         spi5_rx: spi5-rx {
1714                                 rockchip,pins =
1715                                         <2 20 RK_FUNC_2 &pcfg_pull_up>;
1716                         };
1717                         spi5_tx: spi5-tx {
1718                                 rockchip,pins =
1719                                         <2 21 RK_FUNC_2 &pcfg_pull_up>;
1720                         };
1721                 };
1722
1723                 tsadc {
1724                         otp_gpio: otp-gpio {
1725                                 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1726                         };
1727
1728                         otp_out: otp-out {
1729                                 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1730                         };
1731                 };
1732
1733                 uart0 {
1734                         uart0_xfer: uart0-xfer {
1735                                 rockchip,pins =
1736                                         <2 16 RK_FUNC_1 &pcfg_pull_up>,
1737                                         <2 17 RK_FUNC_1 &pcfg_pull_none>;
1738                         };
1739
1740                         uart0_cts: uart0-cts {
1741                                 rockchip,pins =
1742                                         <2 18 RK_FUNC_1 &pcfg_pull_none>;
1743                         };
1744
1745                         uart0_rts: uart0-rts {
1746                                 rockchip,pins =
1747                                         <2 19 RK_FUNC_1 &pcfg_pull_none>;
1748                         };
1749                 };
1750
1751                 uart1 {
1752                         uart1_xfer: uart1-xfer {
1753                                 rockchip,pins =
1754                                         <3 12 RK_FUNC_2 &pcfg_pull_up>,
1755                                         <3 13 RK_FUNC_2 &pcfg_pull_none>;
1756                         };
1757                 };
1758
1759                 uart2a {
1760                         uart2a_xfer: uart2a-xfer {
1761                                 rockchip,pins =
1762                                         <4 8 RK_FUNC_2 &pcfg_pull_up>,
1763                                         <4 9 RK_FUNC_2 &pcfg_pull_none>;
1764                         };
1765                 };
1766
1767                 uart2b {
1768                         uart2b_xfer: uart2b-xfer {
1769                                 rockchip,pins =
1770                                         <4 16 RK_FUNC_2 &pcfg_pull_up>,
1771                                         <4 17 RK_FUNC_2 &pcfg_pull_none>;
1772                         };
1773                 };
1774
1775                 uart2c {
1776                         uart2c_xfer: uart2c-xfer {
1777                                 rockchip,pins =
1778                                         <4 19 RK_FUNC_1 &pcfg_pull_up>,
1779                                         <4 20 RK_FUNC_1 &pcfg_pull_none>;
1780                         };
1781                 };
1782
1783                 uart3 {
1784                         uart3_xfer: uart3-xfer {
1785                                 rockchip,pins =
1786                                         <3 14 RK_FUNC_2 &pcfg_pull_up>,
1787                                         <3 15 RK_FUNC_2 &pcfg_pull_none>;
1788                         };
1789
1790                         uart3_cts: uart3-cts {
1791                                 rockchip,pins =
1792                                         <3 18 RK_FUNC_2 &pcfg_pull_none>;
1793                         };
1794
1795                         uart3_rts: uart3-rts {
1796                                 rockchip,pins =
1797                                         <3 19 RK_FUNC_2 &pcfg_pull_none>;
1798                         };
1799                 };
1800
1801                 uart4 {
1802                         uart4_xfer: uart4-xfer {
1803                                 rockchip,pins =
1804                                         <1 7 RK_FUNC_1 &pcfg_pull_up>,
1805                                         <1 8 RK_FUNC_1 &pcfg_pull_none>;
1806                         };
1807                 };
1808
1809                 uarthdcp {
1810                         uarthdcp_xfer: uarthdcp-xfer {
1811                                 rockchip,pins =
1812                                         <4 21 RK_FUNC_2 &pcfg_pull_up>,
1813                                         <4 22 RK_FUNC_2 &pcfg_pull_none>;
1814                         };
1815                 };
1816
1817                 pwm0 {
1818                         pwm0_pin: pwm0-pin {
1819                                 rockchip,pins =
1820                                         <4 18 RK_FUNC_1 &pcfg_pull_none>;
1821                         };
1822
1823                         vop0_pwm_pin: vop0-pwm-pin {
1824                                 rockchip,pins =
1825                                         <4 18 RK_FUNC_2 &pcfg_pull_none>;
1826                         };
1827                 };
1828
1829                 pwm1 {
1830                         pwm1_pin: pwm1-pin {
1831                                 rockchip,pins =
1832                                         <4 22 RK_FUNC_1 &pcfg_pull_none>;
1833                         };
1834
1835                         vop1_pwm_pin: vop1-pwm-pin {
1836                                 rockchip,pins =
1837                                         <4 18 RK_FUNC_3 &pcfg_pull_none>;
1838                         };
1839                 };
1840
1841                 pwm2 {
1842                         pwm2_pin: pwm2-pin {
1843                                 rockchip,pins =
1844                                         <1 19 RK_FUNC_1 &pcfg_pull_none>;
1845                         };
1846                 };
1847
1848                 pwm3a {
1849                         pwm3a_pin: pwm3a-pin {
1850                                 rockchip,pins =
1851                                         <0 6 RK_FUNC_1 &pcfg_pull_none>;
1852                         };
1853                 };
1854
1855                 pwm3b {
1856                         pwm3b_pin: pwm3b-pin {
1857                                 rockchip,pins =
1858                                         <1 14 RK_FUNC_1 &pcfg_pull_none>;
1859                         };
1860                 };
1861
1862                 edp {
1863                         edp_hpd: edp-hpd {
1864                                 rockchip,pins =
1865                                         <4 23 RK_FUNC_2 &pcfg_pull_none>;
1866                         };
1867                 };
1868         };
1869 };