Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: qcom: Add Graphics clock controllers support for Qualcomm Maili SoC
@ 2026-07-31 19:12 Jagadeesh Kona
  2026-07-31 19:12 ` [PATCH 1/2] dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers Jagadeesh Kona
  2026-07-31 19:12 ` [PATCH 2/2] clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC Jagadeesh Kona
  0 siblings, 2 replies; 5+ messages in thread
From: Jagadeesh Kona @ 2026-07-31 19:12 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dongfang Zhao,
	Taniya Das
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Jagadeesh Kona

This series adds support for the Graphics clock controllers on the
upcoming Qualcomm Maili SoC.

This series is dependent on Hawi GPUCC series:
https://lore.kernel.org/all/20260730-gpucc-hawi-v2-0-7bf618ab8a34@oss.qualcomm.com/

Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
Jagadeesh Kona (2):
      dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers
      clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC

 .../devicetree/bindings/clock/qcom,hawi-gpucc.yaml       |  4 +++-
 .../bindings/clock/qcom,kaanapali-gxclkctl.yaml          |  1 +
 drivers/clk/qcom/gpucc-hawi.c                            | 16 ++++++++++++++++
 3 files changed, 20 insertions(+), 1 deletion(-)
---
base-commit: 415606a7be939835db9b0d6b711887586646346d
change-id: 20260731-maili_gpucc-b345b0009da6
prerequisite-change-id: 20260705-gpucc-hawi-8c35e13866fc:v2
prerequisite-patch-id: c4ba97aad79f4fa03b5293eaba330faa54d29a6d
prerequisite-patch-id: 1a86f63e48eadde749f0a32fd284c8a307eac4a5

Best regards,
-- 
Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>


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

* [PATCH 1/2] dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers
  2026-07-31 19:12 [PATCH 0/2] clk: qcom: Add Graphics clock controllers support for Qualcomm Maili SoC Jagadeesh Kona
@ 2026-07-31 19:12 ` Jagadeesh Kona
  2026-08-04  8:27   ` Krzysztof Kozlowski
  2026-07-31 19:12 ` [PATCH 2/2] clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC Jagadeesh Kona
  1 sibling, 1 reply; 5+ messages in thread
From: Jagadeesh Kona @ 2026-07-31 19:12 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dongfang Zhao,
	Taniya Das
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Jagadeesh Kona

Maili gpucc is a derivative of Hawi gpucc with pll0 configuration
change, and hence reuses the Hawi gpucc driver with Maili fixup.
Maili gxclkctl is the same as Kaanapali gxclkctl and falls back to
it. Add the compatibles for the graphics clock controllers on the
Qualcomm Maili SoC.

Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml         | 4 +++-
 Documentation/devicetree/bindings/clock/qcom,kaanapali-gxclkctl.yaml | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml b/Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml
index 3e40bc3c061d111620a988ac148861ffe9b18b05..b7179d53166f8c72bfe59a290d0e5a406d3f08ea 100644
--- a/Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml
@@ -17,7 +17,9 @@ description: |
 
 properties:
   compatible:
-    const: qcom,hawi-gpucc
+    enum:
+      - qcom,hawi-gpucc
+      - qcom,maili-gpucc
 
   clocks:
     items:
diff --git a/Documentation/devicetree/bindings/clock/qcom,kaanapali-gxclkctl.yaml b/Documentation/devicetree/bindings/clock/qcom,kaanapali-gxclkctl.yaml
index 28b653f6b64d5ca748f8d77f01a250dc0a3101de..94f84d5294c6df8d8c7ac28c26a89a27ad1b8ebb 100644
--- a/Documentation/devicetree/bindings/clock/qcom,kaanapali-gxclkctl.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,kaanapali-gxclkctl.yaml
@@ -28,6 +28,7 @@ properties:
       - items:
           - enum:
               - qcom,hawi-gxclkctl
+              - qcom,maili-gxclkctl
           - const: qcom,kaanapali-gxclkctl
 
   power-domains:

-- 
2.34.1


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

* [PATCH 2/2] clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC
  2026-07-31 19:12 [PATCH 0/2] clk: qcom: Add Graphics clock controllers support for Qualcomm Maili SoC Jagadeesh Kona
  2026-07-31 19:12 ` [PATCH 1/2] dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers Jagadeesh Kona
@ 2026-07-31 19:12 ` Jagadeesh Kona
  2026-08-04 17:56   ` Taniya Das
  1 sibling, 1 reply; 5+ messages in thread
From: Jagadeesh Kona @ 2026-07-31 19:12 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dongfang Zhao,
	Taniya Das
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel,
	Jagadeesh Kona

