arm64: dts: rockchip: rk3328: Use new define for RK3328 pins
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-box-808-android-6.0.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-6.0.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 1>;
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         status = "okay";
242 };
243
244 &sdhci {
245         bus-width = <8>;
246         mmc-hs400-1_8v;
247         supports-emmc;
248         non-removable;
249         mmc-hs400-enhanced-strobe;
250         status = "okay";
251 };
252
253 &i2s0 {
254         status = "okay";
255         rockchip,i2s-broken-burst-len;
256         rockchip,playback-channels = <8>;
257         rockchip,capture-channels = <8>;
258         #sound-dai-cells = <0>;
259 };
260
261 &i2s2 {
262         #sound-dai-cells = <0>;
263 };
264
265 &spdif {
266         pinctrl-0 = <&spdif_bus_1>;
267         status = "okay";
268         #sound-dai-cells = <0>;
269 };
270
271 &i2c0 {
272         status = "okay";
273         i2c-scl-rising-time-ns = <168>;
274         i2c-scl-falling-time-ns = <4>;
275         clock-frequency = <400000>;
276
277         vdd_cpu_b: syr827@40 {
278                 compatible = "silergy,syr827";
279                 reg = <0x40>;
280                 regulator-compatible = "fan53555-reg";
281                 regulator-name = "vdd_cpu_b";
282                 regulator-min-microvolt = <712500>;
283                 regulator-max-microvolt = <1500000>;
284                 regulator-ramp-delay = <1000>;
285                 fcs,suspend-voltage-selector = <1>;
286                 regulator-always-on;
287                 regulator-boot-on;
288                 regulator-initial-state = <3>;
289                 vin-supply = <&vcc_sys>;
290                 regulator-state-mem {
291                         regulator-off-in-suspend;
292                 };
293         };
294
295         vdd_gpu: syr828@41 {
296                 compatible = "silergy,syr828";
297                 reg = <0x41>;
298                 regulator-compatible = "fan53555-reg";
299                 regulator-name = "vdd_gpu";
300                 regulator-min-microvolt = <735000>;
301                 regulator-max-microvolt = <1400000>;
302                 regulator-ramp-delay = <1000>;
303                 fcs,suspend-voltage-selector = <1>;
304                 regulator-always-on;
305                 regulator-boot-on;
306                 vin-supply = <&vcc_sys>;
307                 regulator-state-mem {
308                         regulator-off-in-suspend;
309                 };
310         };
311
312         rk808: pmic@1b {
313                 compatible = "rockchip,rk808";
314                 reg = <0x1b>;
315                 interrupt-parent = <&gpio1>;
316                 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
317                 pinctrl-names = "default";
318                 pinctrl-0 = <&pmic_int_l>;
319                 rockchip,system-power-controller;
320                 wakeup-source;
321                 #clock-cells = <1>;
322                 clock-output-names = "xin32k", "rk808-clkout2";
323
324                 vcc1-supply = <&vcc_sys>;
325                 vcc2-supply = <&vcc_sys>;
326                 vcc3-supply = <&vcc_sys>;
327                 vcc4-supply = <&vcc_sys>;
328                 vcc6-supply = <&vcc_sys>;
329                 vcc7-supply = <&vcc_sys>;
330                 vcc8-supply = <&vcc3v3_sys>;
331                 vcc9-supply = <&vcc_sys>;
332                 vcc10-supply = <&vcc_sys>;
333                 vcc11-supply = <&vcc_sys>;
334                 vcc12-supply = <&vcc3v3_sys>;
335                 vddio-supply = <&vcc_1v8>;
336
337                 regulators {
338                         vdd_log: DCDC_REG1 {
339                                 regulator-name = "vdd_log";
340                                 regulator-min-microvolt = <750000>;
341                                 regulator-max-microvolt = <1350000>;
342                                 regulator-ramp-delay = <6001>;
343                                 regulator-always-on;
344                                 regulator-boot-on;
345                                 regulator-state-mem {
346                                         regulator-on-in-suspend;
347                                         regulator-suspend-microvolt = <900000>;
348                                 };
349                         };
350
351                         vdd_cpu_l: DCDC_REG2 {
352                                 regulator-name = "vdd_cpu_l";
353                                 regulator-min-microvolt = <750000>;
354                                 regulator-max-microvolt = <1350000>;
355                                 regulator-ramp-delay = <6001>;
356                                 regulator-always-on;
357                                 regulator-boot-on;
358                                 regulator-state-mem {
359                                         regulator-off-in-suspend;
360                                 };
361                         };
362
363                         vcc_ddr: DCDC_REG3 {
364                                 regulator-name = "vcc_ddr";
365                                 regulator-always-on;
366                                 regulator-boot-on;
367                                 regulator-state-mem {
368                                         regulator-on-in-suspend;
369                                 };
370                         };
371
372                         vcc_1v8: DCDC_REG4 {
373                                 regulator-name = "vcc_1v8";
374                                 regulator-min-microvolt = <1800000>;
375                                 regulator-max-microvolt = <1800000>;
376                                 regulator-always-on;
377                                 regulator-boot-on;
378                                 regulator-state-mem {
379                                         regulator-on-in-suspend;
380                                         regulator-suspend-microvolt = <1800000>;
381                                 };
382                         };
383
384                         vcc1v8_dvp: LDO_REG1 {
385                                 regulator-name = "vcc1v8_dvp";
386                                 regulator-min-microvolt = <1800000>;
387                                 regulator-max-microvolt = <1800000>;
388                                 regulator-always-on;
389                                 regulator-boot-on;
390                                 regulator-state-mem {
391                                         regulator-on-in-suspend;
392                                         regulator-suspend-microvolt = <1800000>;
393                                 };
394                         };
395
396                         vcc3v0_tp: LDO_REG2 {
397                                 regulator-name = "vcc3v0_tp";
398                                 regulator-min-microvolt = <3000000>;
399                                 regulator-max-microvolt = <3000000>;
400                                 regulator-always-on;
401                                 regulator-boot-on;
402                                 regulator-state-mem {
403                                         regulator-off-in-suspend;
404                                 };
405                         };
406
407                         vcc1v8_pll: LDO_REG3 {
408                                 regulator-name = "vcc1v8_pll";
409                                 regulator-min-microvolt = <1800000>;
410                                 regulator-max-microvolt = <1800000>;
411                                 regulator-always-on;
412                                 regulator-boot-on;
413                                 regulator-state-mem {
414                                         regulator-on-in-suspend;
415                                         regulator-suspend-microvolt = <1800000>;
416                                 };
417                         };
418
419                         vcc_sd: LDO_REG4 {
420                                 regulator-name = "vcc_sd";
421                                 regulator-min-microvolt = <1800000>;
422                                 regulator-max-microvolt = <3300000>;
423                                 regulator-always-on;
424                                 regulator-boot-on;
425                                 regulator-state-mem {
426                                         regulator-on-in-suspend;
427                                         regulator-suspend-microvolt = <3300000>;
428                                 };
429                         };
430
431                         vcc3v0_sd: LDO_REG5 {
432                                 regulator-name = "vcc3v0_sd";
433                                 regulator-min-microvolt = <3000000>;
434                                 regulator-max-microvolt = <3000000>;
435                                 regulator-always-on;
436                                 regulator-boot-on;
437                                 regulator-state-mem {
438                                         regulator-on-in-suspend;
439                                         regulator-suspend-microvolt = <3000000>;
440                                 };
441                         };
442
443                         vcc_1v5: LDO_REG6 {
444                                 regulator-name = "vcc_1v5";
445                                 regulator-min-microvolt = <1500000>;
446                                 regulator-max-microvolt = <1500000>;
447                                 regulator-always-on;
448                                 regulator-boot-on;
449                                 regulator-state-mem {
450                                         regulator-on-in-suspend;
451                                         regulator-suspend-microvolt = <1500000>;
452                                 };
453                         };
454
455                         vcc_0v9a: LDO_REG7 {
456                                 regulator-name = "vcc_0v9a";
457                                 regulator-min-microvolt = <900000>;
458                                 regulator-max-microvolt = <900000>;
459                                 regulator-always-on;
460                                 regulator-boot-on;
461                                 regulator-state-mem {
462                                         regulator-on-in-suspend;
463                                         regulator-suspend-microvolt = <900000>;
464                                 };
465                         };
466
467                         vcc_3v0: LDO_REG8 {
468                                 regulator-name = "vcc_3v0";
469                                 regulator-min-microvolt = <3000000>;
470                                 regulator-max-microvolt = <3000000>;
471                                 regulator-always-on;
472                                 regulator-boot-on;
473                                 regulator-state-mem {
474                                         regulator-on-in-suspend;
475                                         regulator-suspend-microvolt = <3000000>;
476                                 };
477                         };
478
479                         vcc3v3_s3: SWITCH_REG1 {
480                                 regulator-name = "vcc3v3_s3";
481                                 regulator-always-on;
482                                 regulator-boot-on;
483                                 regulator-state-mem {
484                                         regulator-on-in-suspend;
485                                 };
486                         };
487
488                         vcc3v3_s0: SWITCH_REG2 {
489                                 regulator-name = "vcc3v3_s0";
490                                 regulator-always-on;
491                                 regulator-boot-on;
492                                 regulator-state-mem {
493                                         regulator-on-in-suspend;
494                                 };
495                         };
496                 };
497         };
498 };
499
500 &cpu_l0 {
501         cpu-supply = <&vdd_cpu_l>;
502 };
503
504 &cpu_l1 {
505         cpu-supply = <&vdd_cpu_l>;
506 };
507
508 &cpu_l2 {
509         cpu-supply = <&vdd_cpu_l>;
510 };
511
512 &cpu_l3 {
513         cpu-supply = <&vdd_cpu_l>;
514 };
515
516 &cpu_b0 {
517         cpu-supply = <&vdd_cpu_b>;
518 };
519
520 &cpu_b1 {
521         cpu-supply = <&vdd_cpu_b>;
522 };
523
524 &gpu {
525         status = "okay";
526         mali-supply = <&vdd_gpu>;
527 };
528
529 &tsadc {
530         /* tshut mode 0:CRU 1:GPIO */
531         rockchip,hw-tshut-mode = <1>;
532         /* tshut polarity 0:LOW 1:HIGH */
533         rockchip,hw-tshut-polarity = <1>;
534         status = "okay";
535 };
536
537 &u2phy0 {
538         status = "okay";
539
540         u2phy0_otg: otg-port {
541                 status = "okay";
542         };
543
544         u2phy0_host: host-port {
545                 phy-supply = <&vcc5v0_host>;
546                 status = "okay";
547         };
548 };
549
550 &u2phy1 {
551         status = "okay";
552
553         u2phy1_otg: otg-port {
554                 status = "okay";
555         };
556
557         u2phy1_host: host-port {
558                 phy-supply = <&vcc5v0_host>;
559                 status = "okay";
560         };
561 };
562
563 &uart0 {
564         pinctrl-names = "default";
565         pinctrl-0 = <&uart0_xfer &uart0_cts>;
566         status = "okay";
567 };
568
569 &uart2 {
570         status = "okay";
571 };
572
573 &usb_host0_ehci {
574         status = "okay";
575 };
576
577 &usb_host0_ohci {
578         status = "okay";
579 };
580
581 &usb_host1_ehci {
582         status = "okay";
583 };
584
585 &usb_host1_ohci {
586         status = "okay";
587 };
588
589 &usbdrd3_0 {
590         status = "okay";
591 };
592
593 &usbdrd_dwc3_0 {
594         dr_mode = "otg";
595         status = "okay";
596 };
597
598 &usbdrd3_1 {
599         status = "okay";
600 };
601
602 &usbdrd_dwc3_1 {
603         dr_mode = "host";
604         status = "okay";
605 };
606
607 &pwm2 {
608         status = "okay";
609 };
610
611 &pwm3 {
612         status = "disabled";
613
614         interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH 0>;
615         compatible = "rockchip,remotectl-pwm";
616         remote_pwm_id = <3>;
617         handle_cpu_id = <1>;
618
619         ir_key1 {
620                 rockchip,usercode = <0x4040>;
621                 rockchip,key_table =
622                         <0xf2   KEY_REPLY>,
623                         <0xba   KEY_BACK>,
624                         <0xf4   KEY_UP>,
625                         <0xf1   KEY_DOWN>,
626                         <0xef   KEY_LEFT>,
627                         <0xee   KEY_RIGHT>,
628                         <0xbd   KEY_HOME>,
629                         <0xea   KEY_VOLUMEUP>,
630                         <0xe3   KEY_VOLUMEDOWN>,
631                         <0xe2   KEY_SEARCH>,
632                         <0xb2   KEY_POWER>,
633                         <0xbc   KEY_MUTE>,
634                         <0xec   KEY_MENU>,
635                         <0xbf   0x190>,
636                         <0xe0   0x191>,
637                         <0xe1   0x192>,
638                         <0xe9   183>,
639                         <0xe6   248>,
640                         <0xe8   185>,
641                         <0xe7   186>,
642                         <0xf0   388>,
643                         <0xbe   0x175>;
644         };
645
646         ir_key2 {
647                 rockchip,usercode = <0xff00>;
648                 rockchip,key_table =
649                         <0xf9   KEY_HOME>,
650                         <0xbf   KEY_BACK>,
651                         <0xfb   KEY_MENU>,
652                         <0xaa   KEY_REPLY>,
653                         <0xb9   KEY_UP>,
654                         <0xe9   KEY_DOWN>,
655                         <0xb8   KEY_LEFT>,
656                         <0xea   KEY_RIGHT>,
657                         <0xeb   KEY_VOLUMEDOWN>,
658                         <0xef   KEY_VOLUMEUP>,
659                         <0xf7   KEY_MUTE>,
660                         <0xe7   KEY_POWER>,
661                         <0xfc   KEY_POWER>,
662                         <0xa9   KEY_VOLUMEDOWN>,
663                         <0xa8   KEY_VOLUMEDOWN>,
664                         <0xe0   KEY_VOLUMEDOWN>,
665                         <0xa5   KEY_VOLUMEDOWN>,
666                         <0xab   183>,
667                         <0xb7   388>,
668                         <0xf8   184>,
669                         <0xaf   185>,
670                         <0xed   KEY_VOLUMEDOWN>,
671                         <0xee   186>,
672                         <0xb3   KEY_VOLUMEDOWN>,
673                         <0xf1   KEY_VOLUMEDOWN>,
674                         <0xf2   KEY_VOLUMEDOWN>,
675                         <0xf3   KEY_SEARCH>,
676                         <0xb4   KEY_VOLUMEDOWN>,
677                         <0xbe   KEY_SEARCH>;
678         };
679
680         ir_key3 {
681                 rockchip,usercode = <0x1dcc>;
682                 rockchip,key_table =
683                         <0xee   KEY_REPLY>,
684                         <0xf0   KEY_BACK>,
685                         <0xf8   KEY_UP>,
686                         <0xbb   KEY_DOWN>,
687                         <0xef   KEY_LEFT>,
688                         <0xed   KEY_RIGHT>,
689                         <0xfc   KEY_HOME>,
690                         <0xf1   KEY_VOLUMEUP>,
691                         <0xfd   KEY_VOLUMEDOWN>,
692                         <0xb7   KEY_SEARCH>,
693                         <0xff   KEY_POWER>,
694                         <0xf3   KEY_MUTE>,
695                         <0xbf   KEY_MENU>,
696                         <0xf9   0x191>,
697                         <0xf5   0x192>,
698                         <0xb3   388>,
699                         <0xbe   KEY_1>,
700                         <0xba   KEY_2>,
701                         <0xb2   KEY_3>,
702                         <0xbd   KEY_4>,
703                         <0xf9   KEY_5>,
704                         <0xb1   KEY_6>,
705                         <0xfc   KEY_7>,
706                         <0xf8   KEY_8>,
707                         <0xb0   KEY_9>,
708                         <0xb6   KEY_0>,
709                         <0xb5   KEY_BACKSPACE>;
710         };
711 };
712
713 &gmac {
714         phy-supply = <&vcc_phy>;
715         phy-mode = "rgmii";
716         clock_in_out = "input";
717         snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
718         snps,reset-active-low;
719         snps,reset-delays-us = <0 10000 50000>;
720         assigned-clocks = <&cru SCLK_RMII_SRC>;
721         assigned-clock-parents = <&clkin_gmac>;
722         pinctrl-names = "default";
723         pinctrl-0 = <&rgmii_pins>;
724         tx_delay = <0x28>;
725         rx_delay = <0x11>;
726         status = "okay";
727 };
728
729 &saradc {
730         status = "okay";
731 };
732
733 &pinctrl {
734         sdio-pwrseq {
735                 wifi_enable_h: wifi-enable-h {
736                         rockchip,pins = <0 10 RK_FUNC_GPIO &pcfg_pull_none>;
737                 };
738         };
739
740         wireless-bluetooth {
741                 uart0_gpios: uart0-gpios {
742                         rockchip,pins = <2 19 RK_FUNC_GPIO &pcfg_pull_none>;
743                 };
744         };
745
746         pmic {
747                 pmic_int_l: pmic-int-l {
748                         rockchip,pins =
749                                 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
750                 };
751         };
752
753         usb2 {
754                 host_vbus_drv: host-vbus-drv {
755                         rockchip,pins =
756                                 <4 25 RK_FUNC_GPIO &pcfg_pull_none>;
757                 };
758         };
759 };
760
761 &rk_screen {
762         #include <dt-bindings/display/screen-timing/lcd-box.dtsi>
763 };
764
765 &vopb_rk_fb {
766         status = "okay";
767 };
768
769 &fb {
770         rockchip,disp-mode = <NO_DUAL>;
771         rockchip,disp-policy = <DISPLAY_POLICY_BOX>;
772 };
773
774 &hdmi_rk_fb {
775         status = "okay";
776         rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC0>;
777 };
778
779 &i2s2 {
780         status = "okay";
781 };
782
783 &pmu_io_domains {
784         status = "okay";
785         pmu1830-supply = <&vcc_1v8>;
786 };
787