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