From: luowei Date: Thu, 7 Aug 2014 05:57:06 +0000 (+0800) Subject: rk3128-box:add pwm_regulator,lcdc,dvfs dts support X-Git-Tag: firefly_0821_release~4916^2~43 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9253caccd6b2c2364609f2020ce6efb9a09d7a38;p=firefly-linux-kernel-4.4.55.git rk3128-box:add pwm_regulator,lcdc,dvfs dts support --- diff --git a/arch/arm/boot/dts/rk3128-box.dts b/arch/arm/boot/dts/rk3128-box.dts index 372e2d088fc4..305a5102bf1f 100755 --- a/arch/arm/boot/dts/rk3128-box.dts +++ b/arch/arm/boot/dts/rk3128-box.dts @@ -4,3 +4,81 @@ compatible = "rockchip,rk3128"; }; + +&clk_core_dvfs_table { + operating-points = < + /* KHz uV */ + /*408000 1250000 + 600000 1250000 + 696000 1250000 + */ + 816000 1250000 + 1008000 1250000 + >; + status="okay"; +}; + +&clk_gpu_dvfs_table { + operating-points = < + /* KHz uV */ + 200000 1250000 + 300000 1250000 + >; + status="okay"; +}; + +&clk_ddr_dvfs_table { + operating-points = < + /* KHz uV */ + 200000 950000 + 300000 950000 + 400000 1000000 + 533000 1050000 + >; + + freq-table = < + /*status freq(KHz)*/ + SYS_STATUS_NORMAL 400000 + SYS_STATUS_SUSPEND 200000 + SYS_STATUS_VIDEO_1080P 240000 + SYS_STATUS_VIDEO_4K 400000 + SYS_STATUS_PERFORMANCE 528000 + SYS_STATUS_DUALVIEW 400000 + SYS_STATUS_BOOST 324000 + SYS_STATUS_ISP 533000 + >; + auto-freq-table = < + 240000 + 324000 + 396000 + 528000 + >; + auto-freq=<0>; + status="disable"; +}; + +&pwm_regulator1 { + status = "okay"; +}; + +&pwm_regulator2 { + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + +&lcdc { + status = "okay"; +}; + +&i2c2 { + status = "disabled"; +}; + + diff --git a/arch/arm/boot/dts/rk312x-sdk.dtsi b/arch/arm/boot/dts/rk312x-sdk.dtsi index f3c84de9e9bd..b7d362ba303d 100755 --- a/arch/arm/boot/dts/rk312x-sdk.dtsi +++ b/arch/arm/boot/dts/rk312x-sdk.dtsi @@ -21,7 +21,7 @@ rockchip,usb_irq_wakeup; }; - pwm_regulator1 { + pwm_regulator1:pwm-regulator1 { compatible = "rockchip_pwm_regulator"; pwms = <&pwm1 0 25000>; rockchip,pwm_id= <1>; @@ -30,8 +30,8 @@ rockchip,pwm_min_voltage= <950000>; rockchip,pwm_max_voltage= <1450000>; rockchip,pwm_suspend_voltage= <1250000>; - rockchip,pwm_coefficient= <475>; - status = "okay"; + rockchip,pwm_coefficient= <550>; + status = "disabled"; regulators { #address-cells = <1>; #size-cells = <0>; @@ -46,7 +46,7 @@ }; }; - pwm_regulator2 { + pwm_regulator2:pwm-regulator2 { compatible = "rockchip_pwm_regulator"; pwms = <&pwm2 0 25000>; rockchip,pwm_id= <2>; @@ -55,8 +55,8 @@ rockchip,pwm_min_voltage= <950000>; rockchip,pwm_max_voltage= <1450000>; rockchip,pwm_suspend_voltage= <1250000>; - rockchip,pwm_coefficient= <475>; - status = "okay"; + rockchip,pwm_coefficient= <550>; + status = "disabled"; regulators { #address-cells = <1>; #size-cells = <0>;