5 #include "rk312x-cif-sensor.dtsi"
12 bootargs = "vmalloc=496M";
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 = <37500000>;
77 clock-freq-min-max = <400000 37500000>;
83 keep-power-in-suspend;
89 clock-frequency = <37500000>;
90 clock-freq-min-max = <400000 37500000>;
94 card-detect-delay = <200>;
96 keep-power-in-suspend;
97 vmmc-supply = <&rk818_ldo9_reg>;
102 clock-frequency = <37500000>;
103 clock-freq-min-max = <200000 37500000>;
107 keep-power-in-suspend;
116 compatible = "rockchip,key";
117 io-channels = <&adc 1>;
122 rockchip,adc_value = <523>;
127 label = "volume down";
128 rockchip,adc_value = <727>;
132 gpios = <&gpio0 GPIO_A5 GPIO_ACTIVE_LOW>;
141 rockchip,adc_value = <1>;
147 rockchip,adc_value = <318>;
153 rockchip,adc_value = <146>;
159 rockchip,adc_value = <450>;
172 compatible = "rt,rt5025";
180 compatible = "goodix,gt8xx";
182 touch-gpio = <&gpio1 GPIO_B0 IRQ_TYPE_LEVEL_LOW>;
183 reset-gpio = <&gpio2 GPIO_C1 GPIO_ACTIVE_LOW>;
184 //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
190 compatible = "ct,vtl_ts";
192 screen_max_x = <1280>;
193 screen_max_y = <800>;
194 irq_gpio_number = <&gpio1 GPIO_B0 IRQ_TYPE_LEVEL_LOW>;
195 rst_gpio_number = <&gpio2 GPIO_C1 GPIO_ACTIVE_HIGH>;
201 rockchip,disp-mode = <ONE_DUAL>;
202 rockchip,uboot-logo-on = <0>;
206 /include/ "rt5025.dtsi"
209 rt5025_dcdc1: regulator_0 {
210 regulator-name = "vdd_arm";
211 regulator-min-microvolt = < 700000>;
212 regulator-max-microvolt = <1500000>;
213 qcom,comsumer-supplies = "vdd_arm", "";
219 rt5025_dcdc2: regulator_1 {
220 regulator-name = "vdd_logic";
221 regulator-min-microvolt = < 700000>;
222 regulator-max-microvolt = <1500000>;
223 qcom,comsumer-supplies = "vdd_logic", "";
228 rt5025_dcdc3: regulator_2 {
229 regulator-name = "rt5025-dcdc3";
230 regulator-min-microvolt = < 1800000>;
231 regulator-max-microvolt = <3300000>;
232 qcom,comsumer-supplies = "rt5025-dcdc3", "";
237 rt5025_dcdc4: regulator_3 {
238 regulator-name = "rt5025-dcdc4";
239 regulator-min-microvolt = <5000000>;
240 regulator-max-microvolt = <5000000>;
241 qcom,comsumer-supplies = "rt5025-dcdc4", "";
246 rt5025_ldo1: regulator_4 {
247 regulator-name = "rt5025-ldo1";
248 regulator-min-microvolt = < 1800000>;
249 regulator-max-microvolt = <1800000>;
250 qcom,comsumer-supplies = "rt5025-ldo1", "";
255 rt5025_ldo2: regulator_5 {
256 regulator-name = "rt5025-ldo2";
257 regulator-min-microvolt = < 1200000>;
258 regulator-max-microvolt = <1200000>;
259 qcom,comsumer-supplies = "rt5025-ldo2", "";
264 rt5025_ldo3: regulator_6 {
265 regulator-name = "rt5025-ldo3";
266 regulator-min-microvolt = <2800000>;
267 regulator-max-microvolt = <2800000>;
268 qcom,comsumer-supplies = "rt5025-ldo3", "";
273 rt5025_ldo4: regulator_7 {
274 regulator-name = "rt5025-ldo4";
275 regulator-min-microvolt = <3300000>;
276 regulator-max-microvolt = <3300000>;
277 qcom,comsumer-supplies = "rt5025-ldo4", "";
282 rt5025_ldo5: regulator_8 {
283 regulator-name = "rt5025-ldo5";
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
286 qcom,comsumer-supplies = "rt5025-ldo5", "";
291 rt5025_ldo6: regulator_9 {
292 regulator-name = "rt5025-ldo6";
293 regulator-min-microvolt = <330000>;
294 regulator-max-microvolt = <3300000>;
295 qcom,comsumer-supplies = "rt5025-ldo6", "";
301 compatible = "rt,rt5025-irq";
302 rt,irq-gpio = <&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>;
306 /include/ "rk818.dtsi"
308 gpios =<&gpio1 GPIO_B1 GPIO_ACTIVE_HIGH>,<&gpio1 GPIO_A1 GPIO_ACTIVE_LOW>;
309 rk818,system-power-controller;
310 rk818,support_dc_chg = <1>;/*1: dc chg; 0:usb chg*/
314 rk818_dcdc1_reg: regulator@0{
315 regulator-name= "vdd_arm";
316 regulator-min-microvolt = <700000>;
317 regulator-max-microvolt = <1500000>;
318 regulator-initial-mode = <0x2>;
319 regulator-initial-state = <3>;
320 regulator-state-mem {
321 regulator-state-mode = <0x2>;
322 regulator-state-disabled;
323 regulator-state-uv = <900000>;
327 rk818_dcdc2_reg: regulator@1 {
328 regulator-name= "vdd_logic";
329 regulator-min-microvolt = <700000>;
330 regulator-max-microvolt = <1500000>;
331 regulator-initial-mode = <0x2>;
332 regulator-initial-state = <3>;
333 regulator-state-mem {
334 regulator-state-mode = <0x2>;
335 regulator-state-enabled;
336 regulator-state-uv = <900000>;
340 rk818_dcdc3_reg: regulator@2 {
341 regulator-name= "rk818_dcdc3";
342 regulator-min-microvolt = <1200000>;
343 regulator-max-microvolt = <1200000>;
344 regulator-initial-mode = <0x2>;
345 regulator-initial-state = <3>;
346 regulator-state-mem {
347 regulator-state-mode = <0x2>;
348 regulator-state-enabled;
349 regulator-state-uv = <1200000>;
353 rk818_dcdc4_reg: regulator@3 {
354 regulator-name= "vccio";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <3300000>;
357 regulator-initial-mode = <0x2>;
358 regulator-initial-state = <3>;
359 regulator-state-mem {
360 regulator-state-mode = <0x2>;
361 regulator-state-enabled;
362 regulator-state-uv = <2800000>;
366 rk818_ldo1_reg: regulator@4 {
367 regulator-name= "rk818_ldo1";
368 regulator-min-microvolt = <3300000>;
369 regulator-max-microvolt = <3300000>;
370 regulator-initial-state = <3>;
371 regulator-state-mem {
372 regulator-state-enabled;
373 regulator-state-uv = <3300000>;
377 rk818_ldo2_reg: regulator@5 {
378 regulator-name= "rk818_ldo2";
379 regulator-min-microvolt = <3000000>;
380 regulator-max-microvolt = <3000000>;
381 regulator-initial-state = <3>;
382 regulator-state-mem {
383 regulator-state-enabled;
384 regulator-state-uv = <3000000>;
388 rk818_ldo3_reg: regulator@6 {
389 regulator-name= "rk818_ldo3";
390 regulator-min-microvolt = <1100000>;
391 regulator-max-microvolt = <1100000>;
392 regulator-initial-state = <3>;
393 regulator-state-mem {
394 regulator-state-enabled;
395 regulator-state-uv = <1100000>;
399 rk818_ldo4_reg:regulator@7 {
400 regulator-name= "rk818_ldo4";
401 regulator-min-microvolt = <2800000>;
402 regulator-max-microvolt = <2800000>;
403 regulator-initial-state = <3>;
404 regulator-state-mem {
405 regulator-state-enabled;
406 regulator-state-uv = <2500000>;
410 rk818_ldo5_reg: regulator@8 {
411 regulator-name= "rk818_ldo5";
412 regulator-min-microvolt = <3000000>;
413 regulator-max-microvolt = <3000000>;
414 regulator-initial-state = <3>;
415 regulator-state-mem {
416 regulator-state-enabled;
417 regulator-state-uv = <3000000>;
421 rk818_ldo6_reg: regulator@9 {
422 regulator-name= "rk818_ldo6";
423 regulator-min-microvolt = <1200000>;
424 regulator-max-microvolt = <1200000>;
425 regulator-initial-state = <3>;
426 regulator-state-mem {
427 regulator-state-enabled;
428 regulator-state-uv = <1200000>;
432 rk818_ldo7_reg: regulator@10 {
433 regulator-name= "rk818_ldo7";
434 regulator-min-microvolt = <1800000>;
435 regulator-max-microvolt = <1800000>;
436 regulator-initial-state = <3>;
437 regulator-state-mem {
438 regulator-state-enabled;
439 regulator-state-uv = <1800000>;
443 rk818_ldo8_reg: regulator@11 {
444 regulator-name= "rk818_ldo8";
445 regulator-min-microvolt = <1800000>;
446 regulator-max-microvolt = <1800000>;
447 regulator-initial-state = <3>;
448 regulator-state-mem {
449 regulator-state-enabled;
450 regulator-state-uv = <1800000>;
453 rk818_ldo9_reg: regulator@12 {
454 regulator-name= "vcc_sd";
455 regulator-min-microvolt = <1800000>;
456 regulator-max-microvolt = <3000000>;
457 regulator-initial-state = <3>;
458 regulator-state-mem {
459 regulator-state-enabled;
460 regulator-state-uv = <3000000>;
463 rk818_ldo10_reg: regulator@13 {
464 regulator-name= "rk818_ldo10";
465 regulator-state-mem {
466 regulator-state-disabled;
471 ocv_table = <3350 3677 3693 3719 3752 3770 3775 3778 3785 3796 3812 3839 3881 3907 3933 3958 3978 4033 4087 4123 4174>;
472 design_capacity = <2100>;
473 design_qmax = <2200>;
474 max_overcharge = <100>;
475 max_charge_currentmA = <1500>;
476 max_charge_voltagemV = <4260>;
477 max_bat_voltagemV = <4200>;
481 &clk_core_dvfs_table {
493 &clk_gpu_dvfs_table {
502 &clk_ddr_dvfs_table {
513 SYS_STATUS_NORMAL 400000
514 SYS_STATUS_SUSPEND 200000
515 SYS_STATUS_VIDEO_1080P 240000
516 SYS_STATUS_VIDEO_4K 400000
517 SYS_STATUS_PERFORMANCE 528000
518 SYS_STATUS_DUALVIEW 400000
519 SYS_STATUS_BOOST 324000
520 SYS_STATUS_ISP 533000