5 #include "rk312x-cif-sensor.dtsi"
12 bootargs = "vmalloc=512M clk_ignore_unused";
15 pwm_regulator1:pwm-regulator1 {
16 compatible = "rockchip_pwm_regulator";
17 pwms = <&pwm1 0 25000>;
19 rockchip,pwm_voltage_map= <950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000 1425000 1450000>;
20 rockchip,pwm_voltage= <1250000>;
21 rockchip,pwm_min_voltage= <950000>;
22 rockchip,pwm_max_voltage= <1450000>;
23 rockchip,pwm_suspend_voltage= <1250000>;
24 rockchip,pwm_coefficient= <550>;
29 pwm_reg0: regulator@0 {
30 regulator-compatible = "pwm_dcdc1";
31 regulator-name= "vdd_arm";
32 regulator-min-microvolt = <950000>;
33 regulator-max-microvolt = <1450000>;
40 pwm_regulator2:pwm-regulator2 {
41 compatible = "rockchip_pwm_regulator";
42 pwms = <&pwm2 0 25000>;
44 rockchip,pwm_voltage_map= <950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000 1425000 1450000>;
45 rockchip,pwm_voltage= <1200000>;
46 rockchip,pwm_min_voltage= <950000>;
47 rockchip,pwm_max_voltage= <1450000>;
48 rockchip,pwm_suspend_voltage= <1250000>;
49 rockchip,pwm_coefficient= <550>;
54 pwm_reg1: regulator@1 {
55 regulator-compatible = "pwm_dcdc2";
56 regulator-name= "vdd_logic";
57 regulator-min-microvolt = <950000>;
58 regulator-max-microvolt = <1450000>;
68 status = "okay"; // used nand set "okay" ,used emmc set "disabled"
72 status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
76 clock-frequency = <100000000>;
77 clock-freq-min-max = <400000 100000000>;
84 keep-power-in-suspend;
90 clock-frequency = <50000000>;
91 clock-freq-min-max = <400000 50000000>;
94 cd-gpios = <&gpio2 GPIO_A7 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
96 card-detect-delay = <200>;
98 keep-power-in-suspend;
99 vmmc-supply = <&rk818_ldo9_reg>;
104 clock-frequency = <50000000>;
105 clock-freq-min-max = <200000 50000000>;
109 keep-power-in-suspend;
118 compatible = "rockchip,key";
119 io-channels = <&adc 1>;
124 rockchip,adc_value = <327>;
129 label = "volume down";
130 rockchip,adc_value = <426>;
134 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
143 rockchip,adc_value = <1>;
149 rockchip,adc_value = <746>;
155 rockchip,adc_value = <103>;
161 rockchip,adc_value = <450>;
177 compatible = "goodix,gt8xx";
179 touch-gpio = <&gpio1 GPIO_B0 IRQ_TYPE_LEVEL_LOW>;
180 reset-gpio = <&gpio2 GPIO_C1 GPIO_ACTIVE_LOW>;
181 //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
187 compatible = "ct,vtl_ts";
189 screen_max_x = <1280>;
190 screen_max_y = <800>;
191 irq_gpio_number = <&gpio1 GPIO_B0 IRQ_TYPE_LEVEL_LOW>;
192 rst_gpio_number = <&gpio2 GPIO_C1 GPIO_ACTIVE_HIGH>;
198 rockchip,disp-mode = <ONE_DUAL>;
199 rockchip,uboot-logo-on = <0>;
206 /include/ "rk818.dtsi"
208 gpios =<&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>,<&gpio1 GPIO_A1 GPIO_ACTIVE_LOW>;
209 rk818,system-power-controller;
210 rk818,support_dc_chg = <1>;/*1: dc chg; 0:usb chg*/
214 rk818_dcdc1_reg: regulator@0{
215 regulator-name= "vdd_arm";
216 regulator-min-microvolt = <700000>;
217 regulator-max-microvolt = <1500000>;
218 regulator-initial-mode = <0x2>;
219 regulator-initial-state = <3>;
220 regulator-state-mem {
221 regulator-state-mode = <0x2>;
222 regulator-state-disabled;
223 regulator-state-uv = <900000>;
227 rk818_dcdc2_reg: regulator@1 {
228 regulator-name= "vdd_logic";
229 regulator-min-microvolt = <700000>;
230 regulator-max-microvolt = <1500000>;
231 regulator-initial-mode = <0x2>;
232 regulator-initial-state = <3>;
233 regulator-state-mem {
234 regulator-state-mode = <0x2>;
235 regulator-state-enabled;
236 regulator-state-uv = <900000>;
240 rk818_dcdc3_reg: regulator@2 {
241 regulator-name= "rk818_dcdc3";
242 regulator-min-microvolt = <1200000>;
243 regulator-max-microvolt = <1200000>;
244 regulator-initial-mode = <0x2>;
245 regulator-initial-state = <3>;
246 regulator-state-mem {
247 regulator-state-mode = <0x2>;
248 regulator-state-enabled;
249 regulator-state-uv = <1200000>;
253 rk818_dcdc4_reg: regulator@3 {
254 regulator-name= "vccio";
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <3300000>;
257 regulator-initial-mode = <0x2>;
258 regulator-initial-state = <3>;
259 regulator-state-mem {
260 regulator-state-mode = <0x2>;
261 regulator-state-enabled;
262 regulator-state-uv = <2800000>;
266 rk818_ldo1_reg: regulator@4 {
267 regulator-name= "rk818_ldo1";
268 regulator-min-microvolt = <3300000>;
269 regulator-max-microvolt = <3300000>;
270 regulator-initial-state = <3>;
271 regulator-state-mem {
272 regulator-state-enabled;
273 regulator-state-uv = <3300000>;
277 rk818_ldo2_reg: regulator@5 {
278 regulator-name= "rk818_ldo2";
279 regulator-min-microvolt = <3000000>;
280 regulator-max-microvolt = <3000000>;
281 regulator-initial-state = <3>;
282 regulator-state-mem {
283 regulator-state-enabled;
284 regulator-state-uv = <3000000>;
288 rk818_ldo3_reg: regulator@6 {
289 regulator-name= "rk818_ldo3";
290 regulator-min-microvolt = <1100000>;
291 regulator-max-microvolt = <1100000>;
292 regulator-initial-state = <3>;
293 regulator-state-mem {
294 regulator-state-enabled;
295 regulator-state-uv = <1100000>;
299 rk818_ldo4_reg:regulator@7 {
300 regulator-name= "rk818_ldo4";
301 regulator-min-microvolt = <2500000>;
302 regulator-max-microvolt = <2500000>;
303 regulator-initial-state = <3>;
304 regulator-state-mem {
305 regulator-state-enabled;
306 regulator-state-uv = <2500000>;
310 rk818_ldo5_reg: regulator@8 {
311 regulator-name= "rk818_ldo5";
312 regulator-min-microvolt = <3000000>;
313 regulator-max-microvolt = <3000000>;
314 regulator-initial-state = <3>;
315 regulator-state-mem {
316 regulator-state-enabled;
317 regulator-state-uv = <3000000>;
321 rk818_ldo6_reg: regulator@9 {
322 regulator-name= "rk818_ldo6";
323 regulator-min-microvolt = <1200000>;
324 regulator-max-microvolt = <1200000>;
325 regulator-initial-state = <3>;
326 regulator-state-mem {
327 regulator-state-enabled;
328 regulator-state-uv = <1200000>;
332 rk818_ldo7_reg: regulator@10 {
333 regulator-name= "rk818_ldo7";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
336 regulator-initial-state = <3>;
337 regulator-state-mem {
338 regulator-state-enabled;
339 regulator-state-uv = <1800000>;
343 rk818_ldo8_reg: regulator@11 {
344 regulator-name= "rk818_ldo8";
345 regulator-min-microvolt = <1800000>;
346 regulator-max-microvolt = <1800000>;
347 regulator-initial-state = <3>;
348 regulator-state-mem {
349 regulator-state-enabled;
350 regulator-state-uv = <1800000>;
353 rk818_ldo9_reg: regulator@12 {
354 regulator-name= "vcc_sd";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <3000000>;
357 regulator-initial-state = <3>;
358 regulator-state-mem {
359 regulator-state-enabled;
360 regulator-state-uv = <3000000>;
363 rk818_ldo10_reg: regulator@13 {
364 regulator-name= "rk818_ldo10";
365 regulator-state-mem {
366 regulator-state-disabled;
371 ocv_table = <3350 3677 3693 3719 3752 3770 3775 3778 3785 3796 3812 3839 3881 3907 3933 3958 3978 4033 4087 4123 4174>;
372 design_capacity = <2100>;
373 design_qmax = <2200>;
374 max_overcharge = <100>;
375 max_charge_currentmA = <1500>;
376 max_charge_voltagemV = <4260>;
377 max_bat_voltagemV = <4200>;
381 &clk_core_dvfs_table {
393 &clk_gpu_dvfs_table {
402 &clk_ddr_dvfs_table {
413 SYS_STATUS_NORMAL 400000
414 SYS_STATUS_SUSPEND 200000
415 SYS_STATUS_VIDEO_1080P 240000
416 SYS_STATUS_VIDEO_4K 400000
417 SYS_STATUS_PERFORMANCE 528000
418 SYS_STATUS_DUALVIEW 400000
419 SYS_STATUS_BOOST 324000
420 SYS_STATUS_ISP 533000