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