Maili gpucc is a derivative of Hawi gpucc with pll0 configuration change.
Hence, reuse the Hawi graphics clock controller and extend it for Qualcomm
Maili SoC.

Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
 drivers/clk/qcom/gpucc-hawi.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/clk/qcom/gpucc-hawi.c b/drivers/clk/qcom/gpucc-hawi.c
index 30b3ffb0638fb79e68dbcec66f60ad750768d042..3deb7edf7810ded20ffaa7f56cd8c2dbb516f3db 100644
--- a/drivers/clk/qcom/gpucc-hawi.c
+++ b/drivers/clk/qcom/gpucc-hawi.c
@@ -49,6 +49,18 @@ static const struct alpha_pll_config gpu_cc_pll0_config = {
 	.user_ctl_hi_val = 0x00000002,
 };
 
+/* 788.0 MHz Configuration */
+static const struct alpha_pll_config gpu_cc_pll0_config_maili = {
+	.l = 0x29,
+	.cal_l = 0x42,
+	.alpha = 0xaaa,
+	.config_ctl_val = 0xa5c400e7,
+	.config_ctl_hi_val = 0x0a806160,
+	.config_ctl_hi1_val = 0xf51dea20,
+	.user_ctl_val = 0x00000000,
+	.user_ctl_hi_val = 0x00000002,
+};
+
 static struct clk_alpha_pll gpu_cc_pll0 = {
 	.offset = 0x0,
 	.config = &gpu_cc_pll0_config,
@@ -438,12 +450,16 @@ static const struct qcom_cc_desc gpu_cc_hawi_desc = {
 
 static const struct of_device_id gpu_cc_hawi_match_table[] = {
 	{ .compatible = "qcom,hawi-gpucc" },
+	{ .compatible = "qcom,maili-gpucc" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, gpu_cc_hawi_match_table);
 
 static int gpu_cc_hawi_probe(struct platform_device *pdev)
 {
+	if (device_is_compatible(&pdev->dev, "qcom,maili-gpucc"))
+		gpu_cc_pll0.config = &gpu_cc_pll0_config_maili;
+
 	return qcom_cc_probe(pdev, &gpu_cc_hawi_desc);
 }
 

-- 
2.34.1


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

* Re: [PATCH 1/2] dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers
  2026-07-31 19:12 ` [PATCH 1/2] dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers Jagadeesh Kona
@ 2026-08-04  8:27   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-08-04  8:27 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dongfang Zhao,
	Taniya Das, linux-arm-msm, linux-clk, devicetree, linux-kernel

On Sat, Aug 01, 2026 at 12:42:45AM +0530, Jagadeesh Kona wrote:
> Maili gpucc is a derivative of Hawi gpucc with pll0 configuration
> change, and hence reuses the Hawi gpucc driver with Maili fixup.
> Maili gxclkctl is the same as Kaanapali gxclkctl and falls back to
> it. Add the compatibles for the graphics clock controllers on the
> Qualcomm Maili SoC.
> 
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/clock/qcom,hawi-gpucc.yaml         | 4 +++-
>  Documentation/devicetree/bindings/clock/qcom,kaanapali-gxclkctl.yaml | 1 +
>  2 files changed, 4 insertions(+), 1 deletion(-)

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

Best regards,
Krzysztof


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

* Re: [PATCH 2/2] clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC
  2026-07-31 19:12 ` [PATCH 2/2] clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC Jagadeesh Kona
@ 2026-08-04 17:56   ` Taniya Das
  0 siblings, 0 replies; 5+ messages in thread
From: Taniya Das @ 2026-08-04 17:56 UTC (permalink / raw)
  To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Brian Masney, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Dongfang Zhao
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel



On 8/1/2026 12:42 AM, Jagadeesh Kona wrote:
> Maili gpucc is a derivative of Hawi gpucc with pll0 configuration change.
> Hence, reuse the Hawi graphics clock controller and extend it for Qualcomm
> Maili SoC.
> 
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
>  drivers/clk/qcom/gpucc-hawi.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)

Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>

-- 
Thanks,
Taniya Das


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

end of thread, other threads:[~2026-08-04 17:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 19:12 [PATCH 0/2] clk: qcom: Add Graphics clock controllers support for Qualcomm Maili SoC Jagadeesh Kona
2026-07-31 19:12 ` [PATCH 1/2] dt-bindings: clock: qcom: Add Maili Graphics Clock Controllers Jagadeesh Kona
2026-08-04  8:27   ` Krzysztof Kozlowski
2026-07-31 19:12 ` [PATCH 2/2] clk: qcom: Add Graphics clock controller support on Qualcomm Maili SoC Jagadeesh Kona
2026-08-04 17:56   ` Taniya Das

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