From: chenzhen Date: Mon, 6 Mar 2017 07:49:23 +0000 (+0800) Subject: ARM64: dts: rk3328: add mali-450 GPU device X-Git-Tag: firefly_0821_release~125 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1837bc7aa067c373b838fbde7987fd3d845f0501;p=firefly-linux-kernel-4.4.55.git ARM64: dts: rk3328: add mali-450 GPU device GPU and DDR share vdd_logic. DDR DVFS is not ready yet, to ensure DDR could work stably, vdd_logic(vdd_gpu) should be higher than 1.05V. This would be optimized after DDR DVFS is ready. Change-Id: I2749484c7f6f86dde850f0f85d606e1c1ab85c17 Signed-off-by: chenzhen --- diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 920bea126d1a..fdcf719b53ad 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -544,6 +544,52 @@ status = "disabled"; }; + gpu: gpu@ff300000 { + compatible = "arm,mali-450"; + /* first item of 'reg' is dummy, to fit src code. */ + reg = <0x0 0xff300000 0x0 0x40000>, + <0x0 0xff300000 0x0 0x40000>; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "Mali_GP_IRQ", + "Mali_GP_MMU_IRQ", + "IRQPP", + "Mali_PP0_IRQ", + "Mali_PP0_MMU_IRQ", + "Mali_PP1_IRQ", + "Mali_PP1_MMU_IRQ"; + clocks = <&cru ACLK_GPU>; + clock-names = "clk_mali"; + operating-points-v2 = <&gpu_opp_table>; + status = "disabled"; + }; + + gpu_opp_table: opp-table2 { + compatible = "operating-points-v2"; + + opp@200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <1050000>; + }; + opp@300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <1050000>; + }; + opp@400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <1050000>; + }; + opp@500000000 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <1100000>; + }; + }; + vop: vop@ff370000 { compatible = "rockchip,rk3328-vop"; reg = <0x0 0xff370000 0x0 0x3efc>;