rk312x: add dvfs config
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3126-sdk.dts
1 /dts-v1/;
2
3 #include "rk312x.dtsi"
4 #include "rk312x-pinctrl.dtsi"
5
6 / {
7         fiq-debugger {
8                 status = "okay";
9         };
10 };
11
12 &nandc {
13         status = "okay"; // used nand set "okay" ,used emmc set "disabled"
14 }; 
15
16 &nandc0reg {
17         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
18 };
19
20 &emmc {
21         clock-frequency = <100000000>;
22         clock-freq-min-max = <400000 100000000>;
23         supports-highspeed;
24         supports-emmc;
25         bootpart-no-access;
26         supports-DDR_MODE;
27         //caps2-mmc-hs200;
28         ignore-pm-notify;
29         keep-power-in-suspend;
30         //poll-hw-reset
31         status = "disabled";
32 };
33
34 &sdmmc {
35         clock-frequency = <50000000>;
36         clock-freq-min-max = <400000 50000000>;
37         supports-highspeed;
38         supports-sd;
39         broken-cd;
40         card-detect-delay = <200>;
41         ignore-pm-notify;
42         keep-power-in-suspend;
43         //vmmc-supply = <&rk808_ldo5_reg>;
44         status = "disabled";
45 };
46
47 &sdio {
48         clock-frequency = <50000000>;
49         clock-freq-min-max = <200000 50000000>;
50         supports-highspeed;
51         supports-sdio;
52         ignore-pm-notify;
53         keep-power-in-suspend;
54         //cap-sdio-irq;
55         status = "disabled";
56 };
57
58 &i2c0 {
59         status = "okay";
60         rk818: rk818@1c {
61                 reg = <0x1c>;
62                 status = "okay";
63         };
64 };
65
66 /include/ "rk818.dtsi"
67 &rk818 {
68         gpios =<&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>,<&gpio1 GPIO_A1 GPIO_ACTIVE_LOW>;
69         rk818,system-power-controller;
70
71         regulators {
72
73                 rk818_dcdc1_reg: regulator@0{
74                         regulator-name= "vdd_arm";
75                         regulator-min-microvolt = <700000>;
76                         regulator-max-microvolt = <1500000>;
77                         regulator-initial-mode = <0x2>;
78                         regulator-initial-state = <3>;
79                         regulator-state-mem {
80                                 regulator-state-mode = <0x2>;
81                                 regulator-state-enabled;
82                                 regulator-state-uv = <900000>;
83                         };
84                 };
85
86                 rk818_dcdc2_reg: regulator@1 {
87                         regulator-name= "vdd_logic";
88                         regulator-min-microvolt = <700000>;
89                         regulator-max-microvolt = <1500000>;
90                         regulator-initial-mode = <0x2>;
91                         regulator-initial-state = <3>;
92                         regulator-state-mem {
93                                 regulator-state-mode = <0x2>;
94                                 regulator-state-enabled;
95                                 regulator-state-uv = <900000>;
96                         };
97                 };
98
99                 rk818_dcdc3_reg: regulator@2 {
100                         regulator-name= "rk818_dcdc3";
101                         regulator-min-microvolt = <1200000>;
102                         regulator-max-microvolt = <1200000>;
103                         regulator-initial-mode = <0x2>;
104                         regulator-initial-state = <3>;
105                         regulator-state-mem {
106                                 regulator-state-mode = <0x2>;
107                                 regulator-state-disabled;
108                                 regulator-state-uv = <1200000>;
109                         };
110                 };
111
112                 rk818_dcdc4_reg: regulator@3 {
113                         regulator-name= "vccio";
114                         regulator-min-microvolt = <1800000>;
115                         regulator-max-microvolt = <3300000>;
116                         regulator-initial-mode = <0x2>;
117                         regulator-initial-state = <3>;
118                         regulator-state-mem {
119                                 regulator-state-mode = <0x2>;
120                                 regulator-state-disabled;
121                                 regulator-state-uv = <2800000>;
122                         };
123                 };
124
125                 rk818_ldo1_reg: regulator@4 {
126                         regulator-name= "rk818_ldo1";
127                         regulator-min-microvolt = <3300000>;
128                         regulator-max-microvolt = <3300000>;
129                         regulator-initial-state = <3>;
130                         regulator-state-mem {
131                                 regulator-state-disabled;
132                                 regulator-state-uv = <3300000>;
133                         };
134                 };
135
136                 rk818_ldo2_reg: regulator@5 {
137                         regulator-name= "rk818_ldo2";
138                         regulator-min-microvolt = <3000000>;
139                         regulator-max-microvolt = <3000000>;
140                         regulator-initial-state = <3>;
141                         regulator-state-mem {
142                                 regulator-state-disabled;
143                                 regulator-state-uv = <3000000>;
144                         };
145                 };
146
147                 rk818_ldo3_reg: regulator@6 {
148                         regulator-name= "rk818_ldo3";
149                         regulator-min-microvolt = <1100000>;
150                         regulator-max-microvolt = <1100000>;
151                         regulator-initial-state = <3>;
152                         regulator-state-mem {
153                                 regulator-state-disabled;
154                                 regulator-state-uv = <1100000>;
155                         };
156                 };
157
158                 rk818_ldo4_reg:regulator@7 {
159                         regulator-name= "rk818_ldo4";
160                         regulator-min-microvolt = <2500000>;
161                         regulator-max-microvolt = <2500000>;
162                         regulator-initial-state = <3>;
163                         regulator-state-mem {
164                                 regulator-state-disabled;
165                                 regulator-state-uv = <2500000>;
166                         };
167                 };
168
169                 rk818_ldo5_reg: regulator@8 {
170                         regulator-name= "rk818_ldo5";
171                         regulator-min-microvolt = <3000000>;
172                         regulator-max-microvolt = <3000000>;
173                         regulator-initial-state = <3>;
174                         regulator-state-mem {
175                                 regulator-state-disabled;
176                                 regulator-state-uv = <3000000>;
177                         };
178                 };
179
180                 rk818_ldo6_reg: regulator@9 {
181                         regulator-name= "rk818_ldo6";
182                         regulator-min-microvolt = <1200000>;
183                         regulator-max-microvolt = <1200000>;
184                         regulator-initial-state = <3>;
185                         regulator-state-mem {
186                                 regulator-state-disabled;
187                                 regulator-state-uv = <1200000>;
188                         };
189                 };
190
191                 rk818_ldo7_reg: regulator@10 {
192                         regulator-name= "rk818_ldo7";
193                         regulator-min-microvolt = <1800000>;
194                         regulator-max-microvolt = <1800000>;
195                         regulator-initial-state = <3>;
196                         regulator-state-mem {
197                                 regulator-state-disabled;
198                                 regulator-state-uv = <1800000>;
199                         };
200                 };
201
202                 rk818_ldo8_reg: regulator@11 {
203                         regulator-name= "rk818_ldo8";
204                         regulator-min-microvolt = <1800000>;
205                         regulator-max-microvolt = <1800000>;
206                         regulator-initial-state = <3>;
207                         regulator-state-mem {
208                                 regulator-state-disabled;
209                                 regulator-state-uv = <1800000>;
210                         };
211                 };
212                 rk818_ldo9_reg: regulator@12 {
213                         regulator-name= "vcc_sd";
214                         regulator-min-microvolt = <1800000>;
215                         regulator-max-microvolt = <3000000>;
216                         regulator-initial-state = <3>;
217                         regulator-state-mem {
218                                 regulator-state-disabled;
219                                 regulator-state-uv = <3000000>;
220                         };
221                 };
222                 rk818_ldo10_reg: regulator@13 {
223                         regulator-name= "rk818_ldo10";
224                         regulator-state-mem {
225                                 regulator-state-disabled;
226                         };
227                 };
228         };
229
230 };
231 &clk_core_dvfs_table {
232         operating-points = <
233                 /* KHz    uV */
234                 408000 1250000
235                 600000 1250000
236                 696000 1250000
237                 816000 1250000
238                 >;
239         status="okay";
240 };
241
242 &clk_gpu_dvfs_table {
243         operating-points = <
244                 /* KHz    uV */
245                 200000 125000
246                 300000 125000
247                 >;
248         status="okay";
249 };
250
251 &clk_ddr_dvfs_table {
252         operating-points = <
253                 /* KHz    uV */
254                 200000 950000
255                 300000 950000
256                 400000 1000000
257                 533000 1050000
258                 >;
259
260         freq-table = <
261                 /*status                freq(KHz)*/
262                 SYS_STATUS_NORMAL       400000
263                 SYS_STATUS_SUSPEND      200000
264                 SYS_STATUS_VIDEO_1080P  240000
265                 SYS_STATUS_VIDEO_4K     400000
266                 SYS_STATUS_PERFORMANCE  528000
267                 SYS_STATUS_DUALVIEW     400000
268                 SYS_STATUS_BOOST        324000
269                 SYS_STATUS_ISP          533000
270                 >;
271         auto-freq-table = <
272                 240000
273                 324000
274                 396000
275                 528000
276                 >;
277         auto-freq=<0>;
278         status="disable";
279 };