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