Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android' into...
[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
7 / {
8         memory {
9                 device_type = "memory";
10                 reg = <0x60000000 0x80000000>;
11         };
12
13         chosen {
14                 bootargs = "clk_ignore_unused";
15         };
16
17         fiq-debugger {
18                 status = "okay";
19         };
20
21         backlight {
22                 compatible = "pwm-backlight";
23                 pwms = <&pwm3 0 5000000>;
24                 brightness-levels = <0 4 8 16 32 64 128 255>;
25                 default-brightness-level = <6>;
26                 gpios = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
27         };
28
29         codec-hdmi-i2s {
30                 compatible = "hdmi-i2s";
31         };
32
33         codec-hdmi-spdif {
34                 compatible = "hdmi-spdif";
35         };
36
37         rockchip-rt5631 {
38                 compatible = "rockchip-rt5631";
39         };
40
41         rockchip-hdmi-i2s {
42                 compatible = "rockchip-hdmi-i2s";
43         };
44
45         rockchip-hdmi-spdif {
46                 compatible = "rockchip-hdmi-spdif";
47         };
48 };
49
50 &uart0 {
51         status = "okay";
52 };
53
54 &uart3 {
55         status = "okay";
56 };
57
58 &i2c0 {
59         status = "okay";
60         codec@1a {
61                 compatible = "rt5631";
62                 reg = <0x1a>;
63         };
64 };
65
66 &i2c1 {
67         status = "okay";
68         rtc@51 {
69                 compatible = "nxp,pcf8563";
70                 reg = <0x51>;
71         };
72         
73         act8846: act8846@5a {
74                 reg = <0x5a>;
75                 status = "okay";
76         };
77         rk808: rk808@1b {
78                 reg = <0x1b>;
79                 status = "okay";
80         };
81 };
82
83 &i2c3 {
84         status = "okay";
85 };
86
87 &fb {
88         rockchip,disp-mode = <DUAL>;
89 };
90
91 &lcdc0 {
92         status = "okay";
93         power_ctr = <&disp_power_ctr>;
94         display-timings = <&disp_timings>;
95 };
96
97 &lcdc1 {
98         status = "okay";
99 };
100 &pwm3 {
101         status = "okay";
102 };
103
104 &clk_core_dvfs_table {
105         operating-points = <
106                 /* KHz    uV */
107                 312000 1100000
108                 504000 1100000
109                 816000 1100000
110                 1008000 1100000
111                 1200000 1200000
112                 1416000 1300000
113                 1608000 1350000
114                 >;
115 };
116
117 &clk_gpu_dvfs_table {
118         operating-points = <
119                 /* KHz    uV */
120                 200000 1200000
121                 300000 1200000
122                 400000 1300000
123                 >;
124 };
125
126 &clk_ddr_dvfs_table {
127         operating-points = <
128                 /* KHz    uV */
129                 200000 1200000
130                 300000 1200000
131                 400000 1300000
132                 >;
133 };
134
135 /include/ "act8846.dtsi"
136 &act8846 {
137         gpios =<&gpio3 GPIO_D3 GPIO_ACTIVE_LOW>; 
138         act,pmic-dcdc-sleep-voltage = <1200000>,<1200000>,<1200000>,<3000000>;
139         act,pmic-ldo-sleep-voltage = <1000000>,<1200000>,<1800000>,<3300000>,<3300000>,<3300000>,<1800000>,<2800000>;   
140
141 regulators {
142                 
143                  dcdc1_reg: regulator@0{
144                         regulator-name= "act_dcdc1";
145                         regulator-min-microvolt = <1200000>;
146                         regulator-max-microvolt = <1200000>;
147                         regulator-always-on;
148                         regulator-boot-on;
149                 };
150
151                 dcdc2_reg: regulator@1 {
152                         regulator-name= "vdd_logic";
153                         regulator-always-on;
154                         regulator-boot-on;                      
155                 };
156
157                 dcdc3_reg: regulator@2 {
158                         regulator-name= "vdd_arm";
159                         regulator-always-on;
160                         regulator-boot-on;
161                 };
162
163                 dcdc4_reg: regulator@3 {
164                         regulator-name= "act_dcdc4";
165                         regulator-min-microvolt = <3300000>;
166                         regulator-max-microvolt = <3300000>;
167                         regulator-always-on;
168                         regulator-boot-on;
169                 };
170
171                 ldo1_reg: regulator@4 {
172                         regulator-name= "act_ldo1";
173                         regulator-min-microvolt = <1000000>;
174                         regulator-max-microvolt = <1000000>;
175                         regulator-always-on;
176                         regulator-boot-on;
177                 };
178
179                 ldo2_reg: regulator@5 {
180                         regulator-name= "act_ldo2";
181                         regulator-min-microvolt = <1200000>;
182                         regulator-max-microvolt = <1200000>;
183                         regulator-always-on;
184                         regulator-boot-on;
185                 };
186
187                 ldo3_reg: regulator@6 {
188                         regulator-name= "act_ldo3";
189                         regulator-min-microvolt = <1800000>;
190                         regulator-max-microvolt = <1800000>;
191                         regulator-always-on;
192                         regulator-boot-on;
193                 };
194
195                 ldo4_reg:regulator@7 {
196                         regulator-name= "act_ldo4";
197                         regulator-min-microvolt = <3300000>;
198                         regulator-max-microvolt = <3300000>;
199                         regulator-always-on;
200                         regulator-boot-on;
201                 };
202
203                 ldo5_reg: regulator@8 {
204                         regulator-name= "act_ldo5";
205                         regulator-min-microvolt = <3300000>;
206                         regulator-max-microvolt = <3300000>;
207                         regulator-always-on;
208                         regulator-boot-on;
209                 };
210
211                 ldo6_reg: regulator@9 {
212                         regulator-name= "act_ldo6";
213                         regulator-min-microvolt = <3300000>;
214                         regulator-max-microvolt = <3300000>;
215                         regulator-always-on;
216                         regulator-boot-on;
217                 };
218
219                 ldo7_reg: regulator@10 {
220                         regulator-name= "act_ldo7";
221                         regulator-min-microvolt = <1800000>;
222                         regulator-max-microvolt = <1800000>;
223                         regulator-always-on;
224                         regulator-boot-on;
225                 };
226
227                 ldo8_reg: regulator@11 {
228                         regulator-name= "act_ldo8";
229                         regulator-min-microvolt = <2800000>;
230                         regulator-max-microvolt = <2800000>;
231                         regulator-always-on;
232                         regulator-boot-on;
233                 };
234         };
235 };
236 /include/ "rk808.dtsi"
237 &rk808{
238         gpios =<&gpio0 GPIO_B3 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>; 
239         rockchip,pmic-dcdc-sleep-voltage = <900000>,<900000>,<1200000>,<3000000>;
240         rockchip,pmic-ldo-sleep-voltage = <3300000>,<3300000>,<1000000>,<1800000>,<2800000>,<1200000>,<1800000>,<1800000>;
241
242 regulators {
243                 
244                  rk808_dcdc1_reg: regulator@0{
245                         regulator-name= "vdd_arm";      
246                         regulator-always-on;
247                         regulator-boot-on;
248         /*              regulator-initial-mode = <2>;*/
249                 };
250
251                 rk808_dcdc2_reg: regulator@1 {
252                         regulator-name= "vdd_logic";
253                         regulator-always-on;
254                         regulator-boot-on;              
255         /*              regulator-initial-mode = <2>;*/
256                 };
257
258                 rk808_dcdc3_reg: regulator@2 {
259                         regulator-name= "rk_dcdc3";
260                         regulator-min-microvolt = <1200000>;
261                         regulator-max-microvolt = <1200000>;
262                         regulator-always-on;
263                         regulator-boot-on;
264                 };
265
266                 rk808_dcdc4_reg: regulator@3 {
267                         regulator-name= "rk_dcdc4";
268                         regulator-min-microvolt = <3300000>;
269                         regulator-max-microvolt = <3300000>;
270                         regulator-always-on;
271                         regulator-boot-on;
272                 };
273
274                 rk808_ldo1_reg: regulator@4 {
275                         regulator-name= "rk_ldo1";
276                         regulator-min-microvolt = <3300000>;
277                         regulator-max-microvolt = <3300000>;
278                         regulator-always-on;
279                         regulator-boot-on;
280                 };
281
282                 rk808_ldo2_reg: regulator@5 {
283                         regulator-name= "rk_ldo2";
284                         regulator-min-microvolt = <3300000>;
285                         regulator-max-microvolt = <3300000>;
286                         regulator-always-on;
287                         regulator-boot-on;
288                 };
289
290                 rk808_ldo3_reg: regulator@6 {
291                         regulator-name= "rk_ldo3";
292                         regulator-min-microvolt = <1000000>;
293                         regulator-max-microvolt = <1000000>;
294                         regulator-always-on;
295                         regulator-boot-on;
296                 };
297
298                 rk808_ldo4_reg:regulator@7 {
299                         regulator-name= "rk_ldo4";
300                         regulator-min-microvolt = <1800000>;
301                         regulator-max-microvolt = <1800000>;
302                         regulator-always-on;
303                         regulator-boot-on;
304                 };
305
306                 rk808_ldo5_reg: regulator@8 {
307                         regulator-name= "rk_ldo5";
308                         regulator-min-microvolt = <2800000>;
309                         regulator-max-microvolt = <2800000>;
310                         regulator-always-on;
311                         regulator-boot-on;
312                 };
313
314                 rk808_ldo6_reg: regulator@9 {
315                         regulator-name= "rk_ldo6";
316                         regulator-min-microvolt = <1200000>;
317                         regulator-max-microvolt = <1200000>;
318                         regulator-always-on;
319                         regulator-boot-on;
320                 };
321
322                 rk808_ldo7_reg: regulator@10 {
323                         regulator-name= "rk_ldo7";
324                         regulator-min-microvolt = <1800000>;
325                         regulator-max-microvolt = <1800000>;
326                         regulator-always-on;
327                         regulator-boot-on;
328                 };
329
330                 rk808_ldo8_reg: regulator@11 {
331                         regulator-name= "rk_ldo8";
332                         regulator-min-microvolt = <1800000>;
333                         regulator-max-microvolt = <1800000>;
334                         regulator-always-on;
335                         regulator-boot-on;
336                 };
337         };
338 };
339
340