dd68b23cc642e9edcb8641b08dbff994356d415c
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-box-808-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
45 #include <dt-bindings/pwm/pwm.h>
46 #include <dt-bindings/input/input.h>
47 #include "rk3399.dtsi"
48 #include "rk3399-android.dtsi"
49
50 / {
51         model = "Rockchip RK3399 Box Board v1 (Android)";
52         compatible = "rockchip,rk3399";
53
54         vcc1v8_s0: vcc1v8-s0 {
55                 compatible = "regulator-fixed";
56                 regulator-name = "vcc1v8_s0";
57                 regulator-min-microvolt = <1800000>;
58                 regulator-max-microvolt = <1800000>;
59                 regulator-always-on;
60         };
61
62         vcc_sys: vcc-sys {
63                 compatible = "regulator-fixed";
64                 regulator-name = "vcc_sys";
65                 regulator-min-microvolt = <5000000>;
66                 regulator-max-microvolt = <5000000>;
67                 regulator-always-on;
68         };
69
70         vcc_phy: vcc-phy-regulator {
71                 compatible = "regulator-fixed";
72                 regulator-name = "vcc_phy";
73                 regulator-always-on;
74                 regulator-boot-on;
75         };
76
77         vcc3v3_sys: vcc3v3-sys {
78                 compatible = "regulator-fixed";
79                 regulator-name = "vcc3v3_sys";
80                 regulator-min-microvolt = <3300000>;
81                 regulator-max-microvolt = <3300000>;
82                 regulator-always-on;
83                 vin-supply = <&vcc_sys>;
84         };
85
86         vcc5v0_host: vcc5v0-host-regulator {
87                 compatible = "regulator-fixed";
88                 enable-active-high;
89                 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
90                 pinctrl-names = "default";
91                 pinctrl-0 = <&host_vbus_drv>;
92                 regulator-name = "vcc5v0_host";
93         };
94
95         vdd_center: vdd-center {
96                 compatible = "pwm-regulator";
97                 pwms = <&pwm2 0 25000 0>;
98                 regulator-name = "vdd_center";
99                 regulator-min-microvolt = <800000>;
100                 regulator-max-microvolt = <1400000>;
101                 regulator-always-on;
102                 regulator-boot-on;
103
104                 /* for rockchip boot on */
105                 rockchip,pwm_id= <2>;
106                 rockchip,pwm_voltage = <900000>;
107
108                 vin-supply = <&vcc_sys>;
109         };
110
111         clkin_gmac: external-gmac-clock {
112                 compatible = "fixed-clock";
113                 clock-frequency = <125000000>;
114                 clock-output-names = "clkin_gmac";
115                 #clock-cells = <0>;
116         };
117
118         spdif-sound {
119                 status = "okay";
120                 compatible = "simple-audio-card";
121                 simple-audio-card,name = "ROCKCHIP,SPDIF";
122                 simple-audio-card,cpu {
123                         sound-dai = <&spdif>;
124                 };
125                 simple-audio-card,codec {
126                         sound-dai = <&spdif_out>;
127                 };
128         };
129
130         spdif_out: spdif-out {
131                 status = "okay";
132                 compatible = "linux,spdif-dit";
133                 #sound-dai-cells = <0>;
134         };
135
136         hdmi_sound: hdmi-sound {
137                 status = "okay";
138                 compatible = "simple-audio-card";
139                 simple-audio-card,format = "i2s";
140                 simple-audio-card,mclk-fs = <256>;
141                 simple-audio-card,name = "rockchip,hdmi";
142                 simple-audio-card,cpu {
143                         sound-dai = <&i2s2>;
144                 };
145                 simple-audio-card,codec {
146                         sound-dai = <&dw_hdmi_audio>;
147                 };
148         };
149
150         dw_hdmi_audio: dw-hdmi-audio {
151                 status = "okay";
152                 compatible = "rockchip,dw-hdmi-audio";
153                 #sound-dai-cells = <0>;
154         };
155
156         sdio_pwrseq: sdio-pwrseq {
157                 compatible = "mmc-pwrseq-simple";
158                 clocks = <&rk808 1>;
159                 clock-names = "ext_clock";
160                 pinctrl-names = "default";
161                 pinctrl-0 = <&wifi_enable_h>;
162
163                 /*
164                  * On the module itself this is one of these (depending
165                  * on the actual card populated):
166                  * - SDIO_RESET_L_WL_REG_ON
167                  * - PDN (power down when low)
168                  */
169                 reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
170         };
171
172         wireless-wlan {
173                 compatible = "wlan-platdata";
174                 rockchip,grf = <&grf>;
175                 wifi_chip_type = "ap6354";
176                 sdio_vref = <1800>;
177                 WIFI,host_wake_irq = <&gpio0 3 GPIO_ACTIVE_HIGH>;
178                 status = "okay";
179         };
180
181         wireless-bluetooth {
182                 compatible = "bluetooth-platdata";
183                 /* wifi-bt-power-toggle; */
184                 uart_rts_gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
185                 pinctrl-names = "default", "rts_gpio";
186                 pinctrl-0 = <&uart0_rts>;
187                 pinctrl-1 = <&uart0_gpios>;
188                 /* BT,power_gpio  = <&gpio3 19 GPIO_ACTIVE_HIGH>; */
189                 BT,reset_gpio    = <&gpio0 9 GPIO_ACTIVE_HIGH>;
190                 BT,wake_gpio     = <&gpio2 26 GPIO_ACTIVE_HIGH>;
191                 BT,wake_host_irq = <&gpio0 4 GPIO_ACTIVE_HIGH>;
192                 status = "okay";
193         };
194 };
195
196 &io_domains {
197         status = "okay";
198
199         bt656-supply = <&vcc1v8_s0>; /* bt656_gpio2ab_ms */
200         audio-supply = <&vcc1v8_s0>; /* audio_gpio3d4a_ms */
201         sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
202         gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
203 };
204
205 &sdmmc {
206         clock-frequency = <150000000>;
207         clock-freq-min-max = <400000 150000000>;
208         supports-sd;
209         bus-width = <4>;
210         cap-mmc-highspeed;
211         cap-sd-highspeed;
212         disable-wp;
213         num-slots = <1>;
214         sd-uhs-sdr104;
215         vqmmc-supply = <&vcc_sd>;
216         pinctrl-names = "default";
217         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
218         status = "okay";
219 };
220
221 &sdio0 {
222         clock-frequency = <140000000>;
223         clock-freq-min-max = <200000 140000000>;
224         supports-sdio;
225         bus-width = <4>;
226         disable-wp;
227         cap-sd-highspeed;
228         cap-sdio-irq;
229         keep-power-in-suspend;
230         mmc-pwrseq = <&sdio_pwrseq>;
231         non-removable;
232         num-slots = <1>;
233         pinctrl-names = "default";
234         pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
235         sd-uhs-sdr104;
236         status = "okay";
237 };
238
239 &emmc_phy {
240         freq-sel = <200000000>;
241         dr-sel = <50>;
242         opdelay = <4>;
243         status = "okay";
244 };
245
246 &sdhci {
247         bus-width = <8>;
248         mmc-hs400-1_8v;
249         supports-emmc;
250         non-removable;
251         mmc-hs400-enhanced-strobe;
252         status = "okay";
253 };
254
255 &i2s0 {
256         status = "okay";
257         rockchip,i2s-broken-burst-len;
258         rockchip,playback-channels = <8>;
259         rockchip,capture-channels = <8>;
260         #sound-dai-cells = <0>;
261 };
262
263 &i2s2 {
264         #sound-dai-cells = <0>;
265 };
266
267 &spdif {
268         pinctrl-0 = <&spdif_bus_1>;
269         status = "okay";
270         #sound-dai-cells = <0>;
271 };
272
273 &i2c0 {
274         status = "okay";
275         i2c-scl-rising-time-ns = <168>;
276         i2c-scl-falling-time-ns = <4>;
277         clock-frequency = <400000>;
278
279         vdd_cpu_b: syr827@40 {
280                 compatible = "silergy,syr827";
281                 reg = <0x40>;
282                 regulator-compatible = "fan53555-reg";
283                 regulator-name = "vdd_cpu_b";
284                 regulator-min-microvolt = <712500>;
285                 regulator-max-microvolt = <1500000>;
286                 regulator-ramp-delay = <1000>;
287                 fcs,suspend-voltage-selector = <1>;
288                 regulator-always-on;
289                 regulator-boot-on;
290                 regulator-initial-state = <3>;
291                 vin-supply = <&vcc_sys>;
292                 regulator-state-mem {
293                         regulator-off-in-suspend;
294                 };
295         };
296
297         vdd_gpu: syr828@41 {
298                 compatible = "silergy,syr828";
299                 reg = <0x41>;
300                 regulator-compatible = "fan53555-reg";
301                 regulator-name = "vdd_gpu";
302                 regulator-min-microvolt = <735000>;
303                 regulator-max-microvolt = <1400000>;
304                 regulator-ramp-delay = <1000>;
305                 fcs,suspend-voltage-selector = <1>;
306                 regulator-always-on;
307                 regulator-boot-on;
308                 vin-supply = <&vcc_sys>;
309                 regulator-state-mem {
310                         regulator-off-in-suspend;
311                 };
312         };
313
314         rk808: pmic@1b {
315                 compatible = "rockchip,rk808";
316                 reg = <0x1b>;
317                 interrupt-parent = <&gpio1>;
318                 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
319                 pinctrl-names = "default";
320                 pinctrl-0 = <&pmic_int_l>;
321                 rockchip,system-power-controller;
322                 wakeup-source;
323                 #clock-cells = <1>;
324                 clock-output-names = "xin32k", "rk808-clkout2";
325
326                 vcc1-supply = <&vcc_sys>;
327                 vcc2-supply = <&vcc_sys>;
328                 vcc3-supply = <&vcc_sys>;
329                 vcc4-supply = <&vcc_sys>;
330                 vcc6-supply = <&vcc_sys>;
331                 vcc7-supply = <&vcc_sys>;
332                 vcc8-supply = <&vcc3v3_sys>;
333                 vcc9-supply = <&vcc_sys>;
334                 vcc10-supply = <&vcc_sys>;
335                 vcc11-supply = <&vcc_sys>;
336                 vcc12-supply = <&vcc3v3_sys>;
337                 vddio-supply = <&vcc_1v8>;
338
339                 regulators {
340                         vdd_log: DCDC_REG1 {
341                                 regulator-name = "vdd_log";
342                                 regulator-min-microvolt = <750000>;
343                                 regulator-max-microvolt = <1350000>;
344                                 regulator-ramp-delay = <6001>;
345                                 regulator-always-on;
346                                 regulator-boot-on;
347                                 regulator-state-mem {
348                                         regulator-on-in-suspend;
349                                         regulator-suspend-microvolt = <900000>;
350                                 };
351                         };
352
353                         vdd_cpu_l: DCDC_REG2 {
354                                 regulator-name = "vdd_cpu_l";
355                                 regulator-min-microvolt = <750000>;
356                                 regulator-max-microvolt = <1350000>;
357                                 regulator-ramp-delay = <6001>;
358                                 regulator-always-on;
359                                 regulator-boot-on;
360                                 regulator-state-mem {
361                                         regulator-off-in-suspend;
362                                 };
363                         };
364
365                         vcc_ddr: DCDC_REG3 {
366                                 regulator-name = "vcc_ddr";
367                                 regulator-always-on;
368                                 regulator-boot-on;
369                                 regulator-state-mem {
370                                         regulator-on-in-suspend;
371                                 };
372                         };
373
374                         vcc_1v8: DCDC_REG4 {
375                                 regulator-name = "vcc_1v8";
376                                 regulator-min-microvolt = <1800000>;
377                                 regulator-max-microvolt = <1800000>;
378                                 regulator-always-on;
379                                 regulator-boot-on;
380                                 regulator-state-mem {
381                                         regulator-on-in-suspend;
382                                         regulator-suspend-microvolt = <1800000>;
383                                 };
384                         };
385
386                         vcc1v8_dvp: LDO_REG1 {
387                                 regulator-name = "vcc1v8_dvp";
388                                 regulator-min-microvolt = <1800000>;
389                                 regulator-max-microvolt = <1800000>;
390                                 regulator-always-on;
391                                 regulator-boot-on;
392                                 regulator-state-mem {
393                                         regulator-on-in-suspend;
394                                         regulator-suspend-microvolt = <1800000>;
395                                 };
396                         };
397
398                         vcc3v0_tp: LDO_REG2 {
399                                 regulator-name = "vcc3v0_tp";
400                                 regulator-min-microvolt = <3000000>;
401                                 regulator-max-microvolt = <3000000>;
402                                 regulator-always-on;
403                                 regulator-boot-on;
404                                 regulator-state-mem {
405                                         regulator-off-in-suspend;
406                                 };
407                         };
408
409                         vcc1v8_pll: LDO_REG3 {
410                                 regulator-name = "vcc1v8_pll";
411                                 regulator-min-microvolt = <1800000>;
412                                 regulator-max-microvolt = <1800000>;
413                                 regulator-always-on;
414                                 regulator-boot-on;
415                                 regulator-state-mem {
416                                         regulator-on-in-suspend;
417                                         regulator-suspend-microvolt = <1800000>;
418                                 };
419                         };
420
421                         vcc_sd: LDO_REG4 {
422                                 regulator-name = "vcc_sd";
423                                 regulator-min-microvolt = <1800000>;
424                                 regulator-max-microvolt = <3300000>;
425                                 regulator-always-on;
426                                 regulator-boot-on;
427                                 regulator-state-mem {
428                                         regulator-on-in-suspend;
429                                         regulator-suspend-microvolt = <3300000>;
430                                 };
431                         };
432
433                         vcc3v0_sd: LDO_REG5 {
434                                 regulator-name = "vcc3v0_sd";
435                                 regulator-min-microvolt = <3000000>;
436                                 regulator-max-microvolt = <3000000>;
437                                 regulator-always-on;
438                                 regulator-boot-on;
439                                 regulator-state-mem {
440                                         regulator-on-in-suspend;
441                                         regulator-suspend-microvolt = <3000000>;
442                                 };
443                         };
444
445                         vcc_1v5: LDO_REG6 {
446                                 regulator-name = "vcc_1v5";
447                                 regulator-min-microvolt = <1500000>;
448                                 regulator-max-microvolt = <1500000>;
449                                 regulator-always-on;
450                                 regulator-boot-on;
451                                 regulator-state-mem {
452                                         regulator-on-in-suspend;
453                                         regulator-suspend-microvolt = <1500000>;
454                                 };
455                         };
456
457                         vcc_0v9a: LDO_REG7 {
458                                 regulator-name = "vcc_0v9a";
459                                 regulator-min-microvolt = <900000>;
460                                 regulator-max-microvolt = <900000>;
461                                 regulator-always-on;
462                                 regulator-boot-on;
463                                 regulator-state-mem {
464                                         regulator-on-in-suspend;
465                                         regulator-suspend-microvolt = <900000>;
466                                 };
467                         };
468
469                         vcc_3v0: LDO_REG8 {
470                                 regulator-name = "vcc_3v0";
471                                 regulator-min-microvolt = <3000000>;
472                                 regulator-max-microvolt = <3000000>;
473                                 regulator-always-on;
474                                 regulator-boot-on;
475                                 regulator-state-mem {
476                                         regulator-on-in-suspend;
477                                         regulator-suspend-microvolt = <3000000>;
478                                 };
479                         };
480
481                         vcc3v3_s3: SWITCH_REG1 {
482                                 regulator-name = "vcc3v3_s3";
483                                 regulator-always-on;
484                                 regulator-boot-on;
485                                 regulator-state-mem {
486                                         regulator-on-in-suspend;
487                                 };
488                         };
489
490                         vcc3v3_s0: SWITCH_REG2 {
491                                 regulator-name = "vcc3v3_s0";
492                                 regulator-always-on;
493                                 regulator-boot-on;
494                                 regulator-state-mem {
495                                         regulator-on-in-suspend;
496                                 };
497                         };
498                 };
499         };
500 };
501
502 &cpu_l0 {
503         cpu-supply = <&vdd_cpu_l>;
504 };
505
506 &cpu_l1 {
507         cpu-supply = <&vdd_cpu_l>;
508 };
509
510 &cpu_l2 {
511         cpu-supply = <&vdd_cpu_l>;
512 };
513
514 &cpu_l3 {
515         cpu-supply = <&vdd_cpu_l>;
516 };
517
518 &cpu_b0 {
519         cpu-supply = <&vdd_cpu_b>;
520 };
521
522 &cpu_b1 {
523         cpu-supply = <&vdd_cpu_b>;
524 };
525
526 &gpu {
527         status = "okay";
528         mali-supply = <&vdd_gpu>;
529 };
530
531 &rga {
532         status = "okay";
533 };
534
535 &tsadc {
536         /* tshut mode 0:CRU 1:GPIO */
537         rockchip,hw-tshut-mode = <1>;
538         /* tshut polarity 0:LOW 1:HIGH */
539         rockchip,hw-tshut-polarity = <1>;
540         status = "okay";
541 };
542
543 &u2phy0 {
544         status = "okay";
545
546         u2phy0_otg: otg-port {
547                 status = "okay";
548         };
549
550         u2phy0_host: host-port {
551                 phy-supply = <&vcc5v0_host>;
552                 status = "okay";
553         };
554 };
555
556 &u2phy1 {
557         status = "okay";
558
559         u2phy1_otg: otg-port {
560                 status = "okay";
561         };
562
563         u2phy1_host: host-port {
564                 phy-supply = <&vcc5v0_host>;
565                 status = "okay";
566         };
567 };
568
569 &uart0 {
570         pinctrl-names = "default";
571         pinctrl-0 = <&uart0_xfer &uart0_cts>;
572         status = "okay";
573 };
574
575 &uart2 {
576         status = "okay";
577 };
578
579 &usb_host0_ehci {
580         status = "okay";
581 };
582
583 &usb_host0_ohci {
584         status = "okay";
585 };
586
587 &usb_host1_ehci {
588         status = "okay";
589 };
590
591 &usb_host1_ohci {
592         status = "okay";
593 };
594
595 &usbdrd3_0 {
596         status = "okay";
597 };
598
599 &usbdrd_dwc3_0 {
600         dr_mode = "otg";
601         status = "okay";
602 };
603
604 &usbdrd3_1 {
605         status = "okay";
606 };
607
608 &usbdrd_dwc3_1 {
609         dr_mode = "host";
610         status = "okay";
611 };
612
613 &pwm2 {
614         status = "okay";
615 };
616
617 &pwm3 {
618         status = "disabled";
619
620         interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>;
621         compatible = "rockchip,remotectl-pwm";
622         remote_pwm_id = <3>;
623         handle_cpu_id = <0>;
624
625         ir_key1 {
626                 rockchip,usercode = <0x4040>;
627                 rockchip,key_table =
628                         <0xf2   KEY_REPLY>,
629                         <0xba   KEY_BACK>,
630                         <0xf4   KEY_UP>,
631                         <0xf1   KEY_DOWN>,
632                         <0xef   KEY_LEFT>,
633                         <0xee   KEY_RIGHT>,
634                         <0xbd   KEY_HOME>,
635                         <0xea   KEY_VOLUMEUP>,
636                         <0xe3   KEY_VOLUMEDOWN>,
637                         <0xe2   KEY_SEARCH>,
638                         <0xb2   KEY_POWER>,
639                         <0xbc   KEY_MUTE>,
640                         <0xec   KEY_MENU>,
641                         <0xbf   0x190>,
642                         <0xe0   0x191>,
643                         <0xe1   0x192>,
644                         <0xe9   183>,
645                         <0xe6   248>,
646                         <0xe8   185>,
647                         <0xe7   186>,
648                         <0xf0   388>,
649                         <0xbe   0x175>;
650         };
651
652         ir_key2 {
653                 rockchip,usercode = <0xff00>;
654                 rockchip,key_table =
655                         <0xf9   KEY_HOME>,
656                         <0xbf   KEY_BACK>,
657                         <0xfb   KEY_MENU>,
658                         <0xaa   KEY_REPLY>,
659                         <0xb9   KEY_UP>,
660                         <0xe9   KEY_DOWN>,
661                         <0xb8   KEY_LEFT>,
662                         <0xea   KEY_RIGHT>,
663                         <0xeb   KEY_VOLUMEDOWN>,
664                         <0xef   KEY_VOLUMEUP>,
665                         <0xf7   KEY_MUTE>,
666                         <0xe7   KEY_POWER>,
667                         <0xfc   KEY_POWER>,
668                         <0xa9   KEY_VOLUMEDOWN>,
669                         <0xa8   KEY_VOLUMEDOWN>,
670                         <0xe0   KEY_VOLUMEDOWN>,
671                         <0xa5   KEY_VOLUMEDOWN>,
672                         <0xab   183>,
673                         <0xb7   388>,
674                         <0xf8   184>,
675                         <0xaf   185>,
676                         <0xed   KEY_VOLUMEDOWN>,
677                         <0xee   186>,
678                         <0xb3   KEY_VOLUMEDOWN>,
679                         <0xf1   KEY_VOLUMEDOWN>,
680                         <0xf2   KEY_VOLUMEDOWN>,
681                         <0xf3   KEY_SEARCH>,
682                         <0xb4   KEY_VOLUMEDOWN>,
683                         <0xbe   KEY_SEARCH>;
684         };
685
686         ir_key3 {
687                 rockchip,usercode = <0x1dcc>;
688                 rockchip,key_table =
689                         <0xee   KEY_REPLY>,
690                         <0xf0   KEY_BACK>,
691                         <0xf8   KEY_UP>,
692                         <0xbb   KEY_DOWN>,
693                         <0xef   KEY_LEFT>,
694                         <0xed   KEY_RIGHT>,
695                         <0xfc   KEY_HOME>,
696                         <0xf1   KEY_VOLUMEUP>,
697                         <0xfd   KEY_VOLUMEDOWN>,
698                         <0xb7   KEY_SEARCH>,
699                         <0xff   KEY_POWER>,
700                         <0xf3   KEY_MUTE>,
701                         <0xbf   KEY_MENU>,
702                         <0xf9   0x191>,
703                         <0xf5   0x192>,
704                         <0xb3   388>,
705                         <0xbe   KEY_1>,
706                         <0xba   KEY_2>,
707                         <0xb2   KEY_3>,
708                         <0xbd   KEY_4>,
709                         <0xf9   KEY_5>,
710                         <0xb1   KEY_6>,
711                         <0xfc   KEY_7>,
712                         <0xf8   KEY_8>,
713                         <0xb0   KEY_9>,
714                         <0xb6   KEY_0>,
715                         <0xb5   KEY_BACKSPACE>;
716         };
717 };
718
719 &gmac {
720         phy-supply = <&vcc_phy>;
721         phy-mode = "rgmii";
722         clock_in_out = "input";
723         snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
724         snps,reset-active-low;
725         snps,reset-delays-us = <0 10000 50000>;
726         assigned-clocks = <&cru SCLK_RMII_SRC>;
727         assigned-clock-parents = <&clkin_gmac>;
728         pinctrl-names = "default";
729         pinctrl-0 = <&rgmii_pins>;
730         tx_delay = <0x28>;
731         rx_delay = <0x11>;
732         status = "okay";
733 };
734
735 &saradc {
736         status = "okay";
737 };
738
739 &pinctrl {
740         sdio-pwrseq {
741                 wifi_enable_h: wifi-enable-h {
742                         rockchip,pins = <0 10 RK_FUNC_GPIO &pcfg_pull_none>;
743                 };
744         };
745
746         wireless-bluetooth {
747                 uart0_gpios: uart0-gpios {
748                         rockchip,pins = <2 19 RK_FUNC_GPIO &pcfg_pull_none>;
749                 };
750         };
751
752         pmic {
753                 pmic_int_l: pmic-int-l {
754                         rockchip,pins =
755                                 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
756                 };
757         };
758
759         usb2 {
760                 host_vbus_drv: host-vbus-drv {
761                         rockchip,pins =
762                                 <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
763                 };
764         };
765 };
766
767 &rk_screen {
768         #include <dt-bindings/display/screen-timing/lcd-box.dtsi>
769 };
770
771 &vopb_rk_fb {
772         status = "okay";
773 };
774
775 &fb {
776         rockchip,disp-mode = <NO_DUAL>;
777         rockchip,disp-policy = <DISPLAY_POLICY_BOX>;
778 };
779
780 &hdmi_rk_fb {
781         status = "okay";
782         rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC0>;
783 };
784
785 &i2s2 {
786         status = "okay";
787 };
788
789 &pmu_io_domains {
790         status = "okay";
791         pmu1830-supply = <&vcc_1v8>;
792 };
793