Message ID | 20200417070044.1376212-3-bjorn.andersson@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | clk: qcom: gdsc: Handle supply regulators | expand |
On Fri, 17 Apr 2020 00:00:42 -0700, Bjorn Andersson wrote: > 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> > --- > > Changes since v1: > - vdd_gfx -> vdd-gfx > > Documentation/devicetree/bindings/clock/qcom,mmcc.yaml | 4 ++++ > drivers/clk/qcom/mmcc-msm8996.c | 2 ++ > 2 files changed, 6 insertions(+) > Acked-by: Rob Herring <robh@kernel.org>
Quoting Bjorn Andersson (2020-04-17 00:00:42) > 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> > --- Applied to clk-next
diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml index acc31b3991bd..1b16a863b355 100644 --- a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml @@ -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 diff --git a/drivers/clk/qcom/mmcc-msm8996.c b/drivers/clk/qcom/mmcc-msm8996.c index 6c7592ddf8bb..3b3aac07fb2d 100644 --- a/drivers/clk/qcom/mmcc-msm8996.c +++ b/drivers/clk/qcom/mmcc-msm8996.c @@ -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[] = {
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> --- Changes since v1: - vdd_gfx -> vdd-gfx Documentation/devicetree/bindings/clock/qcom,mmcc.yaml | 4 ++++ drivers/clk/qcom/mmcc-msm8996.c | 2 ++ 2 files changed, 6 insertions(+)