mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC
@ 2026-03-27 12:13 Abel Vesa
  2026-03-27 12:13 ` [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property Abel Vesa
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Abel Vesa @ 2026-03-27 12:13 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Dmitry Baryshkov
  Cc: Krzysztof Kozlowski, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio, Abel Vesa

Recently, on Eliza, the CX has been tied up to the GCC.
This leads to dt-bindings check failing.

So the schema needs to be fixed. But the schema is same
for Milos. So instead of adding an if-clause for Eliza only,
tie the CX power domain to the GCC on Milos as well, for the
same exact reasons as on Eliza.

Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
Abel Vesa (2):
      dt-bindings: clock: qcom: Add missing power-domains property
      arm64: dts: qcom: milos: Add missing CX power domain to GCC

 Documentation/devicetree/bindings/clock/qcom,milos-gcc.yaml | 7 +++++++
 arch/arm64/boot/dts/qcom/milos.dtsi                         | 2 ++
 2 files changed, 9 insertions(+)
---
base-commit: e77a5a5cfe43b4c25bd44a3818e487033287517f
change-id: 20260327-dt-fix-milos-eliza-gcc-power-domains-bdc66ad5d982

Best regards,
--  
Abel Vesa <abel.vesa@oss.qualcomm.com>


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

* [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property
  2026-03-27 12:13 [PATCH 0/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
@ 2026-03-27 12:13 ` Abel Vesa
  2026-03-27 13:37   ` Krzysztof Kozlowski
  2026-03-27 12:13 ` [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
  2026-03-30 16:01 ` (subset) [PATCH 0/2] " Bjorn Andersson
  2 siblings, 1 reply; 9+ messages in thread
From: Abel Vesa @ 2026-03-27 12:13 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Dmitry Baryshkov
  Cc: Krzysztof Kozlowski, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio, Abel Vesa

In order for the GCC votes on the GDSCs it provides to be propagated
to CX, CX needs to be declared as power domain of the GCC.

Document the missing power-domains property to that purpose.

Fixes: 95ba6820a665 ("dt-bindings: clock: qcom: document the Milos Global Clock Controller")
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/clock/qcom,milos-gcc.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/clock/qcom,milos-gcc.yaml b/Documentation/devicetree/bindings/clock/qcom,milos-gcc.yaml
index 60f1c8ca2c13..c65a6ad893d2 100644
--- a/Documentation/devicetree/bindings/clock/qcom,milos-gcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,milos-gcc.yaml
@@ -35,9 +35,14 @@ properties:
       - description: UFS Phy Tx symbol 0 clock source
       - description: USB3 Phy wrapper pipe clock source
 
+  power-domains:
+    items:
+      - description: CX domain
+
 required:
   - compatible
   - clocks
+  - power-domains
   - '#power-domain-cells'
 
 allOf:
@@ -48,6 +53,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/clock/qcom,rpmh.h>
+    #include <dt-bindings/power/qcom,rpmhpd.h>
     clock-controller@100000 {
         compatible = "qcom,milos-gcc";
         reg = <0x00100000 0x1f4200>;
@@ -59,6 +65,7 @@ examples:
                  <&ufs_mem_phy 1>,
                  <&ufs_mem_phy 2>,
                  <&usb_1_qmpphy>;
+        power-domains = <&rpmhpd RPMHPD_CX>;
         #clock-cells = <1>;
         #reset-cells = <1>;
         #power-domain-cells = <1>;

-- 
2.48.1


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

* [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC
  2026-03-27 12:13 [PATCH 0/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
  2026-03-27 12:13 ` [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property Abel Vesa
@ 2026-03-27 12:13 ` Abel Vesa
  2026-03-27 12:25   ` Konrad Dybcio
  2026-03-27 23:14   ` Dmitry Baryshkov
  2026-03-30 16:01 ` (subset) [PATCH 0/2] " Bjorn Andersson
  2 siblings, 2 replies; 9+ messages in thread
From: Abel Vesa @ 2026-03-27 12:13 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Dmitry Baryshkov
  Cc: Krzysztof Kozlowski, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio, Abel Vesa

Unless CX is declared as the power-domain of GCC, votes (power and
performance) on the GDSCs it provides will not propagate to the CX,
which might result in under-voltage conditions.

Add the missing power-domains property to associate GCC with RPMHPD_CX.

Fixes: d9d59d105f98 ("arm64: dts: qcom: Add initial Milos dtsi")
Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/milos.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/milos.dtsi b/arch/arm64/boot/dts/qcom/milos.dtsi
index 67f8ef4d524a..eec82a69ddc2 100644
--- a/arch/arm64/boot/dts/qcom/milos.dtsi
+++ b/arch/arm64/boot/dts/qcom/milos.dtsi
@@ -804,6 +804,8 @@ gcc: clock-controller@100000 {
 				 <&ufs_mem_phy 2>,
 				 <0>; /* usb3_phy_wrapper_gcc_usb30_pipe_clk */
 
+			power-domains = <&rpmhpd RPMHPD_CX>;
+
 			#clock-cells = <1>;
 			#reset-cells = <1>;
 			#power-domain-cells = <1>;

-- 
2.48.1


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

* Re: [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC
  2026-03-27 12:13 ` [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
@ 2026-03-27 12:25   ` Konrad Dybcio
  2026-03-27 23:14   ` Dmitry Baryshkov
  1 sibling, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2026-03-27 12:25 UTC (permalink / raw)
  To: Abel Vesa, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Taniya Das, Konrad Dybcio, Dmitry Baryshkov
  Cc: Krzysztof Kozlowski, linux-arm-msm, linux-clk, devicetree, linux-kernel

On 3/27/26 1:13 PM, Abel Vesa wrote:
> Unless CX is declared as the power-domain of GCC, votes (power and
> performance) on the GDSCs it provides will not propagate to the CX,
> which might result in under-voltage conditions.
> 
> Add the missing power-domains property to associate GCC with RPMHPD_CX.
> 
> Fixes: d9d59d105f98 ("arm64: dts: qcom: Add initial Milos dtsi")
> Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property
  2026-03-27 12:13 ` [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property Abel Vesa
@ 2026-03-27 13:37   ` Krzysztof Kozlowski
  2026-03-27 13:45     ` Abel Vesa
  0 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-27 13:37 UTC (permalink / raw)
  To: Abel Vesa, Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Luca Weiss,
	Taniya Das, Konrad Dybcio, Dmitry Baryshkov
  Cc: linux-arm-msm, linux-clk, devicetree, linux-kernel, Konrad Dybcio

On 27/03/2026 13:13, Abel Vesa wrote:
> In order for the GCC votes on the GDSCs it provides to be propagated
> to CX, CX needs to be declared as power domain of the GCC.

I assume this is true for Milos, not only Eliza.

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


Best regards,
Krzysztof

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

* Re: [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property
  2026-03-27 13:37   ` Krzysztof Kozlowski
@ 2026-03-27 13:45     ` Abel Vesa
  2026-03-30  8:47       ` Konrad Dybcio
  0 siblings, 1 reply; 9+ messages in thread
From: Abel Vesa @ 2026-03-27 13:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Dmitry Baryshkov, linux-arm-msm, linux-clk,
	devicetree, linux-kernel, Konrad Dybcio

On 26-03-27 14:37:17, Krzysztof Kozlowski wrote:
> On 27/03/2026 13:13, Abel Vesa wrote:
> > In order for the GCC votes on the GDSCs it provides to be propagated
> > to CX, CX needs to be declared as power domain of the GCC.
> 
> I assume this is true for Milos, not only Eliza.

My understanding of it is that this is true for all platforms.

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

Thanks for reviewing!

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

* Re: [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC
  2026-03-27 12:13 ` [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
  2026-03-27 12:25   ` Konrad Dybcio
@ 2026-03-27 23:14   ` Dmitry Baryshkov
  1 sibling, 0 replies; 9+ messages in thread
From: Dmitry Baryshkov @ 2026-03-27 23:14 UTC (permalink / raw)
  To: Abel Vesa
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Krzysztof Kozlowski, linux-arm-msm, linux-clk,
	devicetree, linux-kernel, Konrad Dybcio

On Fri, Mar 27, 2026 at 02:13:41PM +0200, Abel Vesa wrote:
> Unless CX is declared as the power-domain of GCC, votes (power and
> performance) on the GDSCs it provides will not propagate to the CX,
> which might result in under-voltage conditions.
> 
> Add the missing power-domains property to associate GCC with RPMHPD_CX.
> 
> Fixes: d9d59d105f98 ("arm64: dts: qcom: Add initial Milos dtsi")
> Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
> ---
>  arch/arm64/boot/dts/qcom/milos.dtsi | 2 ++
>  1 file changed, 2 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry

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

* Re: [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property
  2026-03-27 13:45     ` Abel Vesa
@ 2026-03-30  8:47       ` Konrad Dybcio
  0 siblings, 0 replies; 9+ messages in thread
From: Konrad Dybcio @ 2026-03-30  8:47 UTC (permalink / raw)
  To: Abel Vesa, Krzysztof Kozlowski
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Dmitry Baryshkov, linux-arm-msm, linux-clk,
	devicetree, linux-kernel

On 3/27/26 2:45 PM, Abel Vesa wrote:
> On 26-03-27 14:37:17, Krzysztof Kozlowski wrote:
>> On 27/03/2026 13:13, Abel Vesa wrote:
>>> In order for the GCC votes on the GDSCs it provides to be propagated
>>> to CX, CX needs to be declared as power domain of the GCC.
>>
>> I assume this is true for Milos, not only Eliza.
> 
> My understanding of it is that this is true for all platforms.

I think we once had

required:
  - power-domains

in some common include, but that expectation fell apart as IPQ/router
platforms without RPM/RPMH started coming up. Maybe splitting gcc.yaml
into gcc.yaml and gcc-no-rpm.yaml or something could be useful to ensure
this common constraint

Konrad

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

* Re: (subset) [PATCH 0/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC
  2026-03-27 12:13 [PATCH 0/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
  2026-03-27 12:13 ` [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property Abel Vesa
  2026-03-27 12:13 ` [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
@ 2026-03-30 16:01 ` Bjorn Andersson
  2 siblings, 0 replies; 9+ messages in thread
From: Bjorn Andersson @ 2026-03-30 16:01 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Luca Weiss, Taniya Das,
	Konrad Dybcio, Dmitry Baryshkov, Abel Vesa
  Cc: Krzysztof Kozlowski, linux-arm-msm, linux-clk, devicetree,
	linux-kernel, Konrad Dybcio


On Fri, 27 Mar 2026 14:13:39 +0200, Abel Vesa wrote:
> Recently, on Eliza, the CX has been tied up to the GCC.
> This leads to dt-bindings check failing.
> 
> So the schema needs to be fixed. But the schema is same
> for Milos. So instead of adding an if-clause for Eliza only,
> tie the CX power domain to the GCC on Milos as well, for the
> same exact reasons as on Eliza.
> 
> [...]

Applied, thanks!

[2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC
      commit: e46b48b853122626806d989d5db4ce97eaaac2ca

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

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

end of thread, other threads:[~2026-03-30 16:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-27 12:13 [PATCH 0/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
2026-03-27 12:13 ` [PATCH 1/2] dt-bindings: clock: qcom: Add missing power-domains property Abel Vesa
2026-03-27 13:37   ` Krzysztof Kozlowski
2026-03-27 13:45     ` Abel Vesa
2026-03-30  8:47       ` Konrad Dybcio
2026-03-27 12:13 ` [PATCH 2/2] arm64: dts: qcom: milos: Add missing CX power domain to GCC Abel Vesa
2026-03-27 12:25   ` Konrad Dybcio
2026-03-27 23:14   ` Dmitry Baryshkov
2026-03-30 16:01 ` (subset) [PATCH 0/2] " Bjorn Andersson

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