linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] clk: qcom: clk-alpha-pll: add support for APSS PLL
@ 2022-04-29 11:43 Robert Marko
  2022-04-29 11:43 ` [PATCH 2/6] clk: qcom: Add DT bindings for IPQ8074 APSS clock controller Robert Marko
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Robert Marko @ 2022-04-29 11:43 UTC (permalink / raw)
  To: agross, bjorn.andersson, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, mturquette, sboyd, linux-arm-msm,
	linux-kernel, devicetree, linux-clk
  Cc: Robert Marko

APSS PLL type will be used by the IPQ8074 APSS driver for providing the
CPU core clocks and enabling CPU Frequency scaling.

This is ported from the downstream 5.4 kernel.

Signed-off-by: Robert Marko <robimarko@gmail.com>
---
 drivers/clk/qcom/clk-alpha-pll.c | 12 ++++++++++++
 drivers/clk/qcom/clk-alpha-pll.h |  1 +
 2 files changed, 13 insertions(+)

diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c
index 4406cf609aae..8270363ff98e 100644
--- a/drivers/clk/qcom/clk-alpha-pll.c
+++ b/drivers/clk/qcom/clk-alpha-pll.c
@@ -154,6 +154,18 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MAX_REGS] = {
 		[PLL_OFF_TEST_CTL_U] = 0x30,
 		[PLL_OFF_TEST_CTL_U1] = 0x34,
 	},
+	[CLK_ALPHA_PLL_TYPE_APSS] = {
+		[PLL_OFF_L_VAL] = 0x08,
+		[PLL_OFF_ALPHA_VAL] = 0x10,
+		[PLL_OFF_ALPHA_VAL_U] = 0xff,
+		[PLL_OFF_USER_CTL] = 0x18,
+		[PLL_OFF_USER_CTL_U] = 0xff,
+		[PLL_OFF_CONFIG_CTL] = 0x20,
+		[PLL_OFF_CONFIG_CTL_U] = 0x24,
+		[PLL_OFF_TEST_CTL] = 0x30,
+		[PLL_OFF_TEST_CTL_U] = 0x34,
+		[PLL_OFF_STATUS] = 0x28,
+	},
 };
 EXPORT_SYMBOL_GPL(clk_alpha_pll_regs);
 
diff --git a/drivers/clk/qcom/clk-alpha-pll.h b/drivers/clk/qcom/clk-alpha-pll.h
index 6e9907deaf30..626fdf80336d 100644
--- a/drivers/clk/qcom/clk-alpha-pll.h
+++ b/drivers/clk/qcom/clk-alpha-pll.h
@@ -18,6 +18,7 @@ enum {
 	CLK_ALPHA_PLL_TYPE_AGERA,
 	CLK_ALPHA_PLL_TYPE_ZONDA,
 	CLK_ALPHA_PLL_TYPE_LUCID_EVO,
+	CLK_ALPHA_PLL_TYPE_APSS,
 	CLK_ALPHA_PLL_TYPE_MAX,
 };
 
-- 
2.35.1


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

end of thread, other threads:[~2022-04-30 11:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 11:43 [PATCH 1/6] clk: qcom: clk-alpha-pll: add support for APSS PLL Robert Marko
2022-04-29 11:43 ` [PATCH 2/6] clk: qcom: Add DT bindings for IPQ8074 APSS clock controller Robert Marko
2022-04-29 20:45   ` Krzysztof Kozlowski
2022-04-29 21:56     ` Robert Marko
2022-04-30 11:38       ` Krzysztof Kozlowski
2022-04-29 11:43 ` [PATCH 3/6] clk: qcom: Add " Robert Marko
2022-04-29 11:43 ` [PATCH 4/6] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Robert Marko
2022-04-29 11:43 ` [PATCH 5/6] dt-bindings: mailbox: set correct #clock-cells Robert Marko
2022-04-29 15:39   ` Jassi Brar
2022-04-29 16:02     ` Robert Marko
2022-04-29 20:47   ` Krzysztof Kozlowski
2022-04-29 11:43 ` [PATCH 6/6] arm64: dts: ipq8074: update APCS node due to clock support Robert Marko

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).