Re: [PATCH 6/6] clk: qcom: rpmh: add RPMh clocks for Seca
From: Jagadeesh Kona
Date: Mon Nov 30 2026 - 01:25:37 EST
On 11/27/2026 5:11 PM, Bartosz Golaszewski wrote:
> Add the RPMh clocks present on the Qualcomm Seca SoC.
>
> Co-developed-by: Tyler Baker <tyler.baker@xxxxxxxxxxxxxxxx>
> Signed-off-by: Tyler Baker <tyler.baker@xxxxxxxxxxxxxxxx>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> drivers/clk/qcom/clk-rpmh.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
> index 68640e5904a6484a37d48124f9d253d15c9602e7..178f39ca3aef8bfffcde2b7065884d1408eb24e1 100644
> --- a/drivers/clk/qcom/clk-rpmh.c
> +++ b/drivers/clk/qcom/clk-rpmh.c
> @@ -994,6 +994,21 @@ static const struct clk_rpmh_desc clk_rpmh_nord = {
> .num_clks = ARRAY_SIZE(nord_rpmh_clocks),
> };
>
> +static struct clk_hw *seca_rpmh_clocks[] = {
> + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div1.hw,
> + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div1_ao.hw,
> + [RPMH_LN_BB_CLK2] = &clk_rpmh_ln_bb_clk2_a1.hw,
> + [RPMH_LN_BB_CLK2_A] = &clk_rpmh_ln_bb_clk2_a1_ao.hw,
> + [RPMH_LN_BB_CLK3] = &clk_rpmh_ln_bb_clk3_a1.hw,
> + [RPMH_LN_BB_CLK3_A] = &clk_rpmh_ln_bb_clk3_a1_ao.hw,
> + [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
> +};
> +
> +static const struct clk_rpmh_desc clk_rpmh_seca = {
> + .clks = seca_rpmh_clocks,
> + .num_clks = ARRAY_SIZE(seca_rpmh_clocks),
> +};
> +
I see the clocks list is same as nord, so can we please use nord as the fallback
compatible for seca, similar to how maili reuses the hawi clocks and this change
can be dropped.
Thanks,
Jagadeesh
> static struct clk_hw *hawi_rpmh_clocks[] = {
> [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw,
> [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw,
> @@ -1155,6 +1170,7 @@ static const struct of_device_id clk_rpmh_match_table[] = {
> { .compatible = "qcom,sdx55-rpmh-clk", .data = &clk_rpmh_sdx55},
> { .compatible = "qcom,sdx65-rpmh-clk", .data = &clk_rpmh_sdx65},
> { .compatible = "qcom,sdx75-rpmh-clk", .data = &clk_rpmh_sdx75},
> + { .compatible = "qcom,seca-rpmh-clk", .data = &clk_rpmh_seca},
> { .compatible = "qcom,sm4450-rpmh-clk", .data = &clk_rpmh_sm4450},
> { .compatible = "qcom,sm6350-rpmh-clk", .data = &clk_rpmh_sm6350},
> { .compatible = "qcom,sm7250-rpmh-clk", .data = &clk_rpmh_sm7250},
>