Skip to contentSkip to conversation

dt-bindings: clock: qcom: Fix the xo parent in gpucc example

PATCH Applied Douglas Anderson 2 participants 3 messages Nov 28, 2018

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: clock: qcom: Fix the xo parent in gpucc example

In the bindings that landed for the gpucc we require that the XO clock (one possible parent of the gpucc) be listed. The code doesn't use this yet--this is just to allow us to move toward the day when it does use it. What the code does do today is to hardcode the parent name to "bi_tcxo". That's all well and good.

...but the example in the bindings shows this clock mapping to the clock "xo_board". On the current sdm845.dtsi file the "xo_board" clock is a fixed clock with an output name of "xo_board". The clock with the name "bi_tcxo" is actually provided by the RPMh Clock Controller. Presumably that's the one that was wanted.

Let's update the example to make this clearer.

Fixes e431c92188a9 ("dt-bindings: clock: Introduce QCOM Graphics clock bindings")

---

 Documentation/devicetree/bindings/clock/qcom,gpucc.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/clock/qcom,gpucc.txt +1 -1
index 9d0358cc08b4..4e5215ef1acd 100644
@@ -17,6 +17,6 @@ Example:
 		#clock-cells = <1>;
 		#reset-cells = <1>;
 		#power-domain-cells = <1>;
-		clocks = <&xo_board>;
+		clocks = <&rpmhcc RPMH_CXO_CLK>;
 		clock-names = "xo";
 	};
Signature · 1 line
2.20.0.rc0.387.gc7a69e6b6c-goog
#1 lore raw

PATCH 2/2 arm64: dts: sdm845: Add gpu clock controller node

Add the GPU clock controller nodes as per the example.

---

 arch/arm64/boot/dts/qcom/sdm845.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/qcom/sdm845.dtsi +11 -0
index 1419b0098cb3..300688e92439 100644
@@ -7,6 +7,7 @@
 
 #include <dt-bindings/clock/qcom,dispcc-sdm845.h>
 #include <dt-bindings/clock/qcom,gcc-sdm845.h>
+#include <dt-bindings/clock/qcom,gpucc-sdm845.h>
 #include <dt-bindings/clock/qcom,rpmh.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/phy/phy-qcom-qusb2.h>
@@ -1078,6 +1079,16 @@
 			};
 		};
 
+		gpucc: clock-controller@5090000 {
+			compatible = "qcom,sdm845-gpucc";
+			reg = <0x5090000 0x9000>;
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+			#power-domain-cells = <1>;
+			clocks = <&rpmhcc RPMH_CXO_CLK>;
+			clock-names = "xo";
+		};
+
 		usb_1_hsphy: phy@88e2000 {
 			compatible = "qcom,sdm845-qusb2-phy";
 			reg = <0x88e2000 0x400>;
Signature · 1 line
2.20.0.rc0.387.gc7a69e6b6c-goog
maintainer Applied
#2 lore raw
In reply to Douglas Anderson

Quoting Douglas Anderson (2018-11-28 10:57:42)

Documentation/devicetree/bindings/clock/qcom,gpucc.txt Example: · line 20

Quoted 10 lines
Documentation/devicetree/bindings/clock/qcom,gpucc.txt +1 -1
index 9d0358cc08b4..4e5215ef1acd 100644
@@ -17,6 +17,6 @@ Example:
                #clock-cells = <1>;
                #reset-cells = <1>;
                #power-domain-cells = <1>;
-               clocks = <&xo_board>;
+               clocks = <&rpmhcc RPMH_CXO_CLK>;

I don't think it really matters, but ok whatever. Don't mind me shuffling patches over here.

Applied to clk-next.