ARM: dts: rockchip: add eDP panel support for Firefly
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-firefly.dtsi
1 /*
2  * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
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 #include "rk3288.dtsi"
44
45 / {
46         memory {
47                 device_type = "memory";
48                 reg = <0 0x80000000>;
49         };
50
51         backlight: backlight {
52                 compatible = "pwm-backlight";
53                 brightness-levels = <
54                           3   4   5   6   7
55                           8   9  10  11  12  13  14  15
56                          16  17  18  19  20  21  22  23
57                          24  25  26  27  28  29  30  31
58                          32  33  34  35  36  37  38  39
59                          40  41  42  43  44  45  46  47
60                          48  49  50  51  52  53  54  55
61                          56  57  58  59  60  61  62  63
62                          64  65  66  67  68  69  70  71
63                          72  73  74  75  76  77  78  79
64                          80  81  82  83  84  85  86  87
65                          88  89  90  91  92  93  94  95
66                          96  97  98  99 100 101 102 103
67                         104 105 106 107 108 109 110 111
68                         112 113 114 115 116 117 118 119
69                         120 121 122 123 124 125 126 127
70                         128 129 130 131 132 133 134 135
71                         136 137 138 139 140 141 142 143
72                         144 145 146 147 148 149 150 151
73                         152 153 154 155 156 157 158 159
74                         160 161 162 163 164 165 166 167
75                         168 169 170 171 172 173 174 175
76                         176 177 178 179 180 181 182 183
77                         184 185 186 187 188 189 190 191
78                         192 193 194 195 196 197 198 199
79                         200 201 202 203 204 205 206 207
80                         208 209 210 211 212 213 214 215
81                         216 217 218 219 220 221 222 223
82                         224 225 226 227 228 229 230 231
83                         232 233 234 235 236 237 238 239
84                         240 241 242 243 244 245 246 247
85                         248 249 250 251 252 253 254 255>;
86                 default-brightness-level = <180>;
87                 pwms = <&pwm1 0 25000 0>;
88                 pwm-names = "backlight";
89                 power-supply = <&vcc_sys>;
90         };
91
92         panel: panel {
93                 compatible ="lg,lp079qx1-sp0v";
94                 power-supply = <&vcc_sys>;
95                 backlight = <&backlight>;
96                 enable-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
97
98                 ports {
99                         panel_in: port {
100                                 panel_in_edp: endpoint {
101                                         remote-endpoint = <&edp_out_panel>;
102                                 };
103                         };
104                 };
105         };
106
107         dovdd_1v8: dovdd-1v8-regulator {
108                 compatible = "regulator-fixed";
109                 regulator-name = "dovdd_1v8";
110                 regulator-min-microvolt = <1800000>;
111                 regulator-max-microvolt = <1800000>;
112                 vin-supply = <&vcc28_dvp>;
113         };
114
115         ext_gmac: external-gmac-clock {
116                 compatible = "fixed-clock";
117                 #clock-cells = <0>;
118                 clock-frequency = <125000000>;
119                 clock-output-names = "ext_gmac";
120         };
121
122         ir: ir-receiver {
123                 compatible = "gpio-ir-receiver";
124                 pinctrl-names = "default";
125                 pinctrl-0 = <&ir_int>;
126         };
127
128         keys: gpio-keys {
129                 compatible = "gpio-keys";
130                 #address-cells = <1>;
131                 #size-cells = <0>;
132
133                 button@0 {
134                         gpio-key,wakeup = <1>;
135                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
136                         label = "GPIO Power";
137                         linux,code = <116>;
138                         pinctrl-names = "default";
139                         pinctrl-0 = <&pwr_key>;
140                 };
141         };
142
143         leds {
144                 compatible = "gpio-leds";
145
146                 work {
147                         gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
148                         label = "firefly:blue:user";
149                         linux,default-trigger = "rc-feedback";
150                         pinctrl-names = "default";
151                         pinctrl-0 = <&work_led>;
152                 };
153
154                 power {
155                         gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
156                         label = "firefly:green:power";
157                         linux,default-trigger = "default-on";
158                         pinctrl-names = "default";
159                         pinctrl-0 = <&power_led>;
160                 };
161         };
162
163         sdio_pwrseq: sdio-pwrseq {
164                 compatible = "mmc-pwrseq-simple";
165                 clocks = <&hym8563>;
166                 clock-names = "ext_clock";
167                 pinctrl-names = "default";
168                 pinctrl-0 = <&wifi_enable_h>;
169
170                 /*
171                  * On the module itself this is one of these (depending
172                  * on the actual card populated):
173                  * - SDIO_RESET_L_WL_REG_ON
174                  * - PDN (power down when low)
175                  */
176                 reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
177         };
178
179         sound {
180                 compatible = "simple-audio-card";
181                 simple-audio-card,name = "SPDIF";
182                 simple-audio-card,dai-link@1 {
183                         cpu { sound-dai = <&spdif>; };
184                         codec { sound-dai = <&spdif_out>; };
185                 };
186         };
187
188         spdif_out: spdif-out {
189                 compatible = "linux,spdif-dit";
190                 #sound-dai-cells = <0>;
191         };
192
193         vbat_wl: vcc_sys: vsys-regulator {
194                 compatible = "regulator-fixed";
195                 regulator-name = "vcc_sys";
196                 regulator-min-microvolt = <5000000>;
197                 regulator-max-microvolt = <5000000>;
198                 regulator-always-on;
199                 regulator-boot-on;
200         };
201
202         vcc_sd: sdmmc-regulator {
203                 compatible = "regulator-fixed";
204                 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
205                 pinctrl-names = "default";
206                 pinctrl-0 = <&sdmmc_pwr>;
207                 regulator-name = "vcc_sd";
208                 regulator-min-microvolt = <3300000>;
209                 regulator-max-microvolt = <3300000>;
210                 startup-delay-us = <100000>;
211                 vin-supply = <&vcc_io>;
212         };
213
214         vcc_flash: flash-regulator {
215                 compatible = "regulator-fixed";
216                 regulator-name = "vcc_flash";
217                 regulator-min-microvolt = <1800000>;
218                 regulator-max-microvolt = <1800000>;
219                 vin-supply = <&vcc_io>;
220         };
221
222         vcc_5v: usb-regulator {
223                 compatible = "regulator-fixed";
224                 regulator-name = "vcc_5v";
225                 regulator-min-microvolt = <5000000>;
226                 regulator-max-microvolt = <5000000>;
227                 regulator-always-on;
228                 regulator-boot-on;
229                 vin-supply = <&vcc_sys>;
230         };
231
232         vcc_host_5v: usb-host-regulator {
233                 compatible = "regulator-fixed";
234                 enable-active-high;
235                 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
236                 pinctrl-names = "default";
237                 pinctrl-0 = <&host_vbus_drv>;
238                 regulator-name = "vcc_host_5v";
239                 regulator-min-microvolt = <5000000>;
240                 regulator-max-microvolt = <5000000>;
241                 regulator-always-on;
242                 vin-supply = <&vcc_5v>;
243         };
244
245         vcc_otg_5v: usb-otg-regulator {
246                 compatible = "regulator-fixed";
247                 enable-active-high;
248                 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
249                 pinctrl-names = "default";
250                 pinctrl-0 = <&otg_vbus_drv>;
251                 regulator-name = "vcc_otg_5v";
252                 regulator-min-microvolt = <5000000>;
253                 regulator-max-microvolt = <5000000>;
254                 regulator-always-on;
255                 vin-supply = <&vcc_5v>;
256         };
257
258         /*
259          * A TT8142 creates both dovdd_1v8 and vcc28_dvp, controlled
260          * by the dvp_pwr pin.
261          */
262         vcc28_dvp: vcc28-dvp-regulator {
263                 compatible = "regulator-fixed";
264                 enable-active-high;
265                 gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
266                 pinctrl-names = "default";
267                 pinctrl-0 = <&dvp_pwr>;
268                 regulator-name = "vcc28_dvp";
269                 regulator-min-microvolt = <2800000>;
270                 regulator-max-microvolt = <2800000>;
271                 regulator-always-on;
272                 vin-supply = <&vcc_io>;
273         };
274
275         wireless-bluetooth {
276                 compatible = "bluetooth-platdata";
277                 uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
278                 pinctrl-names = "default", "rts_gpio";
279                 pinctrl-0 = <&uart0_rts>;
280                 pinctrl-1 = <&uart0_gpios>;
281                 BT,reset_gpio    = <&gpio4 29 GPIO_ACTIVE_HIGH>;
282                 BT,wake_gpio     = <&gpio4 26 GPIO_ACTIVE_HIGH>;
283                 BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
284                 status = "okay";
285         };
286
287         wireless-wlan {
288                 compatible = "wlan-platdata";
289                 rockchip,grf = <&grf>;
290                 wifi_chip_type = "ap6335";
291                 sdio_vref = <1800>;
292                 WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
293                 status = "okay";
294         };
295 };
296
297 &cpu0 {
298         cpu0-supply = <&vdd_cpu>;
299 };
300
301 &edp {
302         vcc-supply = <&vdd_10>;
303         vccio-supply = <&vcc_18>;
304         force-hpd;
305         status = "okay";
306
307         ports {
308                 edp_out: port@1 {
309                         reg = <1>;
310                         #address-cells = <1>;
311                         #size-cells = <0>;
312                         edp_out_panel: endpoint {
313                                 reg = <0>;
314                                 remote-endpoint = <&panel_in_edp>;
315                         };
316                 };
317         };
318 };
319
320 &edp_in {
321         /delete-node/ endpoint@0;
322 };
323
324 &edp_phy {
325         status = "okay";
326 };
327
328 &emmc {
329         bus-width = <8>;
330         cap-mmc-highspeed;
331         disable-wp;
332         non-removable;
333         num-slots = <1>;
334         pinctrl-names = "default";
335         pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
336         vmmc-supply = <&vcc_io>;
337         vqmmc-supply = <&vcc_flash>;
338         status = "okay";
339 };
340
341 &gmac {
342         assigned-clocks = <&cru SCLK_MAC>;
343         assigned-clock-parents = <&ext_gmac>;
344         clock_in_out = "input";
345         pinctrl-names = "default";
346         pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
347         phy-supply = <&vcc_lan>;
348         phy-mode = "rgmii";
349         snps,reset-active-low;
350         snps,reset-delays-us = <0 10000 1000000>;
351         snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
352         tx_delay = <0x30>;
353         rx_delay = <0x10>;
354         status = "ok";
355 };
356
357 &gpu {
358         mali-supply = <&vdd_gpu>;
359         status = "okay";
360 };
361
362 &hdmi {
363         status = "okay";
364 };
365
366 &hevc_service {
367         status = "okay";
368
369 };
370
371 &hdmi_in {
372         /delete-node/ endpoint@1;
373 };
374
375 &i2c0 {
376         clock-frequency = <400000>;
377         status = "okay";
378
379         vdd_cpu: syr827@40 {
380                 compatible = "silergy,syr827";
381                 fcs,suspend-voltage-selector = <1>;
382                 reg = <0x40>;
383                 regulator-name = "vdd_cpu";
384                 regulator-min-microvolt = <850000>;
385                 regulator-max-microvolt = <1350000>;
386                 regulator-always-on;
387                 regulator-boot-on;
388                 regulator-enable-ramp-delay = <300>;
389                 regulator-ramp-delay = <8000>;
390                 vin-supply = <&vcc_sys>;
391         };
392
393         vdd_gpu: syr828@41 {
394                 compatible = "silergy,syr828";
395                 fcs,suspend-voltage-selector = <1>;
396                 reg = <0x41>;
397                 regulator-name = "vdd_gpu";
398                 regulator-min-microvolt = <850000>;
399                 regulator-max-microvolt = <1350000>;
400                 regulator-always-on;
401                 regulator-ramp-delay = <6000>;
402                 vin-supply = <&vcc_sys>;
403         };
404
405         hym8563: hym8563@51 {
406                 compatible = "haoyu,hym8563";
407                 reg = <0x51>;
408                 #clock-cells = <0>;
409                 clock-frequency = <32768>;
410                 clock-output-names = "xin32k";
411                 interrupt-parent = <&gpio7>;
412                 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
413                 pinctrl-names = "default";
414                 pinctrl-0 = <&rtc_int>;
415         };
416
417         act8846: act8846@5a {
418                 compatible = "active-semi,act8846";
419                 reg = <0x5a>;
420                 pinctrl-names = "default";
421                 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
422                 system-power-controller;
423
424                 vp1-supply = <&vcc_sys>;
425                 vp2-supply = <&vcc_sys>;
426                 vp3-supply = <&vcc_sys>;
427                 vp4-supply = <&vcc_sys>;
428                 inl1-supply = <&vcc_sys>;
429                 inl2-supply = <&vcc_sys>;
430                 inl3-supply = <&vcc_20>;
431
432                 regulators {
433                         vcc_ddr: REG1 {
434                                 regulator-name = "vcc_ddr";
435                                 regulator-min-microvolt = <1200000>;
436                                 regulator-max-microvolt = <1200000>;
437                                 regulator-always-on;
438                         };
439
440                         vcc_io: REG2 {
441                                 regulator-name = "vcc_io";
442                                 regulator-min-microvolt = <3300000>;
443                                 regulator-max-microvolt = <3300000>;
444                                 regulator-always-on;
445                         };
446
447                         vdd_log: REG3 {
448                                 regulator-name = "vdd_log";
449                                 regulator-min-microvolt = <1100000>;
450                                 regulator-max-microvolt = <1100000>;
451                                 regulator-always-on;
452                         };
453
454                         vcc_20: REG4 {
455                                 regulator-name = "vcc_20";
456                                 regulator-min-microvolt = <2000000>;
457                                 regulator-max-microvolt = <2000000>;
458                                 regulator-always-on;
459                         };
460
461                         vccio_sd: REG5 {
462                                 regulator-name = "vccio_sd";
463                                 regulator-min-microvolt = <3300000>;
464                                 regulator-max-microvolt = <3300000>;
465                                 regulator-always-on;
466                         };
467
468                         vdd10_lcd: REG6 {
469                                 regulator-name = "vdd10_lcd";
470                                 regulator-min-microvolt = <1000000>;
471                                 regulator-max-microvolt = <1000000>;
472                                 regulator-always-on;
473                         };
474
475                         vcca_18: REG7 {
476                                 regulator-name = "vcca_18";
477                                 regulator-min-microvolt = <1800000>;
478                                 regulator-max-microvolt = <1800000>;
479                         };
480
481                         vcca_33: REG8 {
482                                 regulator-name = "vcca_33";
483                                 regulator-min-microvolt = <3300000>;
484                                 regulator-max-microvolt = <3300000>;
485                                 regulator-always-on;
486                         };
487
488                         vcc_lan: REG9 {
489                                 regulator-name = "vcc_lan";
490                                 regulator-min-microvolt = <3300000>;
491                                 regulator-max-microvolt = <3300000>;
492                         };
493
494                         vdd_10: REG10 {
495                                 regulator-name = "vdd_10";
496                                 regulator-min-microvolt = <1000000>;
497                                 regulator-max-microvolt = <1000000>;
498                                 regulator-always-on;
499                         };
500
501                         vccio_wl: vcc_18: REG11 {
502                                 regulator-name = "vcc_18";
503                                 regulator-min-microvolt = <1800000>;
504                                 regulator-max-microvolt = <1800000>;
505                                 regulator-always-on;
506                         };
507
508                         vcc18_lcd: REG12 {
509                                 regulator-name = "vcc18_lcd";
510                                 regulator-min-microvolt = <1800000>;
511                                 regulator-max-microvolt = <1800000>;
512                                 regulator-always-on;
513                         };
514                 };
515         };
516 };
517
518 &i2c1 {
519         status = "okay";
520
521         mpu6050@68 {
522                 compatible = "invensense,mpu6050";
523                 reg = <0x68>;
524                 interrupt-parent = <&gpio5>;
525                 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
526                 mount-matrix = "0",
527                                "1",
528                                "0",
529                                "-1",
530                                "0",
531                                "0",
532                                "0",
533                                "0",
534                                "-1";
535         };
536 };
537
538 &i2c2 {
539         status = "okay";
540 };
541
542 &i2c4 {
543         status = "okay";
544 };
545
546 &io_domains {
547         status = "okay";
548
549         audio-supply = <&vcca_33>;
550         bb-supply = <&vcc_io>;
551         dvp-supply = <&dovdd_1v8>;
552         flash0-supply = <&vcc_flash>;
553         flash1-supply = <&vcc_lan>;
554         gpio30-supply = <&vcc_io>;
555         gpio1830-supply = <&vcc_io>;
556         lcdc-supply = <&vcc_io>;
557         sdcard-supply = <&vccio_sd>;
558         wifi-supply = <&vccio_wl>;
559 };
560
561 &rga {
562         status = "okay";
563 };
564
565 &pinctrl {
566         pcfg_output_high: pcfg-output-high {
567                 output-high;
568         };
569
570         pcfg_output_low: pcfg-output-low {
571                 output-low;
572         };
573
574         pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
575                 drive-strength = <8>;
576         };
577
578         pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
579                 bias-pull-up;
580                 drive-strength = <8>;
581         };
582
583         act8846 {
584                 pwr_hold: pwr-hold {
585                         rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
586                 };
587         };
588
589         dvp {
590                 dvp_pwr: dvp-pwr {
591                         rockchip,pins = <0 11 RK_FUNC_GPIO &pcfg_pull_none>;
592                 };
593         };
594
595         gmac {
596                 phy_int: phy-int {
597                         rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
598                 };
599
600                 phy_pmeb: phy-pmeb {
601                         rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
602                 };
603
604                 phy_rst: phy-rst {
605                         rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
606                 };
607         };
608
609         hym8563 {
610                 rtc_int: rtc-int {
611                         rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
612                 };
613         };
614
615         keys {
616                 pwr_key: pwr-key {
617                         rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
618                 };
619         };
620
621         leds {
622                 power_led: power-led {
623                         rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
624                 };
625
626                 work_led: work-led {
627                         rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
628                 };
629         };
630
631         sdio-pwrseq {
632                 wifi_enable_h: wifi-enable-h {
633                         rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
634                 };
635         };
636
637         sdmmc {
638                 /*
639                  * Default drive strength isn't enough to achieve even
640                  * high-speed mode on firefly board so bump up to 8ma.
641                  */
642                 sdmmc_bus4: sdmmc-bus4 {
643                         rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
644                                         <6 17 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
645                                         <6 18 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
646                                         <6 19 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
647                 };
648
649                 sdmmc_clk: sdmmc-clk {
650                         rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
651                 };
652
653                 sdmmc_cmd: sdmmc-cmd {
654                         rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
655                 };
656
657                 sdmmc_pwr: sdmmc-pwr {
658                         rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
659                 };
660         };
661
662         usb_host {
663                 host_vbus_drv: host-vbus-drv {
664                         rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
665                 };
666
667                 usbhub_rst: usbhub-rst {
668                         rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
669                 };
670         };
671
672         usb_otg {
673                 otg_vbus_drv: otg-vbus-drv {
674                         rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
675                 };
676         };
677
678         wireless-bluetooth {
679                 uart0_gpios: uart0-gpios {
680                         rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;
681                 };
682         };
683 };
684
685 &saradc {
686         vref-supply = <&vcc_18>;
687         status = "okay";
688 };
689
690 &sdio0 {
691         clock-frequency = <50000000>;
692         clock-freq-min-max = <200000 50000000>;
693
694         bus-width = <4>;
695         cap-sd-highspeed;
696         cap-sdio-irq;
697         disable-wp;
698         keep-power-in-suspend;
699         mmc-pwrseq = <&sdio_pwrseq>;
700         non-removable;
701         num-slots = <1>;
702         pinctrl-names = "default";
703         pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
704         sd-uhs-sdr104;
705         supports-sdio;
706         vmmc-supply = <&vbat_wl>;
707         vqmmc-supply = <&vccio_wl>;
708         status = "okay";
709 };
710
711 &sdmmc {
712         bus-width = <4>;
713         cap-mmc-highspeed;
714         cap-sd-highspeed;
715         card-detect-delay = <200>;
716         disable-wp;
717         num-slots = <1>;
718         pinctrl-names = "default";
719         pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
720         supports-sd;
721         vmmc-supply = <&vcc_sd>;
722         vqmmc-supply = <&vccio_sd>;
723         status = "okay";
724 };
725
726 &spdif {
727         status = "okay";
728 };
729
730 &spi0 {
731         pinctrl-names = "default";
732         pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
733         status = "okay";
734 };
735
736 &tsadc {
737         rockchip,hw-tshut-mode = <0>;
738         rockchip,hw-tshut-polarity = <0>;
739         status = "okay";
740 };
741
742 &uart0 {
743         pinctrl-names = "default";
744         pinctrl-0 = <&uart0_xfer>, <&uart0_cts>;
745         status = "okay";
746 };
747
748 &uart1 {
749         status = "okay";
750 };
751
752 &uart2 {
753         status = "okay";
754 };
755
756 &uart3 {
757         status = "okay";
758 };
759
760 &usbphy {
761         status = "okay";
762 };
763
764 &usb_host1 {
765         pinctrl-names = "default";
766         pinctrl-0 = <&usbhub_rst>;
767         status = "okay";
768 };
769
770 &usb_otg {
771         status = "okay";
772 };
773
774 &vopb {
775         status = "okay";
776 };
777
778 &vopb_mmu {
779         status = "okay";
780 };
781
782 &vopb_out {
783         /delete-node/ endpoint@1;
784 };
785
786 &vopl {
787         status = "okay";
788 };
789
790 &vopl_mmu {
791         status = "okay";
792 };
793
794 &vpu_service {
795         status = "okay";
796 };
797
798 &vopl_out {
799         /delete-node/ endpoint@0;
800 };
801
802 &wdt {
803         status = "okay";
804 };