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