Merge branch develop-3.10 into develop-3.10-next
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3288-tb_8846.dts
1 /dts-v1/;
2
3 #include "rk3288.dtsi"
4 //#include "lcd-b101ew05.dtsi"
5 #include "lcd-F402.dtsi"
6 #include "vtl_ts_sdk8846.dtsi"
7 #include "rk3288-cif-sensor.dtsi"
8 / {
9         fiq-debugger {
10                 status = "okay";
11         };
12
13     wireless-wlan {
14         compatible = "wlan-platdata";
15
16         /* wifi_chip_type - wifi chip define
17          * bcmwifi ==> like ap6xxx, rk90x;
18          * rtkwifi ==> like rtl8188xx, rtl8723xx;
19          * esp8089 ==> esp8089;
20          * other   ==> for other wifi;
21          */
22         wifi_chip_type = "bcmwifi";
23
24         sdio_vref = <1800>; //1800mv or 3300mv
25
26         //keep_wifi_power_on;
27
28         //power_ctrl_by_pmu;
29         power_pmu_regulator = "act_ldo3";
30         power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
31
32         //vref_ctrl_enable;
33         //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
34         vref_pmu_regulator = "act_ldo3";
35         vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
36
37         WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
38         WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
39         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
40
41         status = "okay";
42     };
43
44     wireless-bluetooth {
45         compatible = "bluetooth-platdata";
46
47         //wifi-bt-power-toggle;
48
49         uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
50         pinctrl-names = "default","rts_gpio";
51         pinctrl-0 = <&uart0_rts>;
52         pinctrl-1 = <&uart0_rts_gpio>;
53
54         BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
55         BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
56         BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
57         BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_HIGH>;
58
59         status = "okay";
60     };
61
62     hallsensor {
63                compatible = "hall_och165t";
64                type = <SENSOR_TYPE_HALL>;
65                irq-gpio = <&gpio0 GPIO_A6 IRQ_TYPE_EDGE_BOTH>;
66      };
67
68         backlight {
69                 compatible = "pwm-backlight";
70                 pwms = <&pwm0 0 25000>;
71                 brightness-levels = <255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240
72                      239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220
73                      219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200
74                      199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180
75                      179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160
76                      159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140
77                      139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120
78                      119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100
79                      99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70
80                      69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40
81                      39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
82                      9 8 7 6 5 4 3 2 1 0>;
83                 default-brightness-level = <200>;
84                 enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>;
85         };
86
87         pwm_regulator {
88                 compatible = "rockchip_pwm_regulator";
89                 pwms = <&pwm1 0 2000>;
90                 rockchip,pwm_id= <1>;
91                 rockchip,pwm_voltage_map= <925000 950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000>;
92                 rockchip,pwm_voltage= <1000000>;
93                 rockchip,pwm_min_voltage= <925000>;
94                 rockchip,pwm_max_voltage= <1400000>;
95                 rockchip,pwm_suspend_voltage= <950000>;
96                 rockchip,pwm_coefficient= <475>;
97                 regulators {
98                         #address-cells = <1>;
99                         #size-cells = <0>;
100                         pwm_reg0: regulator@0 {
101                                 regulator-compatible = "pwm_dcdc1";
102                                 regulator-name= "vdd_logic";
103                                 regulator-min-microvolt = <925000>;
104                                 regulator-max-microvolt = <1400000>;
105                                 regulator-always-on;
106                                 regulator-boot-on;
107                         };
108                 };
109         };
110
111         codec_hdmi_i2s: codec-hdmi-i2s {
112                 compatible = "hdmi-i2s";
113         };
114
115         codec_hdmi_spdif: codec-hdmi-spdif {
116                 compatible = "hdmi-spdif";
117         };
118
119         rockchip-hdmi-i2s {
120                 compatible = "rockchip-hdmi-i2s";
121                 dais {
122                         dai0 {
123                                 audio-codec = <&codec_hdmi_i2s>;
124                                 i2s-controller = <&i2s>;
125                                 format = "i2s";
126                                 //continuous-clock;
127                                 //bitclock-inversion;
128                                 //frame-inversion;
129                                 //bitclock-master;
130                                 //frame-master;
131                         };
132                 };
133         };
134         
135         rockchip-hdmi-spdif {
136                 compatible = "rockchip-hdmi-spdif";
137                 dais {
138                         dai0 {
139                                 audio-codec = <&codec_hdmi_spdif>;
140                                 i2s-controller = <&spdif>;
141                         };
142                 };
143         };
144
145         rockchip-rt5631 {
146                 compatible = "rockchip-rt5631";
147                 dais {
148                         dai0 {
149                                 audio-codec = <&rt5631>;
150                                 i2s-controller = <&i2s>;
151                                 format = "i2s";
152                                 //continuous-clock;
153                                 //bitclock-inversion;
154                                 //frame-inversion;
155                                 //bitclock-master;
156                                 //frame-master;
157                         };
158                 };
159         };
160
161         rockchip-rt3224 {
162                 compatible = "rockchip-rt3261";
163                 dais {
164                         dai0 {
165                                 audio-codec = <&rt3261>;
166                                 i2s-controller = <&i2s>;
167                                 format = "i2s";
168                                 //continuous-clock;
169                                 //bitclock-inversion;
170                                 //frame-inversion;
171                                 //bitclock-master;
172                                 //frame-master;
173                         };
174                         dai1 {
175                                 audio-codec = <&rt3261>;
176                                 i2s-controller = <&i2s>;
177                                 format = "dsp_a";
178                                 //continuous-clock;
179                                 bitclock-inversion;
180                                 //frame-inversion;
181                                 //bitclock-master;
182                                 //frame-master;
183                         };
184                 };
185         };
186
187         usb_control {
188                 compatible = "rockchip,rk3288-usb-control";
189
190                 host_drv_gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
191                 otg_drv_gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
192
193                 rockchip,remote_wakeup;
194                 rockchip,usb_irq_wakeup;
195         };
196         chosen {
197                 bootargs = "vmalloc=512M";
198         };
199 };
200
201 &gmac {
202 //      power_ctl_by = "gpio";  //"gpio" "pmu"
203         power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
204 //      power-pmu = "act_ldo"
205 //      reset-gpio = <&gpio4 GPIO_A7 GPIO_ACTIVE_LOW>;
206         phy-mode = "rgmii";
207         clock_in_out = "input";
208         tx_delay = <0x28>;
209         rx_delay = <0x10>;
210         status = "disabled"; //if want to use gmac, please set "okay"
211 };
212
213 &pinctrl {
214         //used for init some gpio
215         init-gpios = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH
216                         /*&gpio0 GPIO_C2 GPIO_ACTIVE_HIGH */
217                         /*&gpio7 GPIO_B7 GPIO_ACTIVE_LOW */>;
218         
219         gpio0_gpio {
220                         gpio0_c2: gpio0-c2 {
221                                 rockchip,pins = <GPIO0_C2>;
222                                 rockchip,pull = <VALUE_PULL_DOWN>;
223                         };
224
225                         //to add
226                 };
227                 
228         gpio7_gpio {
229                         gpio7_a7: gpio7-a7 {
230                                 rockchip,pins = <GPIO7_A7>;
231                                 rockchip,pull = <VALUE_PULL_DOWN>;
232                         };
233
234                         //to add
235                 };
236                 
237         //could add other pinctrl definition such as gpio
238
239         // gmac drive strength
240         gpio4_gmac {
241                 mac_clk: mac-clk {
242                         rockchip,drive = <VALUE_DRV_12MA>;
243                 };
244
245                 mac_txpins: mac-txpins {
246                         rockchip,drive = <VALUE_DRV_12MA>;
247                 };
248
249                 mac_rxpins: mac-rxpins {
250                         rockchip,drive = <VALUE_DRV_12MA>;
251                 };
252
253                 mac_crs: mac-crs {
254                         rockchip,drive = <VALUE_DRV_12MA>;
255                 };
256
257                 mac_mdpins: mac-mdpins {
258                         rockchip,drive = <VALUE_DRV_12MA>;
259                 };
260         };
261 };
262
263 &nandc0 {
264         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
265 };
266 &nandc1 {
267         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
268 };   
269
270 &nandc0reg {
271         status = "okay"; // used nand set "disabled" ,used emmc set "okay"
272 };
273
274 &emmc {
275         clock-frequency = <100000000>;
276         clock-freq-min-max = <400000 100000000>;
277
278         supports-highspeed;
279         supports-emmc;
280         bootpart-no-access;
281
282         //supports-tSD;
283         //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
284         //caps2-mmc-hs200;
285
286         ignore-pm-notify;
287         keep-power-in-suspend;
288         
289         //poll-hw-reset 
290         status = "okay";
291 };
292     
293 &sdmmc {
294                 clock-frequency = <50000000>;
295                 clock-freq-min-max = <400000 50000000>;
296                 supports-highspeed;
297                 supports-sd;
298                 broken-cd;
299                 card-detect-delay = <200>;
300
301                 ignore-pm-notify;
302                 keep-power-in-suspend;
303         
304                 vmmc-supply = <&ldo1_reg>;
305                 status = "okay";
306 };
307                 
308 &sdio {
309                 clock-frequency = <50000000>;
310                 clock-freq-min-max = <200000 50000000>;
311                 supports-highspeed;
312                 supports-sdio;
313                 ignore-pm-notify;
314                 keep-power-in-suspend;
315                 //cap-sdio-irq;
316                 status = "okay";
317 };
318
319 &spi0 {
320         status = "disabled";
321         max-freq = <48000000>;  
322         /*
323         spi_test@00 {
324                 compatible = "rockchip,spi_test_bus0_cs0";
325                 reg = <0>;
326                 spi-max-frequency = <24000000>;
327                 //spi-cpha;
328                 //spi-cpol;
329                 poll_mode = <0>;
330                 type = <0>;
331                 enable_dma = <0>;
332
333         };
334
335         spi_test@01 {
336                 compatible = "rockchip,spi_test_bus0_cs1";
337                 reg = <1>;
338                 spi-max-frequency = <24000000>;
339                 spi-cpha;
340                 spi-cpol;
341                 poll_mode = <0>;
342                 type = <0>;
343                 enable_dma = <0>;               
344         };
345         */
346 };
347
348 &spi1 {
349         status = "disabled";
350         max-freq = <48000000>;
351         /*
352         spi_test@10 {
353                 compatible = "rockchip,spi_test_bus1_cs0";
354                 reg = <0>;
355                 spi-max-frequency = <24000000>;
356                 //spi-cpha;
357                 //spi-cpol;
358                 poll_mode = <0>;
359                 type = <0>;
360                 enable_dma = <0>;
361         };
362
363         */
364 };
365
366 &spi2 {
367         status = "disabled";
368         max-freq = <48000000>;
369         /*
370         spi_test@20 {
371                 compatible = "rockchip,spi_test_bus2_cs0";
372                 reg = <0>;
373                 spi-max-frequency = <24000000>;
374                 //spi-cpha;
375                 //spi-cpol;
376                 poll_mode = <0>;
377                 type = <0>;
378                 enable_dma = <0>;
379         };
380
381         spi_test@21 {
382                 compatible = "rockchip,spi_test_bus2_cs1";
383                 reg = <1>;
384                 spi-max-frequency = <24000000>;
385                 //spi-cpha;
386                 //spi-cpol;
387                 poll_mode = <0>;
388                 type = <0>;
389                 enable_dma = <0>;
390         };
391         */
392 };
393
394 &uart_bt {
395         status = "okay";
396         dma-names = "!tx", "!rx";
397         pinctrl-0 = <&uart0_xfer &uart0_cts>;
398 };
399
400 &i2c0 {
401         status = "okay";
402         rk808: rk808@1b {
403                 reg = <0x1b>;
404                 status = "okay";
405         };
406         rk818: rk818@1c {
407                 reg = <0x1c>;
408                 status = "okay";
409         };
410                 syr827: syr827@40 {
411                 compatible = "silergy,syr82x";
412         reg = <0x40>;
413                 status = "okay";
414                 regulators {
415                         #address-cells = <1>;
416                         #size-cells = <0>;      
417                         syr827_dc1: regulator@0 {
418                         reg = <0>;
419                         regulator-compatible = "syr82x_dcdc1";
420                         regulator-name = "vdd_arm";
421                         regulator-min-microvolt = <712500>;
422                         regulator-max-microvolt = <1500000>;
423                         regulator-always-on;
424                         regulator-boot-on;
425                         regulator-initial-mode = <0x2>;
426                         regulator-initial-state = <3>;
427                         regulator-state-mem {
428                                 regulator-state-mode = <0x2>;
429                                 regulator-state-disabled;
430                                 regulator-state-uv = <900000>;
431                         };
432                 };
433            };
434         };
435         syr828: syr828@41 {
436                 compatible = "silergy,syr82x";
437                 reg = <0x41>;
438                 status = "okay";
439                 regulators {
440                         #address-cells = <1>;
441                         #size-cells = <0>;      
442                         syr828_dc1: regulator@0 {
443                         reg = <0>;
444                         regulator-compatible = "syr82x_dcdc1";
445                         regulator-name = "vdd_gpu";
446                         regulator-min-microvolt = <712500>;
447                         regulator-max-microvolt = <1500000>;
448                         regulator-always-on;
449                 regulator-boot-on;
450                         regulator-initial-mode = <0x2>;
451                         regulator-initial-state = <3>;
452                         regulator-state-mem {
453                                 regulator-state-mode = <0x2>;
454                                 regulator-state-enabled;
455                                 regulator-state-uv = <900000>;
456                         };      
457                 };
458            };
459         };
460         act8846: act8846@5a {
461                 reg = <0x5a>;
462                 status = "okay";
463         };
464
465         ricoh619: ricoh619@32 {
466                 reg = <0x32>;
467                 status = "okay";
468         };
469         bq24296: bq24296@6b {
470                 compatible = "ti,bq24296";
471                 reg = <0x6b>;
472                 gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B0 GPIO_ACTIVE_HIGH>;
473                 bq24296,chg_current = <1000 2000 3000>;
474                 status = "okay";
475         };
476         
477         bq27320: bq27320@55 {
478                 compatible = "ti,bq27320";
479                 reg = <0x55>;
480         /*   gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */
481                 status = "okay";
482         };
483
484         CW2015@62 {
485                 compatible = "cw201x";
486                 reg = <0x62>;
487                 dc_det_gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
488                 bat_low_gpio = <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
489                 chg_ok_gpio = <&gpio0 GPIO_B1 GPIO_ACTIVE_HIGH>;
490                 bat_config_info = <0x15 0x42 0x60 0x59 0x52 0x58 0x4D 0x48 0x48 0x44 0x44 0x46 0x49 0x48 0x32
491                         0x24 0x20 0x17 0x13 0x0F 0x19 0x3E 0x51 0x45 0x08 0x76 0x0B 0x85 0x0E 0x1C 0x2E 0x3E 0x4D 0x52 0x52
492                         0x57 0x3D 0x1B 0x6A 0x2D 0x25 0x43 0x52 0x87 0x8F 0x91 0x94 0x52 0x82 0x8C 0x92 0x96 0xFF 0x7B 0xBB
493                         0xCB 0x2F 0x7D 0x72 0xA5 0xB5 0xC1 0x46 0xAE>;
494                 is_dc_charge = <1>;
495                 is_usb_charge = <0>;
496         };
497         
498         rtc@51 {
499                 compatible = "rtc,hym8563";
500                 reg = <0x51>;
501                 irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
502         };
503
504 };
505
506 &i2c1 {
507         status = "okay";
508                 
509         mpu6050:mpu@68{
510                 compatible = "mpu6050";
511                 reg = <0x68>;
512                 mpu-int_config = <0x10>;
513                 mpu-level_shifter = <0>;
514                 mpu-orientation = <0 1 0 1 0 0 0 0 1>;  
515                 orientation-x= <0>;
516                 orientation-y= <1>;
517                 orientation-z= <1>;
518                 irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_LEVEL_LOW>;                 
519                 mpu-debug = <0>;
520         };
521         
522
523         ak8963:compass@0d{
524                 compatible = "mpu_ak8963";
525                 reg = <0x0d>;
526                 compass-bus = <0>;
527                 compass-adapt_num = <0>;
528                 compass-orientation = <1 0 0 0 1 0 0 0 1>;
529                 orientation-x= <0>;
530                 orientation-y= <0>;
531                 orientation-z= <1>;     
532                 compass-debug = <1>;
533                 status = "okay";
534         };      
535
536 };
537
538 &i2c2 {
539         status = "okay";
540         rt5631: rt5631@1a {
541                 compatible = "rt5631";
542                 reg = <0x1a>;
543         };
544         es8323: es8323@10 {
545                 compatible = "es8323";
546                 reg = <0x10>;
547         };
548         rt3261: rt3261@1c {
549                 compatible = "rt3261";
550                 reg = <0x1c>;
551         //      codec-en-gpio = <0>;//sdk default high level
552                 spk-num= <2>;
553                 modem-input-mode = <1>;
554                 lout-to-modem_mode = <1>;
555                 spk-amplify = <2>;
556                 playback-if1-data_control = <0>;
557                 playback-if2-data_control = <0>;
558         };
559         rt5616: rt5616@1b {
560                 compatible = "rt5616";
561                 reg = <0x1b>;
562         };
563 };
564
565 &i2c3 {
566         status = "okay";
567 };
568
569 &i2c4 {
570         status = "okay";
571         
572         ts@01 {
573                 compatible = "ct,vtl_ts";
574                 reg = <0x01>;
575                 screen_max_x = <1536>;
576                 screen_max_y = <2048>;
577                 xy_swap = <1>;
578                 x_reverse = <0>;
579                 y_reverse = <0>;
580                 x_mul = <2>;
581                 y_mul = <2>;
582                 bin_ver = <0>;
583                 irq_gpio_number = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>;
584                 rst_gpio_number = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>;
585         };
586 };
587
588 &i2c5 {
589         status = "disable";
590 };
591
592 &fb {
593         rockchip,disp-mode = <DUAL>;
594         rockchip,uboot-logo-on = <1>;
595 };
596
597 &rk_screen {
598          display-timings = <&disp_timings>;
599 };
600
601 /*lcdc0 as PRMRY(LCD),lcdc1 as EXTEND(HDMI)*/
602 &lcdc0 {
603         status = "okay";
604         rockchip,mirror = <NO_MIRROR>;
605         rockchip,cabc_mode = <0>;
606         power_ctr: power_ctr {
607                 rockchip,debug = <0>;
608                 /*lcd_18:lcd18 {
609                         rockchip,power_type = <REGULATOR>;
610                         rockchip,regulator_name = "vcc_18";
611                         rockchip,regulator_voltage = <1800000>;
612                         rockchip,delay = <5>;
613                 };*/
614
615                 lcd_en:lcd_en {
616                         rockchip,power_type = <GPIO>;
617                         gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
618                         rockchip,delay = <10>;
619                 };
620                 
621                 lcd_cs:lcd_cs {
622                         rockchip,power_type = <GPIO>;
623                         gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
624                         rockchip,delay = <10>;
625                 };
626
627                 /*lcd_rst:lcd_rst {
628                         rockchip,power_type = <GPIO>;
629                         gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
630                         rockchip,delay = <5>;
631                 };*/
632
633         };
634 };
635
636 &lcdc1 {
637         status = "okay";
638         rockchip,mirror = <ROTATE_270>;
639
640 };
641
642 &hdmi {
643         status = "okay";
644         rockchips,hdmi_audio_source = <0>;
645 };
646
647 &adc {
648         status = "okay";
649
650         rockchip_headset {
651                 compatible = "rockchip_headset";
652                 headset_gpio = <&gpio7 GPIO_A7 GPIO_ACTIVE_LOW>;
653                 pinctrl-names = "default";
654                 pinctrl-0 = <&gpio7_a7>;
655                 io-channels = <&adc 2>; 
656        /*
657                hook_gpio = ;
658                hook_down_type = ; //interrupt hook key down status 
659                 */       
660        };
661
662         key {
663                 compatible = "rockchip,key";
664                 io-channels = <&adc 1>;
665
666                 vol-up-key {
667                         linux,code = <115>;
668                         label = "volume up";
669                         rockchip,adc_value = <1>;
670                 };
671
672                 vol-down-key {
673                         linux,code = <114>;
674                         label = "volume down";
675                         rockchip,adc_value = <170>;
676                 };
677                 
678                 power-key {
679                         gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
680                         linux,code = <116>;
681                         label = "power";
682                         gpio-key,wakeup;
683                 };
684
685                 menu-key {
686                         linux,code = <59>;
687                         label = "menu";
688                         rockchip,adc_value = <355>;
689                 };
690
691                 home-key {
692                         linux,code = <102>;
693                         label = "home";
694                         rockchip,adc_value = <746>;
695                 };
696
697                 back-key {
698                         linux,code = <158>;
699                         label = "back";
700                         rockchip,adc_value = <560>;
701                 };
702
703                 camera-key {
704                         linux,code = <212>;
705                         label = "camera";
706                         rockchip,adc_value = <450>;
707                 };
708         };
709 };
710
711 &pwm0 {
712         status = "okay";
713 };
714
715 &pwm1 {
716         status = "okay";
717 };
718
719
720 &clk_core_dvfs_table {
721         operating-points = <
722                 /* KHz    uV */
723                 126000 900000
724                 216000 900000
725                 312000 900000
726                 408000 900000
727                 600000 900000
728                 696000 950000
729                 816000 1000000
730                 1008000 1050000
731                 1200000 1100000
732                 1416000 1200000
733                 1512000 1300000
734                 1608000 1350000
735         //      1704000 1350000
736         //      1800000 1400000
737                 >;
738         support-pvtm = <1>;
739         pvtm-operating-points = <
740                 /* KHz    uV    margin(uV)*/
741                 126000 900000   25000
742                 216000 900000   25000
743                 312000 900000   25000
744                 408000 900000   25000
745                 600000 900000   25000
746                 696000 950000   25000
747                 816000 1000000  25000
748                 1008000 1050000 25000
749                 1200000 1100000 25000
750                 1416000 1200000 25000
751                 1512000 1300000 25000
752                 1608000 1350000 25000
753                 >;
754         status="okay";
755 };
756
757 &clk_gpu_dvfs_table {
758         operating-points = <
759                 /* KHz    uV */
760                 100000 900000
761                 200000 900000
762                 300000 950000
763                 420000 1050000
764                 500000 1150000
765                 >;
766         status="okay";
767 };
768
769 &clk_ddr_dvfs_table {
770         operating-points = <
771                 /* KHz    uV */
772                 200000 1050000
773                 300000 1050000
774                 400000 1100000
775                 533000 1150000
776                 >;
777
778         freq-table = <
779                 /*status                freq(KHz)*/
780                 SYS_STATUS_NORMAL       400000
781                 SYS_STATUS_SUSPEND      200000
782                 SYS_STATUS_VIDEO_1080P  240000
783                 SYS_STATUS_VIDEO_4K     400000
784                 SYS_STATUS_PERFORMANCE  528000
785                 SYS_STATUS_DUALVIEW     400000
786                 SYS_STATUS_BOOST        324000
787                 SYS_STATUS_ISP          400000
788                 >;
789         auto-freq-table = <
790                 240000
791                 324000
792                 396000
793                 528000
794                 >;
795         auto-freq=<1>;
796         status="okay";
797 };
798 /include/ "act8846.dtsi"
799 &act8846 {
800         gpios =<&gpio7 GPIO_A1 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_B2 GPIO_ACTIVE_HIGH>;
801         act8846,system-power-controller;
802
803         regulators {
804                 
805                 dcdc1_reg: regulator@0{
806                         regulator-name= "act_dcdc1";
807                         regulator-min-microvolt = <1200000>;
808                         regulator-max-microvolt = <1200000>;
809                         regulator-always-on;
810                         regulator-boot-on;
811                 };
812
813                 dcdc2_reg: regulator@1 {
814                         regulator-name= "vccio";
815                         regulator-min-microvolt = <3300000>;
816                         regulator-max-microvolt = <3300000>;
817                         regulator-initial-state = <3>;
818                         regulator-state-mem {
819                                 regulator-state-enabled;
820                                 regulator-state-uv = <3300000>;
821                         };              
822                 };
823
824                 dcdc3_reg: regulator@2 {
825                         regulator-name= "vdd_logic";
826                         regulator-min-microvolt = <700000>;
827                         regulator-max-microvolt = <1500000>;
828                         regulator-initial-state = <3>;
829                         regulator-state-mem {
830                                 regulator-state-enabled;
831                                 regulator-state-uv = <1000000>;
832                         };              
833                 
834                 };
835
836                 dcdc4_reg: regulator@3 {
837                         regulator-name= "act_dcdc4";
838                         regulator-min-microvolt = <2000000>;
839                         regulator-max-microvolt = <2000000>;
840                                 regulator-initial-state = <3>;
841                         regulator-state-mem {
842                                 regulator-state-enabled;
843                                 regulator-state-uv = <2000000>;
844                         };
845                 };
846
847                 ldo1_reg: regulator@4 {
848                         regulator-name= "vccio_sd";
849                         regulator-min-microvolt = <1800000>;
850                         regulator-max-microvolt = <3300000>;
851                         
852                 };
853
854                 ldo2_reg: regulator@5 {
855                         regulator-name= "act_ldo2";
856                         regulator-min-microvolt = <1000000>;
857                         regulator-max-microvolt = <1000000>;
858                 
859                 };
860
861                 ldo3_reg: regulator@6 {
862                         regulator-name= "act_ldo3";
863                         regulator-min-microvolt = <3300000>;
864                         regulator-max-microvolt = <3300000>;
865                         
866                 };
867
868                 ldo4_reg:regulator@7 {
869                         regulator-name= "act_ldo4";
870                         regulator-min-microvolt = <3300000>;
871                         regulator-max-microvolt = <3300000>;
872                 
873                 };
874
875                 ldo5_reg: regulator@8 {
876                         regulator-name= "act_ldo5";
877                         regulator-min-microvolt = <3300000>;
878                         regulator-max-microvolt = <3300000>;
879                 
880                 };
881
882                 ldo6_reg: regulator@9 {
883                         regulator-name= "act_ldo6";
884                         regulator-min-microvolt = <1000000>;
885                         regulator-max-microvolt = <1000000>;
886                         regulator-initial-state = <3>;
887                         regulator-state-mem {
888                                 regulator-state-enabled;
889                         };
890                         
891                 };
892
893                 ldo7_reg: regulator@10 {
894                         regulator-name= "vcc_18";
895                         regulator-min-microvolt = <1800000>;
896                         regulator-max-microvolt = <1800000>;
897                         regulator-initial-state = <3>;
898                         regulator-state-mem {
899                                 regulator-state-enabled;
900                         };
901                 
902                 };
903
904                 ldo8_reg: regulator@11 {
905                         regulator-name= "act_ldo8";
906                         regulator-min-microvolt = <1800000>;
907                         regulator-max-microvolt = <1800000>;
908                 
909                 };
910         };
911 };
912
913
914 /include/ "rk808.dtsi"
915 &rk808 {
916         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
917         rk808,system-power-controller;
918
919         regulators {
920                 
921                 rk808_dcdc1_reg: regulator@0{
922                         regulator-name= "vdd_arm";
923                         regulator-always-on;
924                         regulator-boot-on;
925                 };
926
927                 rk808_dcdc2_reg: regulator@1 {
928                         regulator-name= "vdd_gpu";
929                         regulator-always-on;
930                         regulator-boot-on;
931                 };
932
933                 rk808_dcdc3_reg: regulator@2 {
934                         regulator-name= "rk_dcdc3";
935                         regulator-min-microvolt = <1200000>;
936                         regulator-max-microvolt = <1200000>;
937                         regulator-always-on;
938                         regulator-boot-on;
939                 };
940
941                 rk808_dcdc4_reg: regulator@3 {
942                         regulator-name= "vccio";
943                         regulator-min-microvolt = <1800000>;
944                         regulator-max-microvolt = <3300000>;
945                         regulator-always-on;
946                         regulator-boot-on;
947                 };
948
949                 rk808_ldo1_reg: regulator@4 {
950                         regulator-name= "rk_ldo1";
951                         regulator-min-microvolt = <3300000>;
952                         regulator-max-microvolt = <3300000>;
953                         regulator-always-on;
954                         regulator-boot-on;
955                 };
956
957                 rk808_ldo2_reg: regulator@5 {
958                         regulator-name= "rk_ldo2";
959                         regulator-min-microvolt = <3300000>;
960                         regulator-max-microvolt = <3300000>;
961                         regulator-always-on;
962                         regulator-boot-on;
963                 };
964
965                 rk808_ldo3_reg: regulator@6 {
966                         regulator-name= "rk_ldo3";
967                         regulator-min-microvolt = <1000000>;
968                         regulator-max-microvolt = <1000000>;
969                         regulator-always-on;
970                         regulator-boot-on;
971                 };
972
973                 rk808_ldo4_reg:regulator@7 {
974                         regulator-name= "rk_ldo4";
975                         regulator-min-microvolt = <1800000>;
976                         regulator-max-microvolt = <1800000>;
977                         regulator-always-on;
978                         regulator-boot-on;
979                 };
980
981                 rk808_ldo5_reg: regulator@8 {
982                         regulator-name= "vcc_sd";
983                         regulator-min-microvolt = <1800000>;
984                         regulator-max-microvolt = <3300000>;
985                         regulator-always-on;
986                         regulator-boot-on;
987                 };
988
989                 rk808_ldo6_reg: regulator@9 {
990                         regulator-name= "rk_ldo6";
991                         regulator-min-microvolt = <1000000>;
992                         regulator-max-microvolt = <1000000>;
993                         regulator-always-on;
994                         regulator-boot-on;
995                 };
996
997                 rk808_ldo7_reg: regulator@10 {
998                         regulator-name= "rk_ldo7";
999                         regulator-min-microvolt = <1800000>;
1000                         regulator-max-microvolt = <1800000>;
1001                         regulator-always-on;
1002                         regulator-boot-on;
1003                 };
1004
1005                 rk808_ldo8_reg: regulator@11 {
1006                         regulator-name= "rk_ldo8";
1007                         regulator-min-microvolt = <3300000>;
1008                         regulator-max-microvolt = <3300000>;
1009                         regulator-always-on;
1010                         regulator-boot-on;
1011                 };
1012
1013                 rk808_ldo9_reg: regulator@12 {
1014                         regulator-name= "rk_ldo9";
1015                         regulator-always-on;
1016                         regulator-boot-on;
1017                 };
1018
1019                 rk808_ldo10_reg: regulator@13 {
1020                         regulator-name= "rk_ldo10";
1021                         regulator-always-on;
1022                         regulator-boot-on;
1023                 };
1024         };
1025 };
1026
1027 &lcdc_vdd_domain {
1028         regulator-name = "vcc30_lcd";
1029         };
1030 &dpio_vdd_domain{
1031         regulator-name = "vcc18_cif";   
1032         };
1033 &flash0_vdd_domain{
1034         regulator-name = "vcc_flash";   
1035         };
1036 &flash1_vdd_domain{
1037         regulator-name = "vcc_flash";                   
1038         };
1039 &apio3_vdd_domain{
1040         regulator-name = "vccio_wl";            
1041         };
1042 &apio5_vdd_domain{
1043         regulator-name = "vccio";               
1044         };
1045 &apio4_vdd_domain{
1046         regulator-name = "vccio";               
1047         };
1048 &apio1_vdd_domain{
1049         regulator-name = "vccio";                       
1050         };
1051 &apio2_vdd_domain{
1052         regulator-name = "vccio";               
1053         };
1054 &sdmmc0_vdd_domain{
1055         regulator-name = "vcc_sd";                      
1056         };
1057
1058 &dwc_control_usb {
1059         usb_uart {
1060                 status = "disabled";
1061         };
1062 };
1063
1064 &rk3288_cif_sensor{
1065         status = "okay";
1066 };
1067