From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: "Otto Pflüger" <otto.pflueger@abscue.de>,
"Bjorn Andersson" <andersson@kernel.org>
Cc: Andy Gross <agross@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Stephan Gerhold <stephan@gerhold.net>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 4/4] clk: qcom: smd-rpm: Add clocks for MSM8917
Date: Thu, 23 Feb 2023 23:08:27 +0100 [thread overview]
Message-ID: <907731c3-c37e-6ab0-4985-6b43e8d0a120@linaro.org> (raw)
In-Reply-To: <20230223180935.60546-5-otto.pflueger@abscue.de>
On 23.02.2023 19:09, Otto Pflüger wrote:
> MSM8917 has mostly the same rpm clocks as MSM8953, but lacks RF_CLK3 and
> IPA_CLK and additionally has the BIMC_GPU clock.
>
> Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Konrad
> Changes in v2:
> - Rebased onto linux-next-20230223
> ---
> drivers/clk/qcom/clk-smd-rpm.c | 35 ++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
> index 198886c1b6c8..ae6559c7efab 100644
> --- a/drivers/clk/qcom/clk-smd-rpm.c
> +++ b/drivers/clk/qcom/clk-smd-rpm.c
> @@ -573,6 +573,40 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8916 = {
> .num_clks = ARRAY_SIZE(msm8916_clks),
> };
>
> +static struct clk_smd_rpm *msm8917_clks[] = {
> + [RPM_SMD_XO_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo,
> + [RPM_SMD_XO_A_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo_a,
> + [RPM_SMD_PNOC_CLK] = &clk_smd_rpm_bus_0_pcnoc_clk,
> + [RPM_SMD_PNOC_A_CLK] = &clk_smd_rpm_bus_0_pcnoc_a_clk,
> + [RPM_SMD_SNOC_CLK] = &clk_smd_rpm_bus_1_snoc_clk,
> + [RPM_SMD_SNOC_A_CLK] = &clk_smd_rpm_bus_1_snoc_a_clk,
> + [RPM_SMD_BIMC_CLK] = &clk_smd_rpm_bimc_clk,
> + [RPM_SMD_BIMC_A_CLK] = &clk_smd_rpm_bimc_a_clk,
> + [RPM_SMD_BIMC_GPU_CLK] = &clk_smd_rpm_bimc_gpu_clk,
> + [RPM_SMD_BIMC_GPU_A_CLK] = &clk_smd_rpm_bimc_gpu_a_clk,
> + [RPM_SMD_SYSMMNOC_CLK] = &clk_smd_rpm_bus_2_sysmmnoc_clk,
> + [RPM_SMD_SYSMMNOC_A_CLK] = &clk_smd_rpm_bus_2_sysmmnoc_a_clk,
> + [RPM_SMD_QDSS_CLK] = &clk_smd_rpm_qdss_clk,
> + [RPM_SMD_QDSS_A_CLK] = &clk_smd_rpm_qdss_a_clk,
> + [RPM_SMD_BB_CLK1] = &clk_smd_rpm_bb_clk1,
> + [RPM_SMD_BB_CLK1_A] = &clk_smd_rpm_bb_clk1_a,
> + [RPM_SMD_BB_CLK2] = &clk_smd_rpm_bb_clk2,
> + [RPM_SMD_BB_CLK2_A] = &clk_smd_rpm_bb_clk2_a,
> + [RPM_SMD_RF_CLK2] = &clk_smd_rpm_rf_clk2,
> + [RPM_SMD_RF_CLK2_A] = &clk_smd_rpm_rf_clk2_a,
> + [RPM_SMD_DIV_CLK2] = &clk_smd_rpm_div_clk2,
> + [RPM_SMD_DIV_A_CLK2] = &clk_smd_rpm_div_clk2_a,
> + [RPM_SMD_BB_CLK1_PIN] = &clk_smd_rpm_bb_clk1_pin,
> + [RPM_SMD_BB_CLK1_A_PIN] = &clk_smd_rpm_bb_clk1_a_pin,
> + [RPM_SMD_BB_CLK2_PIN] = &clk_smd_rpm_bb_clk2_pin,
> + [RPM_SMD_BB_CLK2_A_PIN] = &clk_smd_rpm_bb_clk2_a_pin,
> +};
> +
> +static const struct rpm_smd_clk_desc rpm_clk_msm8917 = {
> + .clks = msm8917_clks,
> + .num_clks = ARRAY_SIZE(msm8917_clks),
> +};
> +
> static struct clk_smd_rpm *msm8936_clks[] = {
> [RPM_SMD_XO_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo,
> [RPM_SMD_XO_A_CLK_SRC] = &clk_smd_rpm_branch_bi_tcxo_a,
> @@ -1228,6 +1262,7 @@ static const struct of_device_id rpm_smd_clk_match_table[] = {
> { .compatible = "qcom,rpmcc-msm8226", .data = &rpm_clk_msm8974 },
> { .compatible = "qcom,rpmcc-msm8909", .data = &rpm_clk_msm8909 },
> { .compatible = "qcom,rpmcc-msm8916", .data = &rpm_clk_msm8916 },
> + { .compatible = "qcom,rpmcc-msm8917", .data = &rpm_clk_msm8917 },
> { .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 },
> { .compatible = "qcom,rpmcc-msm8953", .data = &rpm_clk_msm8953 },
> { .compatible = "qcom,rpmcc-msm8974", .data = &rpm_clk_msm8974 },
next prev parent reply other threads:[~2023-02-23 22:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-23 18:09 [PATCH v2 0/4] clk: qcom: Add clocks for MSM8917 and QM215 Otto Pflüger
2023-02-23 18:09 ` [PATCH v2 1/4] dt-bindings: clock: Add MSM8917 global clock controller Otto Pflüger
2023-02-23 18:09 ` [PATCH v2 2/4] clk: qcom: Add global clock controller driver for MSM8917 Otto Pflüger
2023-02-23 18:09 ` [PATCH v2 3/4] dt-bindings: clock: qcom,rpmcc: Add MSM8917 Otto Pflüger
2023-02-23 18:09 ` [PATCH v2 4/4] clk: qcom: smd-rpm: Add clocks for MSM8917 Otto Pflüger
2023-02-23 22:08 ` Konrad Dybcio [this message]
2023-03-16 3:20 ` (subset) [PATCH v2 0/4] clk: qcom: Add clocks for MSM8917 and QM215 Bjorn Andersson
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=907731c3-c37e-6ab0-4985-6b43e8d0a120@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.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=otto.pflueger@abscue.de \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=stephan@gerhold.net \
/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).