clk: qcom: mmcc-msm8996: Properly describe GPU_GX gdsc
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 17 Apr 2020 07:00:42 +0000 (00:00 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 14 May 2020 21:23:42 +0000 (14:23 -0700)
The GPU_GX GDSC depends on both GPU GDSC being enabled and that the
VDD_GX rail is powered, so update the description of the node to cover
these requirements.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lkml.kernel.org/r/20200417070044.1376212-3-bjorn.andersson@linaro.org
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/clock/qcom,mmcc.yaml
drivers/clk/qcom/mmcc-msm8996.c

index f684fe67db84efda63b1da7eb3a264d9d235c5be..244db36cc920fd727c4a97951f358d8142d3c209 100644 (file)
@@ -67,6 +67,10 @@ properties:
     description:
        Protected clock specifier list as per common clock binding
 
+  vdd-gfx-supply:
+    description:
+      Regulator supply for the GPU_GX GDSC
+
 required:
   - compatible
   - reg
index 6c7592ddf8bb37f0d676f3fe0807f577ab328828..3b3aac07fb2d5cb063645175e25ec81f4863bf9b 100644 (file)
@@ -3064,7 +3064,9 @@ static struct gdsc gpu_gx_gdsc = {
                .name = "gpu_gx",
        },
        .pwrsts = PWRSTS_OFF_ON,
+       .parent = &gpu_gdsc.pd,
        .flags = CLAMP_IO,
+       .supply = "vdd-gfx",
 };
 
 static struct clk_regmap *mmcc_msm8996_clocks[] = {