mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add APSS clock driver support for IPQ5210
@ 2026-07-03  5:03 Varadarajan Narayanan
  2026-07-03  5:03 ` [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible Varadarajan Narayanan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Varadarajan Narayanan @ 2026-07-03  5:03 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Varadarajan Narayanan, Konrad Dybcio, Dmitry Baryshkov

IPQ5210 uses the HUAYRA pll for the APSS clock. This series adds support
for the APSS clock to change the CPU frequency to one of the supported
frequencies.

Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
---
Changes in v3:
- Marked ipq5210_pll_data as const per sashiko review and to match with
  other SoC apss_pll_data structs
- Link to v2: https://lore.kernel.org/r/20260701-apss-clk-v2-0-776d054ab8c3@oss.qualcomm.com

Changes in v2:
- Remove incorrect tsens dependency
- Pick R-b tag for driver change
- Link to v1: https://lore.kernel.org/r/20260629-apss-clk-v1-0-8c92fe118ce4@oss.qualcomm.com

---
Varadarajan Narayanan (2):
      dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible
      clk: qcom: apss-ipq-pll: Add IPQ5210 support

 .../devicetree/bindings/clock/qcom,a53pll.yaml        |  1 +
 drivers/clk/qcom/apss-ipq-pll.c                       | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
---
base-commit: 533704f3c28c3f5f9e2542aa3a6a326c32e6f5c0
change-id: 20260625-apss-clk-ed39c40ed468

Best regards,
-- 
Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>


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

* [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible
  2026-07-03  5:03 [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Varadarajan Narayanan
@ 2026-07-03  5:03 ` Varadarajan Narayanan
  2026-07-03  9:23   ` Krzysztof Kozlowski
  2026-07-03  5:03 ` [PATCH v3 2/2] clk: qcom: apss-ipq-pll: Add IPQ5210 support Varadarajan Narayanan
  2026-08-03  3:24 ` [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Bjorn Andersson
  2 siblings, 1 reply; 5+ messages in thread
From: Varadarajan Narayanan @ 2026-07-03  5:03 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Varadarajan Narayanan

Add the qcom,ipq5210-a53pll compatible for the A53 PLL found on IPQ5210
SoCs.

Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/clock/qcom,a53pll.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml
index 47ceab641a4c..1eec77e75a0a 100644
--- a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml
@@ -17,6 +17,7 @@ properties:
   compatible:
     enum:
       - qcom,ipq5018-a53pll
+      - qcom,ipq5210-a53pll
       - qcom,ipq5332-a53pll
       - qcom,ipq6018-a53pll
       - qcom,ipq8074-a53pll

-- 
2.34.1


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

* [PATCH v3 2/2] clk: qcom: apss-ipq-pll: Add IPQ5210 support
  2026-07-03  5:03 [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Varadarajan Narayanan
  2026-07-03  5:03 ` [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible Varadarajan Narayanan
@ 2026-07-03  5:03 ` Varadarajan Narayanan
  2026-08-03  3:24 ` [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Bjorn Andersson
  2 siblings, 0 replies; 5+ messages in thread
From: Varadarajan Narayanan @ 2026-07-03  5:03 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Varadarajan Narayanan, Konrad Dybcio, Dmitry Baryshkov

The Application Processor Subsystem on the IPQ5210 platform sources
its clock from the Huayra PLL. Add the configuration data necessary
to set it up.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
---
 drivers/clk/qcom/apss-ipq-pll.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/drivers/clk/qcom/apss-ipq-pll.c b/drivers/clk/qcom/apss-ipq-pll.c
index 3a8987fe7008..5653bb5e93f7 100644
--- a/drivers/clk/qcom/apss-ipq-pll.c
+++ b/drivers/clk/qcom/apss-ipq-pll.c
@@ -79,6 +79,18 @@ static const struct alpha_pll_config ipq5018_pll_config = {
 	.test_ctl_hi_val = 0x00400003,
 };
 
+static const struct alpha_pll_config ipq5210_pll_config = {
+	.l = 0x22,
+	.config_ctl_val = 0x4001075b,
+	.config_ctl_hi_val = 0x6,
+	.early_output_mask = BIT(3),
+	.aux2_output_mask = BIT(2),
+	.aux_output_mask = BIT(1),
+	.main_output_mask = BIT(0),
+	.test_ctl_val = 0x0,
+	.test_ctl_hi_val = 0x400003,
+};
+
 /* 1.080 GHz configuration */
 static const struct alpha_pll_config ipq5332_pll_config = {
 	.l = 0x2d,
@@ -140,6 +152,12 @@ static const struct apss_pll_data ipq5018_pll_data = {
 	.pll_config = &ipq5018_pll_config,
 };
 
+static const struct apss_pll_data ipq5210_pll_data = {
+	.pll_type = CLK_ALPHA_PLL_TYPE_HUAYRA,
+	.pll = &ipq_pll_huayra,
+	.pll_config = &ipq5210_pll_config,
+};
+
 static const struct apss_pll_data ipq5332_pll_data = {
 	.pll_type = CLK_ALPHA_PLL_TYPE_STROMER_PLUS,
 	.pll = &ipq_pll_stromer_plus,
@@ -207,6 +225,7 @@ static int apss_ipq_pll_probe(struct platform_device *pdev)
 
 static const struct of_device_id apss_ipq_pll_match_table[] = {
 	{ .compatible = "qcom,ipq5018-a53pll", .data = &ipq5018_pll_data },
+	{ .compatible = "qcom,ipq5210-a53pll", .data = &ipq5210_pll_data },
 	{ .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data },
 	{ .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data },
 	{ .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data },

-- 
2.34.1


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

* Re: [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible
  2026-07-03  5:03 ` [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible Varadarajan Narayanan
@ 2026-07-03  9:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-07-03  9:23 UTC (permalink / raw)
  To: Varadarajan Narayanan
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
	linux-clk, devicetree, linux-kernel

On Fri, Jul 03, 2026 at 10:33:47AM +0530, Varadarajan Narayanan wrote:
> Add the qcom,ipq5210-a53pll compatible for the A53 PLL found on IPQ5210
> SoCs.
> 
> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/clock/qcom,a53pll.yaml | 1 +
>  1 file changed, 1 insertion(+)

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

Best regards,
Krzysztof


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

* Re: [PATCH v3 0/2] Add APSS clock driver support for IPQ5210
  2026-07-03  5:03 [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Varadarajan Narayanan
  2026-07-03  5:03 ` [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible Varadarajan Narayanan
  2026-07-03  5:03 ` [PATCH v3 2/2] clk: qcom: apss-ipq-pll: Add IPQ5210 support Varadarajan Narayanan
@ 2026-08-03  3:24 ` Bjorn Andersson
  2 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2026-08-03  3:24 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Brian Masney, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Varadarajan Narayanan
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Konrad Dybcio, Dmitry Baryshkov


On Fri, 03 Jul 2026 10:33:46 +0530, Varadarajan Narayanan wrote:
> IPQ5210 uses the HUAYRA pll for the APSS clock. This series adds support
> for the APSS clock to change the CPU frequency to one of the supported
> frequencies.
> 
> 

Applied, thanks!

[1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible
      commit: 4af10c020e29607dacf1e06e98aa4286cf71d4c0
[2/2] clk: qcom: apss-ipq-pll: Add IPQ5210 support
      commit: 546e0bc2aa207f7e9c78c88b0190b0045f796169

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2026-08-03  3:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-03  5:03 [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Varadarajan Narayanan
2026-07-03  5:03 ` [PATCH v3 1/2] dt-bindings: clock: qcom,a53pll: Add IPQ5210 compatible Varadarajan Narayanan
2026-07-03  9:23   ` Krzysztof Kozlowski
2026-07-03  5:03 ` [PATCH v3 2/2] clk: qcom: apss-ipq-pll: Add IPQ5210 support Varadarajan Narayanan
2026-08-03  3:24 ` [PATCH v3 0/2] Add APSS clock driver support for IPQ5210 Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®