arm64: dts: rk3399-android-6.0: remove iep device node
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-disvr-android.dts
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 file 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 file 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 /dts-v1/;
44 #include <dt-bindings/pwm/pwm.h>
45 #include <dt-bindings/sensor-dev.h>
46 #include "rk3399.dtsi"
47 #include "rk3399-android-6.0.dtsi"
48 #include "rk3399-opp.dtsi"
49
50 / {
51         model = "Rockchip RK3399 VR Board";
52         compatible = "rockchip,vr", "rockchip,rk3399";
53
54         mpu6500_hid {
55                 status = "okay";
56                 compatible = "inv-hid,mpu6500";
57         };
58
59         vdd_log: vdd-log {
60                 compatible = "pwm-regulator";
61                 pwms = <&pwm2 0 25000 1>;
62                 rockchip,pwm_id= <2>;
63                 rockchip,pwm_voltage = <900000>;
64                 regulator-name = "vdd_log";
65                 regulator-min-microvolt = <800000>;
66                 regulator-max-microvolt = <1400000>;
67                 regulator-always-on;
68                 regulator-boot-on;
69         };
70
71         vcc_sys: vcc-sys {
72                 compatible = "regulator-fixed";
73                 regulator-name = "vcc_sys";
74                 regulator-always-on;
75                 regulator-boot-on;
76                 regulator-min-microvolt = <4000000>;
77                 regulator-max-microvolt = <4000000>;
78         };
79
80         vcc3v3_sys: vcc3v3-sys {
81                 compatible = "regulator-fixed";
82                 regulator-name = "vcc3v3_sys";
83                 regulator-always-on;
84                 regulator-boot-on;
85                 regulator-min-microvolt = <3300000>;
86                 regulator-max-microvolt = <3300000>;
87         };
88
89         vcc5v0_host: vcc5v0-host-regulator {
90                 compatible = "regulator-fixed";
91                 enable-active-high;
92                 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
93                 pinctrl-names = "default";
94                 pinctrl-0 = <&host_vbus_drv>;
95                 regulator-name = "vcc5v0_host";
96                 regulator-always-on;
97         };
98
99         vcc_phy: vcc-phy-regulator {
100                 compatible = "regulator-fixed";
101                 regulator-name = "vcc_phy";
102                 regulator-always-on;
103                 regulator-boot-on;
104         };
105
106         spdif-sound {
107                 compatible = "simple-audio-card";
108                 simple-audio-card,name = "rockchip,spdif";
109                 simple-audio-card,cpu {
110                         sound-dai = <&spdif>;
111                 };
112                 simple-audio-card,codec {
113                         sound-dai = <&spdif_out>;
114                 };
115         };
116
117         spdif_out: spdif-out {
118                 compatible = "linux,spdif-dit";
119                 #sound-dai-cells = <0>;
120         };
121
122         dw_hdmi_audio: dw-hdmi-audio {
123                 status = "okay";
124                 compatible = "rockchip,dw-hdmi-audio";
125                 #sound-dai-cells = <0>;
126         };
127
128         hdmi_sound: hdmi-sound {
129                 status = "okay";
130                 compatible = "simple-audio-card";
131                 simple-audio-card,format = "i2s";
132                 simple-audio-card,mclk-fs = <256>;
133                 simple-audio-card,name = "rockchip,hdmi";
134                 simple-audio-card,cpu {
135                         sound-dai = <&i2s2>;
136                 };
137                 simple-audio-card,codec {
138                         sound-dai = <&dw_hdmi_audio>;
139                 };
140         };
141
142         sdio_pwrseq: sdio-pwrseq {
143                 compatible = "mmc-pwrseq-simple";
144                 clocks = <&rk818 1>;
145                 clock-names = "ext_clock";
146                 pinctrl-names = "default";
147                 pinctrl-0 = <&wifi_enable_h>;
148
149                 /*
150                  * On the module itself this is one of these (depending
151                  * on the actual card populated):
152                  * - SDIO_RESET_L_WL_REG_ON
153                  * - PDN (power down when low)
154                  */
155                 reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
156         };
157
158         wireless-wlan {
159                 compatible = "wlan-platdata";
160                 rockchip,grf = <&grf>;
161                 wifi_chip_type = "ap6330";
162                 sdio_vref = <1800>;
163                 WIFI,host_wake_irq = <&gpio0 3 GPIO_ACTIVE_HIGH>; /* GPIO0_a3 */
164                 status = "okay";
165         };
166
167         wireless-bluetooth {
168                 compatible = "bluetooth-platdata";
169                 clocks = <&rk818 1>;
170                 clock-names = "ext_clock";
171                 //wifi-bt-power-toggle;
172                 uart_rts_gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; /* GPIO2_C3 */
173                 pinctrl-names = "default", "rts_gpio";
174                 pinctrl-0 = <&uart0_rts>;
175                 pinctrl-1 = <&uart0_gpios>;
176                 //BT,power_gpio  = <&gpio3 19 GPIO_ACTIVE_HIGH>; /* GPIOx_xx */
177                 BT,reset_gpio    = <&gpio0 9 GPIO_ACTIVE_HIGH>; /* GPIO0_B1 */
178                 BT,wake_gpio     = <&gpio2 26 GPIO_ACTIVE_HIGH>; /* GPIO2_D2 */
179                 BT,wake_host_irq = <&gpio0 4 GPIO_ACTIVE_HIGH>; /* GPIO0_A4 */
180                 status = "okay";
181         };
182
183         uboot-charge {
184                 compatible = "rockchip,uboot-charge";
185                 rockchip,uboot-charge-on = <0>;
186                 rockchip,android-charge-on = <1>;
187         };
188
189         rk_vr_key: rockchip-vr-key {
190                 compatible = "rockchip,key";
191                 status = "okay";
192
193                 io-channels = <&saradc 1>;
194
195                 vol-down-key {
196                         linux,code = <114>;
197                         label = "volume down";
198                         rockchip,adc_value = <170>;
199                 };
200
201                 vol-up-key {
202                         linux,code = <115>;
203                         label = "volume up";
204                         rockchip,adc_value = <340>;
205                 };
206
207                 home-key {
208                         linux,code = <102>;
209                         label = "home";
210                         rockchip,adc_value = <420>;
211                 };
212
213                 camera-key {
214                         linux,code = <212>;
215                         label = "camera";
216                         rockchip,adc_value = <520>;
217                 };
218
219                 power-key {
220                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
221                         linux,code = <116>;
222                         label = "power";
223                         gpio-key,wakeup;
224                 };
225
226                 back-key {
227                         linux,code = <158>;
228                         label = "back";
229                         rockchip,adc_value = <620>;
230                 };
231
232                 n-key {
233                         linux,code = <102>;
234                         label = "n";
235                         rockchip,adc_value = <700>;
236                 };
237
238                 menu-key {
239                         linux,code = <59>;
240                         label = "menu";
241                         rockchip,adc_value = <780>;
242                 };
243         };
244
245         rk_headset {
246                 compatible = "rockchip_headset";
247                 headset_gpio = <&gpio4 28 GPIO_ACTIVE_LOW>;
248                 pinctrl-names = "default";
249                 pinctrl-0 = <&hp_det>;
250                 io-channels = <&saradc 2>;
251         };
252 };
253
254 &sdmmc {
255         clock-frequency = <150000000>;
256         clock-freq-min-max = <400000 150000000>;
257         supports-sd;
258         bus-width = <4>;
259         cap-mmc-highspeed;
260         cap-sd-highspeed;
261         disable-wp;
262         num-slots = <1>;
263         sd-uhs-sdr104;
264         vqmmc-supply = <&vcc_sd>;
265         pinctrl-names = "default";
266         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
267         status = "okay";
268 };
269
270 &sdio0 {
271         clock-frequency = <50000000>;
272         clock-freq-min-max = <200000 50000000>;
273         supports-sdio;
274         bus-width = <4>;
275         disable-wp;
276         cap-sd-highspeed;
277         cap-sdio-irq;
278         keep-power-in-suspend;
279         mmc-pwrseq = <&sdio_pwrseq>;
280         non-removable;
281         num-slots = <1>;
282         pinctrl-names = "default";
283         pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
284         sd-uhs-sdr104;
285         status = "okay";
286 };
287
288 &emmc_phy {
289         status = "okay";
290 };
291
292 &sdhci {
293         bus-width = <8>;
294         mmc-hs400-1_8v;
295         supports-emmc;
296         non-removable;
297         keep-power-in-suspend;
298         mmc-hs400-enhanced-strobe;
299         status = "okay";
300 };
301
302 &i2s0 {
303         status = "okay";
304         rockchip,i2s-broken-burst-len;
305         rockchip,playback-channels = <8>;
306         rockchip,capture-channels = <8>;
307         #sound-dai-cells = <0>;
308 };
309
310 &i2s2 {
311         #sound-dai-cells = <0>;
312 };
313
314 &io_domains {
315         status = "okay";
316
317         bt656-supply = <&vcc1v8_dvp>;
318         audio-supply = <&vcca1v8_codec>;
319         sdmmc-supply = <&vcc_sd>;
320         gpio1830-supply = <&vcc_3v0>;
321 };
322
323 &spdif {
324         status = "okay";
325         #sound-dai-cells = <0>;
326 };
327
328 &i2c0 {
329         status = "okay";
330         i2c-scl-rising-time-ns = <219>;
331         i2c-scl-falling-time-ns = <15>;
332         clock-frequency = <400000>;
333
334         vdd_cpu_b: syr827@40 {
335                 compatible = "silergy,syr827";
336                 reg = <0x40>;
337                 vin-supply = <&vcc_sys>;
338                 regulator-compatible = "fan53555-reg";
339                 pinctrl-0 = <&vsel1_gpio>;
340                 vsel-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
341                 regulator-name = "vdd_cpu_b";
342                 regulator-min-microvolt = <712500>;
343                 regulator-max-microvolt = <1500000>;
344                 regulator-ramp-delay = <1000>;
345                 fcs,suspend-voltage-selector = <1>;
346                 regulator-always-on;
347                 regulator-initial-state = <3>;
348                         regulator-state-mem {
349                         regulator-off-in-suspend;
350                 };
351         };
352
353         vdd_gpu: syr828@41 {
354                 compatible = "silergy,syr828";
355                 reg = <0x41>;
356                 vin-supply = <&vcc_sys>;
357                 regulator-compatible = "fan53555-reg";
358                 pinctrl-0 = <&vsel2_gpio>;
359                 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
360                 regulator-name = "vdd_gpu";
361                 regulator-min-microvolt = <712500>;
362                 regulator-max-microvolt = <1500000>;
363                 regulator-ramp-delay = <1000>;
364                 fcs,suspend-voltage-selector = <1>;
365                 regulator-boot-on;
366                 regulator-initial-state = <3>;
367                 regulator-initial-mode = <1>;/*1:pwm 2: auto mode*/
368                         regulator-state-mem {
369                         regulator-off-in-suspend;
370                 };
371         };
372
373         rk818: pmic@1c {
374                 compatible = "rockchip,rk818";
375                 status = "okay";
376                 reg = <0x1c>;
377                 clock-output-names = "xin32k", "wifibt_32kin";
378                 interrupt-parent = <&gpio1>;
379                 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
380                 pinctrl-names = "default";
381                 pinctrl-0 = <&pmic_int_l>;
382                 rockchip,system-power-controller;
383                 wakeup-source;
384                 extcon = <&fusb0>;
385                 #clock-cells = <1>;
386
387                 vcc1-supply = <&vcc_sys>;
388                 vcc2-supply = <&vcc_sys>;
389                 vcc3-supply = <&vcc_sys>;
390                 vcc4-supply = <&vcc_sys>;
391                 vcc6-supply = <&vcc_sys>;
392                 vcc7-supply = <&vcc3v3_sys>;
393                 vcc8-supply = <&vcc_sys>;
394                 vcc9-supply = <&vcc3v3_sys>;
395
396                 regulators {
397                         vdd_cpu_l: DCDC_REG1 {
398                                 regulator-name = "vdd_cpu_l";
399                                 regulator-always-on;
400                                 regulator-boot-on;
401                                 regulator-min-microvolt = <750000>;
402                                 regulator-max-microvolt = <1350000>;
403                                 regulator-ramp-delay = <6001>;
404                                 regulator-state-mem {
405                                         regulator-off-in-suspend;
406                                 };
407                         };
408
409                         vdd_center: DCDC_REG2 {
410                                 regulator-name = "vdd_center";
411                                 regulator-always-on;
412                                 regulator-boot-on;
413                                 regulator-min-microvolt = <800000>;
414                                 regulator-max-microvolt = <1350000>;
415                                 regulator-ramp-delay = <6001>;
416                                 regulator-state-mem {
417                                         regulator-off-in-suspend;
418                                 };
419                         };
420
421                         vcc_ddr: DCDC_REG3 {
422                                 regulator-name = "vcc_ddr";
423                                 regulator-always-on;
424                                 regulator-boot-on;
425                                 regulator-state-mem {
426                                         regulator-on-in-suspend;
427                                 };
428                         };
429
430                         vcc_1v8: DCDC_REG4 {
431                                 regulator-name = "vcc_1v8";
432                                 regulator-always-on;
433                                 regulator-boot-on;
434                                 regulator-min-microvolt = <1800000>;
435                                 regulator-max-microvolt = <1800000>;
436                                 regulator-state-mem {
437                                         regulator-on-in-suspend;
438                                         regulator-suspend-microvolt = <1800000>;
439                                 };
440                         };
441
442                         vcca3v0_codec: LDO_REG1 {
443                                 regulator-always-on;
444                                 regulator-boot-on;
445                                 regulator-min-microvolt = <3000000>;
446                                 regulator-max-microvolt = <3000000>;
447                                 regulator-name = "vcca3v0_codec";
448                                 regulator-state-mem {
449                                         regulator-off-in-suspend;
450                                 };
451                         };
452
453                         vcc3v0_tp: LDO_REG2 {
454                                 regulator-always-on;
455                                 regulator-boot-on;
456                                 regulator-min-microvolt = <3000000>;
457                                 regulator-max-microvolt = <3000000>;
458                                 regulator-name = "vcc3v0_tp";
459                                 regulator-state-mem {
460                                         regulator-off-in-suspend;
461                                 };
462                         };
463
464                         vcca1v8_codec: LDO_REG3 {
465                                 regulator-always-on;
466                                 regulator-boot-on;
467                                 regulator-min-microvolt = <1800000>;
468                                 regulator-max-microvolt = <1800000>;
469                                 regulator-name = "vcca1v8_codec";
470                                 regulator-state-mem {
471                                         regulator-off-in-suspend;
472                                 };
473                         };
474
475                         vcc_power_on: LDO_REG4 {
476                                 regulator-always-on;
477                                 regulator-boot-on;
478                                 regulator-min-microvolt = <3300000>;
479                                 regulator-max-microvolt = <3300000>;
480                                 regulator-name = "vcc_power_on";
481                                 regulator-state-mem {
482                                         regulator-on-in-suspend;
483                                         regulator-suspend-microvolt = <3300000>;
484                                 };
485                         };
486
487                         vcc_3v0: LDO_REG5 {
488                                 regulator-always-on;
489                                 regulator-boot-on;
490                                 regulator-min-microvolt = <3000000>;
491                                 regulator-max-microvolt = <3000000>;
492                                 regulator-name = "vcc_3v0";
493                                 regulator-state-mem {
494                                         regulator-on-in-suspend;
495                                         regulator-suspend-microvolt = <3000000>;
496                                 };
497                         };
498
499                         vcc_1v5: LDO_REG6 {
500                                 regulator-always-on;
501                                 regulator-boot-on;
502                                 regulator-min-microvolt = <1500000>;
503                                 regulator-max-microvolt = <1500000>;
504                                 regulator-name = "vcc_1v5";
505                                 regulator-state-mem {
506                                         regulator-on-in-suspend;
507                                         regulator-suspend-microvolt = <1500000>;
508                                 };
509                         };
510
511                         vcc1v8_dvp: LDO_REG7 {
512                                 regulator-always-on;
513                                 regulator-boot-on;
514                                 regulator-min-microvolt = <1800000>;
515                                 regulator-max-microvolt = <1800000>;
516                                 regulator-name = "vcc1v8_dvp";
517                                 regulator-state-mem {
518                                         regulator-on-in-suspend;
519                                         regulator-suspend-microvolt = <1800000>;
520                                 };
521                         };
522
523                         vcc3v3_s3: LDO_REG8 {
524                                 regulator-always-on;
525                                 regulator-boot-on;
526                                 regulator-min-microvolt = <3300000>;
527                                 regulator-max-microvolt = <3300000>;
528                                 regulator-name = "vcc3v3_s3";
529                                 regulator-state-mem {
530                                         regulator-on-in-suspend;
531                                         regulator-suspend-microvolt = <3300000>;
532                                 };
533                         };
534
535                         vcc_sd: LDO_REG9 {
536                                 regulator-always-on;
537                                 regulator-boot-on;
538                                 regulator-min-microvolt = <1800000>;
539                                 regulator-max-microvolt = <3300000>;
540                                 regulator-name = "vcc_sd";
541                                 regulator-state-mem {
542                                         regulator-on-in-suspend;
543                                         regulator-suspend-microvolt = <3300000>;
544                                 };
545                         };
546
547                         vcc3v3_s0: SWITCH_REG {
548                                 regulator-always-on;
549                                 regulator-boot-on;
550                                 regulator-name = "vcc3v3_s0";
551                                 regulator-state-mem {
552                                         regulator-on-in-suspend;
553                                 };
554                         };
555                 };
556
557                 battery {
558                         compatible = "rk818-battery";
559                         ocv_table = <
560                                 3400 3599 3671 3701 3728 3746 3762
561                                 3772 3781 3792 3816 3836 3866 3910
562                                 3942 3971 4002 4050 4088 4132 4183>;
563                         design_capacity = <4000>;
564                         design_qmax = <4100>;
565                         bat_res = <100>;
566                         max_input_current = <2000>;
567                         max_chrg_current = <1800>;
568                         max_chrg_voltage = <4200>;
569                         sleep_enter_current = <300>;
570                         sleep_exit_current = <300>;
571                         power_off_thresd = <3400>;
572                         zero_algorithm_vol = <3850>;
573                         fb_temperature = <115>;
574                         sample_res = <10>;
575                         max_soc_offset = <60>;
576                         energy_mode = <0>;
577                         monitor_sec = <5>;
578                         virtual_power = <0>;
579                         power_dc2otg = <0>;
580                 };
581         };
582 };
583
584 &i2c1 {
585         status = "okay";
586         i2c-scl-rising-time-ns = <164>;
587         i2c-scl-falling-time-ns = <15>;
588
589 };
590
591 &i2c4 {
592         status = "okay";
593         i2c-scl-rising-time-ns = <345>;
594         i2c-scl-falling-time-ns = <11>;
595         clock-frequency = <400000>;
596
597         fusb0: fusb30x@22 {
598                 compatible = "fairchild,fusb302";
599                 reg = <0x22>;
600                 pinctrl-names = "default";
601                 pinctrl-0 = <&fusb0_int>;
602                 int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
603                 status = "okay";
604         };
605 };
606
607 &i2c5 {
608         status = "okay";
609 };
610
611 &spi1 {
612         status = "okay";
613         max-freq = <50000000>;
614         pinctrl-names = "default", "sleep";
615         pinctrl-1 = <&spi1_gpio>;
616 };
617
618 &threshold {
619         temperature = <70000>; /* millicelsius */
620 };
621
622 &target {
623         temperature = <85000>; /* millicelsius */
624 };
625
626 &soc_crit {
627         temperature = <100000>; /* millicelsius */
628 };
629
630 &tsadc {
631         rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
632         rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
633         rockchip,hw-tshut-temp = <110000>;
634         status = "okay";
635 };
636
637 &saradc {
638         status = "okay";
639 };
640
641 &u2phy0 {
642         extcon = <&fusb0>;
643         status = "okay";
644         rockchip,u2phy-tuning;
645
646         u2phy0_otg: otg-port {
647                 status = "okay";
648         };
649
650         u2phy0_host: host-port {
651                 phy-supply = <&vcc5v0_host>;
652                 status = "okay";
653         };
654 };
655
656 &u2phy1 {
657         status = "okay";
658         rockchip,u2phy-tuning;
659
660         u2phy1_otg: otg-port {
661                 status = "okay";
662         };
663
664         u2phy1_host: host-port {
665                 phy-supply = <&vcc5v0_host>;
666                 status = "okay";
667         };
668 };
669
670 &uart0 {
671         pinctrl-names = "default";
672         pinctrl-0 = <&uart0_xfer &uart0_cts>;
673         status = "okay";
674 };
675
676 &uart2 {
677         status = "okay";
678 };
679
680 &usb_host0_ehci {
681         status = "okay";
682 };
683
684 &usb_host0_ohci {
685         status = "okay";
686 };
687
688 &usb_host1_ehci {
689         status = "okay";
690 };
691
692 &usb_host1_ohci {
693         status = "okay";
694 };
695
696 &usbdrd3_0 {
697         extcon = <&fusb0>;
698         status = "okay";
699 };
700
701 &usbdrd_dwc3_0 {
702         status = "okay";
703 };
704
705 &usbdrd3_1 {
706         status = "okay";
707 };
708
709 &usbdrd_dwc3_1 {
710         status = "okay";
711 };
712
713 &tcphy0 {
714         status = "okay";
715         extcon = <&fusb0>;
716 };
717
718 &tcphy1 {
719         status = "okay";
720 };
721
722 &pwm0 {
723         status = "okay";
724 };
725
726 &pwm2 {
727         status = "okay";
728 };
729
730 &vdd_center {
731         rockchip,pwm_id= <3>;
732         rockchip,pwm_voltage = <900000>;
733 };
734
735 &rk_key {
736         status = "disabled";
737 };
738
739 &rk_screen {
740         #include <dt-bindings/display/screen-timing/lcd-box.dtsi>
741 };
742
743 &fb {
744         rockchip,uboot-logo-on = <0>;
745         rockchip,disp-policy = <DISPLAY_POLICY_BOX>;
746 };
747
748 /*
749  * if your hardware board have two typec port, you should define
750  * fusb1 and tcphy1, such as:
751  *&tcphy1 {
752  *      status = "okay";
753  *      extcon = <&fusb1>;
754  *};
755  *&cdn_dp_fb {
756  *      status = "okay";
757  *      extcon = <&fusb0>, <&fusb1>;
758  *      dp_vop_sel = <DISPLAY_SOURCE_LCDC0>;
759  *      dp_defaultmode = <0>;
760  *};
761  */
762 &tcphy0 {
763         status = "okay";
764         extcon = <&fusb0>;
765 };
766
767 &cdn_dp_fb {
768         status = "okay";
769         extcon = <&fusb0>;
770         dp_vop_sel = <DISPLAY_SOURCE_LCDC0>;
771         dp_defaultmode = <0>;
772 };
773
774 &cdn_dp_sound {
775          status = "disabled";
776 };
777
778 &hdmi_rk_fb {
779         status = "okay";
780         rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
781 };
782
783 &vopb_rk_fb {
784         status = "okay";
785 };
786
787 &vopl_rk_fb {
788         status = "okay";
789 };
790
791 &disp_timings {
792         native-mode = <&timing1>;
793         timing1 {
794                 screen-width = <104>;
795                 screen-hight = <52>;
796         };
797 };
798
799 &mipi0_rk_fb {
800         status = "okay";
801 };
802
803 &mipi1_rk_fb {
804         status = "okay";
805 };
806
807 &cpu_l0 {
808         cpu-supply = <&vdd_cpu_l>;
809 };
810
811 &cpu_l1 {
812         cpu-supply = <&vdd_cpu_l>;
813 };
814
815 &cpu_l2 {
816         cpu-supply = <&vdd_cpu_l>;
817 };
818
819 &cpu_l3 {
820         cpu-supply = <&vdd_cpu_l>;
821 };
822
823 &cpu_b0 {
824         cpu-supply = <&vdd_cpu_b>;
825 };
826
827 &cpu_b1 {
828         cpu-supply = <&vdd_cpu_b>;
829 };
830
831 &gpu {
832         status = "okay";
833         mali-supply = <&vdd_gpu>;
834 };
835
836 /*
837  * if the screen of vr helmet has a high screen resolution or
838  * high refresh rate, please increase the lowest gpu(gpu_opp_table)
839  * and cpu(cluster1_opp) frequence.
840  */
841 &gpu_opp_table {
842         opp@200000000 {
843                 status = "disabled";
844         };
845         opp@297000000 {
846                 status = "disabled";
847         };
848 };
849
850 &cluster1_opp {
851         opp@408000000 {
852                 status = "disabled";
853         };
854         opp@600000000 {
855                 status = "disabled";
856         };
857         opp@816000000 {
858                 status = "disabled";
859         };
860 };
861
862 &pinctrl {
863         sdio-pwrseq {
864                 wifi_enable_h: wifi-enable-h {
865                         rockchip,pins = <0 10 RK_FUNC_GPIO &pcfg_pull_none>;
866                 };
867         };
868
869         wireless-bluetooth {
870                 uart0_gpios: uart0-gpios {
871                         rockchip,pins = <2 19 RK_FUNC_GPIO &pcfg_pull_none>;
872                 };
873         };
874
875         pmic {
876                 pmic_int_l: pmic-int-l {
877                         rockchip,pins =
878                                 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
879                 };
880
881                 pmic_dvs2: pmic-dvs2 {
882                         rockchip,pins =
883                                 <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
884                 };
885
886                 vsel1_gpio: vsel1-gpio {
887                         rockchip,pins =
888                                 <1 17 RK_FUNC_GPIO &pcfg_pull_down>;
889                 };
890
891                 vsel2_gpio: vsel2-gpio {
892                         rockchip,pins =
893                                 <1 14 RK_FUNC_GPIO &pcfg_pull_down>;
894                 };
895         };
896
897         usb2 {
898                 host_vbus_drv: host-vbus-drv {
899                         rockchip,pins =
900                                 <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
901                 };
902         };
903
904         spi1 {
905                 spi1_gpio: spi1-gpio {
906                         rockchip,pins =
907                                 <1 7 RK_FUNC_GPIO &pcfg_output_low>,
908                                 <1 8 RK_FUNC_GPIO &pcfg_output_low>,
909                                 <1 9 RK_FUNC_GPIO &pcfg_output_low>,
910                                 <1 10 RK_FUNC_GPIO &pcfg_output_low>;
911                 };
912         };
913
914         fusb30x {
915                 fusb0_int: fusb0-int {
916                         rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>;
917                 };
918         };
919
920         headphone {
921                 hp_det: hp-det {
922                         rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_up>;
923                 };
924         };
925 };
926
927 &pvtm {
928         status = "okay";
929 };
930
931 &pmu_pvtm {
932         status = "okay";
933 };
934
935 &pmu_io_domains {
936         status = "okay";
937         pmu1830-supply = <&vcc_1v8>;
938 };
939