From: Jian Hu via B4 Relay <devnull+jian.hu.amlogic.com@kernel.org>
To: Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: Carlo Caione <ccaione@baylibre.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-amlogic@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, Jian Hu <jian.hu@amlogic.com>
Subject: [PATCH RFC RFT v3 08/13] clk: meson: g12a: Model the PLL pre-divider as a divider clock
Date: Tue, 01 Dec 2026 16:56:21 +0800 [thread overview]
Message-ID: <20261201-meson_refactor_n-v3-8-f85a4460fd80@amlogic.com> (raw)
In-Reply-To: <20261201-meson_refactor_n-v3-0-f85a4460fd80@amlogic.com>
From: Jian Hu <jian.hu@amlogic.com>
The pre-divider is currently described by a dedicated n parameter,
although it is a plain divider between the input clock and the DCO.
Model it as a regular divider clock and make it the parent of the DCO.
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
---
drivers/clk/meson/g12a.c | 275 +++++++++++++++++++++++++++++++++++++----------
1 file changed, 217 insertions(+), 58 deletions(-)
diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c
index beed610e4a82..09eb842e0b1a 100644
--- a/drivers/clk/meson/g12a.c
+++ b/drivers/clk/meson/g12a.c
@@ -137,6 +137,30 @@
#define HHI_SYS1_PLL_CNTL5 0x394
#define HHI_SYS1_PLL_CNTL6 0x398
+static struct clk_regmap g12a_fixed_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_FIX_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ /*
+ * CLK_DIVIDER_ONE_BASED: the register value is the divisor
+ * itself, so a value of 1 gives a divisor of 1 and the PLL
+ * input is not divided. The hardware keeps this pre-divider
+ * at 1, which minimizes the PLL jitter.
+ * The same applies below.
+ */
+ .flags = CLK_DIVIDER_ONE_BASED,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "fixed_prediv",
+ .ops = &clk_regmap_divider_ro_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ },
+};
+
static struct clk_regmap g12a_fixed_pll_dco = {
.data = &(struct meson_clk_pll_data){
.en = {
@@ -149,11 +173,6 @@ static struct clk_regmap g12a_fixed_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_FIX_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.frac = {
.reg_off = HHI_FIX_PLL_CNTL1,
.shift = 0,
@@ -173,8 +192,8 @@ static struct clk_regmap g12a_fixed_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "fixed_pll_dco",
.ops = &meson_clk_pll_ro_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12a_fixed_prediv.hw
},
.num_parents = 1,
},
@@ -201,6 +220,34 @@ static struct clk_regmap g12a_fixed_pll = {
},
};
+/* Force the pre-divider at 1 to minimize PLL jitter */
+static const struct clk_div_table g12a_pll_prediv_div_table[] = {
+ { .val = 1, .div = 1 },
+ { /* sentinel */ }
+};
+
+static struct clk_regmap g12a_sys_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_SYS_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ .table = g12a_pll_prediv_div_table,
+ /*
+ * CLK_DIVIDER_INVALID_ZERO to report 0 Hz during registration.
+ * The same applies below.
+ */
+ .flags = CLK_DIVIDER_INVALID_ZERO,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "sys_prediv",
+ .ops = &clk_regmap_divider_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ },
+};
+
static const struct pll_mult_range g12a_sys_pll_mult_range = {
.min = 128,
.max = 250,
@@ -218,11 +265,6 @@ static struct clk_regmap g12a_sys_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_SYS_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.l = {
.reg_off = HHI_SYS_PLL_CNTL0,
.shift = 31,
@@ -238,12 +280,12 @@ static struct clk_regmap g12a_sys_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "sys_pll_dco",
.ops = &meson_clk_pll_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12a_sys_prediv.hw
},
.num_parents = 1,
/* This clock feeds the CPU, avoid disabling it */
- .flags = CLK_IS_CRITICAL,
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
},
};
@@ -265,6 +307,24 @@ static struct clk_regmap g12a_sys_pll = {
},
};
+static struct clk_regmap g12b_sys1_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_SYS1_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ .table = g12a_pll_prediv_div_table,
+ .flags = CLK_DIVIDER_INVALID_ZERO,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "sys1_prediv",
+ .ops = &clk_regmap_divider_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ },
+};
+
static struct clk_regmap g12b_sys1_pll_dco = {
.data = &(struct meson_clk_pll_data){
.en = {
@@ -277,11 +337,6 @@ static struct clk_regmap g12b_sys1_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_SYS1_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.l = {
.reg_off = HHI_SYS1_PLL_CNTL0,
.shift = 31,
@@ -297,12 +352,12 @@ static struct clk_regmap g12b_sys1_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "sys1_pll_dco",
.ops = &meson_clk_pll_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12b_sys1_prediv.hw
},
.num_parents = 1,
/* This clock feeds the CPU, avoid disabling it */
- .flags = CLK_IS_CRITICAL,
+ .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
},
};
@@ -386,6 +441,24 @@ static struct clk_fixed_factor g12b_sys1_pll_div16 = {
},
};
+static struct clk_regmap g12a_gp0_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_GP0_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ .table = g12a_pll_prediv_div_table,
+ .flags = CLK_DIVIDER_INVALID_ZERO,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "gp0_prediv",
+ .ops = &clk_regmap_divider_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ },
+};
+
static const struct pll_mult_range g12a_gp0_pll_mult_range = {
.min = 125,
.max = 255,
@@ -415,11 +488,6 @@ static struct clk_regmap g12a_gp0_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_GP0_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.frac = {
.reg_off = HHI_GP0_PLL_CNTL1,
.shift = 0,
@@ -442,10 +510,11 @@ static struct clk_regmap g12a_gp0_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "gp0_pll_dco",
.ops = &meson_clk_pll_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12a_gp0_prediv.hw
},
.num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
},
};
@@ -468,6 +537,23 @@ static struct clk_regmap g12a_gp0_pll = {
},
};
+static struct clk_regmap sm1_gp1_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_GP1_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ .flags = CLK_DIVIDER_ONE_BASED,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "gp1_prediv",
+ .ops = &clk_regmap_divider_ro_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ },
+};
+
static struct clk_regmap sm1_gp1_pll_dco = {
.data = &(struct meson_clk_pll_data){
.en = {
@@ -480,11 +566,6 @@ static struct clk_regmap sm1_gp1_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_GP1_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.frac = {
.reg_off = HHI_GP1_PLL_CNTL1,
.shift = 0,
@@ -504,8 +585,8 @@ static struct clk_regmap sm1_gp1_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "gp1_pll_dco",
.ops = &meson_clk_pll_ro_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &sm1_gp1_prediv.hw
},
.num_parents = 1,
/* This clock feeds the DSU, avoid disabling it */
@@ -531,6 +612,24 @@ static struct clk_regmap sm1_gp1_pll = {
},
};
+static struct clk_regmap g12a_hifi_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_HIFI_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ .table = g12a_pll_prediv_div_table,
+ .flags = CLK_DIVIDER_INVALID_ZERO,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "hifi_prediv",
+ .ops = &clk_regmap_divider_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ },
+};
+
/*
* Internal hifi pll emulation configuration parameters
*/
@@ -555,11 +654,6 @@ static struct clk_regmap g12a_hifi_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_HIFI_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.frac = {
.reg_off = HHI_HIFI_PLL_CNTL1,
.shift = 0,
@@ -583,10 +677,11 @@ static struct clk_regmap g12a_hifi_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "hifi_pll_dco",
.ops = &meson_clk_pll_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12a_hifi_prediv.hw
},
.num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
},
};
@@ -609,6 +704,32 @@ static struct clk_regmap g12a_hifi_pll = {
},
};
+static struct clk_regmap g12a_pcie_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_PCIE_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ .table = g12a_pll_prediv_div_table,
+ .flags = CLK_DIVIDER_INVALID_ZERO,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "pcie_prediv",
+ .ops = &clk_regmap_divider_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ /*
+ * The PCIe prediv register reads zero on power-on.
+ * CLK_DIVIDER_INVALID_ZERO makes the first rate return 0 Hz,
+ * which gets cached by CCF. The PCIe PLL enable callback
+ * later writes a valid non-zero divider value. Use
+ * CLK_GET_RATE_NOCACHE to avoid stale cached rate.
+ */
+ .flags = CLK_GET_RATE_NOCACHE,
+ },
+};
+
/*
* The Meson G12A PCIE PLL is fined tuned to deliver a very precise
* 100MHz reference clock for the PCIe Analog PHY, and thus requires
@@ -647,11 +768,6 @@ static struct clk_regmap g12a_pcie_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_PCIE_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.frac = {
.reg_off = HHI_PCIE_PLL_CNTL1,
.shift = 0,
@@ -674,10 +790,11 @@ static struct clk_regmap g12a_pcie_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "pcie_pll_dco",
.ops = &meson_clk_pcie_pll_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12a_pcie_prediv.hw
},
.num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
},
};
@@ -729,6 +846,33 @@ static struct clk_fixed_factor g12a_pcie_pll = {
},
};
+static struct clk_regmap g12a_hdmi_prediv = {
+ .data = &(struct clk_regmap_div_data){
+ .offset = HHI_HDMI_PLL_CNTL0,
+ .shift = 10,
+ .width = 5,
+ /*
+ * The pre-divider register reads zero until the display driver
+ * programs the HDMI PLL, so a zero divisor is not a fault here:
+ * treat it as a bypass instead of warning at registration.
+ */
+ .flags = CLK_DIVIDER_ONE_BASED | CLK_DIVIDER_ALLOW_ZERO,
+ },
+ .hw.init = &(struct clk_init_data){
+ .name = "hdmi_prediv",
+ .ops = &clk_regmap_divider_ro_ops,
+ .parent_data = &(const struct clk_parent_data) {
+ .fw_name = "xtal",
+ },
+ .num_parents = 1,
+ /*
+ * Display directly handle hdmi pll registers ATM, we need
+ * NOCACHE to keep our view of the clock as accurate as possible
+ */
+ .flags = CLK_GET_RATE_NOCACHE,
+ },
+};
+
static struct clk_regmap g12a_hdmi_pll_dco = {
.data = &(struct meson_clk_pll_data){
.en = {
@@ -741,11 +885,6 @@ static struct clk_regmap g12a_hdmi_pll_dco = {
.shift = 0,
.width = 8,
},
- .n = {
- .reg_off = HHI_HDMI_PLL_CNTL0,
- .shift = 10,
- .width = 5,
- },
.frac = {
.reg_off = HHI_HDMI_PLL_CNTL1,
.shift = 0,
@@ -765,8 +904,8 @@ static struct clk_regmap g12a_hdmi_pll_dco = {
.hw.init = &(struct clk_init_data){
.name = "hdmi_pll_dco",
.ops = &meson_clk_pll_ro_ops,
- .parent_data = &(const struct clk_parent_data) {
- .fw_name = "xtal",
+ .parent_hws = (const struct clk_hw *[]) {
+ &g12a_hdmi_prediv.hw
},
.num_parents = 1,
/*
@@ -4594,9 +4733,13 @@ static struct clk_hw *g12a_hw_clks[] = {
[CLKID_VCLK2_VENCLMMC] = &g12a_vclk2_venclmmc.hw,
[CLKID_VCLK2_VENCL] = &g12a_vclk2_vencl.hw,
[CLKID_VCLK2_OTHER1] = &g12a_vclk2_other1.hw,
+ [CLKID_FIXED_PREDIV] = &g12a_fixed_prediv.hw,
[CLKID_FIXED_PLL_DCO] = &g12a_fixed_pll_dco.hw,
+ [CLKID_SYS_PREDIV] = &g12a_sys_prediv.hw,
[CLKID_SYS_PLL_DCO] = &g12a_sys_pll_dco.hw,
+ [CLKID_GP0_PREDIV] = &g12a_gp0_prediv.hw,
[CLKID_GP0_PLL_DCO] = &g12a_gp0_pll_dco.hw,
+ [CLKID_HIFI_PREDIV] = &g12a_hifi_prediv.hw,
[CLKID_HIFI_PLL_DCO] = &g12a_hifi_pll_dco.hw,
[CLKID_DMA] = &g12a_dma.hw,
[CLKID_EFUSE] = &g12a_efuse.hw,
@@ -4619,6 +4762,7 @@ static struct clk_hw *g12a_hw_clks[] = {
[CLKID_VAPB_1] = &g12a_vapb_1.hw,
[CLKID_VAPB_SEL] = &g12a_vapb_sel.hw,
[CLKID_VAPB] = &g12a_vapb.hw,
+ [CLKID_HDMI_PREDIV] = &g12a_hdmi_prediv.hw,
[CLKID_HDMI_PLL_DCO] = &g12a_hdmi_pll_dco.hw,
[CLKID_HDMI_PLL_OD] = &g12a_hdmi_pll_od.hw,
[CLKID_HDMI_PLL_OD2] = &g12a_hdmi_pll_od2.hw,
@@ -4694,6 +4838,7 @@ static struct clk_hw *g12a_hw_clks[] = {
[CLKID_CPU_CLK_AXI] = &g12a_cpu_clk_axi.hw,
[CLKID_CPU_CLK_TRACE_DIV] = &g12a_cpu_clk_trace_div.hw,
[CLKID_CPU_CLK_TRACE] = &g12a_cpu_clk_trace.hw,
+ [CLKID_PCIE_PREDIV] = &g12a_pcie_prediv.hw,
[CLKID_PCIE_PLL_DCO] = &g12a_pcie_pll_dco.hw,
[CLKID_PCIE_PLL_DCO_DIV2] = &g12a_pcie_pll_dco_div2.hw,
[CLKID_PCIE_PLL_OD] = &g12a_pcie_pll_od.hw,
@@ -4821,9 +4966,13 @@ static struct clk_hw *g12b_hw_clks[] = {
[CLKID_VCLK2_VENCLMMC] = &g12a_vclk2_venclmmc.hw,
[CLKID_VCLK2_VENCL] = &g12a_vclk2_vencl.hw,
[CLKID_VCLK2_OTHER1] = &g12a_vclk2_other1.hw,
+ [CLKID_FIXED_PREDIV] = &g12a_fixed_prediv.hw,
[CLKID_FIXED_PLL_DCO] = &g12a_fixed_pll_dco.hw,
+ [CLKID_SYS_PREDIV] = &g12a_sys_prediv.hw,
[CLKID_SYS_PLL_DCO] = &g12a_sys_pll_dco.hw,
+ [CLKID_GP0_PREDIV] = &g12a_gp0_prediv.hw,
[CLKID_GP0_PLL_DCO] = &g12a_gp0_pll_dco.hw,
+ [CLKID_HIFI_PREDIV] = &g12a_hifi_prediv.hw,
[CLKID_HIFI_PLL_DCO] = &g12a_hifi_pll_dco.hw,
[CLKID_DMA] = &g12a_dma.hw,
[CLKID_EFUSE] = &g12a_efuse.hw,
@@ -4846,6 +4995,7 @@ static struct clk_hw *g12b_hw_clks[] = {
[CLKID_VAPB_1] = &g12a_vapb_1.hw,
[CLKID_VAPB_SEL] = &g12a_vapb_sel.hw,
[CLKID_VAPB] = &g12a_vapb.hw,
+ [CLKID_HDMI_PREDIV] = &g12a_hdmi_prediv.hw,
[CLKID_HDMI_PLL_DCO] = &g12a_hdmi_pll_dco.hw,
[CLKID_HDMI_PLL_OD] = &g12a_hdmi_pll_od.hw,
[CLKID_HDMI_PLL_OD2] = &g12a_hdmi_pll_od2.hw,
@@ -4921,6 +5071,7 @@ static struct clk_hw *g12b_hw_clks[] = {
[CLKID_CPU_CLK_AXI] = &g12a_cpu_clk_axi.hw,
[CLKID_CPU_CLK_TRACE_DIV] = &g12a_cpu_clk_trace_div.hw,
[CLKID_CPU_CLK_TRACE] = &g12a_cpu_clk_trace.hw,
+ [CLKID_PCIE_PREDIV] = &g12a_pcie_prediv.hw,
[CLKID_PCIE_PLL_DCO] = &g12a_pcie_pll_dco.hw,
[CLKID_PCIE_PLL_DCO_DIV2] = &g12a_pcie_pll_dco_div2.hw,
[CLKID_PCIE_PLL_OD] = &g12a_pcie_pll_od.hw,
@@ -4936,6 +5087,7 @@ static struct clk_hw *g12b_hw_clks[] = {
[CLKID_VDEC_HEVCF] = &g12a_vdec_hevcf.hw,
[CLKID_TS_DIV] = &g12a_ts_div.hw,
[CLKID_TS] = &g12a_ts.hw,
+ [CLKID_SYS1_PREDIV] = &g12b_sys1_prediv.hw,
[CLKID_SYS1_PLL_DCO] = &g12b_sys1_pll_dco.hw,
[CLKID_SYS1_PLL] = &g12b_sys1_pll.hw,
[CLKID_SYS1_PLL_DIV16_EN] = &g12b_sys1_pll_div16_en.hw,
@@ -5089,9 +5241,13 @@ static struct clk_hw *sm1_hw_clks[] = {
[CLKID_VCLK2_VENCLMMC] = &g12a_vclk2_venclmmc.hw,
[CLKID_VCLK2_VENCL] = &g12a_vclk2_vencl.hw,
[CLKID_VCLK2_OTHER1] = &g12a_vclk2_other1.hw,
+ [CLKID_FIXED_PREDIV] = &g12a_fixed_prediv.hw,
[CLKID_FIXED_PLL_DCO] = &g12a_fixed_pll_dco.hw,
+ [CLKID_SYS_PREDIV] = &g12a_sys_prediv.hw,
[CLKID_SYS_PLL_DCO] = &g12a_sys_pll_dco.hw,
+ [CLKID_GP0_PREDIV] = &g12a_gp0_prediv.hw,
[CLKID_GP0_PLL_DCO] = &g12a_gp0_pll_dco.hw,
+ [CLKID_HIFI_PREDIV] = &g12a_hifi_prediv.hw,
[CLKID_HIFI_PLL_DCO] = &g12a_hifi_pll_dco.hw,
[CLKID_DMA] = &g12a_dma.hw,
[CLKID_EFUSE] = &g12a_efuse.hw,
@@ -5114,6 +5270,7 @@ static struct clk_hw *sm1_hw_clks[] = {
[CLKID_VAPB_1] = &g12a_vapb_1.hw,
[CLKID_VAPB_SEL] = &g12a_vapb_sel.hw,
[CLKID_VAPB] = &g12a_vapb.hw,
+ [CLKID_HDMI_PREDIV] = &g12a_hdmi_prediv.hw,
[CLKID_HDMI_PLL_DCO] = &g12a_hdmi_pll_dco.hw,
[CLKID_HDMI_PLL_OD] = &g12a_hdmi_pll_od.hw,
[CLKID_HDMI_PLL_OD2] = &g12a_hdmi_pll_od2.hw,
@@ -5189,6 +5346,7 @@ static struct clk_hw *sm1_hw_clks[] = {
[CLKID_CPU_CLK_AXI] = &g12a_cpu_clk_axi.hw,
[CLKID_CPU_CLK_TRACE_DIV] = &g12a_cpu_clk_trace_div.hw,
[CLKID_CPU_CLK_TRACE] = &g12a_cpu_clk_trace.hw,
+ [CLKID_PCIE_PREDIV] = &g12a_pcie_prediv.hw,
[CLKID_PCIE_PLL_DCO] = &g12a_pcie_pll_dco.hw,
[CLKID_PCIE_PLL_DCO_DIV2] = &g12a_pcie_pll_dco_div2.hw,
[CLKID_PCIE_PLL_OD] = &g12a_pcie_pll_od.hw,
@@ -5205,6 +5363,7 @@ static struct clk_hw *sm1_hw_clks[] = {
[CLKID_TS_DIV] = &g12a_ts_div.hw,
[CLKID_TS] = &g12a_ts.hw,
[CLKID_GP1_PLL_DCO] = &sm1_gp1_pll_dco.hw,
+ [CLKID_GP1_PREDIV] = &sm1_gp1_prediv.hw,
[CLKID_GP1_PLL] = &sm1_gp1_pll.hw,
[CLKID_DSU_CLK_DYN0_SEL] = &sm1_dsu_clk_dyn0_sel.hw,
[CLKID_DSU_CLK_DYN0_DIV] = &sm1_dsu_clk_dyn0_div.hw,
--
2.47.1
next prev parent reply other threads:[~2026-12-01 8:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:56 [PATCH RFC RFT v3 00/13] clk: meson: Refactor " Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 01/13] clk: divider: Add CLK_DIVIDER_INVALID_ZERO flag Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 02/13] clk: meson: clk-regmap: Widen the divider flags to 16 bits Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 03/13] dt-bindings: clock: amlogic: Add PLL pre-divider clock IDs Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 04/13] clk: meson: axg: Model the PLL pre-divider as a divider clock Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 05/13] clk: meson: a1: " Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 06/13] clk: meson: c3: " Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 07/13] clk: meson: gxbb: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay [this message]
2026-12-01 8:56 ` [PATCH RFC RFT v3 09/13] clk: meson: meson8: " Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 10/13] clk: meson: s4: " Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 11/13] clk: meson: s7: " Jian Hu via B4 Relay
2026-12-01 11:37 ` Carlo Caione
2026-12-01 8:56 ` [PATCH RFC RFT v3 12/13] clk: meson: t7: " Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 13/13] clk: meson: pll: Remove the dedicated n parameter Jian Hu via B4 Relay
2026-12-01 13:16 ` Carlo Caione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201-meson_refactor_n-v3-8-f85a4460fd80@amlogic.com \
--to=devnull+jian.hu.amlogic.com@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=ccaione@baylibre.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=jbrunet@baylibre.com \
--cc=jian.hu@amlogic.com \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®