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