]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: Update IPQ5424 xo_board to use fixed factor clock
authorLuo Jie <quic_luoj@quicinc.com>
Tue, 10 Jun 2025 10:35:21 +0000 (18:35 +0800)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Aug 2025 18:22:43 +0000 (13:22 -0500)
xo_board is fixed to 24 MHZ, which is routed from WiFi output clock
48 MHZ (also being the reference clock of CMN PLL) divided 2 by
analog block routing channel.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Link: https://lore.kernel.org/r/20250610-qcom_ipq5424_cmnpll-v3-4-ceada8165645@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/ipq5424-rdp466.dts
arch/arm64/boot/dts/qcom/ipq5424.dtsi

index 5ca578904f857e5cc827f88417dde7e070f89856..117f1785e8b8e3eef3ea4df005ac491ad4ed76b6 100644 (file)
        clock-mult = <1>;
 };
 
+/*
+ * The frequency of xo_board is fixed to 24 MHZ, which is routed
+ * from WiFi output clock 48 MHZ divided by 2.
+ */
 &xo_board {
-       clock-frequency = <24000000>;
+       clock-div = <2>;
+       clock-mult = <1>;
 };
 
 &xo_clk {
index 13c641fced8f91697bb3533676291c05cba85721..2eea8a078595103ca2d3912f41e3594820b52771 100644 (file)
@@ -31,7 +31,8 @@
                };
 
                xo_board: xo-board-clk {
-                       compatible = "fixed-clock";
+                       compatible = "fixed-factor-clock";
+                       clocks = <&ref_48mhz_clk>;
                        #clock-cells = <0>;
                };