]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: clock: qcom: Add CMN PLL support for IPQ5424 SoC
authorLuo Jie <quic_luoj@quicinc.com>
Tue, 10 Jun 2025 10:35:18 +0000 (18:35 +0800)
committerBjorn Andersson <andersson@kernel.org>
Wed, 18 Jun 2025 22:16:26 +0000 (17:16 -0500)
The CMN PLL block in the IPQ5424 SoC takes 48 MHZ as the reference
input clock. The output clocks are the same as IPQ9574 SoC, except
for the clock rate of output clocks to PPE and NSS.

Also, add the new header file to export the CMN PLL output clock
specifiers for IPQ5424 SoC.

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Link: https://lore.kernel.org/r/20250610-qcom_ipq5424_cmnpll-v3-1-ceada8165645@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Documentation/devicetree/bindings/clock/qcom,ipq9574-cmn-pll.yaml
include/dt-bindings/clock/qcom,ipq5424-cmn-pll.h [new file with mode: 0644]

index f869b3739be859de90ff93a470e55fe7e596d185..cb6e09f4247f4b25105b25f4ae746c0b3ef47616 100644 (file)
@@ -24,6 +24,7 @@ description:
 properties:
   compatible:
     enum:
+      - qcom,ipq5424-cmn-pll
       - qcom,ipq9574-cmn-pll
 
   reg:
diff --git a/include/dt-bindings/clock/qcom,ipq5424-cmn-pll.h b/include/dt-bindings/clock/qcom,ipq5424-cmn-pll.h
new file mode 100644 (file)
index 0000000..f643c26
--- /dev/null
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) 2025 Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_IPQ5424_CMN_PLL_H
+#define _DT_BINDINGS_CLK_QCOM_IPQ5424_CMN_PLL_H
+
+/* CMN PLL core clock. */
+#define IPQ5424_CMN_PLL_CLK                    0
+
+/* The output clocks from CMN PLL of IPQ5424. */
+#define IPQ5424_XO_24MHZ_CLK                   1
+#define IPQ5424_SLEEP_32KHZ_CLK                        2
+#define IPQ5424_PCS_31P25MHZ_CLK               3
+#define IPQ5424_NSS_300MHZ_CLK                 4
+#define IPQ5424_PPE_375MHZ_CLK                 5
+#define IPQ5424_ETH0_50MHZ_CLK                 6
+#define IPQ5424_ETH1_50MHZ_CLK                 7
+#define IPQ5424_ETH2_50MHZ_CLK                 8
+#define IPQ5424_ETH_25MHZ_CLK                  9
+#endif