From 791caa032264aedf616000165f81e434ea95c4d3 Mon Sep 17 00:00:00 2001 From: Anaadi Mishra Date: Fri, 24 May 2024 13:59:14 +0530 Subject: [PATCH] ARM: dts: msm: Add support for graphics clock controller on TUNA Add support for GPU clock controller and move corresponding CX/GX gdsc's from dummy to real on Tuna platform. Change-Id: Idc90b51bf63232dd5e080610ad5438eb6aab129d Signed-off-by: Anaadi Mishra --- qcom/tuna.dtsi | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index 85334931..e5328282 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -584,8 +584,17 @@ }; gpucc: clock-controller@3d90000 { - compatible = "qcom,dummycc"; - clock-output-names = "gpucc_clocks"; + compatible = "qcom,tuna-gpucc", "syscon"; + reg = <0x3d90000 0x9800>; + reg-name = "cc_base"; + vdd_cx-supply = <&VDD_CX_LEVEL>; + vdd_mx-supply = <&VDD_MX_LEVEL>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_GPU_GPLL0_CPH_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_DIV_CPH_CLK_SRC>; + clock-names = "bi_tcxo", + "gpll0_out_main", + "gpll0_out_main_div"; #clock-cells = <1>; #reset-cells = <1>; }; @@ -710,12 +719,13 @@ }; &gpu_cc_cx_gdsc { - compatible = "regulator-fixed"; + clocks = <&gcc GCC_GPU_CFG_AHB_CLK>; + parent-supply = <&VDD_CX_LEVEL>; status = "ok"; }; &gx_clkctl_gx_gdsc { - compatible = "regulator-fixed"; + parent-supply = <&VDD_GFX_MXC_VOTER_LEVEL>; status = "ok"; };