arm: dts: rk3288-evb: modify panel to edp_panel
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3188-lr097.dts
1 /dts-v1/;
2
3 #include "rk3188.dtsi"
4 #include "lcd-LP097Qx1.dtsi"
5
6 / {
7         memory {
8                 device_type = "memory";
9                 reg = <0x60000000 0x80000000>;
10         };
11
12         chosen {
13                 bootargs = "clk_ignore_unused";
14         };
15
16         fiq-debugger {
17                 status = "okay";
18         };
19
20     wireless-wlan {
21         compatible = "wlan-platdata";
22
23         wifi_chip_type = "";
24         sdio_vref = <28000>;
25
26         //power_ctrl_by_pmu;
27         pmu_regulator = "act_ldo3";
28         pmu_enable_level = <1>; //1->HIGH, 0->LOW
29
30         WIFI,poweren_gpio = <&gpio3 GPIO_D0 GPIO_ACTIVE_HIGH>;
31         WIFI,host_wake_irq = <&gpio3 GPIO_D2 GPIO_ACTIVE_HIGH>;
32         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
33
34         status = "okay";
35     };
36
37     wireless-bluetooth {
38         compatible = "bluetooth-platdata";
39
40         support_uart_rts_ctrl;
41         uart_rts_gpios = <&gpio1 GPIO_A3 GPIO_ACTIVE_LOW>;
42         pinctrl-names = "default";
43         pinctrl-0 = <&uart0_rts>;
44
45         BT,power_gpio = <&gpio3 GPIO_C7 GPIO_ACTIVE_HIGH>;
46         BT,reset_gpio = <&gpio3 GPIO_D1 GPIO_ACTIVE_HIGH>;
47         BT,wake_gpio = <&gpio3 GPIO_C6 GPIO_ACTIVE_HIGH>;
48         BT,wake_host_irq = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
49
50         status = "okay";
51     };
52
53         backlight {
54                 compatible = "pwm-backlight";
55                 pwms = <&pwm3 0 25000>;
56                 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>;
57                 default-brightness-level = <128>;
58                 enable-gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
59         };
60
61         codec_hdmi_i2s: codec-hdmi-i2s {
62                 compatible = "hdmi-i2s";
63         };
64
65         codec_hdmi_spdif: codec-hdmi-spdif {
66                 compatible = "hdmi-spdif";
67         };
68
69         rockchip-rt5631 {
70                 compatible = "rockchip-rt5631";
71                 dais {
72                         dai0 {
73                                 audio-codec = <&rt5631>;
74                                 audio-controller = <&i2s0>;
75                                 format = "i2s";
76                                 //continuous-clock;
77                                 //bitclock-inversion;
78                                 //frame-inversion;
79                                 //bitclock-master;
80                                 //frame-master;
81                         };
82                 };
83         };
84
85         rockchip-rk610 {
86                 compatible = "rockchip-rk610";
87                 dais {
88                         dai0 {
89                                 audio-codec = <&rk610_codec>;
90                                 audio-controller = <&i2s0>;
91                                 format = "i2s";
92                                 //continuous-clock;
93                                 //bitclock-inversion;
94                                 //frame-inversion;
95                                 //bitclock-master;
96                                 //frame-master;
97                         };
98                 };
99         };
100
101         rockchip-hdmi-i2s {
102                 compatible = "rockchip-hdmi-i2s";
103                 dais {
104                         dai0 {
105                                 audio-codec = <&codec_hdmi_i2s>;
106                                 audio-controller = <&i2s0>;
107                                 format = "i2s";
108                                 //continuous-clock;
109                                 //bitclock-inversion;
110                                 //frame-inversion;
111                                 //bitclock-master;
112                                 //frame-master;
113                         };
114                 };
115         };
116
117         rockchip-hdmi-spdif {
118                 compatible = "rockchip-hdmi-spdif";
119         };
120         
121         vmac-phy {
122                 compatible = "rockchip,vmac-phy";
123                 power-gpios = <&gpio0 GPIO_C0 GPIO_ACTIVE_HIGH>;
124         };
125 };
126
127 &uart0 {
128         status = "okay";
129         dma-names = "!tx", "!rx";
130 };
131
132
133 &uart3 {
134         status = "okay";
135         dma-names = "!tx", "!rx";
136 };
137
138 &watchdog {
139                 rockchip,timeout = <50>;
140                 rockchip,debug = <1>;
141                 status = "disabled";
142 };
143
144 &i2c0 {
145         status = "okay";
146         rt5631: rt5631@1a {
147                 compatible = "rt5631";
148                 reg = <0x1a>;
149         };
150
151         rk610ctl@40 {
152                 compatible = "rk610_ctl";
153                 reg = <0x40>;
154                 rk610-reset-io = <&gpio3 GPIO_B2 GPIO_ACTIVE_HIGH>;
155                 clocks = <&clk_i2s>;
156                 clock-names = "i2s_clk";
157         };
158
159         rk610_codec: rk610codec@60 {//RK610_CODEC addr  from 0x60 to 0x80 (0x60~0x80)
160                 compatible = "rk610_codec";
161                 reg = <0x60>;
162                 spk_ctl_io = <&gpio2 GPIO_D7 GPIO_ACTIVE_HIGH>;
163                 boot_depop = <1>;
164                 pa_enable_time = <1000>;
165         };
166
167         sensor@1d {
168                 compatible = "gs_mma8452";
169                 reg = <0x1d>;
170                 type = <SENSOR_TYPE_ACCEL>;
171                 irq-gpio = <&gpio0 GPIO_B7 IRQ_TYPE_EDGE_FALLING>;              
172                 irq_enable = <1>;
173                 poll_delay_ms = <30>;
174                 layout = <1>;
175         };
176 };
177
178 &i2c1 {
179         status = "okay";
180         rtc@51 {
181                 compatible = "nxp,pcf8563";
182                 reg = <0x51>;
183         };
184         
185         act8846: act8846@5a {
186                 reg = <0x5a>;
187                 status = "okay";
188         };
189         rk808: rk808@1b {
190                 reg = <0x1b>;
191                 status = "okay";
192         };
193 };
194
195 &i2c2 {
196         status = "okay";
197         edp@39 {
198                 compatible = "analogix,anx6345";
199                 reg = <0x39>;
200                 dvdd33-gpio = <&gpio0 GPIO_B0 GPIO_ACTIVE_LOW>;
201                 dvdd18-gpio = <&gpio3 GPIO_D4 GPIO_ACTIVE_HIGH>;
202                 reset-gpio = <&gpio0 GPIO_B4 GPIO_ACTIVE_LOW>;
203         };
204
205        ts@01 {
206                 compatible = "ct,ct36x";
207                 reg = <0x01>;
208                 ct-model = <363>;
209                 touch-gpio = <&gpio1 GPIO_B7 IRQ_TYPE_LEVEL_LOW>;
210                 reset-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_HIGH>;
211                 max-x = <2048>;
212                 max-y = <1536>;
213                 orientation=<1 0 0 1>;
214        };
215 };
216
217 &i2c3 {
218         status = "okay";
219 };
220
221 &fb {
222         rockchip,disp-mode = <DUAL>;
223 };
224
225 &rk_screen {
226          display-timings = <&disp_timings>;
227 };
228
229 &lcdc0 {
230         status = "okay";
231 };
232
233 &lcdc1 {
234         status = "okay";
235 };
236
237 &adc {
238         status = "okay";
239
240         key {
241                 compatible = "rockchip,key";
242                 io-channels = <&adc 1>;
243
244                 vol-up-key {
245                         linux,code = <115>;
246                         label = "volume up";
247                         rockchip,adc_value = <1>;
248                 };
249
250                 vol-down-key {
251                         linux,code = <114>;
252                         label = "volume down";
253                         rockchip,adc_value = <145>;
254                 };
255
256                 power-key {
257                         gpios = <&gpio0 GPIO_A4 GPIO_ACTIVE_LOW>;
258                         linux,code = <116>;
259                         label = "power";
260                         gpio-key,wakeup;
261                 };
262
263
264                 home-key {
265                         linux,code = <102>;
266                         label = "home";
267                         rockchip,adc_value = <355>;
268                 };
269
270         };
271 };
272
273 &pwm3 {
274         status = "okay";
275 };
276
277 &clk_core_dvfs_table {
278         operating-points = <
279                 /* KHz    uV */
280                 312000 1100000
281                 504000 1100000
282                 816000 1100000
283                 1008000 1100000
284                 1200000 1200000
285                 1416000 1300000
286                 1608000 1350000
287                 >;
288 };
289
290 &clk_gpu_dvfs_table {
291         operating-points = <
292                 /* KHz    uV */
293                 200000 1200000
294                 300000 1200000
295                 400000 1200000
296                 >;
297 };
298
299 &clk_ddr_dvfs_table {
300         operating-points = <
301                 /* KHz    uV */
302                 200000 1200000
303                 300000 1200000
304                 400000 1200000
305                 >;
306
307         freq_table = <
308                 /*status                freq(KHz)*/
309                 SYS_STATUS_NORMAL       400000
310                 SYS_STATUS_SUSPEND      200000
311                 SYS_STATUS_VIDEO        300000
312                 SYS_STATUS_DUALVIEW     500000
313                 >;
314 };
315
316 /include/ "act8846.dtsi"
317 &act8846 {
318         gpios =<&gpio3 GPIO_D3 GPIO_ACTIVE_LOW>; 
319
320 regulators {
321                 
322                  dcdc1_reg: regulator@0{
323                         regulator-name= "act_dcdc1";
324                         regulator-min-microvolt = <1200000>;
325                         regulator-max-microvolt = <1200000>;
326                         regulator-always-on;
327                         regulator-boot-on;
328                 };
329
330                 dcdc2_reg: regulator@1 {
331                         regulator-name= "vdd_logic";
332                         regulator-always-on;
333                         regulator-boot-on;                      
334                 };
335
336                 dcdc3_reg: regulator@2 {
337                         regulator-name= "vdd_arm";
338                         regulator-always-on;
339                         regulator-boot-on;
340                 };
341
342                 dcdc4_reg: regulator@3 {
343                         regulator-name= "vccio";
344                         regulator-min-microvolt = <1800000>;
345                         regulator-max-microvolt = <3300000>;
346                         regulator-always-on;
347                         regulator-boot-on;
348                 };
349
350                 ldo1_reg: regulator@4 {
351                         regulator-name= "act_ldo1";
352                         regulator-min-microvolt = <1000000>;
353                         regulator-max-microvolt = <1000000>;
354                         regulator-always-on;
355                         regulator-boot-on;
356                 };
357
358                 ldo2_reg: regulator@5 {
359                         regulator-name= "act_ldo2";
360                         regulator-min-microvolt = <1200000>;
361                         regulator-max-microvolt = <1200000>;
362                         regulator-always-on;
363                         regulator-boot-on;
364                 };
365
366                 ldo3_reg: regulator@6 {
367                         regulator-name= "act_ldo3";
368                         regulator-min-microvolt = <1800000>;
369                         regulator-max-microvolt = <1800000>;
370                         regulator-always-on;
371                         regulator-boot-on;
372                 };
373
374                 ldo4_reg:regulator@7 {
375                         regulator-name= "act_ldo4";
376                         regulator-min-microvolt = <3300000>;
377                         regulator-max-microvolt = <3300000>;
378                         regulator-always-on;
379                         regulator-boot-on;
380                 };
381
382                 ldo5_reg: regulator@8 {
383                         regulator-name= "act_ldo5";
384                         regulator-min-microvolt = <3300000>;
385                         regulator-max-microvolt = <3300000>;
386                         regulator-always-on;
387                         regulator-boot-on;
388                 };
389
390                 ldo6_reg: regulator@9 {
391                         regulator-name= "act_ldo6";
392                         regulator-min-microvolt = <3300000>;
393                         regulator-max-microvolt = <3300000>;
394                         regulator-always-on;
395                         regulator-boot-on;
396                 };
397
398                 ldo7_reg: regulator@10 {
399                         regulator-name= "act_ldo7";
400                         regulator-min-microvolt = <1800000>;
401                         regulator-max-microvolt = <1800000>;
402                         regulator-always-on;
403                         regulator-boot-on;
404                 };
405
406                 ldo8_reg: regulator@11 {
407                         regulator-name= "act_ldo8";
408                         regulator-min-microvolt = <2800000>;
409                         regulator-max-microvolt = <2800000>;
410                         regulator-always-on;
411                         regulator-boot-on;
412                 };
413         };
414 };
415 /include/ "rk808.dtsi"
416 &rk808{
417         gpios =<&gpio0 GPIO_B3 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>; 
418
419 regulators {
420                 
421                  rk808_dcdc1_reg: regulator@0{
422                         regulator-name= "vdd_arm";      
423                         regulator-always-on;
424                         regulator-boot-on;
425                 };
426
427                 rk808_dcdc2_reg: regulator@1 {
428                         regulator-name= "vdd_logic";
429                         regulator-always-on;
430                         regulator-boot-on;              
431                 };
432
433                 rk808_dcdc3_reg: regulator@2 {
434                         regulator-name= "rk_dcdc3";
435                         regulator-min-microvolt = <1200000>;
436                         regulator-max-microvolt = <1200000>;
437                         regulator-always-on;
438                         regulator-boot-on;
439                 };
440
441                 rk808_dcdc4_reg: regulator@3 {
442                         regulator-name= "vccio";
443                         regulator-min-microvolt = <1800000>;
444                         regulator-max-microvolt = <3300000>;
445                         regulator-always-on;
446                         regulator-boot-on;
447                 };
448
449                 rk808_ldo1_reg: regulator@4 {
450                         regulator-name= "rk_ldo1";
451                         regulator-min-microvolt = <3300000>;
452                         regulator-max-microvolt = <3300000>;
453                         regulator-always-on;
454                         regulator-boot-on;
455                 };
456
457                 rk808_ldo2_reg: regulator@5 {
458                         regulator-name= "rk_ldo2";
459                         regulator-min-microvolt = <3300000>;
460                         regulator-max-microvolt = <3300000>;
461                         regulator-always-on;
462                         regulator-boot-on;
463                 };
464
465                 rk808_ldo3_reg: regulator@6 {
466                         regulator-name= "rk_ldo3";
467                         regulator-min-microvolt = <1000000>;
468                         regulator-max-microvolt = <1000000>;
469                         regulator-always-on;
470                         regulator-boot-on;
471                 };
472
473                 rk808_ldo4_reg:regulator@7 {
474                         regulator-name= "rk_ldo4";
475                         regulator-min-microvolt = <1800000>;
476                         regulator-max-microvolt = <1800000>;
477                         regulator-always-on;
478                         regulator-boot-on;
479                 };
480
481                 rk808_ldo5_reg: regulator@8 {
482                         regulator-name= "rk_ldo5";
483                         regulator-min-microvolt = <2800000>;
484                         regulator-max-microvolt = <2800000>;
485                         regulator-always-on;
486                         regulator-boot-on;
487                 };
488
489                 rk808_ldo6_reg: regulator@9 {
490                         regulator-name= "rk_ldo6";
491                         regulator-min-microvolt = <1200000>;
492                         regulator-max-microvolt = <1200000>;
493                         regulator-always-on;
494                         regulator-boot-on;
495                 };
496
497                 rk808_ldo7_reg: regulator@10 {
498                         regulator-name= "rk_ldo7";
499                         regulator-min-microvolt = <1800000>;
500                         regulator-max-microvolt = <1800000>;
501                         regulator-always-on;
502                         regulator-boot-on;
503                 };
504
505                 rk808_ldo8_reg: regulator@11 {
506                         regulator-name= "rk_ldo8";
507                         regulator-min-microvolt = <1800000>;
508                         regulator-max-microvolt = <1800000>;
509                         regulator-always-on;
510                         regulator-boot-on;
511                 };
512         };
513 };
514
515