Revert "pwm-backlight: set pwm-bl default-frequency"
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3188-tb.dts
1 /dts-v1/;
2
3 #include "rk3188.dtsi"
4 #include "rk3188-clocks.dtsi"
5 #include "lcd-b101ew05.dtsi"
6 #include "rk3188-mmc.dtsi"
7
8 / {
9         memory {
10                 device_type = "memory";
11                 reg = <0x60000000 0x40000000>;
12         };
13
14         chosen {
15                 bootargs = "clk_ignore_unused";
16         };
17
18         fiq-debugger {
19                 status = "okay";
20         };
21
22         backlight {
23                 compatible = "pwm-backlight";
24                 pwms = <&pwm3 0 5000000>;
25                 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>;
26                 default-brightness-level = <128>;
27                 enable-gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
28         };
29
30         codec-hdmi-i2s {
31                 compatible = "hdmi-i2s";
32         };
33
34         codec-hdmi-spdif {
35                 compatible = "hdmi-spdif";
36         };
37
38         rockchip-rt5631 {
39                 compatible = "rockchip-rt5631";
40                 dais {
41                         dai0 {
42                                 codec-name = "rt5631.0-001a";
43                                 cpu-dai-name = "rockchip-i2s.1";
44                                 format = "i2s";
45                                 //continuous-clock;
46                                 //bitclock-inversion;
47                                 //frame-inversion;
48                                 //bitclock-master;
49                                 //frame-master;
50                         };
51                 };
52         };
53
54         rockchip-hdmi-i2s {
55                 compatible = "rockchip-hdmi-i2s";
56                 dais {
57                         dai0 {
58                                 codec-name = "hdmi-i2s";
59                                 cpu-dai-name = "rockchip-i2s.1";
60                                 format = "i2s";
61                                 //continuous-clock;
62                                 //bitclock-inversion;
63                                 //frame-inversion;
64                                 //bitclock-master;
65                                 //frame-master;
66                         };
67                 };
68         };
69
70         rockchip-hdmi-spdif {
71                 compatible = "rockchip-hdmi-spdif";
72         };
73 };
74
75 &uart0 {
76         status = "okay";
77 };
78
79 &uart3 {
80         status = "okay";
81 };
82
83 &i2c0 {
84         status = "okay";
85         codec@1a {
86                 compatible = "rt5631";
87                 reg = <0x1a>;
88         };
89 };
90
91 &i2c1 {
92         status = "okay";
93         rtc@51 {
94                 compatible = "nxp,pcf8563";
95                 reg = <0x51>;
96         };
97         
98         act8846: act8846@5a {
99                 reg = <0x5a>;
100                 status = "okay";
101         };
102         rk808: rk808@1b {
103                 reg = <0x1b>;
104                 status = "okay";
105         };
106 };
107
108 &i2c2 {
109         status = "okay";
110         ts@55 {
111                 compatible = "goodix,gt8xx";
112                 reg = <0x55>;
113                 touch-gpio = <&gpio1 GPIO_B7 IRQ_TYPE_LEVEL_LOW>;
114                 reset-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
115                 power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
116                 max-x = <1280>;
117                 max-y = <800>;
118         };
119 };
120
121 &i2c3 {
122         status = "okay";
123 };
124
125 &fb {
126         rockchip,disp-mode = <DUAL>;
127 };
128
129 &lcdc0 {
130         status = "okay";
131         power_ctr = <&disp_power_ctr>;
132         display-timings = <&disp_timings>;
133 };
134
135 &lcdc1 {
136         status = "okay";
137 };
138
139 &adc {
140         status = "okay";
141
142         key {
143                 compatible = "rockchip,key";
144                 io-channels = <&adc 1>; 
145
146                 vol-up-key {
147                         linux,code = <115>;
148                         label = "volume up";
149                         rockchip,adc_value = <1>;
150                 };
151
152                 vol-down-key {
153                         linux,code = <114>;
154                         label = "volume down";
155                         rockchip,adc_value = <170>;
156                 };
157
158                 power-key {
159                         gpios = <&gpio0 GPIO_A4 GPIO_ACTIVE_LOW>;
160                         linux,code = <116>;
161                         label = "power";
162                         gpio-key,wakeup;
163                 };
164
165                 menu-key {
166                         linux,code = <139>;
167                         label = "menu";
168                         rockchip,adc_value = <355>;
169                 };
170
171                 home-key {
172                         linux,code = <102>;
173                         label = "home";
174                         rockchip,adc_value = <746>;
175                 };
176
177                 back-key {
178                         linux,code = <158>;
179                         label = "back";
180                         rockchip,adc_value = <560>;
181                 };
182
183                 camera-key {
184                         linux,code = <212>;
185                         label = "camera";
186                         rockchip,adc_value = <450>;
187                 };       
188         };
189 };
190
191 &pwm3 {
192         status = "okay";
193 };
194
195 &clk_core_dvfs_table {
196         operating-points = <
197                 /* KHz    uV */
198                 312000 1100000
199                 504000 1100000
200                 816000 1100000
201                 1008000 1100000
202                 1200000 1200000
203                 1416000 1300000
204                 1608000 1350000
205                 >;
206 };
207
208 &clk_gpu_dvfs_table {
209         operating-points = <
210                 /* KHz    uV */
211                 200000 1200000
212                 300000 1200000
213                 400000 1300000
214                 >;
215 };
216
217 &clk_ddr_dvfs_table {
218         operating-points = <
219                 /* KHz    uV */
220                 200000 1200000
221                 300000 1200000
222                 400000 1300000
223                 >;
224 };
225
226 /include/ "act8846.dtsi"
227 &act8846 {
228         gpios =<&gpio3 GPIO_D3 GPIO_ACTIVE_LOW>; 
229
230 regulators {
231                 
232                  dcdc1_reg: regulator@0{
233                         regulator-name= "act_dcdc1";
234                         regulator-min-microvolt = <1200000>;
235                         regulator-max-microvolt = <1200000>;
236                         regulator-always-on;
237                         regulator-boot-on;
238                 };
239
240                 dcdc2_reg: regulator@1 {
241                         regulator-name= "vdd_logic";
242                         regulator-always-on;
243                         regulator-boot-on;                      
244                 };
245
246                 dcdc3_reg: regulator@2 {
247                         regulator-name= "vdd_arm";
248                         regulator-always-on;
249                         regulator-boot-on;
250                 };
251
252                 dcdc4_reg: regulator@3 {
253                         regulator-name= "act_dcdc4";
254                         regulator-min-microvolt = <3300000>;
255                         regulator-max-microvolt = <3300000>;
256                         regulator-always-on;
257                         regulator-boot-on;
258                 };
259
260                 ldo1_reg: regulator@4 {
261                         regulator-name= "act_ldo1";
262                         regulator-min-microvolt = <1000000>;
263                         regulator-max-microvolt = <1000000>;
264                         regulator-always-on;
265                         regulator-boot-on;
266                 };
267
268                 ldo2_reg: regulator@5 {
269                         regulator-name= "act_ldo2";
270                         regulator-min-microvolt = <1200000>;
271                         regulator-max-microvolt = <1200000>;
272                         regulator-always-on;
273                         regulator-boot-on;
274                 };
275
276                 ldo3_reg: regulator@6 {
277                         regulator-name= "act_ldo3";
278                         regulator-min-microvolt = <1800000>;
279                         regulator-max-microvolt = <1800000>;
280                         regulator-always-on;
281                         regulator-boot-on;
282                 };
283
284                 ldo4_reg:regulator@7 {
285                         regulator-name= "act_ldo4";
286                         regulator-min-microvolt = <3300000>;
287                         regulator-max-microvolt = <3300000>;
288                         regulator-always-on;
289                         regulator-boot-on;
290                 };
291
292                 ldo5_reg: regulator@8 {
293                         regulator-name= "act_ldo5";
294                         regulator-min-microvolt = <3300000>;
295                         regulator-max-microvolt = <3300000>;
296                         regulator-always-on;
297                         regulator-boot-on;
298                 };
299
300                 ldo6_reg: regulator@9 {
301                         regulator-name= "act_ldo6";
302                         regulator-min-microvolt = <3300000>;
303                         regulator-max-microvolt = <3300000>;
304                         regulator-always-on;
305                         regulator-boot-on;
306                 };
307
308                 ldo7_reg: regulator@10 {
309                         regulator-name= "act_ldo7";
310                         regulator-min-microvolt = <1800000>;
311                         regulator-max-microvolt = <1800000>;
312                         regulator-always-on;
313                         regulator-boot-on;
314                 };
315
316                 ldo8_reg: regulator@11 {
317                         regulator-name= "act_ldo8";
318                         regulator-min-microvolt = <2800000>;
319                         regulator-max-microvolt = <2800000>;
320                         regulator-always-on;
321                         regulator-boot-on;
322                 };
323         };
324 };
325 /include/ "rk808.dtsi"
326 &rk808{
327         gpios =<&gpio0 GPIO_B3 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>; 
328
329 regulators {
330                 
331                  rk808_dcdc1_reg: regulator@0{
332                         regulator-name= "vdd_arm";      
333                         regulator-always-on;
334                         regulator-boot-on;
335                 };
336
337                 rk808_dcdc2_reg: regulator@1 {
338                         regulator-name= "vdd_logic";
339                         regulator-always-on;
340                         regulator-boot-on;              
341                 };
342
343                 rk808_dcdc3_reg: regulator@2 {
344                         regulator-name= "rk_dcdc3";
345                         regulator-min-microvolt = <1200000>;
346                         regulator-max-microvolt = <1200000>;
347                         regulator-always-on;
348                         regulator-boot-on;
349                 };
350
351                 rk808_dcdc4_reg: regulator@3 {
352                         regulator-name= "rk_dcdc4";
353                         regulator-min-microvolt = <3300000>;
354                         regulator-max-microvolt = <3300000>;
355                         regulator-always-on;
356                         regulator-boot-on;
357                 };
358
359                 rk808_ldo1_reg: regulator@4 {
360                         regulator-name= "rk_ldo1";
361                         regulator-min-microvolt = <3300000>;
362                         regulator-max-microvolt = <3300000>;
363                         regulator-always-on;
364                         regulator-boot-on;
365                 };
366
367                 rk808_ldo2_reg: regulator@5 {
368                         regulator-name= "rk_ldo2";
369                         regulator-min-microvolt = <3300000>;
370                         regulator-max-microvolt = <3300000>;
371                         regulator-always-on;
372                         regulator-boot-on;
373                 };
374
375                 rk808_ldo3_reg: regulator@6 {
376                         regulator-name= "rk_ldo3";
377                         regulator-min-microvolt = <1000000>;
378                         regulator-max-microvolt = <1000000>;
379                         regulator-always-on;
380                         regulator-boot-on;
381                 };
382
383                 rk808_ldo4_reg:regulator@7 {
384                         regulator-name= "rk_ldo4";
385                         regulator-min-microvolt = <1800000>;
386                         regulator-max-microvolt = <1800000>;
387                         regulator-always-on;
388                         regulator-boot-on;
389                 };
390
391                 rk808_ldo5_reg: regulator@8 {
392                         regulator-name= "rk_ldo5";
393                         regulator-min-microvolt = <2800000>;
394                         regulator-max-microvolt = <2800000>;
395                         regulator-always-on;
396                         regulator-boot-on;
397                 };
398
399                 rk808_ldo6_reg: regulator@9 {
400                         regulator-name= "rk_ldo6";
401                         regulator-min-microvolt = <1200000>;
402                         regulator-max-microvolt = <1200000>;
403                         regulator-always-on;
404                         regulator-boot-on;
405                 };
406
407                 rk808_ldo7_reg: regulator@10 {
408                         regulator-name= "rk_ldo7";
409                         regulator-min-microvolt = <1800000>;
410                         regulator-max-microvolt = <1800000>;
411                         regulator-always-on;
412                         regulator-boot-on;
413                 };
414
415                 rk808_ldo8_reg: regulator@11 {
416                         regulator-name= "rk_ldo8";
417                         regulator-min-microvolt = <1800000>;
418                         regulator-max-microvolt = <1800000>;
419                         regulator-always-on;
420                         regulator-boot-on;
421                 };
422         };
423 };
424
425