From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Vinod Koul <vkoul@kernel.org>
Cc: Stephen Boyd <sboyd@kernel.org>,
linux-arm-msm@vger.kernel.org, Andy Gross <agross@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] clk: qcom: clk-rpmh: Add support for SM8150
Date: Mon, 19 Aug 2019 22:09:44 -0700 [thread overview]
Message-ID: <20190820050944.GL26807@tuxbook-pro> (raw)
In-Reply-To: <20190819073947.17258-5-vkoul@kernel.org>
On Mon 19 Aug 00:39 PDT 2019, Vinod Koul wrote:
> Add support for rpmh clocks found in SM8150
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
> drivers/clk/qcom/clk-rpmh.c | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
> index 16d689e5bb3c..3b304a3fb5c9 100644
> --- a/drivers/clk/qcom/clk-rpmh.c
> +++ b/drivers/clk/qcom/clk-rpmh.c
> @@ -374,6 +374,32 @@ static const struct clk_rpmh_desc clk_rpmh_sdm845 = {
> .num_clks = ARRAY_SIZE(sdm845_rpmh_clocks),
> };
>
> +DEFINE_CLK_RPMH_ARC(sm8150, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 2);
> +DEFINE_CLK_RPMH_VRM(sm8150, ln_bb_clk2, ln_bb_clk2_ao, "lnbclka2", 2);
> +DEFINE_CLK_RPMH_VRM(sm8150, ln_bb_clk3, ln_bb_clk3_ao, "lnbclka3", 2);
> +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk1, rf_clk1_ao, "rfclka1", 1);
> +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk2, rf_clk2_ao, "rfclka2", 1);
> +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk3, rf_clk3_ao, "rfclka3", 1);
> +
> +static struct clk_hw *sm8150_rpmh_clocks[] = {
> + [RPMH_CXO_CLK] = &sm8150_bi_tcxo.hw,
> + [RPMH_CXO_CLK_A] = &sm8150_bi_tcxo_ao.hw,
> + [RPMH_LN_BB_CLK2] = &sm8150_ln_bb_clk2.hw,
> + [RPMH_LN_BB_CLK2_A] = &sm8150_ln_bb_clk2_ao.hw,
> + [RPMH_LN_BB_CLK3] = &sm8150_ln_bb_clk3.hw,
> + [RPMH_LN_BB_CLK3_A] = &sm8150_ln_bb_clk3_ao.hw,
> + [RPMH_RF_CLK1] = &sm8150_rf_clk1.hw,
> + [RPMH_RF_CLK1_A] = &sm8150_rf_clk1_ao.hw,
> + [RPMH_RF_CLK2] = &sm8150_rf_clk2.hw,
> + [RPMH_RF_CLK2_A] = &sm8150_rf_clk2_ao.hw,
> + [RPMH_RF_CLK3] = &sm8150_rf_clk3.hw,
> + [RPMH_RF_CLK3_A] = &sm8150_rf_clk3_ao.hw,
> +};
> +
> +static const struct clk_rpmh_desc clk_rpmh_sm8150 = {
> + .clks = sm8150_rpmh_clocks,
> + .num_clks = ARRAY_SIZE(sm8150_rpmh_clocks),
> +};
Maybe an empty line here?
> static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
> void *data)
> {
> @@ -453,6 +479,7 @@ static int clk_rpmh_probe(struct platform_device *pdev)
>
> static const struct of_device_id clk_rpmh_match_table[] = {
> { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845},
> + { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150},
> { }
> };
> MODULE_DEVICE_TABLE(of, clk_rpmh_match_table);
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> --
> 2.20.1
>
next prev parent reply other threads:[~2019-08-20 5:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 7:39 [PATCH v2 0/4] clk: qcom: Add support for SM8150 Vinod Koul
2019-08-19 7:39 ` [PATCH v2 1/4] dt-bindings: clock: Document the parent clocks Vinod Koul
2019-08-20 5:06 ` Bjorn Andersson
2019-08-19 7:39 ` [PATCH v2 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme Vinod Koul
2019-08-20 5:08 ` Bjorn Andersson
2019-08-22 13:59 ` Vinod Koul
2019-08-19 7:39 ` [PATCH v2 3/4] dt-bindings: clock: Document SM8150 rpmh-clock compatible Vinod Koul
2019-08-20 5:08 ` Bjorn Andersson
2019-08-19 7:39 ` [PATCH v2 4/4] clk: qcom: clk-rpmh: Add support for SM8150 Vinod Koul
2019-08-20 5:09 ` Bjorn Andersson [this message]
2019-08-22 14:01 ` Vinod Koul
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=20190820050944.GL26807@tuxbook-pro \
--to=bjorn.andersson@linaro.org \
--cc=agross@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=vkoul@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;
as well as URLs for NNTP newsgroup(s).