public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	Michael Turquette <mturquette@baylibre.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Taniya Das <quic_tdas@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 12/15] clk: qcom: gcc-qcs404: add support for GDSCs
Date: Sat, 17 Dec 2022 16:15:46 +0100	[thread overview]
Message-ID: <e413ac96-085d-34d5-207a-e06d2a57f6de@linaro.org> (raw)
In-Reply-To: <20221217001730.540502-13-dmitry.baryshkov@linaro.org>



On 17.12.2022 01:17, Dmitry Baryshkov wrote:
> Add support for two GDSCs provided by this clock controller.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>  drivers/clk/qcom/gcc-qcs404.c | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c
> index 8fb268671f0c..f8dbfffc2b8e 100644
> --- a/drivers/clk/qcom/gcc-qcs404.c
> +++ b/drivers/clk/qcom/gcc-qcs404.c
> @@ -19,6 +19,7 @@
>  #include "clk-rcg.h"
>  #include "clk-regmap.h"
>  #include "common.h"
> +#include "gdsc.h"
>  #include "reset.h"
>  
>  enum {
> @@ -2598,6 +2599,22 @@ static struct clk_branch gcc_wdsp_q6ss_axim_clk = {
>  	},
>  };
>  
> +static struct gdsc mdss_gdsc = {
> +	.gdscr = 0x4d078,
> +	.pd = {
> +		.name = "mdss",
> +	},
> +	.pwrsts = PWRSTS_OFF_ON,
> +};
> +
> +static struct gdsc oxili_gdsc = {
> +	.gdscr = 0x5901c,
> +	.pd = {
> +		.name = "oxili",
> +	},
> +	.pwrsts = PWRSTS_OFF_ON,
> +};
> +
>  static struct clk_hw *gcc_qcs404_hws[] = {
>  	&cxo.hw,
>  };
> @@ -2748,6 +2765,11 @@ static struct clk_regmap *gcc_qcs404_clocks[] = {
>  
>  };
>  
> +static struct gdsc *gcc_qcs404_gdscs[] = {
> +	[MDSS_GDSC] = &mdss_gdsc,
> +	[OXILI_GDSC] = &oxili_gdsc,
> +};
> +
>  static const struct qcom_reset_map gcc_qcs404_resets[] = {
>  	[GCC_GENI_IR_BCR] = { 0x0F000 },
>  	[GCC_CDSP_RESTART] = { 0x18000 },
> @@ -2790,6 +2812,8 @@ static const struct qcom_cc_desc gcc_qcs404_desc = {
>  	.num_resets = ARRAY_SIZE(gcc_qcs404_resets),
>  	.clk_hws = gcc_qcs404_hws,
>  	.num_clk_hws = ARRAY_SIZE(gcc_qcs404_hws),
> +	.gdscs = gcc_qcs404_gdscs,
> +	.num_gdscs = ARRAY_SIZE(gcc_qcs404_gdscs),
>  };
>  
>  static const struct of_device_id gcc_qcs404_match_table[] = {

  reply	other threads:[~2022-12-17 15:15 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-17  0:17 [PATCH 00/15] clk: qcom: gcc-qcs404: convert to parent_data Dmitry Baryshkov
2022-12-17  0:17 ` [PATCH 01/15] dt-bindings: clock: qcom: gcc-qcs404: add two GDSC entries Dmitry Baryshkov
2022-12-19  9:13   ` Krzysztof Kozlowski
2022-12-17  0:17 ` [PATCH 02/15] dt-bindings: clock: qcom: gcc-qcs404: switch to gcc.yaml Dmitry Baryshkov
2022-12-19  9:13   ` Krzysztof Kozlowski
2022-12-17  0:17 ` [PATCH 03/15] dt-bindings: clock: qcom: gcc-qcs404: define clocks/clock-names for QCS404 Dmitry Baryshkov
2022-12-19  9:14   ` Krzysztof Kozlowski
2022-12-17  0:17 ` [PATCH 04/15] clk: qcom: gcc-qcs404: use ARRAY_SIZE instead of specifying num_parents Dmitry Baryshkov
2022-12-17 15:07   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 05/15] clk: qcom: gcc-qcs404: disable gpll[04]_out_aux parents Dmitry Baryshkov
2022-12-17 15:08   ` Konrad Dybcio
2022-12-17 17:54     ` Dmitry Baryshkov
2022-12-17  0:17 ` [PATCH 06/15] clk: qcom: gcc-qcs404: fix names of the DSI clocks used as parents Dmitry Baryshkov
2022-12-17 15:08   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 07/15] clk: qcom: gcc-qcs404: fix the name of the HDMI PLL clock Dmitry Baryshkov
2022-12-17 15:09   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 08/15] clk: qcom: gcc-qcs404: get rid of the test clock Dmitry Baryshkov
2022-12-17 15:09   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 09/15] clk: qcom: gcc-qcs404: move PLL clocks up Dmitry Baryshkov
2022-12-17 15:10   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 10/15] clk: qcom: gcc-qcs404: use parent_hws/_data instead of parent_names Dmitry Baryshkov
2022-12-17 15:13   ` Konrad Dybcio
2022-12-17 15:14     ` Konrad Dybcio
2022-12-17 17:56       ` Dmitry Baryshkov
2022-12-17  0:17 ` [PATCH 11/15] clk: qcom: gcc-qcs404: sort out the cxo clock Dmitry Baryshkov
2022-12-17 15:15   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 12/15] clk: qcom: gcc-qcs404: add support for GDSCs Dmitry Baryshkov
2022-12-17 15:15   ` Konrad Dybcio [this message]
2022-12-17  0:17 ` [PATCH 13/15] arm64: dts: qcom: qcs404: use symbol names for PCIe resets Dmitry Baryshkov
2022-12-17 15:16   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 14/15] arm64: dts: qcom: qcs404: add power-domains-cells to gcc node Dmitry Baryshkov
2022-12-17 15:16   ` Konrad Dybcio
2022-12-17  0:17 ` [PATCH 15/15] arm64: dts: qcom: qcs404: add clocks to the " Dmitry Baryshkov
2022-12-17 15:17   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e413ac96-085d-34d5-207a-e06d2a57f6de@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_tdas@quicinc.com \
    --cc=robh+dt@kernel.org \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox