ARM: rockchip: rk3288-tb_8846.dts: default disable spi
[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
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_LOW>;
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_en:lcd_en {
609                         rockchip,power_type = <GPIO>;
610                         gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>;
611                         rockchip,delay = <10>;
612                 };
613                 
614                 lcd_cs:lcd_cs {
615                         rockchip,power_type = <GPIO>;
616                         gpios = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
617                         rockchip,delay = <10>;
618                 };
619
620                 /*lcd_rst:lcd_rst {
621                         rockchip,power_type = <GPIO>;
622                         gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>;
623                         rockchip,delay = <5>;
624                 };*/
625
626         };
627 };
628
629 &lcdc1 {
630         status = "okay";
631         rockchip,mirror = <ROTATE_270>;
632
633 };
634
635 &hdmi {
636         status = "okay";
637         rockchips,hdmi_audio_source = <0>;
638 };
639
640 &adc {
641         status = "okay";
642
643         rockchip_headset {
644                 compatible = "rockchip_headset";
645                 headset_gpio = <&gpio7 GPIO_A7 GPIO_ACTIVE_LOW>;
646                 pinctrl-names = "default";
647                 pinctrl-0 = <&gpio7_a7>;
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 900000
717                 216000 900000
718                 312000 900000
719                 408000 900000
720                 600000 900000
721                 696000 950000
722                 816000 1000000
723                 1008000 1050000
724                 1200000 1100000
725                 1416000 1200000
726                 1512000 1300000
727                 1608000 1350000
728         //      1704000 1350000
729         //      1800000 1400000
730                 >;
731         status="okay";
732 };
733
734 &clk_gpu_dvfs_table {
735         operating-points = <
736                 /* KHz    uV */
737                 100000 900000
738                 200000 900000
739                 300000 950000
740                 420000 1050000
741                 500000 1150000
742                 >;
743         status="okay";
744 };
745
746 &clk_ddr_dvfs_table {
747         operating-points = <
748                 /* KHz    uV */
749                 200000 1050000
750                 300000 1050000
751                 400000 1100000
752                 533000 1150000
753                 >;
754
755         freq-table = <
756                 /*status                freq(KHz)*/
757                 SYS_STATUS_NORMAL       400000
758                 SYS_STATUS_SUSPEND      200000
759                 SYS_STATUS_VIDEO_1080P  240000
760                 SYS_STATUS_VIDEO_4K     400000
761                 SYS_STATUS_PERFORMANCE  528000
762                 SYS_STATUS_DUALVIEW     400000
763                 SYS_STATUS_BOOST        324000
764                 SYS_STATUS_ISP          400000
765                 >;
766         auto-freq-table = <
767                 240000
768                 324000
769                 396000
770                 528000
771                 >;
772         auto-freq=<1>;
773         status="okay";
774 };
775 /include/ "act8846.dtsi"
776 &act8846 {
777         gpios =<&gpio7 GPIO_A1 GPIO_ACTIVE_LOW>,<&gpio0 GPIO_B2 GPIO_ACTIVE_HIGH>;
778         act8846,system-power-controller;
779
780         regulators {
781                 
782                 dcdc1_reg: regulator@0{
783                         regulator-name= "act_dcdc1";
784                         regulator-min-microvolt = <1200000>;
785                         regulator-max-microvolt = <1200000>;
786                         regulator-always-on;
787                         regulator-boot-on;
788                 };
789
790                 dcdc2_reg: regulator@1 {
791                         regulator-name= "vccio";
792                         regulator-min-microvolt = <3300000>;
793                         regulator-max-microvolt = <3300000>;
794                         regulator-initial-state = <3>;
795                         regulator-state-mem {
796                                 regulator-state-enabled;
797                                 regulator-state-uv = <3300000>;
798                         };              
799                 };
800
801                 dcdc3_reg: regulator@2 {
802                         regulator-name= "vdd_logic";
803                         regulator-min-microvolt = <700000>;
804                         regulator-max-microvolt = <1500000>;
805                         regulator-initial-state = <3>;
806                         regulator-state-mem {
807                                 regulator-state-enabled;
808                                 regulator-state-uv = <1000000>;
809                         };              
810                 
811                 };
812
813                 dcdc4_reg: regulator@3 {
814                         regulator-name= "act_dcdc4";
815                         regulator-min-microvolt = <2000000>;
816                         regulator-max-microvolt = <2000000>;
817                                 regulator-initial-state = <3>;
818                         regulator-state-mem {
819                                 regulator-state-enabled;
820                                 regulator-state-uv = <2000000>;
821                         };
822                 };
823
824                 ldo1_reg: regulator@4 {
825                         regulator-name= "vccio_sd";
826                         regulator-min-microvolt = <1800000>;
827                         regulator-max-microvolt = <3300000>;
828                         
829                 };
830
831                 ldo2_reg: regulator@5 {
832                         regulator-name= "act_ldo2";
833                         regulator-min-microvolt = <1000000>;
834                         regulator-max-microvolt = <1000000>;
835                 
836                 };
837
838                 ldo3_reg: regulator@6 {
839                         regulator-name= "act_ldo3";
840                         regulator-min-microvolt = <3300000>;
841                         regulator-max-microvolt = <3300000>;
842                         
843                 };
844
845                 ldo4_reg:regulator@7 {
846                         regulator-name= "act_ldo4";
847                         regulator-min-microvolt = <3300000>;
848                         regulator-max-microvolt = <3300000>;
849                 
850                 };
851
852                 ldo5_reg: regulator@8 {
853                         regulator-name= "act_ldo5";
854                         regulator-min-microvolt = <3300000>;
855                         regulator-max-microvolt = <3300000>;
856                 
857                 };
858
859                 ldo6_reg: regulator@9 {
860                         regulator-name= "act_ldo6";
861                         regulator-min-microvolt = <1000000>;
862                         regulator-max-microvolt = <1000000>;
863                         regulator-initial-state = <3>;
864                         regulator-state-mem {
865                                 regulator-state-enabled;
866                         };
867                         
868                 };
869
870                 ldo7_reg: regulator@10 {
871                         regulator-name= "vcc_18";
872                         regulator-min-microvolt = <1800000>;
873                         regulator-max-microvolt = <1800000>;
874                         regulator-initial-state = <3>;
875                         regulator-state-mem {
876                                 regulator-state-enabled;
877                         };
878                 
879                 };
880
881                 ldo8_reg: regulator@11 {
882                         regulator-name= "act_ldo8";
883                         regulator-min-microvolt = <1800000>;
884                         regulator-max-microvolt = <1800000>;
885                 
886                 };
887         };
888 };
889
890
891 /include/ "rk808.dtsi"
892 &rk808 {
893         gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
894         rk808,system-power-controller;
895
896         regulators {
897                 
898                 rk808_dcdc1_reg: regulator@0{
899                         regulator-name= "vdd_arm";
900                         regulator-always-on;
901                         regulator-boot-on;
902                 };
903
904                 rk808_dcdc2_reg: regulator@1 {
905                         regulator-name= "vdd_gpu";
906                         regulator-always-on;
907                         regulator-boot-on;
908                 };
909
910                 rk808_dcdc3_reg: regulator@2 {
911                         regulator-name= "rk_dcdc3";
912                         regulator-min-microvolt = <1200000>;
913                         regulator-max-microvolt = <1200000>;
914                         regulator-always-on;
915                         regulator-boot-on;
916                 };
917
918                 rk808_dcdc4_reg: regulator@3 {
919                         regulator-name= "vccio";
920                         regulator-min-microvolt = <1800000>;
921                         regulator-max-microvolt = <3300000>;
922                         regulator-always-on;
923                         regulator-boot-on;
924                 };
925
926                 rk808_ldo1_reg: regulator@4 {
927                         regulator-name= "rk_ldo1";
928                         regulator-min-microvolt = <3300000>;
929                         regulator-max-microvolt = <3300000>;
930                         regulator-always-on;
931                         regulator-boot-on;
932                 };
933
934                 rk808_ldo2_reg: regulator@5 {
935                         regulator-name= "rk_ldo2";
936                         regulator-min-microvolt = <3300000>;
937                         regulator-max-microvolt = <3300000>;
938                         regulator-always-on;
939                         regulator-boot-on;
940                 };
941
942                 rk808_ldo3_reg: regulator@6 {
943                         regulator-name= "rk_ldo3";
944                         regulator-min-microvolt = <1000000>;
945                         regulator-max-microvolt = <1000000>;
946                         regulator-always-on;
947                         regulator-boot-on;
948                 };
949
950                 rk808_ldo4_reg:regulator@7 {
951                         regulator-name= "rk_ldo4";
952                         regulator-min-microvolt = <1800000>;
953                         regulator-max-microvolt = <1800000>;
954                         regulator-always-on;
955                         regulator-boot-on;
956                 };
957
958                 rk808_ldo5_reg: regulator@8 {
959                         regulator-name= "vcc_sd";
960                         regulator-min-microvolt = <1800000>;
961                         regulator-max-microvolt = <3300000>;
962                         regulator-always-on;
963                         regulator-boot-on;
964                 };
965
966                 rk808_ldo6_reg: regulator@9 {
967                         regulator-name= "rk_ldo6";
968                         regulator-min-microvolt = <1000000>;
969                         regulator-max-microvolt = <1000000>;
970                         regulator-always-on;
971                         regulator-boot-on;
972                 };
973
974                 rk808_ldo7_reg: regulator@10 {
975                         regulator-name= "rk_ldo7";
976                         regulator-min-microvolt = <1800000>;
977                         regulator-max-microvolt = <1800000>;
978                         regulator-always-on;
979                         regulator-boot-on;
980                 };
981
982                 rk808_ldo8_reg: regulator@11 {
983                         regulator-name= "rk_ldo8";
984                         regulator-min-microvolt = <3300000>;
985                         regulator-max-microvolt = <3300000>;
986                         regulator-always-on;
987                         regulator-boot-on;
988                 };
989
990                 rk808_ldo9_reg: regulator@12 {
991                         regulator-name= "rk_ldo9";
992                         regulator-always-on;
993                         regulator-boot-on;
994                 };
995
996                 rk808_ldo10_reg: regulator@13 {
997                         regulator-name= "rk_ldo10";
998                         regulator-always-on;
999                         regulator-boot-on;
1000                 };
1001         };
1002 };
1003
1004 &lcdc_vdd_domain {
1005         regulator-name = "vcc30_lcd";
1006         };
1007 &dpio_vdd_domain{
1008         regulator-name = "vcc18_cif";   
1009         };
1010 &flash0_vdd_domain{
1011         regulator-name = "vcc_flash";   
1012         };
1013 &flash1_vdd_domain{
1014         regulator-name = "vcc_flash";                   
1015         };
1016 &apio3_vdd_domain{
1017         regulator-name = "vccio_wl";            
1018         };
1019 &apio5_vdd_domain{
1020         regulator-name = "vccio";               
1021         };
1022 &apio4_vdd_domain{
1023         regulator-name = "vccio";               
1024         };
1025 &apio1_vdd_domain{
1026         regulator-name = "vccio";                       
1027         };
1028 &apio2_vdd_domain{
1029         regulator-name = "vccio";               
1030         };
1031 &sdmmc0_vdd_domain{
1032         regulator-name = "vcc_sd";                      
1033         };
1034
1035 &ion_cma {
1036        reg = <0x40000000 0x28000000>; /* 640MB */
1037 };
1038
1039 &dwc_control_usb {
1040         usb_uart {
1041                 status = "disabled";
1042         };
1043 };