Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-tb.dts
1 /dts-v1/;
2
3 #include "rk3288.dtsi"
4 #include "lcd-b101ew05.dtsi"
5
6 / {
7         fiq-debugger {
8                 status = "okay";
9         };
10
11     wireless-wlan {
12         compatible = "wlan-platdata";
13
14         /* wifi_chip_type - wifi chip define
15          * bcmwifi ==> like ap6xxx, rk90x;
16          * rtkwifi ==> like rtl8188xx, rtl8723xx;
17          * esp8089 ==> esp8089;
18          * other   ==> for other wifi;
19          */
20         wifi_chip_type = "bcmwifi";
21
22         sdio_vref = <1800>; //1800mv or 3300mv
23
24         //keep_wifi_power_on;
25
26         //power_ctrl_by_pmu;
27         power_pmu_regulator = "act_ldo3";
28         power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
29
30         //vref_ctrl_enable;
31         //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
32         vref_pmu_regulator = "act_ldo3";
33         vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
34
35         WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
36         WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
37         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
38
39         status = "okay";
40     };
41
42     wireless-bluetooth {
43         compatible = "bluetooth-platdata";
44
45         //wifi-bt-power-toggle;
46
47         uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
48         pinctrl-names = "default","rts_gpio";
49         pinctrl-0 = <&uart0_rts>;
50         pinctrl-1 = <&uart0_rts_gpio>;
51
52         BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
53         BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
54         BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
55         BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
56
57         status = "okay";
58     };
59
60     hallsensor {
61                compatible = "hall_och165t";
62                type = <SENSOR_TYPE_HALL>;
63                irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
64      };
65
66         backlight {
67                 compatible = "pwm-backlight";
68                 pwms = <&pwm0 0 25000>;
69                 brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>;
70                 default-brightness-level = <128>;
71                 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
72         };
73
74         pwm_regulator {
75                 compatible = "rockchip_pwm_regulator";
76                 pwms = <&pwm1 0 2000>;
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         rockchip-rt3224 {
149                 compatible = "rockchip-rt3261";
150                 dais {
151                         dai0 {
152                                 audio-codec = <&rt3261>;
153                                 audio-controller = <&i2s>;
154                                 format = "i2s";
155                                 //continuous-clock;
156                                 //bitclock-inversion;
157                                 //frame-inversion;
158                                 //bitclock-master;
159                                 //frame-master;
160                         };
161                         dai1 {
162                                 audio-codec = <&rt3261>;
163                                 audio-controller = <&i2s>;
164                                 format = "dsp_a";
165                                 //continuous-clock;
166                                 bitclock-inversion;
167                                 //frame-inversion;
168                                 //bitclock-master;
169                                 //frame-master;
170                         };
171                 };
172         };
173
174         usb_control {
175                 compatible = "rockchip,rk3288-usb-control";
176
177                 host_drv_gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
178                 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
179
180                 rockchip,remote_wakeup;
181                 rockchip,usb_irq_wakeup;
182         };
183 };
184
185 &gmac {
186 //      power_ctl_by = "gpio";  //"gpio" "pmu"
187         power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
188 //      power-pmu = "act_ldo"
189         reset-gpio = <&gpio4 GPIO_A7 GPIO_ACTIVE_LOW>;
190         status = "disabled";  //if want to use gmac, please set "okay"
191 };
192
193 &pinctrl {
194         //used for init some gpio
195         init-gpios = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH
196                         /*&gpio0 GPIO_C2 GPIO_ACTIVE_HIGH */
197                         /*&gpio7 GPIO_B7 GPIO_ACTIVE_LOW */>;
198         
199         gpio0_gpio {
200                         gpio0_c2: gpio0-c2 {
201                                 rockchip,pins = <GPIO0_C2>;
202                                 rockchip,pull = <VALUE_PULL_DOWN>;
203                         };
204
205                         //to add
206                 };
207                 
208         gpio7_gpio {
209                         gpio7_b7: gpio7-b7 {
210                                 rockchip,pins = <GPIO7_B7>;
211                                 rockchip,pull = <VALUE_PULL_UP>;
212                         };
213
214                         //to add
215                 };
216                 
217         //could add other pinctrl definition such as gpio
218
219 };
220
221 &nandc0 {
222         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
223 };
224 &nandc1 {
225         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
226 };   
227
228 &nandc0reg {
229         status = "okay"; // used nand set "disabled" ,used emmc set "okay"
230 };
231
232 &emmc {
233         clock-frequency = <100000000>;
234         clock-freq-min-max = <400000 100000000>;
235
236         supports-highspeed;
237         supports-emmc;
238         //supports-sd;
239         bootpart-no-access;
240         
241         //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
242         //caps2-mmc-hs200;
243
244         ignore-pm-notify;
245         keep-power-in-suspend;
246         
247         //poll-hw-reset 
248         status = "okay";
249 };
250     
251 &sdmmc {
252                 clock-frequency = <50000000>;
253                 clock-freq-min-max = <400000 50000000>;
254                 supports-highspeed;
255                 supports-sd;
256                 broken-cd;
257                 card-detect-delay = <200>;
258
259                 ignore-pm-notify;
260                 keep-power-in-suspend;
261         
262                 vmmc-supply = <&rk808_ldo5_reg>;
263                 status = "okay";
264 };
265                 
266 &sdio {
267                 clock-frequency = <50000000>;
268                 clock-freq-min-max = <200000 50000000>;
269                 supports-highspeed;
270                 supports-sdio;
271                 ignore-pm-notify;
272                 keep-power-in-suspend;
273                 //cap-sdio-irq;
274                 status = "okay";
275 };
276
277 &spi0 {
278         status = "okay";
279         max-freq = <48000000>;  
280         /*
281         spi_test@00 {
282                 compatible = "rockchip,spi_test_bus0_cs0";
283                 reg = <0>;
284                 spi-max-frequency = <24000000>;
285                 //spi-cpha;
286                 //spi-cpol;
287                 poll_mode = <0>;
288                 type = <0>;
289                 enable_dma = <0>;
290
291         };
292
293         spi_test@01 {
294                 compatible = "rockchip,spi_test_bus0_cs1";
295                 reg = <1>;
296                 spi-max-frequency = <24000000>;
297                 spi-cpha;
298                 spi-cpol;
299                 poll_mode = <0>;
300                 type = <0>;
301                 enable_dma = <0>;               
302         };
303         */
304 };
305
306 &spi1 {
307         status = "okay";
308         max-freq = <48000000>;
309         /*
310         spi_test@10 {
311                 compatible = "rockchip,spi_test_bus1_cs0";
312                 reg = <0>;
313                 spi-max-frequency = <24000000>;
314                 //spi-cpha;
315                 //spi-cpol;
316                 poll_mode = <0>;
317                 type = <0>;
318                 enable_dma = <0>;
319         };
320
321         */
322 };
323
324 &spi2 {
325         status = "okay";
326         max-freq = <48000000>;
327         /*
328         spi_test@20 {
329                 compatible = "rockchip,spi_test_bus2_cs0";
330                 reg = <0>;
331                 spi-max-frequency = <24000000>;
332                 //spi-cpha;
333                 //spi-cpol;
334                 poll_mode = <0>;
335                 type = <0>;
336                 enable_dma = <0>;
337         };
338
339         spi_test@21 {
340                 compatible = "rockchip,spi_test_bus2_cs1";
341                 reg = <1>;
342                 spi-max-frequency = <24000000>;
343                 //spi-cpha;
344                 //spi-cpol;
345                 poll_mode = <0>;
346                 type = <0>;
347                 enable_dma = <0>;
348         };
349         */
350 };
351
352 &uart_bt {
353         status = "okay";
354         dma-names = "!tx", "!rx";
355         pinctrl-0 = <&uart0_xfer &uart0_cts>;
356 };
357
358 &i2c0 {
359         status = "okay";
360         rk808: rk808@1b {
361                 reg = <0x1b>;
362                 status = "okay";
363         };
364         rk818: rk818@1c {
365                 reg = <0x1c>;
366                 status = "okay";
367         };
368                 syr827: syr827@40 {
369                 compatible = "silergy,syr82x";
370         reg = <0x40>;
371                 status = "okay";
372                 regulators {
373                         #address-cells = <1>;
374                         #size-cells = <0>;      
375                         syr827_dc1: regulator@0 {
376                         reg = <0>;
377                         regulator-compatible = "syr82x_dcdc1";
378                         regulator-name = "vdd_arm";
379                         regulator-min-microvolt = <712500>;
380                         regulator-max-microvolt = <1500000>;
381                         regulator-always-on;
382                         regulator-boot-on;
383                         regulator-initial-mode = <0x2>;
384                         regulator-initial-state = <3>;
385                         regulator-state-mem {
386                                 regulator-state-mode = <0x2>;
387                                 regulator-state-disabled;
388                                 regulator-state-uv = <900000>;
389                         };
390                 };
391            };
392         };
393         syr828: syr828@41 {
394                 compatible = "silergy,syr82x";
395                 reg = <0x41>;
396                 status = "okay";
397                 regulators {
398                         #address-cells = <1>;
399                         #size-cells = <0>;      
400                         syr828_dc1: regulator@0 {
401                         reg = <0>;
402                         regulator-compatible = "syr82x_dcdc1";
403                         regulator-name = "vdd_gpu";
404                         regulator-min-microvolt = <712500>;
405                         regulator-max-microvolt = <1500000>;
406                         regulator-always-on;
407                 regulator-boot-on;
408                         regulator-initial-mode = <0x2>;
409                         regulator-initial-state = <3>;
410                         regulator-state-mem {
411                                 regulator-state-mode = <0x2>;
412                                 regulator-state-enabled;
413                                 regulator-state-uv = <900000>;
414                         };      
415                 };
416            };
417         };
418         act8846: act8846@5a {
419                 reg = <0x5a>;
420                 status = "okay";
421         };
422
423         ricoh619: ricoh619@32 {
424                 reg = <0x32>;
425                 status = "okay";
426         };
427         bq24296: bq24296@6b {
428                 compatible = "ti,bq24296";
429                 reg = <0x6b>;
430                 gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
431                 bq24296,chg_current = <1000 2000 3000>;
432                 status = "okay";
433         };
434         
435         bq27320: bq27320@55 {
436                 compatible = "ti,bq27320";
437                 reg = <0x55>;
438         /*   gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */
439                 status = "okay";
440         };
441
442         CW2015@62 {
443                 compatible = "cw201x";
444                 reg = <0x62>;
445                 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
446                 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
447                 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
448                 bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32
449                         0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52
450                         0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB
451                         0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
452                 is_dc_charge = <1>;
453                 is_usb_charge = <0>;
454         };
455         
456         rtc@51 {
457                 compatible = "rtc,hym8563";
458                 reg = <0x51>;
459                 irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
460         };
461
462 };
463
464 &i2c1 {
465         status = "okay";
466         rtc@51 {
467                 compatible = "nxp,pcf8563";
468                 reg = <0x51>;
469         };
470         
471         sensor@1d {
472                 compatible = "gs_mma8452";
473                 reg = <0x1d>;
474                 type = <SENSOR_TYPE_ACCEL>;
475                 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_EDGE_FALLING>;
476                 irq_enable = <1>;
477                 poll_delay_ms = <30>;
478                 layout = <1>;
479         };
480                 sensor@19 {
481                 compatible = "gs_lis3dh";
482                 reg = <0x19>;
483                 type = <SENSOR_TYPE_ACCEL>;
484                 irq-gpio = <&gpio0 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;
485                 irq_enable = <1>;
486                 poll_delay_ms = <30>;
487                 layout = <1>;
488         };
489                 sensor@0d {
490                 compatible = "ak8963";
491                 reg = <0x0d>;
492                 type = <SENSOR_TYPE_COMPASS>;
493                 irq-gpio = <&gpio8 GPIO_A2 IRQ_TYPE_EDGE_RISING>;
494                 irq_enable = <1>;
495                 poll_delay_ms = <30>;
496                 layout = <1>;
497         };
498
499                 sensor@6b {
500                 compatible = "l3g20d_gyro";
501                 reg = <0x6b>;
502                 type = <SENSOR_TYPE_GYROSCOPE>;
503                 irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_LEVEL_LOW>;
504                 irq_enable = <1>;
505                 poll_delay_ms = <30>;
506                 layout = <1>;
507         };
508         sensor@10 {
509               compatible = "ls_cm3218";
510               reg = <0x10>;
511               type = <SENSOR_TYPE_LIGHT>;
512               irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_EDGE_FALLING>;              
513               irq_enable = <1>;
514               poll_delay_ms = <30>;
515               layout = <1>;
516        };
517
518     nfc-bcm2079x@76 {
519         compatible = "nfc-bcm2079x.ap6441";
520         reg = <0x76>;
521         en_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
522         wake_gpio = <&gpio5 GPIO_C0 GPIO_ACTIVE_HIGH>;
523         irq_gpio = <&gpio5 GPIO_B7 IRQ_TYPE_EDGE_RISING>;
524         status = "disabled";
525     };
526     nfc-bcm2079x@77 {
527         compatible = "nfc-bcm2079x.ap6493";
528         reg = <0x77>;
529         en_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
530         wake_gpio = <&gpio5 GPIO_C0 GPIO_ACTIVE_HIGH>;
531         irq_gpio = <&gpio5 GPIO_B7 IRQ_TYPE_EDGE_RISING>;
532         status = "disabled";
533     };
534 };
535
536 &i2c2 {
537         status = "okay";
538         rt5631: rt5631@1a {
539                 compatible = "rt5631";
540                 reg = <0x1a>;
541         };
542         es8323: es8323@10 {
543                 compatible = "es8323";
544                 reg = <0x10>;
545         };
546         rt3261: rt3261@1c {
547                 compatible = "rt3261";
548                 reg = <0x1c>;
549         //      codec-en-gpio = <0>;//sdk default high level
550                 spk-num= <2>;
551                 modem-input-mode = <1>;
552                 lout-to-modem_mode = <1>;
553                 spk-amplify = <2>;
554                 playback-if1-data_control = <0>;
555                 playback-if2-data_control = <0>;
556         };
557         rt5616: rt5616@1b {
558                 compatible = "rt5616";
559                 reg = <0x1b>;
560         };
561 };
562
563 &i2c3 {
564         status = "okay";
565 };
566
567 &i2c4 {
568         status = "okay";
569         ts@55 {
570                 compatible = "goodix,gt8xx";
571                 reg = <0x55>;
572                 touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
573                 reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_LOW>;
574                 //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
575                 max-x = <1280>;
576                 max-y = <800>;
577         };
578         
579         ts@01 {
580                 compatible = "ct,vtl_ts";
581                 reg = <0x01>;
582                 screen_max_x = <2048>;
583                 screen_max_y = <1536>;
584                 irq_gpio_number = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
585                 rst_gpio_number = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
586         };
587 };
588
589 &i2c5 {
590         status = "disable";
591 };
592
593 &fb {
594         rockchip,disp-mode = <DUAL>;
595         rockchip,uboot-logo-on = <1>;
596 };
597
598 &rk_screen {
599          display-timings = <&disp_timings>;
600 };
601
602 /*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
603 &lcdc0 {
604         status = "okay";
605         rockchip,mirror = <NO_MIRROR>;
606         rockchip,cabc_mode = <0>;
607         power_ctr: power_ctr {
608                 rockchip,debug = <0>;
609                 lcd_en:lcd_en {
610                         rockchip,power_type = <GPIO>;
611                         gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
612                         rockchip,delay = <10>;
613                 };
614                 
615                 lcd_cs:lcd_cs {
616                         rockchip,power_type = <GPIO>;
617                         gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
618                         rockchip,delay = <10>;
619                 };
620
621                 /*lcd_rst:lcd_rst {
622                         rockchip,power_type = <GPIO>;
623                         gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
624                         rockchip,delay = <5>;
625                 };*/
626
627         };
628 };
629
630 &lcdc1 {
631         status = "okay";
632         rockchip,mirror = <NO_MIRROR>;
633 };
634
635 &hdmi {
636         status = "okay";
637         rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
638 };
639
640 &adc {
641         status = "okay";
642
643         rockchip_headset {
644                 compatible = "rockchip_headset";
645                 headset_gpio = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
646                 pinctrl-names = "default";
647                 pinctrl-0 = <&gpio0_c2>;
648                 io-channels = <&adc 2>; 
649        /*
650                hook_gpio = ;
651                hook_down_type = ; //interrupt hook key down status 
652                 */       
653        };
654
655         key {
656                 compatible = "rockchip,key";
657                 io-channels = <&adc 1>;
658
659                 vol-up-key {
660                         linux,code = <115>;
661                         label = "volume up";
662                         rockchip,adc_value = <1>;
663                 };
664
665                 vol-down-key {
666                         linux,code = <114>;
667                         label = "volume down";
668                         rockchip,adc_value = <170>;
669                 };
670                 
671                 power-key {
672                         gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
673                         linux,code = <116>;
674                         label = "power";
675                         gpio-key,wakeup;
676                 };
677
678                 menu-key {
679                         linux,code = <59>;
680                         label = "menu";
681                         rockchip,adc_value = <355>;
682                 };
683
684                 home-key {
685                         linux,code = <102>;
686                         label = "home";
687                         rockchip,adc_value = <746>;
688                 };
689
690                 back-key {
691                         linux,code = <158>;
692                         label = "back";
693                         rockchip,adc_value = <560>;
694                 };
695
696                 camera-key {
697                         linux,code = <212>;
698                         label = "camera";
699                         rockchip,adc_value = <450>;
700                 };
701         };
702 };
703
704 &pwm0 {
705         status = "okay";
706 };
707
708 &pwm1 {
709         status = "okay";
710 };
711
712
713 &clk_core_dvfs_table {
714         operating-points = <
715                 /* KHz    uV */
716                 126000 850000
717                 216000 850000
718                 312000 850000
719                 408000 850000
720                 600000 900000
721                 696000 950000
722                 816000 1000000
723                 1008000 1050000
724                 1200000 1100000
725                 1416000 1200000
726                 >;
727         status="okay";
728 };
729
730 &clk_gpu_dvfs_table {
731         operating-points = <
732                 /* KHz    uV */
733                 100000 850000
734                 200000 900000
735                 300000 950000
736                 420000 1050000
737                 500000 1150000
738                 >;
739         status="okay";
740 };
741
742 &clk_ddr_dvfs_table {
743         operating-points = <
744                 /* KHz    uV */
745                 200000 950000
746                 300000 950000
747                 400000 1000000
748                 533000 1050000
749                 >;
750
751         freq-table = <
752                 /*status                freq(KHz)*/
753                 SYS_STATUS_NORMAL       400000
754                 SYS_STATUS_SUSPEND      200000
755                 SYS_STATUS_VIDEO_1080P  240000
756                 SYS_STATUS_VIDEO_4K     400000
757                 SYS_STATUS_PERFORMANCE  528000
758                 SYS_STATUS_DUALVIEW     400000
759                 SYS_STATUS_BOOST        324000
760                 SYS_STATUS_ISP          533000
761                 >;
762         bd-freq-table = <
763                 /* bandwidth   freq */
764                 5000           800000
765                 3500           456000
766                 2600           396000
767                 2000           324000
768         >;
769         auto-freq-table = <
770                 240000
771                 324000
772                 396000
773                 528000
774                 >;
775         auto-freq=<1>;
776         status="okay";
777 };
778 /include/ "act8846.dtsi"
779 &act8846 {
780         gpios =<&gpio7 GPIO_A1 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_B2 GPIO_ACTIVE_HIGH>;
781         act8846,system-power-controller;
782
783         regulators {
784                 
785                 dcdc1_reg: regulator@0{
786                         regulator-name= "act_dcdc1";
787                         regulator-min-microvolt = <1200000>;
788                         regulator-max-microvolt = <1200000>;
789                         regulator-always-on;
790                         regulator-boot-on;
791                 };
792
793                 dcdc2_reg: regulator@1 {
794                         regulator-name= "vccio";
795                         regulator-min-microvolt = <3300000>;
796                         regulator-max-microvolt = <3300000>;
797                         regulator-initial-state = <3>;
798                         regulator-state-mem {
799                                 regulator-state-enabled;
800                                 regulator-state-uv = <3300000>;
801                         };              
802                 };
803
804                 dcdc3_reg: regulator@2 {
805                         regulator-name= "vdd_logic";
806                         regulator-min-microvolt = <700000>;
807                         regulator-max-microvolt = <1500000>;
808                         regulator-initial-state = <3>;
809                         regulator-state-mem {
810                                 regulator-state-enabled;
811                                 regulator-state-uv = <1200000>;
812                         };              
813                 
814                 };
815
816                 dcdc4_reg: regulator@3 {
817                         regulator-name= "act_dcdc4";
818                         regulator-min-microvolt = <2000000>;
819                         regulator-max-microvolt = <2000000>;
820                                 regulator-initial-state = <3>;
821                         regulator-state-mem {
822                                 regulator-state-enabled;
823                                 regulator-state-uv = <2000000>;
824                         };
825                 };
826
827                 ldo1_reg: regulator@4 {
828                         regulator-name= "vccio_sd";
829                         regulator-min-microvolt = <1800000>;
830                         regulator-max-microvolt = <3300000>;
831                         
832                 };
833
834                 ldo2_reg: regulator@5 {
835                         regulator-name= "act_ldo2";
836                         regulator-min-microvolt = <1000000>;
837                         regulator-max-microvolt = <1000000>;
838                 
839                 };
840
841                 ldo3_reg: regulator@6 {
842                         regulator-name= "act_ldo3";
843                         regulator-min-microvolt = <3300000>;
844                         regulator-max-microvolt = <3300000>;
845                         
846                 };
847
848                 ldo4_reg:regulator@7 {
849                         regulator-name= "act_ldo4";
850                         regulator-min-microvolt = <3300000>;
851                         regulator-max-microvolt = <3300000>;
852                 
853                 };
854
855                 ldo5_reg: regulator@8 {
856                         regulator-name= "act_ldo5";
857                         regulator-min-microvolt = <3300000>;
858                         regulator-max-microvolt = <3300000>;
859                 
860                 };
861
862                 ldo6_reg: regulator@9 {
863                         regulator-name= "act_ldo6";
864                         regulator-min-microvolt = <1000000>;
865                         regulator-max-microvolt = <1000000>;
866                         regulator-initial-state = <3>;
867                         regulator-state-mem {
868                                 regulator-state-enabled;
869                         };
870                         
871                 };
872
873                 ldo7_reg: regulator@10 {
874                         regulator-name= "vcc_18";
875                         regulator-min-microvolt = <1800000>;
876                         regulator-max-microvolt = <1800000>;
877                         regulator-initial-state = <3>;
878                         regulator-state-mem {
879                                 regulator-state-enabled;
880                         };
881                 
882                 };
883
884                 ldo8_reg: regulator@11 {
885                         regulator-name= "act_ldo8";
886                         regulator-min-microvolt = <1800000>;
887                         regulator-max-microvolt = <1800000>;
888                 
889                 };
890         };
891 };
892
893
894 /include/ "rk808.dtsi"
895 &rk808 {
896         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
897         rk808,system-power-controller;
898
899         regulators {
900                 
901                 rk808_dcdc1_reg: regulator@0{
902                         regulator-name= "vdd_arm";
903                         regulator-min-microvolt = <700000>;
904                         regulator-max-microvolt = <1500000>;
905                         regulator-always-on;
906                         regulator-boot-on;
907                         regulator-initial-mode = <0x2>;
908                         regulator-initial-state = <3>;
909                         regulator-state-mem {
910                                 regulator-state-mode = <0x2>;
911                                 regulator-state-disabled;
912                                 regulator-state-uv = <900000>;
913                         };
914                 };
915
916                 rk808_dcdc2_reg: regulator@1 {
917                         regulator-name= "vdd_gpu";
918                         regulator-min-microvolt = <700000>;
919                         regulator-max-microvolt = <1500000>;
920                         /*regulator-always-on;*/
921                         /*regulator-boot-on;*/
922                         regulator-initial-mode = <0x2>;
923                         regulator-initial-state = <3>;
924                         regulator-state-mem {
925                                 regulator-state-mode = <0x2>;
926                                 regulator-state-disabled;
927                                 regulator-state-uv = <900000>;
928                         };
929                 };
930
931                 rk808_dcdc3_reg: regulator@2 {
932                         regulator-name= "rk_dcdc3";
933                         regulator-min-microvolt = <1200000>;
934                         regulator-max-microvolt = <1200000>;
935                         regulator-always-on;
936                         regulator-boot-on;
937                         regulator-initial-mode = <0x2>;
938                         regulator-initial-state = <3>;
939                         regulator-state-mem {
940                                 regulator-state-mode = <0x2>;
941                                 regulator-state-enabled;
942                                 regulator-state-uv = <1200000>;
943                         };
944                 };
945
946                 rk808_dcdc4_reg: regulator@3 {
947                         regulator-name= "vccio";
948                         regulator-min-microvolt = <1800000>;
949                         regulator-max-microvolt = <3300000>;
950                         regulator-always-on;
951                         regulator-boot-on;
952                         regulator-initial-mode = <0x2>;
953                         regulator-initial-state = <3>;
954                         regulator-state-mem {
955                                 regulator-state-mode = <0x2>;
956                                 regulator-state-enabled;
957                                 regulator-state-uv = <2800000>;
958                         };
959                 };
960
961                 rk808_ldo1_reg: regulator@4 {
962                         regulator-name= "rk_ldo1";
963                         regulator-min-microvolt = <3300000>;
964                         regulator-max-microvolt = <3300000>;
965                         regulator-always-on;
966                         regulator-boot-on;
967                         regulator-initial-state = <3>;
968                         regulator-state-mem {
969                                 regulator-state-enabled;
970                                 regulator-state-uv = <3300000>;
971                         };
972                 };
973
974                 rk808_ldo2_reg: regulator@5 {
975                         regulator-name= "rk_ldo2";
976                         regulator-min-microvolt = <3300000>;
977                         regulator-max-microvolt = <3300000>;
978                         regulator-always-on;
979                         regulator-boot-on;
980                         regulator-initial-state = <3>;
981                         regulator-state-mem {
982                                 regulator-state-enabled;
983                                 regulator-state-uv = <3300000>;
984                         };
985                 };
986
987                 rk808_ldo3_reg: regulator@6 {
988                         regulator-name= "rk_ldo3";
989                         regulator-min-microvolt = <1000000>;
990                         regulator-max-microvolt = <1000000>;
991                         regulator-always-on;
992                         regulator-boot-on;
993                         regulator-initial-state = <3>;
994                         regulator-state-mem {
995                                 regulator-state-enabled;
996                                 regulator-state-uv = <1000000>;
997                         };
998                 };
999
1000                 rk808_ldo4_reg:regulator@7 {
1001                         regulator-name= "rk_ldo4";
1002                         regulator-min-microvolt = <1800000>;
1003                         regulator-max-microvolt = <1800000>;
1004                         regulator-always-on;
1005                         regulator-boot-on;
1006                         regulator-initial-state = <3>;
1007                         regulator-state-mem {
1008                                 regulator-state-disabled;
1009                                 regulator-state-uv = <1800000>;
1010                         };
1011                 };
1012
1013                 rk808_ldo5_reg: regulator@8 {
1014                         regulator-name= "vcc_sd";
1015                         regulator-min-microvolt = <1800000>;
1016                         regulator-max-microvolt = <3300000>;
1017                         regulator-always-on;
1018                         regulator-boot-on;
1019                         regulator-initial-state = <3>;
1020                         regulator-state-mem {
1021                                 regulator-state-enabled;
1022                                 regulator-state-uv = <2800000>;
1023                         };
1024                 };
1025
1026                 rk808_ldo6_reg: regulator@9 {
1027                         regulator-name= "rk_ldo6";
1028                         regulator-min-microvolt = <1000000>;
1029                         regulator-max-microvolt = <1000000>;
1030                         regulator-always-on;
1031                         regulator-boot-on;
1032                         regulator-initial-state = <3>;
1033                         regulator-state-mem {
1034                                 regulator-state-disabled;
1035                                 regulator-state-uv = <1000000>;
1036                         };
1037                 };
1038
1039                 rk808_ldo7_reg: regulator@10 {
1040                         regulator-name= "rk_ldo7";
1041                         regulator-min-microvolt = <1800000>;
1042                         regulator-max-microvolt = <1800000>;
1043                         regulator-always-on;
1044                         regulator-boot-on;
1045                         regulator-initial-state = <3>;
1046                         regulator-state-mem {
1047                                 regulator-state-enabled;
1048                                 regulator-state-uv = <1800000>;
1049                         };
1050                 };
1051
1052                 rk808_ldo8_reg: regulator@11 {
1053                         regulator-name= "rk_ldo8";
1054                         regulator-min-microvolt = <3300000>;
1055                         regulator-max-microvolt = <3300000>;
1056                         regulator-always-on;
1057                         regulator-boot-on;
1058                         regulator-initial-state = <3>;
1059                         regulator-state-mem {
1060                                 regulator-state-enabled;
1061                                 regulator-state-uv = <3300000>;
1062                         };
1063                 };
1064
1065                 rk808_ldo9_reg: regulator@12 {
1066                         regulator-name= "rk_ldo9";
1067                         regulator-always-on;
1068                         regulator-boot-on;
1069                         regulator-initial-state = <3>;
1070                         regulator-state-mem {
1071                                 regulator-state-enabled;
1072                         };
1073                 };
1074
1075                 rk808_ldo10_reg: regulator@13 {
1076                         regulator-name= "rk_ldo10";
1077                         regulator-always-on;
1078                         regulator-boot-on;
1079                         regulator-initial-state = <3>;
1080                         regulator-state-mem {
1081                                 regulator-state-disabled;
1082                         };
1083                 };
1084         };
1085 };
1086
1087 /include/ "ricoh619.dtsi"
1088 &ricoh619 {
1089         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
1090         ricoh619,system-power-controller;
1091         
1092         regulators {
1093                 ricoh619_dcdc1_reg: regulator@0 {
1094                         regulator-name = "vccio";
1095                         regulator-min-microvolt = <3300000>;
1096                         regulator-max-microvolt = <3300000>;
1097                         regulator-initial-mode = <0x2>;
1098                         regulator-initial-state = <3>;
1099                         regulator-state-mem {
1100                                 regulator-state-mode = <0x2>;
1101                                 regulator-state-enabled;
1102                                 regulator-state-uv = <2800000>;
1103                         };      
1104                 };
1105                 ricoh619_dcdc2_reg: regulator@1 {
1106                         regulator-name = "ricoh619_dcdc2";
1107                         regulator-min-microvolt = <2000000>;
1108                         regulator-max-microvolt = <2000000>;
1109                         regulator-initial-mode = <0x2>;
1110                         regulator-initial-state = <3>;
1111                         regulator-state-mem {
1112                                 regulator-state-mode = <0x2>;
1113                                 regulator-state-enabled;
1114                                 regulator-state-uv = <2000000>;
1115                         };      
1116                 };
1117                 ricoh619_dcdc3_reg: regulator@2 {
1118                         regulator-name = "vcc_lcd";
1119                         regulator-min-microvolt = <3300000>;
1120                         regulator-max-microvolt = <3300000>;
1121                         regulator-initial-mode = <0x2>;
1122                         regulator-initial-state = <3>;
1123                         regulator-state-mem {
1124                                 regulator-state-mode = <0x2>;
1125                                 regulator-state-enabled;
1126                                 regulator-state-uv = <3300000>;
1127                         };      
1128                 };
1129                 ricoh619_dcdc4_reg: regulator@3 {
1130                         regulator-name = "vdd_logic";
1131                         regulator-min-microvolt = <700000>;
1132                         regulator-max-microvolt = <1500000>;
1133                         regulator-initial-mode = <0x2>;
1134                         regulator-initial-state = <3>;
1135                         regulator-state-mem {
1136                                 regulator-state-mode = <0x2>;
1137                                 regulator-state-enabled;
1138                                 regulator-state-uv = <900000>;
1139                         };      
1140                 };
1141                 ricoh619_dcdc5_reg: regulator@4 {
1142                         regulator-name = "vcc_ddr";
1143                         regulator-min-microvolt = <1200000>;
1144                         regulator-max-microvolt = <1200000>;
1145                         regulator-initial-mode = <0x2>;
1146                         regulator-initial-state = <3>;
1147                         regulator-state-mem {
1148                                 regulator-state-mode = <0x2>;
1149                                 regulator-state-enabled;
1150                                 regulator-state-uv = <1200000>;
1151                         };      
1152                 };
1153                 ricoh619_ldo1_reg: regulator@5  {
1154                         regulator-name = "vccio_pmu";
1155                         regulator-min-microvolt = <3300000>;
1156                         regulator-max-microvolt = <3300000>;
1157                         regulator-initial-state = <3>;
1158                         regulator-state-mem {
1159                                 regulator-state-enabled;
1160                                 regulator-state-uv = <3300000>;
1161                         };      
1162                 };
1163                 ricoh619_ldo2_reg: regulator@6  {
1164                         regulator-name = "ricoh619_ldo2";
1165                         regulator-min-microvolt = <3300000>;
1166                         regulator-max-microvolt = <3300000>;
1167                         regulator-initial-state = <3>;
1168                         regulator-state-mem {
1169                                 regulator-state-enabled;
1170                                 regulator-state-uv = <3300000>;
1171                         };
1172                 };
1173                 ricoh619_ldo3_reg: regulator@7  {
1174                         regulator-name = "ricoh619_ldo3";
1175                         regulator-min-microvolt = <3300000>;
1176                         regulator-max-microvolt = <3300000>;
1177                         regulator-initial-state = <3>;
1178                         regulator-state-mem {
1179                                 regulator-state-enabled;
1180                                 regulator-state-uv = <3300000>;
1181                         };
1182                 };
1183                 ricoh619_ldo4_reg: regulator@8  {
1184                         regulator-name = "vcc_sd";
1185                         regulator-min-microvolt = <3300000>;
1186                         regulator-max-microvolt = <3300000>;
1187                         regulator-initial-state = <3>;
1188                         regulator-state-mem {
1189                                 regulator-state-enabled;
1190                                 regulator-state-uv = <3300000>;
1191                         };
1192                 };
1193                 ricoh619_ldo5_reg: regulator@9  {
1194                         regulator-name = "vcc_wl";
1195                         regulator-min-microvolt = <1800000>;
1196                         regulator-max-microvolt = <1800000>;
1197                         regulator-initial-state = <3>;
1198                         regulator-state-mem {
1199                                 regulator-state-enabled;
1200                                 regulator-state-uv = <1800000>;
1201                         };
1202                 };
1203                 ricoh619_ldo6_reg: regulator@10  {
1204                         regulator-name = "ricoh619_ldo6";
1205                         regulator-min-microvolt = <1800000>;
1206                         regulator-max-microvolt = <1800000>;
1207                         regulator-initial-state = <3>;
1208                         regulator-state-mem {
1209                                 regulator-state-enabled;
1210                                 regulator-state-uv = <1800000>;
1211                         };
1212                 };
1213                 ricoh619_ldo7_reg: regulator@11  {
1214                         regulator-name = "ricoh619_ldo7";
1215                         regulator-min-microvolt = <1000000>;
1216                         regulator-max-microvolt = <1000000>;
1217                         regulator-initial-state = <3>;
1218                         regulator-state-mem {
1219                                 regulator-state-enabled;
1220                                 regulator-state-uv = <1000000>;
1221                         };
1222                 };
1223                 ricoh619_ldo8_reg: regulator@12  {
1224                         regulator-name = "ricoh619_ldo8";
1225                         regulator-min-microvolt = <3300000>;
1226                         regulator-max-microvolt = <3300000>;
1227                         regulator-initial-state = <3>;
1228                         regulator-state-mem {
1229                                 regulator-state-enabled;
1230                                 regulator-state-uv = <3300000>;
1231                         };
1232                 };
1233                 ricoh619_ldo9_reg: regulator@13  {
1234                         regulator-name = "ricoh619_ldo9";
1235                         regulator-min-microvolt = <1000000>;
1236                         regulator-max-microvolt = <1000000>;
1237                         regulator-initial-state = <3>;
1238                         regulator-state-mem {
1239                                 regulator-state-enabled;
1240                                 regulator-state-uv = <1000000>;
1241                         };
1242                 };
1243                 ricoh619_ldo10_reg: regulator@14  {
1244                         regulator-name = "vcc_18";
1245                         regulator-min-microvolt = <1800000>;
1246                         regulator-max-microvolt = <1800000>;
1247                         regulator-initial-state = <3>;
1248                         regulator-state-mem {
1249                                 regulator-state-enabled;
1250                                 regulator-state-uv = <1800000>;
1251                         };
1252                 };
1253                 ricoh619_ldortc1_reg: regulator@15  {
1254                         regulator-name = "ricoh619_ldortc1";
1255                         regulator-min-microvolt = < 3300000>;
1256                         regulator-max-microvolt = <3300000>;
1257                 };
1258                 ricoh619_ldortc2_reg: regulator@16  {
1259                         regulator-name = "ricoh619_ldortc2";
1260                         regulator-min-microvolt = < 3300000>;
1261                         regulator-max-microvolt = <3300000>;
1262                 };
1263         };
1264 };
1265 /include/ "rk818.dtsi"
1266 &rk818 {
1267         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
1268         rk818,system-power-controller;
1269
1270         regulators {
1271                 
1272                 rk818_dcdc1_reg: regulator@0{
1273                         regulator-name= "vdd_logic";
1274                         regulator-min-microvolt = <700000>;
1275                         regulator-max-microvolt = <1500000>;
1276                         regulator-initial-mode = <0x2>;
1277                         regulator-initial-state = <3>;
1278                         regulator-state-mem {
1279                                 regulator-state-mode = <0x2>;
1280                                 regulator-state-enabled;
1281                                 regulator-state-uv = <900000>;
1282                         };              
1283                 };
1284
1285                 rk818_dcdc2_reg: regulator@1 {
1286                         regulator-name= "rk818_dcdc2";
1287                         regulator-min-microvolt = <1200000>;
1288                         regulator-max-microvolt = <1200000>;    
1289                         regulator-initial-mode = <0x2>;
1290                         regulator-initial-state = <3>;
1291                         regulator-state-mem {
1292                                 regulator-state-mode = <0x2>;
1293                                 regulator-state-enabled;
1294                                 regulator-state-uv = <1200000>;
1295                         };      
1296                 };
1297
1298                 rk818_dcdc3_reg: regulator@2 {
1299                         regulator-name= "rk818_dcdc3";
1300                         regulator-min-microvolt = <1200000>;
1301                         regulator-max-microvolt = <1200000>;
1302                                 regulator-initial-mode = <0x2>;
1303                         regulator-initial-state = <3>;
1304                         regulator-state-mem {
1305                                 regulator-state-mode = <0x2>;
1306                                 regulator-state-enabled;
1307                                 regulator-state-uv = <1200000>;
1308                         };      
1309                 };
1310
1311                 rk818_dcdc4_reg: regulator@3 {
1312                         regulator-name= "vccio";
1313                         regulator-min-microvolt = <1800000>;
1314                         regulator-max-microvolt = <3300000>;
1315                         regulator-initial-mode = <0x2>;
1316                         regulator-initial-state = <3>;
1317                         regulator-state-mem {
1318                                 regulator-state-mode = <0x2>;
1319                                 regulator-state-enabled;
1320                                 regulator-state-uv = <2800000>;
1321                         };      
1322                 };
1323
1324                 rk818_ldo1_reg: regulator@4 {
1325                         regulator-name= "rk818_ldo1";
1326                         regulator-min-microvolt = <3300000>;
1327                         regulator-max-microvolt = <3300000>;
1328                         regulator-initial-state = <3>;
1329                         regulator-state-mem {
1330                                 regulator-state-enabled;
1331                                 regulator-state-uv = <3300000>;
1332                         };      
1333                 };
1334
1335                 rk818_ldo2_reg: regulator@5 {
1336                         regulator-name= "rk818_ldo2";
1337                         regulator-min-microvolt = <3300000>;
1338                         regulator-max-microvolt = <3300000>;
1339                         regulator-initial-state = <3>;
1340                         regulator-state-mem {
1341                                 regulator-state-enabled;
1342                                 regulator-state-uv = <3300000>;
1343                         };      
1344                 };
1345
1346                 rk818_ldo3_reg: regulator@6 {
1347                         regulator-name= "rk818_ldo3";
1348                         regulator-min-microvolt = <1000000>;
1349                         regulator-max-microvolt = <1000000>;
1350                         regulator-initial-state = <3>;
1351                         regulator-state-mem {
1352                                 regulator-state-enabled;
1353                                 regulator-state-uv = <1000000>;
1354                         };      
1355                 };
1356
1357                 rk818_ldo4_reg:regulator@7 {
1358                         regulator-name= "rk818_ldo4";
1359                         regulator-min-microvolt = <1800000>;
1360                         regulator-max-microvolt = <1800000>;
1361                         regulator-initial-state = <3>;
1362                         regulator-state-mem {
1363                                 regulator-state-disabled;
1364                                 regulator-state-uv = <1800000>;
1365                         };
1366                 };
1367
1368                 rk818_ldo5_reg: regulator@8 {
1369                         regulator-name= "rk818_ldo5";
1370                         regulator-min-microvolt = <3300000>;
1371                         regulator-max-microvolt = <3300000>;
1372                         regulator-initial-state = <3>;
1373                         regulator-state-mem {
1374                                 regulator-state-enabled;
1375                                 regulator-state-uv = <3300000>;
1376                         };
1377                 };
1378
1379                 rk818_ldo6_reg: regulator@9 {
1380                         regulator-name= "rk818_ldo6";
1381                         regulator-min-microvolt = <1000000>;
1382                         regulator-max-microvolt = <1000000>;
1383                         regulator-initial-state = <3>;
1384                         regulator-state-mem {
1385                                 regulator-state-disabled;
1386                                 regulator-state-uv = <1000000>;
1387                         };      
1388                 };
1389
1390                 rk818_ldo7_reg: regulator@10 {
1391                         regulator-name= "rk818_ldo7";
1392                         regulator-min-microvolt = <1800000>;
1393                         regulator-max-microvolt = <1800000>;
1394                         regulator-initial-state = <3>;
1395                         regulator-state-mem {
1396                                 regulator-state-enabled;
1397                                 regulator-state-uv = <1800000>;
1398                         };      
1399                 };
1400
1401                 rk818_ldo8_reg: regulator@11 {
1402                         regulator-name= "rk818_ldo8";
1403                         regulator-min-microvolt = <1800000>;
1404                         regulator-max-microvolt = <1800000>;
1405                         regulator-initial-state = <3>;
1406                         regulator-state-mem {
1407                                 regulator-state-enabled;
1408                                 regulator-state-uv = <1800000>;
1409                         };      
1410                 };
1411                 rk818_ldo9_reg: regulator@12 {
1412                         regulator-name= "vcc_sd";
1413                         regulator-min-microvolt = <1800000>;
1414                 regulator-max-microvolt = <3300000>;
1415                         regulator-initial-state = <3>;
1416                         regulator-state-mem {
1417                                 regulator-state-enabled;
1418                                 regulator-state-uv = <3300000>;
1419                         };
1420                 };
1421                 rk818_ldo10_reg: regulator@13 {
1422                         regulator-name= "rk818_ldo10";
1423                         regulator-state-mem {
1424                                 regulator-state-disabled;
1425                         };
1426                 };
1427         };
1428        battery {
1429                 ocv_table = <3350 3677 3693 3719 3752 3770 3775 3778 3785 3796 3812 3839 3881 3907 3933 3958 3978 4033 4087 4123 4174>;
1430                 design_capacity = <2100>;
1431                 design_qmax = <2200>;
1432                 max_overcharge = <100>;
1433                 bat_res = <80>;
1434                 max_input_currentmA  = <2000>;
1435                 max_chrg_currentmA = <1800>;
1436                 max_charge_voltagemV = <4200>;
1437                 max_bat_voltagemV = <4200>;
1438                 sleep_enter_current = <300>;
1439                 sleep_exit_current = <300>;
1440                 power_off_thresd = <3400>;
1441                 chrg_diff_voltagemV = <0>;
1442                 virtual_power = <1>;
1443                 support_usb_adp = <0>;
1444                 support_dc_adp = <1>;
1445                 power_dc2otg = <0>;
1446                 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
1447         };
1448 };
1449
1450 &lcdc_vdd_domain {
1451         regulator-name = "vcc30_lcd";
1452         };
1453 &dpio_vdd_domain{
1454         regulator-name = "vcc18_cif";   
1455         };
1456 &flash0_vdd_domain{
1457         regulator-name = "vcc_flash";   
1458         };
1459 &flash1_vdd_domain{
1460         regulator-name = "vcc_flash";                   
1461         };
1462 &apio3_vdd_domain{
1463         regulator-name = "vccio_wl";            
1464         };
1465 &apio5_vdd_domain{
1466         regulator-name = "vccio";               
1467         };
1468 &apio4_vdd_domain{
1469         regulator-name = "vccio";               
1470         };
1471 &apio1_vdd_domain{
1472         regulator-name = "vccio";                       
1473         };
1474 &apio2_vdd_domain{
1475         regulator-name = "vccio";               
1476         };
1477 &sdmmc0_vdd_domain{
1478         regulator-name = "vcc_sd";                      
1479         };
1480
1481 &dwc_control_usb {
1482         usb_uart {
1483                 status = "disabled";
1484         };
1485 };