All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding
@ 2022-02-23  4:45 Bjorn Andersson
  2022-02-23  4:45 ` [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller Bjorn Andersson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Bjorn Andersson @ 2022-02-23  4:45 UTC (permalink / raw)
  To: Bjorn Andersson, Rob Herring, Krzysztof Kozlowski
  Cc: Michael Turquette, Stephen Boyd, Taniya Das, linux-arm-msm,
	linux-clk, devicetree, linux-kernel

The Qualcomm SC8280XP has a RPMh clock controller, so add a compatible
for this to the binding.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml b/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
index 8406dde17937..8fcaf418f84a 100644
--- a/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
@@ -20,6 +20,7 @@ properties:
       - qcom,sc7180-rpmh-clk
       - qcom,sc7280-rpmh-clk
       - qcom,sc8180x-rpmh-clk
+      - qcom,sc8280xp-rpmh-clk
       - qcom,sdm845-rpmh-clk
       - qcom,sdx55-rpmh-clk
       - qcom,sdx65-rpmh-clk
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller
  2022-02-23  4:45 [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Bjorn Andersson
@ 2022-02-23  4:45 ` Bjorn Andersson
  2022-02-24 22:00   ` Stephen Boyd
  2022-02-23  7:59 ` [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Bjorn Andersson @ 2022-02-23  4:45 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Taniya Das, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

The Qualcomm SC8280XP platform exposes 5 clocks through the RPMh clock
controller. Add these, and the relates active-only variants, to the RPMh
clock controller driver.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 drivers/clk/qcom/clk-rpmh.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
index 74e57c84f60a..aed907982344 100644
--- a/drivers/clk/qcom/clk-rpmh.c
+++ b/drivers/clk/qcom/clk-rpmh.c
@@ -512,6 +512,23 @@ static const struct clk_rpmh_desc clk_rpmh_sm8350 = {
 	.num_clks = ARRAY_SIZE(sm8350_rpmh_clocks),
 };
 
+DEFINE_CLK_RPMH_VRM(sc8280xp, ln_bb_clk3, ln_bb_clk3_ao, "lnbclka3", 2);
+
+static struct clk_hw *sc8280xp_rpmh_clocks[] = {
+	[RPMH_CXO_CLK]		= &sdm845_bi_tcxo.hw,
+	[RPMH_CXO_CLK_A]	= &sdm845_bi_tcxo_ao.hw,
+	[RPMH_LN_BB_CLK3]       = &sc8280xp_ln_bb_clk3.hw,
+	[RPMH_LN_BB_CLK3_A]     = &sc8280xp_ln_bb_clk3_ao.hw,
+	[RPMH_IPA_CLK]          = &sdm845_ipa.hw,
+	[RPMH_PKA_CLK]          = &sm8350_pka.hw,
+	[RPMH_HWKM_CLK]         = &sm8350_hwkm.hw,
+};
+
+static const struct clk_rpmh_desc clk_rpmh_sc8280xp = {
+	.clks = sc8280xp_rpmh_clocks,
+	.num_clks = ARRAY_SIZE(sc8280xp_rpmh_clocks),
+};
+
 /* Resource name must match resource id present in cmd-db */
 DEFINE_CLK_RPMH_ARC(sc7280, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 4);
 
@@ -691,6 +708,7 @@ static int clk_rpmh_probe(struct platform_device *pdev)
 static const struct of_device_id clk_rpmh_match_table[] = {
 	{ .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},
 	{ .compatible = "qcom,sc8180x-rpmh-clk", .data = &clk_rpmh_sc8180x},
+	{ .compatible = "qcom,sc8280xp-rpmh-clk", .data = &clk_rpmh_sc8280xp},
 	{ .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845},
 	{ .compatible = "qcom,sdx55-rpmh-clk",  .data = &clk_rpmh_sdx55},
 	{ .compatible = "qcom,sdx65-rpmh-clk",  .data = &clk_rpmh_sdx65},
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding
  2022-02-23  4:45 [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Bjorn Andersson
  2022-02-23  4:45 ` [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller Bjorn Andersson
@ 2022-02-23  7:59 ` Krzysztof Kozlowski
  2022-02-24 21:59 ` Stephen Boyd
  2022-03-09  6:10 ` patchwork-bot+linux-arm-msm
  3 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-02-23  7:59 UTC (permalink / raw)
  To: Bjorn Andersson, Rob Herring
  Cc: Michael Turquette, Stephen Boyd, Taniya Das, linux-arm-msm,
	linux-clk, devicetree, linux-kernel

On 23/02/2022 05:45, Bjorn Andersson wrote:
> The Qualcomm SC8280XP has a RPMh clock controller, so add a compatible
> for this to the binding.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
>  Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding
  2022-02-23  4:45 [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Bjorn Andersson
  2022-02-23  4:45 ` [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller Bjorn Andersson
  2022-02-23  7:59 ` [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Krzysztof Kozlowski
@ 2022-02-24 21:59 ` Stephen Boyd
  2022-03-09  6:10 ` patchwork-bot+linux-arm-msm
  3 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2022-02-24 21:59 UTC (permalink / raw)
  To: Bjorn Andersson, Krzysztof Kozlowski, Rob Herring
  Cc: Michael Turquette, Taniya Das, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

Quoting Bjorn Andersson (2022-02-22 20:45:15)
> The Qualcomm SC8280XP has a RPMh clock controller, so add a compatible
> for this to the binding.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---

Reviewed-by: Stephen Boyd <sboyd@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller
  2022-02-23  4:45 ` [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller Bjorn Andersson
@ 2022-02-24 22:00   ` Stephen Boyd
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2022-02-24 22:00 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Michael Turquette, Rob Herring, Krzysztof Kozlowski, Taniya Das,
	linux-arm-msm, linux-clk, devicetree, linux-kernel

Quoting Bjorn Andersson (2022-02-22 20:45:16)
> The Qualcomm SC8280XP platform exposes 5 clocks through the RPMh clock
> controller. Add these, and the relates active-only variants, to the RPMh
> clock controller driver.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---

Reviewed-by: Stephen Boyd <sboyd@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding
  2022-02-23  4:45 [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Bjorn Andersson
                   ` (2 preceding siblings ...)
  2022-02-24 21:59 ` Stephen Boyd
@ 2022-03-09  6:10 ` patchwork-bot+linux-arm-msm
  3 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2022-03-09  6:10 UTC (permalink / raw)
  To: Bjorn Andersson; +Cc: linux-arm-msm

Hello:

This series was applied to qcom/linux.git (for-next)
by Bjorn Andersson <bjorn.andersson@linaro.org>:

On Tue, 22 Feb 2022 20:45:15 -0800 you wrote:
> The Qualcomm SC8280XP has a RPMh clock controller, so add a compatible
> for this to the binding.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
>  Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 +
>  1 file changed, 1 insertion(+)

Here is the summary with links:
  - [1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding
    https://git.kernel.org/qcom/c/8b6167a90135
  - [2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller
    https://git.kernel.org/qcom/c/809b48289674

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-09  6:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23  4:45 [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Bjorn Andersson
2022-02-23  4:45 ` [PATCH 2/2] clk: qcom: rpmhcc: add sc8280xp support to the RPMh clock controller Bjorn Andersson
2022-02-24 22:00   ` Stephen Boyd
2022-02-23  7:59 ` [PATCH 1/2] dt-bindings: clock: Add sc8280xp to the RPMh clock controller binding Krzysztof Kozlowski
2022-02-24 21:59 ` Stephen Boyd
2022-03-09  6:10 ` patchwork-bot+linux-arm-msm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.