arm: dts: rk3288-evb: 32.768K clk node for BT
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-p977.dts
1 /dts-v1/;
2
3 #include "rk3288.dtsi"
4 #include "lcd-LP097Qx1.dtsi"
5 #include "vtl_ts_p977.dtsi"
6
7 / {
8         fiq-debugger {
9                 status = "okay";
10         };
11
12         5v_power_en {
13         compatible = "5v_en";
14                 5ven,pin =<&gpio7 GPIO_B4 GPIO_ACTIVE_HIGH>;    // 5v power for otg and hdmi
15                 status = "okay";        
16         };
17
18
19     wireless-wlan {
20         compatible = "wlan-platdata";
21
22         wifi_chip_type = "";
23         sdio_vref = <1800>; //1800mv or 3300mv
24
25         //power_ctrl_by_pmu;
26         pmu_regulator = "act_ldo3";
27         pmu_enable_level = <1>; //1->HIGH, 0->LOW
28
29         WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
30         WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
31         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
32
33         status = "okay";
34     };
35
36     wireless-bluetooth {
37         compatible = "bluetooth-platdata";
38
39         uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
40         pinctrl-names = "default","rts_gpio";
41         pinctrl-0 = <&uart0_rts>;
42         pinctrl-1 = <&uart0_rts_gpio>;
43
44         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
45         BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
46         BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
47         BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_HIGH>;
48
49         status = "okay";
50     };
51
52     hallsensor {
53                compatible = "hall_och165t";
54                type = <SENSOR_TYPE_HALL>;
55                irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
56      };
57
58         backlight {
59                 compatible = "pwm-backlight";
60                 pwms = <&pwm0 0 25000>;
61                 brightness-levels = <255 255 254 254 253 253 252 252 251 251 250 250 249 249 248 248 247 247 246 246 245 245 244 244 243 243 242 242 241 241 240 240
62 239 239 238 238 237 237 236 236 235 235 234 234 233 233 232 232 231 231 230 230 229 229 228 228 227 227 226 226 225 225
63 224 224 223 223 222 222 221 221 220 220 219 219 218 218 217 217 216 216 215 215 214 214 213 213 212 212 211 211 210 210
64 209 209 208 208 207 207 206 206 205 205 204 204 203 203 202 202 201 201 200 200 199 199 198 198 197 197 196 196 195 195
65 194 194 193 193 192 192 191 191 190 190 189 189 188 188 187 187 186 186 185 185 184 184 183 183 182 182 181 181 180 180
66 179 179 178 178 177 177 176 176 175 175 174 174 173 173 172 172 171 171 170 170 169 169 168 168 167 167 166 166 165 165 
67 164 164 163 163 162 162 161 161 160 160 159 159 158 158 157 157 156 156 155 155 154 154 153 153 152 152 151 151 150 150
68 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150 150
69 150 150 150 150 150 150 150 150 150 150 150 150 150 150>;
70                 default-brightness-level = <20>;
71                 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
72         };
73
74         pwm_regulator {
75                 compatible = "rockchip_pwm_regulator";
76                 pwms = <&pwm1 0 25000>;
77                 rockchip,pwm_id= <1>;
78                 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
79                 rockchip,pwm_voltage= <1000000>;
80                 rockchip,pwm_min_voltage= <925000>;
81                 rockchip,pwm_max_voltage= <1400000>;
82                 rockchip,pwm_suspend_voltage= <950000>;
83                 rockchip,pwm_coefficient= <475>;
84                 regulators {
85                         #address-cells = <1>;
86                         #size-cells = <0>;
87                         pwm_reg0: regulator@0 {
88                                 regulator-compatible = "pwm_dcdc1";
89                                 regulator-name= "vdd_logic";
90                                 regulator-min-microvolt = <925000>;
91                                 regulator-max-microvolt = <1400000>;
92                                 regulator-always-on;
93                                 regulator-boot-on;
94                         };
95                 };
96         };
97
98         codec_hdmi_i2s: codec-hdmi-i2s {
99                 compatible = "hdmi-i2s";
100         };
101
102         codec_hdmi_spdif: codec-hdmi-spdif {
103                 compatible = "hdmi-spdif";
104         };
105
106         rockchip-hdmi-i2s {
107                 compatible = "rockchip-hdmi-i2s";
108                 dais {
109                         dai0 {
110                                 audio-codec = <&codec_hdmi_i2s>;
111                                 audio-controller = <&i2s>;
112                                 format = "i2s";
113                                 //continuous-clock;
114                                 //bitclock-inversion;
115                                 //frame-inversion;
116                                 //bitclock-master;
117                                 //frame-master;
118                         };
119                 };
120         };
121         
122         rockchip-hdmi-spdif {
123                 compatible = "rockchip-hdmi-spdif";
124                 dais {
125                         dai0 {
126                                 audio-codec = <&codec_hdmi_spdif>;
127                                 audio-controller = <&spdif>;
128                         };
129                 };              
130         };
131
132         rockchip-rt5631 {
133                 compatible = "rockchip-rt5631";
134                 dais {
135                         dai0 {
136                                 audio-codec = <&rt5631>;
137                                 audio-controller = <&i2s>;
138                                 format = "i2s";
139                                 //continuous-clock;
140                                 //bitclock-inversion;
141                                 //frame-inversion;
142                                 //bitclock-master;
143                                 //frame-master;
144                         };
145                 };
146         };
147
148         usb_control {
149                 compatible = "rockchip,rk3288-usb-control";
150
151                 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
152
153                 rockchip,remote_wakeup;
154                 rockchip,usb_irq_wakeup;
155         };
156 };
157 &pinctrl {
158         gpio0_gpio {
159                         gpio0_c2: gpio0-c2 {
160                                 rockchip,pins = <GPIO0_C2>;
161                                 rockchip,pull = <VALUE_PULL_DOWN>;
162                         };
163
164                         //to add
165                 };
166                 
167         gpio7_gpio {
168                         gpio7_b7: gpio7-b7 {
169                                 rockchip,pins = <GPIO7_B7>;
170                                 rockchip,pull = <VALUE_PULL_UP>;
171                         };
172
173                         //to add
174                 };
175         //could add other pinctrl definition such as gpio
176
177 };
178
179 &emmc {
180         clock-frequency = <100000000>;
181         clock-freq-min-max = <400000 100000000>;
182
183         supports-highspeed;
184         supports-emmc;
185         bootpart-no-access;
186
187         supports-DDR_MODE;
188         caps2-mmc-hs200;
189
190         ignore-pm-notify;
191                 keep-power-in-suspend;
192         status = "okay";
193 };
194     
195 &sdmmc {
196         clock-frequency = <50000000>;
197         clock-freq-min-max = <400000 50000000>;             
198             
199         supports-highspeed;
200         supports-sd;
201         broken-cd;
202         card-detect-delay = <200>;
203
204         ignore-pm-notify;
205         keep-power-in-suspend;
206         
207         vmmc-supply = <&rk808_ldo5_reg>;
208         status = "okay";
209 };
210                 
211 &sdio {
212         clock-frequency = <50000000>;
213         clock-freq-min-max = <200000 50000000>;
214                 
215         supports-highspeed;             
216         supports-sdio;
217                 ignore-pm-notify;
218                 keep-power-in-suspend;
219                 //cap-sdio-irq;
220                 status = "okay";
221 };
222
223 &spi0 {
224         status = "disabled";
225         max-freq = <48000000>;  
226         /*
227         spi_test@00 {
228                 compatible = "rockchip,spi_test_bus0_cs0";
229                 reg = <0>;
230                 spi-max-frequency = <24000000>;
231                 //spi-cpha;
232                 //spi-cpol;
233                 poll_mode = <0>;
234                 type = <0>;
235                 enable_dma = <0>;
236
237         };
238
239         spi_test@01 {
240                 compatible = "rockchip,spi_test_bus0_cs1";
241                 reg = <1>;
242                 spi-max-frequency = <24000000>;
243                 spi-cpha;
244                 spi-cpol;
245                 poll_mode = <0>;
246                 type = <0>;
247                 enable_dma = <0>;               
248         };
249         */
250 };
251
252 &spi1 {
253         status = "disabled";
254         max-freq = <48000000>;
255         /*
256         spi_test@10 {
257                 compatible = "rockchip,spi_test_bus1_cs0";
258                 reg = <0>;
259                 spi-max-frequency = <24000000>;
260                 //spi-cpha;
261                 //spi-cpol;
262                 poll_mode = <0>;
263                 type = <0>;
264                 enable_dma = <0>;
265         };
266
267         */
268 };
269
270 &spi2 {
271         status = "disabled";
272         max-freq = <48000000>;
273         /*
274         spi_test@20 {
275                 compatible = "rockchip,spi_test_bus2_cs0";
276                 reg = <0>;
277                 spi-max-frequency = <24000000>;
278                 //spi-cpha;
279                 //spi-cpol;
280                 poll_mode = <0>;
281                 type = <0>;
282                 enable_dma = <0>;
283         };
284
285         spi_test@21 {
286                 compatible = "rockchip,spi_test_bus2_cs1";
287                 reg = <1>;
288                 spi-max-frequency = <24000000>;
289                 //spi-cpha;
290                 //spi-cpol;
291                 poll_mode = <0>;
292                 type = <0>;
293                 enable_dma = <0>;
294         };
295         */
296 };
297 &uart_bt {
298         status = "okay";
299         dma-names = "!tx", "!rx";
300         pinctrl-0 = <&uart0_xfer &uart0_cts>;
301 };
302
303 &i2c0 {
304         status = "okay";
305         rk808: rk808@1b {
306                 reg = <0x1b>;
307                 status = "okay";
308         };
309         
310
311
312         CW2015@62 {
313                 compatible = "cw201x";
314                 reg = <0x62>;
315                 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
316                 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
317                 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
318                 bat_config_info = <0x15 0x2A 0x58 0x57 0x51 0x5F 0x4C 0x45 0x47 0x45 0x48 0x4C 0x47 0x36
319                            0x2B 0x24 0x1E 0x16 0x16 0x17 0x1D 0x28 0x3B 0x4B 0x46 0x23 0x0D 0x71
320                            0x41 0x62 0x5F 0x6E 0x6F 0x6F 0x6E 0x72 0x41 0x1B 0x30 0x22 0x01 0x21
321                            0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0x12 0x70 0x8F 0xCB
322                            0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x1F 0x21>;
323                 is_dc_charge = <1>;
324                 is_usb_charge = <0>;
325         };
326         
327         rtc@51 {
328                 compatible = "rtc,hym8563";
329                 reg = <0x51>;
330                 irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
331         };
332 };
333
334 &i2c1 {
335         status = "okay";
336         rtc@51 {
337                 compatible = "nxp,pcf8563";
338                 reg = <0x51>;
339         };
340         
341         sensor@1d {
342                 compatible = "gs_mma8452";
343                 reg = <0x1d>;
344                 type = <SENSOR_TYPE_ACCEL>;
345                 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
346                 irq_enable = <1>;
347                 poll_delay_ms = <30>;
348                 layout = <8>;
349         };
350
351         sensor@0d {
352                 compatible = "ak8975";
353                 reg = <0x0d>;
354                 type = <SENSOR_TYPE_COMPASS>;
355                 irq-gpio = <&gpio8 GPIO_A1 IRQ_TYPE_EDGE_RISING>;
356                 irq_enable = <1>;
357                 poll_delay_ms = <30>;
358                 layout = <1>;
359         };
360
361         sensor@10 {
362               compatible = "ls_cm3218";
363               reg = <0x10>;
364               type = <SENSOR_TYPE_LIGHT>;
365               irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_EDGE_FALLING>;              
366               irq_enable = <1>;
367               poll_delay_ms = <30>;
368               layout = <1>;
369        };
370 /*            
371         mpu6050:mpu@68{
372         compatible = "mpu6050";
373         reg = <0x68>;
374         mpu-int_config = <0x10>;
375         mpu-level_shifter = <0>;
376         mpu-orientation = <1 0 0 0 1 0 0 0 1>;  
377         orientation-x= <1>;
378         orientation-y= <0>;
379         orientation-z= <1>;
380         irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;                 
381         mpu-debug = <0>;
382         };
383
384         ak8963:compass@0d{
385         compatible = "ak8963";
386         reg = <0x0d>;
387         compass-bus = <0>;
388         compass-adapt_num = <0>;
389         compass-orientation = <1 0 0 0 1 0 0 0 1>;
390         orientation-x= <0>;
391         orientation-y= <0>;
392         orientation-z= <1>;     
393         compass-debug = <1>;
394         status = "disabled";
395         };
396
397         ak8975:compass@0d{
398         compatible = "ak8975";
399         reg = <0x0d>;
400         compass-bus = <0>;
401         compass-adapt_num = <0>;
402         compass-orientation = <0 1 0 1 0 0 0 0 1>;
403         orientation-x= <0>;
404         orientation-y= <0>;
405         orientation-z= <0>;     
406         compass-debug = <0>;
407         };
408 */
409 };
410
411 &i2c2 {
412         status = "okay";
413
414         rt5631: rt5631@1a {
415                 compatible = "rt5631";
416                 reg = <0x1a>;
417                 phone_det_level = <1>;
418         };
419         
420 };
421
422 &i2c3 {
423         status = "okay";
424 };
425
426 &i2c4 {
427         status = "okay";
428         ts@01 {
429                 compatible = "ct,vtl_ts";
430                 reg = <0x01>;
431                 screen_max_x = <2048>;
432                 screen_max_y = <1536>;
433                 irq_gpio_number = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
434                 rst_gpio_number = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
435
436         xy_swap = <0>;
437         x_reverse = <0>;
438         y_reverse = <1>;
439         x_mul = <1>;
440         y_mul = <1>;
441         bin_ver = <1>;
442         };
443 };
444
445 &i2c5 {
446         status = "disable";
447 };
448
449 &fb {
450         rockchip,disp-mode = <DUAL>;
451         rockchip,uboot-logo-on = <1>;
452 };
453
454 &rk_screen {
455          display-timings = <&disp_timings>;
456 };
457
458 /*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
459 &lcdc0 {
460         status = "okay";
461         rockchip,mirror = <NO_MIRROR>;
462         rockchip,cabc_mode = <0>;
463         rockchip,iommu-enabled = <0>;
464         power_ctr: power_ctr {
465                 rockchip,debug = <0>;
466                 /*
467                 lcd_en:lcd_en {
468                         rockchip,power_type = <GPIO>;
469                         gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
470                         rockchip,delay = <10>;
471                 };
472                 */
473                 /*lcd_cs:lcd_cs {
474                         rockchip,power_type = <REGULATOR>;
475                         rockchip,delay = <10>;
476                 };
477
478                 lcd_rst:lcd_rst {
479                         rockchip,power_type = <GPIO>;
480                         gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
481                         rockchip,delay = <5>;
482                 };*/
483
484         };
485 };
486
487 &lcdc1 {
488         status = "okay";
489         rockchip,mirror = <NO_MIRROR>;
490         rockchip,iommu-enabled = <0>;
491 };
492
493 &hdmi {
494         status = "okay";
495         rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
496 };
497
498 &adc {
499         status = "okay";
500
501
502         key {
503                 compatible = "rockchip,key";
504                 io-channels = <&adc 1>;
505
506                 vol-up-key {
507                         linux,code = <115>;
508                         label = "volume up";
509                         rockchip,adc_value = <1>;
510                 };
511
512                 vol-down-key {
513                         linux,code = <114>;
514                         label = "volume down";
515                         rockchip,adc_value = <170>;
516                 };
517
518                 power-key {
519                         gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
520                         linux,code = <116>;
521                         label = "power";
522                         gpio-key,wakeup;
523                 };
524
525                 back-key {
526                         linux,code = <158>;
527                         label = "back";
528                         rockchip,adc_value = <355>;
529                 };
530 /*
531                 home-key {
532                         linux,code = <102>;
533                         label = "home";
534                         rockchip,adc_value = <746>;
535                 };
536
537                 back-key {
538                         linux,code = <158>;
539                         label = "back";
540                         rockchip,adc_value = <560>;
541                 };
542 */
543                 camera-key {
544                         linux,code = <212>;
545                         label = "camera";
546                         rockchip,adc_value = <450>;
547                 };
548         };
549 };
550
551 &pwm0 {
552         status = "okay";
553 };
554
555 &pwm1 {
556         status = "okay";
557 };
558
559
560 &clk_core_dvfs_table {
561         operating-points = <
562                 /* KHz    uV */
563                 126000 850000
564                 216000 850000
565                 312000 850000
566                 408000 850000
567                 600000 850000
568                 696000 900000
569                 816000 950000
570                 1008000 1000000
571                 1200000 1050000
572                 1416000 1150000
573                 1512000 1200000
574                 1608000 1250000
575                 1704000 1300000
576                 1800000 1350000
577                 >;
578         status="okay";
579 };
580
581 &clk_gpu_dvfs_table {
582         operating-points = <
583                 /* KHz    uV */
584                 100000 850000
585                 200000 850000
586                 300000 900000
587                 400000 1000000
588                 500000 1100000
589         //      600000 1250000
590                 >;
591         status="okay";
592 };
593
594 &clk_ddr_dvfs_table {
595         operating-points = <
596                 /* KHz    uV */
597                 200000 1050000
598                 300000 1050000
599                 420000 1050000
600                 533000 1050000
601                 >;
602
603         freq-table = <
604                 /*status                freq(KHz)*/
605                 SYS_STATUS_NORMAL       400000
606                 SYS_STATUS_SUSPEND      200000
607                 SYS_STATUS_VIDEO_1080P  240000
608                 SYS_STATUS_VIDEO_4K     400000
609                 SYS_STATUS_PERFORMANCE  528000
610                 SYS_STATUS_DUALVIEW     400000
611                 SYS_STATUS_BOOST        324000
612                 SYS_STATUS_ISP          533000
613                 >;
614         bd-freq-table = <
615                 /* bandwidth   freq */
616                 5000           800000
617                 3500           456000
618                 2600           396000
619                 2000           324000
620         >;
621         auto-freq-table = <
622                 240000
623                 324000
624                 396000
625                 528000
626                 >;
627         auto-freq=<1>;
628         status="okay";
629 };
630
631 /include/ "rk808.dtsi"
632 &rk808 {
633         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
634         rk808,system-power-controller;
635
636         regulators {
637                 
638                 rk808_dcdc1_reg: regulator@0{
639                         regulator-name= "vdd_arm";
640                         regulator-min-microvolt = <700000>;
641                         regulator-max-microvolt = <1500000>;
642                         regulator-always-on;
643                         regulator-boot-on;
644                         regulator-initial-mode = <0x2>;
645                         regulator-initial-state = <3>;
646                         regulator-state-mem {
647                                 regulator-state-mode = <0x2>;
648                                 regulator-state-disabled;
649                                 regulator-state-uv = <900000>;
650                         };
651                 };
652
653                 rk808_dcdc2_reg: regulator@1 {
654                         regulator-name= "vdd_gpu";
655                         regulator-min-microvolt = <700000>;
656                         regulator-max-microvolt = <1500000>;
657                         regulator-always-on;
658                         regulator-boot-on;
659                         regulator-initial-mode = <0x2>;
660                         regulator-initial-state = <3>;
661                         regulator-state-mem {
662                                 regulator-state-mode = <0x2>;
663                                 regulator-state-disabled;
664                                 regulator-state-uv = <900000>;
665                         };
666                 };
667
668                 rk808_dcdc3_reg: regulator@2 {
669                         regulator-name= "rk_dcdc3";
670                         regulator-min-microvolt = <1200000>;
671                         regulator-max-microvolt = <1200000>;
672                         regulator-always-on;
673                         regulator-boot-on;
674                         regulator-initial-mode = <0x2>;
675                         regulator-initial-state = <3>;
676                         regulator-state-mem {
677                                 regulator-state-mode = <0x2>;
678                                 regulator-state-enabled;
679                                 regulator-state-uv = <1200000>;
680                         };
681                 };
682
683                 rk808_dcdc4_reg: regulator@3 {
684                         regulator-name= "vccio";
685                         regulator-min-microvolt = <1800000>;
686                         regulator-max-microvolt = <3300000>;
687                         regulator-always-on;
688                         regulator-boot-on;
689                         regulator-initial-mode = <0x2>;
690                         regulator-initial-state = <3>;
691                         regulator-state-mem {
692                                 regulator-state-mode = <0x2>;
693                                 regulator-state-enabled;
694                                 regulator-state-uv = <2800000>;
695                         };
696                 };
697
698                 rk808_ldo1_reg: regulator@4 {
699                         regulator-name= "rk_ldo1";
700                         regulator-min-microvolt = <3300000>;
701                         regulator-max-microvolt = <3300000>;
702                         regulator-always-on;
703                         regulator-boot-on;
704                         regulator-initial-state = <3>;
705                         regulator-state-mem {
706                                 regulator-state-enabled;
707                                 regulator-state-uv = <3300000>;
708                         };
709                 };
710
711                 rk808_ldo2_reg: regulator@5 {
712                         regulator-name= "rk_ldo2";
713                         regulator-min-microvolt = <3300000>;
714                         regulator-max-microvolt = <3300000>;
715                         regulator-always-on;
716                         regulator-boot-on;
717                         regulator-initial-state = <3>;
718                         regulator-state-mem {
719                                 regulator-state-enabled;
720                                 regulator-state-uv = <3300000>;
721                         };
722                 };
723
724                 rk808_ldo3_reg: regulator@6 {
725                         regulator-name= "rk_ldo3";
726                         regulator-min-microvolt = <1000000>;
727                         regulator-max-microvolt = <1000000>;
728                         regulator-always-on;
729                         regulator-boot-on;
730                         regulator-initial-state = <3>;
731                         regulator-state-mem {
732                                 regulator-state-enabled;
733                                 regulator-state-uv = <1000000>;
734                         };
735                 };
736
737                 rk808_ldo4_reg:regulator@7 {
738                         regulator-name= "rk_ldo4";
739                         regulator-min-microvolt = <1800000>;
740                         regulator-max-microvolt = <1800000>;
741                         regulator-always-on;
742                         regulator-boot-on;
743                         regulator-initial-state = <3>;
744                         regulator-state-mem {
745                                 regulator-state-disabled;
746                                 regulator-state-uv = <1800000>;
747                         };
748                 };
749
750                 rk808_ldo5_reg: regulator@8 {
751                         regulator-name= "vcc_sd";
752                         regulator-min-microvolt = <1800000>;
753                         regulator-max-microvolt = <3300000>;
754                         regulator-always-on;
755                         regulator-boot-on;
756                         regulator-initial-state = <3>;
757                         regulator-state-mem {
758                                 regulator-state-enabled;
759                                 regulator-state-uv = <2800000>;
760                         };
761                 };
762
763                 rk808_ldo6_reg: regulator@9 {
764                         regulator-name= "rk_ldo6";
765                         regulator-min-microvolt = <1000000>;
766                         regulator-max-microvolt = <1000000>;
767                         regulator-always-on;
768                         regulator-boot-on;
769                         regulator-initial-state = <3>;
770                         regulator-state-mem {
771                                 regulator-state-disabled;
772                                 regulator-state-uv = <1000000>;
773                         };
774                 };
775
776                 rk808_ldo7_reg: regulator@10 {
777                         regulator-name= "rk_ldo7";
778                         regulator-min-microvolt = <1800000>;
779                         regulator-max-microvolt = <1800000>;
780                         regulator-always-on;
781                         regulator-boot-on;
782                         regulator-initial-state = <3>;
783                         regulator-state-mem {
784                                 regulator-state-enabled;
785                                 regulator-state-uv = <1800000>;
786                         };
787                 };
788
789                 rk808_ldo8_reg: regulator@11 {
790                         regulator-name= "rk_ldo8";
791                         regulator-min-microvolt = <3300000>;
792                         regulator-max-microvolt = <3300000>;
793                         regulator-always-on;
794                         regulator-boot-on;
795                         regulator-initial-state = <3>;
796                         regulator-state-mem {
797                                 regulator-state-enabled;
798                                 regulator-state-uv = <3300000>;
799                         };
800                 };
801
802                 rk808_ldo9_reg: regulator@12 {
803                         regulator-name= "rk_ldo9";
804                         regulator-always-on;
805                         regulator-boot-on;
806                         regulator-initial-state = <3>;
807                         regulator-state-mem {
808                                 regulator-state-enabled;
809                         };
810                 };
811
812                 rk808_ldo10_reg: regulator@13 {
813                         regulator-name= "rk_ldo10";
814                         regulator-always-on;
815                         regulator-boot-on;
816                         regulator-initial-state = <3>;
817                         regulator-state-mem {
818                                 regulator-state-disabled;
819                         };
820                 };
821         };
822 };
823
824 &lcdc_vdd_domain {
825         regulator-name = "vcc30_lcd";
826         };
827 &dpio_vdd_domain{
828         regulator-name = "vcc18_cif";   
829         };
830 &flash0_vdd_domain{
831         regulator-name = "vcc_flash";   
832         };
833 &flash1_vdd_domain{
834         regulator-name = "vcc_flash";                   
835         };
836 &apio3_vdd_domain{
837         regulator-name = "vccio_wl";            
838         };
839 &apio5_vdd_domain{
840         regulator-name = "vccio";               
841         };
842 &apio4_vdd_domain{
843         regulator-name = "vccio";               
844         };
845 &apio1_vdd_domain{
846         regulator-name = "vccio";                       
847         };
848 &apio2_vdd_domain{
849         regulator-name = "vccio";               
850         };
851 &sdmmc0_vdd_domain{
852         regulator-name = "vcc_sd";                      
853         };