clk: qcom: Introduce initial clock controllers for Maili SoC
Subsystems (6)
v4 cover clk: qcom: Introduce initial clock controllers for Maili SoC
Introduce the initial set of clock controller bindings and driver support for the upcoming Qualcomm Maili SoC.
Maili is a new mobile SoC from Qualcomm. It is a derivative of the Hawi SoC and shares most of its clock topology. Where the hardware is identical, Maili reuses the existing Hawi drivers via fallback compatible strings. Where Maili diverges — specifically in the Global Clock Controller (GCC), which carries an additional QUPv3 wrapper (WRAP5) — the Hawi GCC driver is extended to handle both SoCs.
The series covers the following clock controllers:
- RPMH clock controller: identical to Hawi; uses qcom,hawi-rpmh-clk as fallback.
- TCSR clock controller: identical to Hawi; uses qcom,hawi-tcsrcc as fallback.
- Global Clock Controller (GCC): extends the Hawi GCC driver with eight additional QUPV3 WRAP5 clocks present only on Maili.
- CPUCP mailbox controller: software-compatible with X1E80100; uses
qcom,x1e80100-cpucp-mbox as fallback.
The devicetree for Maili will be upstreamed later.
Changes in v4:
- Rebase the binding of tcsr to linux-next.
- Add RB-by from Konrad Dybcio on the GCC driver patch.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Update the comment for extending the array appropriately size.
- Add RB-by [Krzysztof] from v2
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Split the new Maili-only QUPv3 WRAP5 clock IDs out of
qcom,hawi-gcc.h into a new qcom,maili-gcc.h header (which includes
qcom,hawi-gcc.h), instead of adding them directly to the Hawi
header. [Krzysztof]
- Update the GCC driver to include the maili-gcc header.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Taniya Das (5):
dt-bindings: clock: qcom-rpmhcc: Add RPMH clock controller for Maili
dt-bindings: clock: qcom: Add Maili TCSR clock controller
dt-bindings: clock: qcom: Add Maili global clock controller
clk: qcom: gcc-hawi: Add support for global clock controller on Maili
dt-bindings: mailbox: qcom: Document Maili CPUCP mailbox controller
.../devicetree/bindings/clock/qcom,hawi-gcc.yaml | 11 +- .../devicetree/bindings/clock/qcom,rpmhcc.yaml | 65 ++++--- .../bindings/clock/qcom,sm8550-tcsr.yaml | 32 ++-- .../bindings/mailbox/qcom,cpucp-mbox.yaml | 1 + drivers/clk/qcom/gcc-hawi.c | 201 +++++++++++++++++++++ include/dt-bindings/clock/qcom,maili-gcc.h | 21 +++ 6 files changed, 285 insertions(+), 46 deletions(-)
---
base-commit: 95d6a9ccef99117115e41e9adb271243bd5e985b
change-id: 20260617-maili_initial_clock-c7e2b4530d80
Best regards,
Signature · 1 line
Taniya Das <[email protected]>
PATCH v4 1/5 dt-bindings: clock: qcom-rpmhcc: Add RPMH clock controller for Maili
Document the RPMH clock controller for the Qualcomm Maili SoC.
Maili SoC is a derivative of the Hawi SoC and the rpmh clock controller is identical to that of Hawi. Therefore Maili uses the fallback compatible to reuse the Hawi rpmhcc driver.
--- .../devicetree/bindings/clock/qcom,rpmhcc.yaml | 65 ++++++++++++---------- 1 file changed, 35 insertions(+), 30 deletions(-)
Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml +35 -30
@@ -16,36 +16,41 @@ description: | properties: compatible: - enum: - - qcom,eliza-rpmh-clk - - qcom,glymur-rpmh-clk - - qcom,hawi-rpmh-clk - - qcom,kaanapali-rpmh-clk - - qcom,milos-rpmh-clk - - qcom,nord-rpmh-clk - - qcom,qcs615-rpmh-clk - - qcom,qdu1000-rpmh-clk - - qcom,sa8775p-rpmh-clk - - qcom,sar2130p-rpmh-clk - - qcom,sc7180-rpmh-clk - - qcom,sc7280-rpmh-clk - - qcom,sc8180x-rpmh-clk - - qcom,sc8280xp-rpmh-clk - - qcom,sdm670-rpmh-clk - - qcom,sdm845-rpmh-clk - - qcom,sdx55-rpmh-clk - - qcom,sdx65-rpmh-clk - - qcom,sdx75-rpmh-clk - - qcom,sm4450-rpmh-clk - - qcom,sm6350-rpmh-clk - - qcom,sm8150-rpmh-clk - - qcom,sm8250-rpmh-clk - - qcom,sm8350-rpmh-clk - - qcom,sm8450-rpmh-clk - - qcom,sm8550-rpmh-clk - - qcom,sm8650-rpmh-clk - - qcom,sm8750-rpmh-clk - - qcom,x1e80100-rpmh-clk + oneOf: + - enum: + - qcom,eliza-rpmh-clk + - qcom,glymur-rpmh-clk + - qcom,hawi-rpmh-clk + - qcom,kaanapali-rpmh-clk + - qcom,milos-rpmh-clk + - qcom,nord-rpmh-clk + - qcom,qcs615-rpmh-clk + - qcom,qdu1000-rpmh-clk + - qcom,sa8775p-rpmh-clk + - qcom,sar2130p-rpmh-clk + - qcom,sc7180-rpmh-clk + - qcom,sc7280-rpmh-clk + - qcom,sc8180x-rpmh-clk + - qcom,sc8280xp-rpmh-clk + - qcom,sdm670-rpmh-clk + - qcom,sdm845-rpmh-clk + - qcom,sdx55-rpmh-clk + - qcom,sdx65-rpmh-clk + - qcom,sdx75-rpmh-clk + - qcom,sm4450-rpmh-clk + - qcom,sm6350-rpmh-clk + - qcom,sm8150-rpmh-clk + - qcom,sm8250-rpmh-clk + - qcom,sm8350-rpmh-clk + - qcom,sm8450-rpmh-clk + - qcom,sm8550-rpmh-clk + - qcom,sm8650-rpmh-clk + - qcom,sm8750-rpmh-clk + - qcom,x1e80100-rpmh-clk + - items: + - enum: + - qcom,maili-rpmh-clk + - const: qcom,hawi-rpmh-clk clocks: maxItems: 1
Signature · 1 line
2.34.1
PATCH v4 2/5 dt-bindings: clock: qcom: Add Maili TCSR clock controller
In reply to Taniya DasAdd bindings documentation for TCSR clock controller on the Qualcomm Maili SoC.
Maili is a derivative of the Hawi SoC and the tcsr clock controller is identical to that of Hawi. Therefore Maili uses the fallback compatible to reuse the Hawi tcsrcc driver.
--- .../bindings/clock/qcom,sm8550-tcsr.yaml | 32 +++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-)
Documentation/devicetree/bindings/clock/qcom,sm8550-tcsr.yaml +19 -13
@@ -24,19 +24,25 @@ description: | properties: compatible: - items: - - enum: - - qcom,eliza-tcsr - - qcom,hawi-tcsrcc - - qcom,kaanapali-tcsr - - qcom,milos-tcsr - - qcom,nord-tcsrcc - - qcom,sar2130p-tcsr - - qcom,sm8550-tcsr - - qcom,sm8650-tcsr - - qcom,sm8750-tcsr - - qcom,x1e80100-tcsr - - const: syscon + oneOf: + - items: + - enum: + - qcom,eliza-tcsr + - qcom,hawi-tcsrcc + - qcom,kaanapali-tcsr + - qcom,milos-tcsr + - qcom,nord-tcsrcc + - qcom,sar2130p-tcsr + - qcom,sm8550-tcsr + - qcom,sm8650-tcsr + - qcom,sm8750-tcsr + - qcom,x1e80100-tcsr + - const: syscon + - items: + - enum: + - qcom,maili-tcsrcc + - const: qcom,hawi-tcsrcc + - const: syscon clocks: items:
Signature · 1 line
2.34.1
PATCH v4 3/5 dt-bindings: clock: qcom: Add Maili global clock controller
In reply to Taniya DasAdd device tree bindings for the global clock controller (GCC) on the Qualcomm Maili SoC by extending the existing Qualcomm Hawi GCC bindings, since the Maili GCC is identical to the Hawi GCC apart from a few additional clocks.
--- .../devicetree/bindings/clock/qcom,hawi-gcc.yaml | 11 ++++++++--- include/dt-bindings/clock/qcom,maili-gcc.h | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/clock/qcom,hawi-gcc.yaml +8 -3
@@ -8,16 +8,21 @@ title: Qualcomm Global Clock & Reset Controller on Hawi maintainers: - Vivek Aknurwar <[email protected]> + - Taniya Das <[email protected]> description: | Qualcomm global clock control module provides the clocks, resets and power - domains on Hawi. + domains on Hawi and Maili. - See also: include/dt-bindings/clock/qcom,hawi-gcc.h + See also: + include/dt-bindings/clock/qcom,hawi-gcc.h + include/dt-bindings/clock/qcom,maili-gcc.h properties: compatible: - const: qcom,hawi-gcc + enum: + - qcom,hawi-gcc + - qcom,maili-gcc clocks: items:
include/dt-bindings/clock/qcom,maili-gcc.h new file +21 -0
@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +*/ + +#ifndef _DT_BINDINGS_CLK_QCOM_GCC_MAILI_H +#define _DT_BINDINGS_CLK_QCOM_GCC_MAILI_H + +#include "qcom,hawi-gcc.h" + +/* Maili has below additional clocks on top of Hawi */ +#define GCC_QUPV3_WRAP5_CORE_2X_CLK 188 +#define GCC_QUPV3_WRAP5_CORE_CLK 189 +#define GCC_QUPV3_WRAP5_QSPI_REF_CLK 190 +#define GCC_QUPV3_WRAP5_QSPI_REF_CLK_SRC 191 +#define GCC_QUPV3_WRAP5_S0_CLK 192 +#define GCC_QUPV3_WRAP5_S0_CLK_SRC 193 +#define GCC_QUPV3_WRAP_5_M_AHB_CLK 194 +#define GCC_QUPV3_WRAP_5_S_AHB_CLK 195 + +#endif
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v4 3/5] dt-bindings: clock: qcom: Add Maili global clock controller
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Missing QUPV3 WRAP5 reset definition (e.g., GCC_QUPV3_WRAPPER_5_BCR) for the Maili GCC. --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing QUPV3 WRAP5 reset definition (e.g., GCC_QUPV3_WRAPPER_5_BCR) for the Maili GCC. --
--- Patch [3]: [PATCH v4 3/5] dt-bindings: clock: qcom: Add Maili global clock controller --- commit 833adf32860ecbd5cd7a72269cd3221a4b141fad
Author: Taniya Das <[email protected]>
dt-bindings: clock: qcom: Add Maili global clock controller
This commit adds device tree bindings for the global clock controller (GCC) on the Qualcomm Maili SoC. It extends the existing Hawi GCC bindings and introduces a new header file for the Maili-specific clocks.
Quoted 10 lines
include/dt-bindings/clock/qcom,maili-gcc.h new file +4
-0@@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +*/
include/dt-bindings/clock/qcom,maili-gcc.h line 14
Quoted 10 lines
include/dt-bindings/clock/qcom,maili-gcc.h new file +10
-0+ +#ifndef _DT_BINDINGS_CLK_QCOM_GCC_MAILI_H +#define _DT_BINDINGS_CLK_QCOM_GCC_MAILI_H + +#include "qcom,hawi-gcc.h" + +/* Maili has below additional clocks on top of Hawi */ +#define GCC_QUPV3_WRAP5_CORE_2X_CLK 188 +#define GCC_QUPV3_WRAP5_CORE_CLK 189 +#define GCC_QUPV3_WRAP5_QSPI_REF_CLK 190
[Severity: Medium]
Does the QUPv3 WRAP5 hardware on Maili also require a corresponding reset definition (such as GCC_QUPV3_WRAPPER_5_BCR)?
The QUPv3 core driver usually needs a reset for each wrapper to initialize it and recover from hardware errors. Without the reset index macro included here alongside the clocks, it looks like developers won't be able to define the resets property for WRAP5 in the Device Tree.
Quoted 7 lines
include/dt-bindings/clock/qcom,maili-gcc.h new file +7
-0+#define GCC_QUPV3_WRAP5_QSPI_REF_CLK_SRC 191 +#define GCC_QUPV3_WRAP5_S0_CLK 192 +#define GCC_QUPV3_WRAP5_S0_CLK_SRC 193 +#define GCC_QUPV3_WRAP_5_M_AHB_CLK 194 +#define GCC_QUPV3_WRAP_5_S_AHB_CLK 195 + +#endif
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
PATCH v4 4/5 clk: qcom: gcc-hawi: Add support for global clock controller on Maili
In reply to Taniya DasAdd support for the global clock controller (GCC) on the Qualcomm Maili SoC by extending the Hawi global clock controller since Maili is identical to Hawi and has few additional clocks.
--- drivers/clk/qcom/gcc-hawi.c | 201 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+)
drivers/clk/qcom/gcc-hawi.c +201 -0
@@ -10,6 +10,7 @@#include <linux/regmap.h> #include <dt-bindings/clock/qcom,hawi-gcc.h> +#include <dt-bindings/clock/qcom,maili-gcc.h> #include "clk-alpha-pll.h" #include "clk-branch.h"
@@ -1114,6 +1115,31 @@ static struct clk_rcg2 gcc_qupv3_wrap4_s4_clk_src = { .clkr.hw.init = &gcc_qupv3_wrap4_s4_clk_src_init, }; +static const struct freq_tbl ftbl_gcc_qupv3_wrap5_qspi_ref_clk_src[] = { +F (150000000 ,P_GCC_GPLL0_OUT_EVEN ,2 ,0 ,0 ), +F (196078431 ,P_GCC_GPLL0_OUT_EVEN ,1 ,100 ,153 ), +F (300000000 ,P_GCC_GPLL0_OUT_EVEN ,1 ,0 ,0 ), + { } +}; + +static struct clk_init_data gcc_qupv3_wrap5_qspi_ref_clk_src_init = { + .name ="gcc_qupv3_wrap5_qspi_ref_clk_src" , + .parent_data = gcc_parent_data_1, + .num_parents =ARRAY_SIZE (gcc_parent_data_1), + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_rcg2_shared_no_init_park_ops, +}; + +static struct clk_rcg2 gcc_qupv3_wrap5_qspi_ref_clk_src = { + .cmd_rcgr =0xad024 , + .mnd_width =16 , + .hid_width =5 , + .parent_map = gcc_parent_map_1, + .freq_tbl = ftbl_gcc_qupv3_wrap5_qspi_ref_clk_src, + .hw_clk_ctrl = true, + .clkr.hw.init = &gcc_qupv3_wrap5_qspi_ref_clk_src_init, +}; +static const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src[] = {F (400000 ,P_BI_TCXO ,12 ,1 ,4 ),F (25000000 ,P_GCC_GPLL0_OUT_EVEN ,12 ,0 ,0 ),
@@ -1281,6 +1307,21 @@ static struct clk_rcg2 gcc_usb30_prim_master_clk_src = { }, }; +static struct clk_regmap_div gcc_qupv3_wrap5_s0_clk_src = { + .reg =0xad018 , + .shift =0 , + .width =4 , + .clkr.hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap5_s0_clk_src" , + .parent_hws = (const struct clk_hw *[]) { + &gcc_qupv3_wrap5_qspi_ref_clk_src.clkr.hw, + }, + .num_parents =1 , + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_regmap_div_ro_ops, + }, +}; +static struct clk_rcg2 gcc_usb30_prim_mock_utmi_clk_src = { .cmd_rcgr =0x3904c , .mnd_width =0 ,
@@ -2739,6 +2780,68 @@ static struct clk_branch gcc_qupv3_wrap4_s4_clk = { }, }; +static struct clk_branch gcc_qupv3_wrap5_core_2x_clk = { + .halt_reg =0x236bc , + .halt_check =BRANCH_HALT_VOTED , + .clkr = { + .enable_reg =0x52020 , + .enable_mask =BIT (16 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap5_core_2x_clk" , + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_qupv3_wrap5_core_clk = { + .halt_reg =0x236a8 , + .halt_check =BRANCH_HALT_VOTED , + .clkr = { + .enable_reg =0x52020 , + .enable_mask =BIT (15 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap5_core_clk" , + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_qupv3_wrap5_qspi_ref_clk = { + .halt_reg =0xad01c , + .halt_check =BRANCH_HALT_VOTED , + .clkr = { + .enable_reg =0x52020 , + .enable_mask =BIT (18 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap5_qspi_ref_clk" , + .parent_hws = (const struct clk_hw *[]) { + &gcc_qupv3_wrap5_qspi_ref_clk_src.clkr.hw, + }, + .num_parents =1 , + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_qupv3_wrap5_s0_clk = { + .halt_reg =0xad004 , + .halt_check =BRANCH_HALT_VOTED , + .clkr = { + .enable_reg =0x52020 , + .enable_mask =BIT (17 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap5_s0_clk" , + .parent_hws = (const struct clk_hw *[]) { + &gcc_qupv3_wrap5_s0_clk_src.clkr.hw, + }, + .num_parents =1 , + .flags =CLK_SET_RATE_PARENT , + .ops = &clk_branch2_ops, + }, + }, +}; +static struct clk_branch gcc_qupv3_wrap_1_m_axi_clk = { .halt_reg =0x23140 , .halt_check =BRANCH_HALT_VOTED ,
@@ -2859,6 +2962,36 @@ static struct clk_branch gcc_qupv3_wrap_4_s_ahb_clk = { }, }; +static struct clk_branch gcc_qupv3_wrap_5_m_ahb_clk = { + .halt_reg =0x236a0 , + .halt_check =BRANCH_HALT_VOTED , + .hwcg_reg =0x236a0 , + .hwcg_bit =1 , + .clkr = { + .enable_reg =0x52020 , + .enable_mask =BIT (13 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap_5_m_ahb_clk" , + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_qupv3_wrap_5_s_ahb_clk = { + .halt_reg =0x236a4 , + .halt_check =BRANCH_HALT_VOTED , + .hwcg_reg =0x236a4 , + .hwcg_bit =1 , + .clkr = { + .enable_reg =0x52020 , + .enable_mask =BIT (14 ), + .hw.init = &(const struct clk_init_data ) { + .name ="gcc_qupv3_wrap_5_s_ahb_clk" , + .ops = &clk_branch2_ops, + }, + }, +}; +static struct clk_branch gcc_sdcc2_ahb_clk = { .halt_reg =0x14014 , .halt_check =BRANCH_HALT ,
@@ -3484,6 +3617,11 @@ static struct clk_regmap *gcc_hawi_clocks[] = { [GCC_USB3_PRIM_PHY_PIPE_CLK_SRC] = &gcc_usb3_prim_phy_pipe_clk_src.clkr, [GCC_VIDEO_AXI0_CLK] = &gcc_video_axi0_clk.clkr, [GCC_VIDEO_AXI0C_CLK ] = &gcc_video_axi0c_clk.clkr, +/* +* Maili has more clocks than Hawi. Ensure the array is appropriately +* sized and assign the additional clocks in .probe() + */ + [GCC_QUPV3_WRAP_5_S_AHB_CLK] = NULL, };static struct gdsc *gcc_hawi_gdscs[] = {
@@ -3587,6 +3725,34 @@ static const struct clk_rcg_dfs_data gcc_hawi_dfs_clocks[] = { DEFINE_RCG_DFS(gcc_qupv3_wrap4_s4_clk_src), }; +static const struct clk_rcg_dfs_data gcc_maili_dfs_clocks[] = { +DEFINE_RCG_DFS (gcc_qupv3_wrap1_qspi_ref_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s0_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s1_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s3_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s4_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s5_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s6_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap1_s7_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap2_s0_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap2_s1_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap2_s2_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap2_s3_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap2_s4_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap3_qspi_ref_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap3_s0_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap3_s2_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap3_s3_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap3_s4_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap3_s5_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap4_s0_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap4_s1_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap4_s2_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap4_s3_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap4_s4_clk_src), +DEFINE_RCG_DFS (gcc_qupv3_wrap5_qspi_ref_clk_src), +}; +static const struct regmap_config gcc_hawi_regmap_config = { .reg_bits =32 , .reg_stride =4 ,
@@ -3621,14 +3787,49 @@ static const struct qcom_cc_desc gcc_hawi_desc = { .driver_data = &gcc_hawi_driver_data, }; +static const struct qcom_cc_driver_data gcc_maili_driver_data = { + .clk_cbcrs = gcc_hawi_critical_cbcrs, + .num_clk_cbcrs =ARRAY_SIZE (gcc_hawi_critical_cbcrs), + .dfs_rcgs = gcc_maili_dfs_clocks, + .num_dfs_rcgs =ARRAY_SIZE (gcc_maili_dfs_clocks), + .clk_regs_configure = clk_hawi_regs_configure, +}; + +static const struct qcom_cc_desc gcc_maili_desc = { + .config = &gcc_hawi_regmap_config, + .clks = gcc_hawi_clocks, + .num_clks =ARRAY_SIZE (gcc_hawi_clocks), + .resets = gcc_hawi_resets, + .num_resets =ARRAY_SIZE (gcc_hawi_resets), + .gdscs = gcc_hawi_gdscs, + .num_gdscs =ARRAY_SIZE (gcc_hawi_gdscs), + .use_rpm = true, + .driver_data = &gcc_maili_driver_data, +}; +static const struct of_device_id gcc_hawi_match_table[] = { { .compatible ="qcom,hawi-gcc" }, + { .compatible ="qcom,maili-gcc" }, { } };MODULE_DEVICE_TABLE (of, gcc_hawi_match_table);static int gcc_hawi_probe (struct platform_device *pdev) { +if (of_device_is_compatible (pdev->dev.of_node,"qcom,maili-gcc" )) { + gcc_hawi_clocks[GCC_QUPV3_WRAP5_CORE_2X_CLK ] = &gcc_qupv3_wrap5_core_2x_clk.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP5_CORE_CLK ] = &gcc_qupv3_wrap5_core_clk.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP5_QSPI_REF_CLK ] = &gcc_qupv3_wrap5_qspi_ref_clk.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP5_QSPI_REF_CLK_SRC ] = + &gcc_qupv3_wrap5_qspi_ref_clk_src.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP5_S0_CLK ] = &gcc_qupv3_wrap5_s0_clk.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP5_S0_CLK_SRC ] = &gcc_qupv3_wrap5_s0_clk_src.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP_5_M_AHB_CLK ] = &gcc_qupv3_wrap_5_m_ahb_clk.clkr; + gcc_hawi_clocks[GCC_QUPV3_WRAP_5_S_AHB_CLK ] = &gcc_qupv3_wrap_5_s_ahb_clk.clkr; + +return qcom_cc_probe (pdev, &gcc_maili_desc); + } +return qcom_cc_probe (pdev, &gcc_hawi_desc); }
Signature · 1 line
2.34.1
PATCH v4 5/5 dt-bindings: mailbox: qcom: Document Maili CPUCP mailbox controller
In reply to Taniya DasDocument the CPU Control Processor (CPUCP) mailbox controller for the Qualcomm Maili SoC. It is software compatible with the X1E80100 CPUCP mailbox controller and uses it as a fallback compatible string.
--- Documentation/devicetree/bindings/mailbox/qcom,cpucp-mbox.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mailbox/qcom,cpucp-mbox.yaml +1 -0
@@ -21,6 +21,7 @@ properties: - qcom,glymur-cpucp-mbox - qcom,hawi-cpucp-mbox - qcom,kaanapali-cpucp-mbox + - qcom,maili-cpucp-mbox - qcom,nord-cpucp-mbox - qcom,sm8750-cpucp-mbox - const: qcom,x1e80100-cpucp-mbox
Signature · 1 line
2.34.1
Re: (subset) [PATCH v4 0/5] clk: qcom: Introduce initial clock controllers for Maili SoC
In reply to Taniya DasQuoted 11 lines · Taniya Das
Introduce the initial set of clock controller bindings and driver support for the upcoming Qualcomm Maili SoC.
Maili is a new mobile SoC from Qualcomm. It is a derivative of the Hawi SoC and shares most of its clock topology. Where the hardware is identical, Maili reuses the existing Hawi drivers via fallback compatible strings. Where Maili diverges — specifically in the Global Clock Controller (GCC), which carries an additional QUPv3 wrapper (WRAP5) — the Hawi GCC driver is extended to handle both SoCs.
[...]
Applied, thanks!
[1/5] dt-bindings: clock: qcom-rpmhcc: Add RPMH clock controller for Maili
commit: 126ee572d04e537394e16dbf6bf0702436af87d0
[2/5] dt-bindings: clock: qcom: Add Maili TCSR clock controller
commit: 2f4a1d2ed50514ca19a370aa7bf6005ca3f913ff
[3/5] dt-bindings: clock: qcom: Add Maili global clock controller
commit: 86ea9de5fae96051b468ab87a67b7a8f7a1e324d
[4/5] clk: qcom: gcc-hawi: Add support for global clock controller on Maili
commit: cc881afb66ab91cfdb32dc68078d843679d88baaBest regards,
Signature · 1 line
Bjorn Andersson <[email protected]>