ARM64: dts: rk3399: gpu: add subnode for mali-simple-power-model
[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
1066                 status = "disabled";
1067
1068                 power_model {
1069                         compatible = "arm,mali-simple-power-model";
1070                         voltage = <900>;
1071                         frequency = <500>;
1072                         static-power = <500>;
1073                         dynamic-power = <1500>;
1074                         ts = <20000 2000 (-20) 2>;
1075                         thermal-zone = "gpu";
1076                 };
1077         };
1078
1079         gpu_opp_table: gpu_opp_table {
1080                 compatible = "operating-points-v2";
1081                 opp-shared;
1082
1083                 opp00 {
1084                         opp-hz = /bits/ 64 <200000000>;
1085                         opp-microvolt = <900000>;
1086                 };
1087                 opp01 {
1088                         opp-hz = /bits/ 64 <300000000>;
1089                         opp-microvolt = <900000>;
1090                 };
1091                 opp02 {
1092                         opp-hz = /bits/ 64 <400000000>;
1093                         opp-microvolt = <900000>;
1094                 };
1095
1096         };
1097
1098         vopl: vop@ff8f0000 {
1099                 compatible = "rockchip,rk3399-vop-lit";
1100                 reg = <0x0 0xff8f0000 0x0 0x3efc>;
1101                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
1102                 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1103                 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1104                 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1105                 reset-names = "axi", "ahb", "dclk";
1106                 iommus = <&vopl_mmu>;
1107                 status = "disabled";
1108
1109                 vopl_out: port {
1110                         #address-cells = <1>;
1111                         #size-cells = <0>;
1112
1113                         vopl_out_mipi: endpoint@0 {
1114                                 reg = <0>;
1115                                 remote-endpoint = <&mipi_in_vopl>;
1116                         };
1117
1118                         vopl_out_edp: endpoint@1 {
1119                                 reg = <1>;
1120                                 remote-endpoint = <&edp_in_vopl>;
1121                         };
1122                 };
1123         };
1124
1125         vopl_mmu: iommu@ff8f3f00 {
1126                 compatible = "rockchip,iommu";
1127                 reg = <0x0 0xff8f3f00 0x0 0x100>;
1128                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
1129                 interrupt-names = "vopl_mmu";
1130                 #iommu-cells = <0>;
1131                 status = "disabled";
1132         };
1133
1134         vopb: vop@ff900000 {
1135                 compatible = "rockchip,rk3399-vop-big";
1136                 reg = <0x0 0xff900000 0x0 0x3efc>;
1137                 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1138                 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1139                 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1140                 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1141                 reset-names = "axi", "ahb", "dclk";
1142                 iommus = <&vopb_mmu>;
1143                 status = "disabled";
1144
1145                 vopb_out: port {
1146                         #address-cells = <1>;
1147                         #size-cells = <0>;
1148
1149                         vopb_out_edp: endpoint@0 {
1150                                 reg = <0>;
1151                                 remote-endpoint = <&edp_in_vopb>;
1152                         };
1153
1154                         vopb_out_mipi: endpoint@1 {
1155                                 reg = <1>;
1156                                 remote-endpoint = <&mipi_in_vopb>;
1157                         };
1158                 };
1159         };
1160
1161         vopb_mmu: iommu@ff903f00 {
1162                 compatible = "rockchip,iommu";
1163                 reg = <0x0 0xff903f00 0x0 0x100>;
1164                 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
1165                 interrupt-names = "vopb_mmu";
1166                 #iommu-cells = <0>;
1167                 status = "disabled";
1168         };
1169
1170         mipi_dsi: mipi@ff960000 {
1171                 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
1172                 reg = <0x0 0xff960000 0x0 0x8000>;
1173                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1174                 clocks = <&cru SCLK_MIPIDPHY_REF>, <&cru PCLK_MIPI_DSI0>,
1175                          <&cru SCLK_DPHY_TX0_CFG>;
1176                 clock-names = "ref", "pclk", "phy_cfg";
1177                 rockchip,grf = <&grf>;
1178                 #address-cells = <1>;
1179                 #size-cells = <0>;
1180                 status = "disabled";
1181
1182                 ports {
1183                         #address-cells = <1>;
1184                         #size-cells = <0>;
1185                         reg = <1>;
1186
1187                         mipi_in: port {
1188                                 #address-cells = <1>;
1189                                 #size-cells = <0>;
1190
1191                                 mipi_in_vopb: endpoint@0 {
1192                                         reg = <0>;
1193                                         remote-endpoint = <&vopb_out_mipi>;
1194                                 };
1195                                 mipi_in_vopl: endpoint@1 {
1196                                         reg = <1>;
1197                                         remote-endpoint = <&vopl_out_mipi>;
1198                                 };
1199                         };
1200                 };
1201         };
1202
1203         edp: edp@ff970000 {
1204                 compatible = "rockchip,rk3399-edp";
1205                 reg = <0x0 0xff970000 0x0 0x8000>;
1206                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1207                 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>;
1208                 clock-names = "dp", "pclk";
1209                 resets = <&cru SRST_P_EDP_CTRL>;
1210                 reset-names = "dp";
1211                 rockchip,grf = <&grf>;
1212                 status = "disabled";
1213                 pinctrl-names = "default";
1214                 pinctrl-0 = <&edp_hpd>;
1215
1216                 ports {
1217                         #address-cells = <1>;
1218                         #size-cells = <0>;
1219
1220                         edp_in: port@0 {
1221                                 reg = <0>;
1222                                 #address-cells = <1>;
1223                                 #size-cells = <0>;
1224
1225                                 edp_in_vopb: endpoint@0 {
1226                                         reg = <0>;
1227                                         remote-endpoint = <&vopb_out_edp>;
1228                                 };
1229
1230                                 edp_in_vopl: endpoint@1 {
1231                                         reg = <1>;
1232                                         remote-endpoint = <&vopl_out_edp>;
1233                                 };
1234                         };
1235                 };
1236         };
1237
1238         display_subsystem: display-subsystem {
1239                 compatible = "rockchip,display-subsystem";
1240                 ports = <&vopl_out>, <&vopb_out>;
1241                 status = "disabled";
1242         };
1243
1244         pinctrl: pinctrl {
1245                 compatible = "rockchip,rk3399-pinctrl";
1246                 rockchip,grf = <&grf>;
1247                 rockchip,pmu = <&pmugrf>;
1248                 #address-cells = <0x2>;
1249                 #size-cells = <0x2>;
1250                 ranges;
1251
1252                 gpio0: gpio0@ff720000 {
1253                         compatible = "rockchip,gpio-bank";
1254                         reg = <0x0 0xff720000 0x0 0x100>;
1255                         clocks = <&pmucru PCLK_GPIO0_PMU>;
1256                         interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1257
1258                         gpio-controller;
1259                         #gpio-cells = <0x2>;
1260
1261                         interrupt-controller;
1262                         #interrupt-cells = <0x2>;
1263                 };
1264
1265                 gpio1: gpio1@ff730000 {
1266                         compatible = "rockchip,gpio-bank";
1267                         reg = <0x0 0xff730000 0x0 0x100>;
1268                         clocks = <&pmucru PCLK_GPIO1_PMU>;
1269                         interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1270
1271                         gpio-controller;
1272                         #gpio-cells = <0x2>;
1273
1274                         interrupt-controller;
1275                         #interrupt-cells = <0x2>;
1276                 };
1277
1278                 gpio2: gpio2@ff780000 {
1279                         compatible = "rockchip,gpio-bank";
1280                         reg = <0x0 0xff780000 0x0 0x100>;
1281                         clocks = <&cru PCLK_GPIO2>;
1282                         interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1283
1284                         gpio-controller;
1285                         #gpio-cells = <0x2>;
1286
1287                         interrupt-controller;
1288                         #interrupt-cells = <0x2>;
1289                 };
1290
1291                 gpio3: gpio3@ff788000 {
1292                         compatible = "rockchip,gpio-bank";
1293                         reg = <0x0 0xff788000 0x0 0x100>;
1294                         clocks = <&cru PCLK_GPIO3>;
1295                         interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1296
1297                         gpio-controller;
1298                         #gpio-cells = <0x2>;
1299
1300                         interrupt-controller;
1301                         #interrupt-cells = <0x2>;
1302                 };
1303
1304                 gpio4: gpio4@ff790000 {
1305                         compatible = "rockchip,gpio-bank";
1306                         reg = <0x0 0xff790000 0x0 0x100>;
1307                         clocks = <&cru PCLK_GPIO4>;
1308                         interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1309
1310                         gpio-controller;
1311                         #gpio-cells = <0x2>;
1312
1313                         interrupt-controller;
1314                         #interrupt-cells = <0x2>;
1315                 };
1316
1317                 pcfg_pull_up: pcfg-pull-up {
1318                         bias-pull-up;
1319                 };
1320
1321                 pcfg_pull_down: pcfg-pull-down {
1322                         bias-pull-down;
1323                 };
1324
1325                 pcfg_pull_none: pcfg-pull-none {
1326                         bias-disable;
1327                 };
1328
1329                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1330                         bias-disable;
1331                         drive-strength = <12>;
1332                 };
1333
1334                 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
1335                         bias-pull-up;
1336                         drive-strength = <8>;
1337                 };
1338
1339                 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
1340                         bias-pull-down;
1341                         drive-strength = <4>;
1342                 };
1343
1344                 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
1345                         bias-pull-up;
1346                         drive-strength = <2>;
1347                 };
1348
1349                 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
1350                         bias-pull-down;
1351                         drive-strength = <12>;
1352                 };
1353
1354                 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
1355                         bias-disable;
1356                         drive-strength = <13>;
1357                 };
1358
1359                 emmc {
1360                         emmc_pwr: emmc-pwr {
1361                                 rockchip,pins =
1362                                         <0 5 RK_FUNC_1 &pcfg_pull_up>;
1363                         };
1364                 };
1365
1366                 gmac {
1367                         rgmii_pins: rgmii-pins {
1368                                 rockchip,pins =
1369                                         /* mac_txclk */
1370                                         <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>,
1371                                         /* mac_rxclk */
1372                                         <3 14 RK_FUNC_1 &pcfg_pull_none>,
1373                                         /* mac_mdio */
1374                                         <3 13 RK_FUNC_1 &pcfg_pull_none>,
1375                                         /* mac_txen */
1376                                         <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1377                                         /* mac_clk */
1378                                         <3 11 RK_FUNC_1 &pcfg_pull_none>,
1379                                         /* mac_rxdv */
1380                                         <3 9 RK_FUNC_1 &pcfg_pull_none>,
1381                                         /* mac_mdc */
1382                                         <3 8 RK_FUNC_1 &pcfg_pull_none>,
1383                                         /* mac_rxd1 */
1384                                         <3 7 RK_FUNC_1 &pcfg_pull_none>,
1385                                         /* mac_rxd0 */
1386                                         <3 6 RK_FUNC_1 &pcfg_pull_none>,
1387                                         /* mac_txd1 */
1388                                         <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1389                                         /* mac_txd0 */
1390                                         <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>,
1391                                         /* mac_rxd3 */
1392                                         <3 3 RK_FUNC_1 &pcfg_pull_none>,
1393                                         /* mac_rxd2 */
1394                                         <3 2 RK_FUNC_1 &pcfg_pull_none>,
1395                                         /* mac_txd3 */
1396                                         <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>,
1397                                         /* mac_txd2 */
1398                                         <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>;
1399                         };
1400
1401                         rmii_pins: rmii-pins {
1402                                 rockchip,pins =
1403                                         /* mac_mdio */
1404                                         <3 13 RK_FUNC_1 &pcfg_pull_none>,
1405                                         /* mac_txen */
1406                                         <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>,
1407                                         /* mac_clk */
1408                                         <3 11 RK_FUNC_1 &pcfg_pull_none>,
1409                                         /* mac_rxer */
1410                                         <3 10 RK_FUNC_1 &pcfg_pull_none>,
1411                                         /* mac_rxdv */
1412                                         <3 9 RK_FUNC_1 &pcfg_pull_none>,
1413                                         /* mac_mdc */
1414                                         <3 8 RK_FUNC_1 &pcfg_pull_none>,
1415                                         /* mac_rxd1 */
1416                                         <3 7 RK_FUNC_1 &pcfg_pull_none>,
1417                                         /* mac_rxd0 */
1418                                         <3 6 RK_FUNC_1 &pcfg_pull_none>,
1419                                         /* mac_txd1 */
1420                                         <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>,
1421                                         /* mac_txd0 */
1422                                         <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>;
1423                         };
1424                 };
1425
1426                 i2c0 {
1427                         i2c0_xfer: i2c0-xfer {
1428                                 rockchip,pins =
1429                                         <1 15 RK_FUNC_2 &pcfg_pull_none>,
1430                                         <1 16 RK_FUNC_2 &pcfg_pull_none>;
1431                         };
1432                 };
1433
1434                 i2c1 {
1435                         i2c1_xfer: i2c1-xfer {
1436                                 rockchip,pins =
1437                                         <4 2 RK_FUNC_1 &pcfg_pull_none>,
1438                                         <4 1 RK_FUNC_1 &pcfg_pull_none>;
1439                         };
1440                 };
1441
1442                 i2c2 {
1443                         i2c2_xfer: i2c2-xfer {
1444                                 rockchip,pins =
1445                                         <2 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
1446                                         <2 0 RK_FUNC_2 &pcfg_pull_none_12ma>;
1447                         };
1448                 };
1449
1450                 i2c3 {
1451                         i2c3_xfer: i2c3-xfer {
1452                                 rockchip,pins =
1453                                         <4 17 RK_FUNC_1 &pcfg_pull_none>,
1454                                         <4 16 RK_FUNC_1 &pcfg_pull_none>;
1455                         };
1456                 };
1457
1458                 i2c4 {
1459                         i2c4_xfer: i2c4-xfer {
1460                                 rockchip,pins =
1461                                         <1 12 RK_FUNC_1 &pcfg_pull_none>,
1462                                         <1 11 RK_FUNC_1 &pcfg_pull_none>;
1463                         };
1464                 };
1465
1466                 i2c5 {
1467                         i2c5_xfer: i2c5-xfer {
1468                                 rockchip,pins =
1469                                         <3 11 RK_FUNC_2 &pcfg_pull_none>,
1470                                         <3 10 RK_FUNC_2 &pcfg_pull_none>;
1471                         };
1472                 };
1473
1474                 i2c6 {
1475                         i2c6_xfer: i2c6-xfer {
1476                                 rockchip,pins =
1477                                         <2 10 RK_FUNC_2 &pcfg_pull_none>,
1478                                         <2 9 RK_FUNC_2 &pcfg_pull_none>;
1479                         };
1480                 };
1481
1482                 i2c7 {
1483                         i2c7_xfer: i2c7-xfer {
1484                                 rockchip,pins =
1485                                         <2 8 RK_FUNC_2 &pcfg_pull_none>,
1486                                         <2 7 RK_FUNC_2 &pcfg_pull_none>;
1487                         };
1488                 };
1489
1490                 i2c8 {
1491                         i2c8_xfer: i2c8-xfer {
1492                                 rockchip,pins =
1493                                         <1 21 RK_FUNC_1 &pcfg_pull_none>,
1494                                         <1 20 RK_FUNC_1 &pcfg_pull_none>;
1495                         };
1496                 };
1497
1498                 i2s0 {
1499                         i2s0_8ch_bus: i2s0-8ch-bus {
1500                                 rockchip,pins =
1501                                         <3 24 RK_FUNC_1 &pcfg_pull_none>,
1502                                         <3 25 RK_FUNC_1 &pcfg_pull_none>,
1503                                         <3 26 RK_FUNC_1 &pcfg_pull_none>,
1504                                         <3 27 RK_FUNC_1 &pcfg_pull_none>,
1505                                         <3 28 RK_FUNC_1 &pcfg_pull_none>,
1506                                         <3 29 RK_FUNC_1 &pcfg_pull_none>,
1507                                         <3 30 RK_FUNC_1 &pcfg_pull_none>,
1508                                         <3 31 RK_FUNC_1 &pcfg_pull_none>,
1509                                         <4 0 RK_FUNC_1 &pcfg_pull_none>;
1510                         };
1511                 };
1512
1513                 i2s1 {
1514                         i2s1_2ch_bus: i2s1-2ch-bus {
1515                                 rockchip,pins =
1516                                         <4 3 RK_FUNC_1 &pcfg_pull_none>,
1517                                         <4 4 RK_FUNC_1 &pcfg_pull_none>,
1518                                         <4 5 RK_FUNC_1 &pcfg_pull_none>,
1519                                         <4 6 RK_FUNC_1 &pcfg_pull_none>,
1520                                         <4 7 RK_FUNC_1 &pcfg_pull_none>;
1521                         };
1522                 };
1523
1524                 sdio0 {
1525                         sdio0_bus1: sdio0-bus1 {
1526                                 rockchip,pins =
1527                                         <2 20 RK_FUNC_1 &pcfg_pull_up>;
1528                         };
1529
1530                         sdio0_bus4: sdio0-bus4 {
1531                                 rockchip,pins =
1532                                         <2 20 RK_FUNC_1 &pcfg_pull_up>,
1533                                         <2 21 RK_FUNC_1 &pcfg_pull_up>,
1534                                         <2 22 RK_FUNC_1 &pcfg_pull_up>,
1535                                         <2 23 RK_FUNC_1 &pcfg_pull_up>;
1536                         };
1537
1538                         sdio0_cmd: sdio0-cmd {
1539                                 rockchip,pins =
1540                                         <2 24 RK_FUNC_1 &pcfg_pull_up>;
1541                         };
1542
1543                         sdio0_clk: sdio0-clk {
1544                                 rockchip,pins =
1545                                         <2 25 RK_FUNC_1 &pcfg_pull_none>;
1546                         };
1547
1548                         sdio0_cd: sdio0-cd {
1549                                 rockchip,pins =
1550                                         <2 26 RK_FUNC_1 &pcfg_pull_up>;
1551                         };
1552
1553                         sdio0_pwr: sdio0-pwr {
1554                                 rockchip,pins =
1555                                         <2 27 RK_FUNC_1 &pcfg_pull_up>;
1556                         };
1557
1558                         sdio0_bkpwr: sdio0-bkpwr {
1559                                 rockchip,pins =
1560                                         <2 28 RK_FUNC_1 &pcfg_pull_up>;
1561                         };
1562
1563                         sdio0_wp: sdio0-wp {
1564                                 rockchip,pins =
1565                                         <0 3 RK_FUNC_1 &pcfg_pull_up>;
1566                         };
1567
1568                         sdio0_int: sdio0-int {
1569                                 rockchip,pins =
1570                                         <0 4 RK_FUNC_1 &pcfg_pull_up>;
1571                         };
1572                 };
1573
1574                 sdmmc {
1575                         sdmmc_bus1: sdmmc-bus1 {
1576                                 rockchip,pins =
1577                                         <4 8 RK_FUNC_1 &pcfg_pull_up>;
1578                         };
1579
1580                         sdmmc_bus4: sdmmc-bus4 {
1581                                 rockchip,pins =
1582                                         <4 8 RK_FUNC_1 &pcfg_pull_up>,
1583                                         <4 9 RK_FUNC_1 &pcfg_pull_up>,
1584                                         <4 10 RK_FUNC_1 &pcfg_pull_up>,
1585                                         <4 11 RK_FUNC_1 &pcfg_pull_up>;
1586                         };
1587
1588                         sdmmc_clk: sdmmc-clk {
1589                                 rockchip,pins =
1590                                         <4 12 RK_FUNC_1 &pcfg_pull_none>;
1591                         };
1592
1593                         sdmmc_cmd: sdmmc-cmd {
1594                                 rockchip,pins =
1595                                         <4 13 RK_FUNC_1 &pcfg_pull_up>;
1596                         };
1597
1598                         sdmmc_cd: sdmcc-cd {
1599                                 rockchip,pins =
1600                                         <0 7 RK_FUNC_1 &pcfg_pull_up>;
1601                         };
1602
1603                         sdmmc_wp: sdmmc-wp {
1604                                 rockchip,pins =
1605                                         <0 8 RK_FUNC_1 &pcfg_pull_up>;
1606                         };
1607                 };
1608
1609                 spdif {
1610                         spdif_bus: spdif-bus {
1611                                 rockchip,pins =
1612                                         <4 21 RK_FUNC_1 &pcfg_pull_none>;
1613                         };
1614                 };
1615
1616                 spi0 {
1617                         spi0_clk: spi0-clk {
1618                                 rockchip,pins =
1619                                         <3 6 RK_FUNC_2 &pcfg_pull_up>;
1620                         };
1621                         spi0_cs0: spi0-cs0 {
1622                                 rockchip,pins =
1623                                         <3 7 RK_FUNC_2 &pcfg_pull_up>;
1624                         };
1625                         spi0_cs1: spi0-cs1 {
1626                                 rockchip,pins =
1627                                         <3 8 RK_FUNC_2 &pcfg_pull_up>;
1628                         };
1629                         spi0_tx: spi0-tx {
1630                                 rockchip,pins =
1631                                         <3 5 RK_FUNC_2 &pcfg_pull_up>;
1632                         };
1633                         spi0_rx: spi0-rx {
1634                                 rockchip,pins =
1635                                         <3 4 RK_FUNC_2 &pcfg_pull_up>;
1636                         };
1637                 };
1638
1639                 spi1 {
1640                         spi1_clk: spi1-clk {
1641                                 rockchip,pins =
1642                                         <1 9 RK_FUNC_2 &pcfg_pull_up>;
1643                         };
1644                         spi1_cs0: spi1-cs0 {
1645                                 rockchip,pins =
1646                                         <1 10 RK_FUNC_2 &pcfg_pull_up>;
1647                         };
1648                         spi1_rx: spi1-rx {
1649                                 rockchip,pins =
1650                                         <1 7 RK_FUNC_2 &pcfg_pull_up>;
1651                         };
1652                         spi1_tx: spi1-tx {
1653                                 rockchip,pins =
1654                                         <1 8 RK_FUNC_2 &pcfg_pull_up>;
1655                         };
1656                 };
1657
1658                 spi2 {
1659                         spi2_clk: spi2-clk {
1660                                 rockchip,pins =
1661                                         <2 11 RK_FUNC_1 &pcfg_pull_up>;
1662                         };
1663                         spi2_cs0: spi2-cs0 {
1664                                 rockchip,pins =
1665                                         <2 12 RK_FUNC_1 &pcfg_pull_up>;
1666                         };
1667                         spi2_rx: spi2-rx {
1668                                 rockchip,pins =
1669                                         <2 9 RK_FUNC_1 &pcfg_pull_up>;
1670                         };
1671                         spi2_tx: spi2-tx {
1672                                 rockchip,pins =
1673                                         <2 10 RK_FUNC_1 &pcfg_pull_up>;
1674                         };
1675                 };
1676
1677                 spi3 {
1678                         spi3_clk: spi3-clk {
1679                                 rockchip,pins =
1680                                         <1 17 RK_FUNC_1 &pcfg_pull_up>;
1681                         };
1682                         spi3_cs0: spi3-cs0 {
1683                                 rockchip,pins =
1684                                         <1 18 RK_FUNC_1 &pcfg_pull_up>;
1685                         };
1686                         spi3_rx: spi3-rx {
1687                                 rockchip,pins =
1688                                         <1 15 RK_FUNC_1 &pcfg_pull_up>;
1689                         };
1690                         spi3_tx: spi3-tx {
1691                                 rockchip,pins =
1692                                         <1 16 RK_FUNC_1 &pcfg_pull_up>;
1693                         };
1694                 };
1695
1696                 spi4 {
1697                         spi4_clk: spi4-clk {
1698                                 rockchip,pins =
1699                                         <3 2 RK_FUNC_2 &pcfg_pull_up>;
1700                         };
1701                         spi4_cs0: spi4-cs0 {
1702                                 rockchip,pins =
1703                                         <3 3 RK_FUNC_2 &pcfg_pull_up>;
1704                         };
1705                         spi4_rx: spi4-rx {
1706                                 rockchip,pins =
1707                                         <3 0 RK_FUNC_2 &pcfg_pull_up>;
1708                         };
1709                         spi4_tx: spi4-tx {
1710                                 rockchip,pins =
1711                                         <3 1 RK_FUNC_2 &pcfg_pull_up>;
1712                         };
1713                 };
1714
1715                 spi5 {
1716                         spi5_clk: spi5-clk {
1717                                 rockchip,pins =
1718                                         <2 22 RK_FUNC_2 &pcfg_pull_up>;
1719                         };
1720                         spi5_cs0: spi5-cs0 {
1721                                 rockchip,pins =
1722                                         <2 23 RK_FUNC_2 &pcfg_pull_up>;
1723                         };
1724                         spi5_rx: spi5-rx {
1725                                 rockchip,pins =
1726                                         <2 20 RK_FUNC_2 &pcfg_pull_up>;
1727                         };
1728                         spi5_tx: spi5-tx {
1729                                 rockchip,pins =
1730                                         <2 21 RK_FUNC_2 &pcfg_pull_up>;
1731                         };
1732                 };
1733
1734                 tsadc {
1735                         otp_gpio: otp-gpio {
1736                                 rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
1737                         };
1738
1739                         otp_out: otp-out {
1740                                 rockchip,pins = <1 6 RK_FUNC_1 &pcfg_pull_none>;
1741                         };
1742                 };
1743
1744                 uart0 {
1745                         uart0_xfer: uart0-xfer {
1746                                 rockchip,pins =
1747                                         <2 16 RK_FUNC_1 &pcfg_pull_up>,
1748                                         <2 17 RK_FUNC_1 &pcfg_pull_none>;
1749                         };
1750
1751                         uart0_cts: uart0-cts {
1752                                 rockchip,pins =
1753                                         <2 18 RK_FUNC_1 &pcfg_pull_none>;
1754                         };
1755
1756                         uart0_rts: uart0-rts {
1757                                 rockchip,pins =
1758                                         <2 19 RK_FUNC_1 &pcfg_pull_none>;
1759                         };
1760                 };
1761
1762                 uart1 {
1763                         uart1_xfer: uart1-xfer {
1764                                 rockchip,pins =
1765                                         <3 12 RK_FUNC_2 &pcfg_pull_up>,
1766                                         <3 13 RK_FUNC_2 &pcfg_pull_none>;
1767                         };
1768                 };
1769
1770                 uart2a {
1771                         uart2a_xfer: uart2a-xfer {
1772                                 rockchip,pins =
1773                                         <4 8 RK_FUNC_2 &pcfg_pull_up>,
1774                                         <4 9 RK_FUNC_2 &pcfg_pull_none>;
1775                         };
1776                 };
1777
1778                 uart2b {
1779                         uart2b_xfer: uart2b-xfer {
1780                                 rockchip,pins =
1781                                         <4 16 RK_FUNC_2 &pcfg_pull_up>,
1782                                         <4 17 RK_FUNC_2 &pcfg_pull_none>;
1783                         };
1784                 };
1785
1786                 uart2c {
1787                         uart2c_xfer: uart2c-xfer {
1788                                 rockchip,pins =
1789                                         <4 19 RK_FUNC_1 &pcfg_pull_up>,
1790                                         <4 20 RK_FUNC_1 &pcfg_pull_none>;
1791                         };
1792                 };
1793
1794                 uart3 {
1795                         uart3_xfer: uart3-xfer {
1796                                 rockchip,pins =
1797                                         <3 14 RK_FUNC_2 &pcfg_pull_up>,
1798                                         <3 15 RK_FUNC_2 &pcfg_pull_none>;
1799                         };
1800
1801                         uart3_cts: uart3-cts {
1802                                 rockchip,pins =
1803                                         <3 18 RK_FUNC_2 &pcfg_pull_none>;
1804                         };
1805
1806                         uart3_rts: uart3-rts {
1807                                 rockchip,pins =
1808                                         <3 19 RK_FUNC_2 &pcfg_pull_none>;
1809                         };
1810                 };
1811
1812                 uart4 {
1813                         uart4_xfer: uart4-xfer {
1814                                 rockchip,pins =
1815                                         <1 7 RK_FUNC_1 &pcfg_pull_up>,
1816                                         <1 8 RK_FUNC_1 &pcfg_pull_none>;
1817                         };
1818                 };
1819
1820                 uarthdcp {
1821                         uarthdcp_xfer: uarthdcp-xfer {
1822                                 rockchip,pins =
1823                                         <4 21 RK_FUNC_2 &pcfg_pull_up>,
1824                                         <4 22 RK_FUNC_2 &pcfg_pull_none>;
1825                         };
1826                 };
1827
1828                 pwm0 {
1829                         pwm0_pin: pwm0-pin {
1830                                 rockchip,pins =
1831                                         <4 18 RK_FUNC_1 &pcfg_pull_none>;
1832                         };
1833
1834                         vop0_pwm_pin: vop0-pwm-pin {
1835                                 rockchip,pins =
1836                                         <4 18 RK_FUNC_2 &pcfg_pull_none>;
1837                         };
1838                 };
1839
1840                 pwm1 {
1841                         pwm1_pin: pwm1-pin {
1842                                 rockchip,pins =
1843                                         <4 22 RK_FUNC_1 &pcfg_pull_none>;
1844                         };
1845
1846                         vop1_pwm_pin: vop1-pwm-pin {
1847                                 rockchip,pins =
1848                                         <4 18 RK_FUNC_3 &pcfg_pull_none>;
1849                         };
1850                 };
1851
1852                 pwm2 {
1853                         pwm2_pin: pwm2-pin {
1854                                 rockchip,pins =
1855                                         <1 19 RK_FUNC_1 &pcfg_pull_none>;
1856                         };
1857                 };
1858
1859                 pwm3a {
1860                         pwm3a_pin: pwm3a-pin {
1861                                 rockchip,pins =
1862                                         <0 6 RK_FUNC_1 &pcfg_pull_none>;
1863                         };
1864                 };
1865
1866                 pwm3b {
1867                         pwm3b_pin: pwm3b-pin {
1868                                 rockchip,pins =
1869                                         <1 14 RK_FUNC_1 &pcfg_pull_none>;
1870                         };
1871                 };
1872
1873                 edp {
1874                         edp_hpd: edp-hpd {
1875                                 rockchip,pins =
1876                                         <4 23 RK_FUNC_2 &pcfg_pull_none>;
1877                         };
1878                 };
1879         };
1880 };