mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 14:50:15 +04:00
qualcommax: ipq807x: add CMN PLL clock controller support
Add IPQ8074 support to the upstream CMN PLL driver. The CMN PLL block is identical to IPQ6018 with the same output clocks (bias_pll_cc_clk at 300 MHz and bias_pll_nss_noc_clk at 416.5 MHz). Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
committed by
Robert Marko
parent
eb769c6fc3
commit
bf81c51b51
@@ -1,6 +1,7 @@
|
||||
CONFIG_ARM_PSCI_CPUIDLE_DOMAIN=y
|
||||
CONFIG_DT_IDLE_GENPD=y
|
||||
CONFIG_GRO_CELLS=y
|
||||
CONFIG_IPQ_CMN_PLL=y
|
||||
CONFIG_IPQ_GCC_8074=y
|
||||
CONFIG_MDIO_BITBANG=y
|
||||
CONFIG_MDIO_GPIO=y
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Wed, 05 Mar 2026 12:00:00 +0100
|
||||
Subject: dt-bindings: clock: qcom: Add CMN PLL support for IPQ8074
|
||||
|
||||
The CMN PLL block in the IPQ8074 SoC takes 48 MHz as the reference
|
||||
input clock. Its output clocks are the bias_pll_cc_clk (300 MHz) and
|
||||
bias_pll_nss_noc_clk (416.5 MHz) clocks used by the networking
|
||||
subsystem.
|
||||
|
||||
Signed-off-by: John Crispin <john@phrozen.org>
|
||||
---
|
||||
include/dt-bindings/clock/qcom,ipq8074-cmn-pll.h | 15 +++++++++++++++
|
||||
1 file changed, 15 insertions(+)
|
||||
create mode 100644 include/dt-bindings/clock/qcom,ipq8074-cmn-pll.h
|
||||
|
||||
--- /dev/null
|
||||
+++ b/include/dt-bindings/clock/qcom,ipq8074-cmn-pll.h
|
||||
@@ -0,0 +1,15 @@
|
||||
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
|
||||
+/*
|
||||
+ * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
+ */
|
||||
+
|
||||
+#ifndef _DT_BINDINGS_CLK_QCOM_IPQ8074_CMN_PLL_H
|
||||
+#define _DT_BINDINGS_CLK_QCOM_IPQ8074_CMN_PLL_H
|
||||
+
|
||||
+/* CMN PLL core clock. */
|
||||
+#define IPQ8074_CMN_PLL_CLK 0
|
||||
+
|
||||
+/* The output clocks from CMN PLL of IPQ8074. */
|
||||
+#define IPQ8074_BIAS_PLL_CC_CLK 1
|
||||
+#define IPQ8074_BIAS_PLL_NSS_NOC_CLK 2
|
||||
+#endif
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
From: John Crispin <john@phrozen.org>
|
||||
Date: Wed, 05 Mar 2026 12:00:00 +0100
|
||||
Subject: clk: qcom: ipq-cmn-pll: Add IPQ8074 SoC support
|
||||
|
||||
The CMN PLL in IPQ8074 SoC supplies fixed clocks to the networking
|
||||
subsystem: bias_pll_cc_clk at 300 MHz and bias_pll_nss_noc_clk at
|
||||
416.5 MHz.
|
||||
|
||||
Signed-off-by: John Crispin <john@phrozen.org>
|
||||
---
|
||||
drivers/clk/qcom/ipq-cmn-pll.c | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
--- a/drivers/clk/qcom/ipq-cmn-pll.c
|
||||
+++ b/drivers/clk/qcom/ipq-cmn-pll.c
|
||||
@@ -53,6 +53,7 @@
|
||||
#include <dt-bindings/clock/qcom,ipq5018-cmn-pll.h>
|
||||
#include <dt-bindings/clock/qcom,ipq5424-cmn-pll.h>
|
||||
#include <dt-bindings/clock/qcom,ipq6018-cmn-pll.h>
|
||||
+#include <dt-bindings/clock/qcom,ipq8074-cmn-pll.h>
|
||||
|
||||
#define CMN_PLL_REFCLK_SRC_SELECTION 0x28
|
||||
#define CMN_PLL_REFCLK_SRC_DIV GENMASK(9, 8)
|
||||
@@ -125,6 +126,12 @@ static const struct cmn_pll_fixed_output
|
||||
{ /* Sentinel */ }
|
||||
};
|
||||
|
||||
+static const struct cmn_pll_fixed_output_clk ipq8074_output_clks[] = {
|
||||
+ CLK_PLL_OUTPUT(IPQ8074_BIAS_PLL_CC_CLK, "bias_pll_cc_clk", 300000000UL),
|
||||
+ CLK_PLL_OUTPUT(IPQ8074_BIAS_PLL_NSS_NOC_CLK, "bias_pll_nss_noc_clk", 416500000UL),
|
||||
+ { /* Sentinel */ }
|
||||
+};
|
||||
+
|
||||
static const struct cmn_pll_fixed_output_clk ipq5424_output_clks[] = {
|
||||
CLK_PLL_OUTPUT(IPQ5424_XO_24MHZ_CLK, "xo-24mhz", 24000000UL),
|
||||
CLK_PLL_OUTPUT(IPQ5424_SLEEP_32KHZ_CLK, "sleep-32khz", 32000UL),
|
||||
@@ -464,6 +471,7 @@ static const struct of_device_id ipq_cmn
|
||||
{ .compatible = "qcom,ipq5018-cmn-pll", .data = &ipq5018_output_clks },
|
||||
{ .compatible = "qcom,ipq5424-cmn-pll", .data = &ipq5424_output_clks },
|
||||
{ .compatible = "qcom,ipq6018-cmn-pll", .data = &ipq6018_output_clks },
|
||||
+ { .compatible = "qcom,ipq8074-cmn-pll", .data = &ipq8074_output_clks },
|
||||
{ .compatible = "qcom,ipq9574-cmn-pll", .data = &ipq9574_output_clks },
|
||||
{ }
|
||||
};
|
||||
Reference in New Issue
Block a user