Skip to content

Commit c035a9e

Browse files
Taniya Dasandersson
authored andcommitted
clk: qcom: rpmh: Add support for SM8750 rpmh clocks
Add the RPMH clocks present in SM8750 SoC. Reviewed-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Melody Olvera <[email protected]> Signed-off-by: Taniya Das <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent d7df7a7 commit c035a9e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

drivers/clk/qcom/clk-rpmh.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ DEFINE_CLK_RPMH_VRM(rf_clk2, _d, "rfclkd2", 1);
368368
DEFINE_CLK_RPMH_VRM(rf_clk3, _d, "rfclkd3", 1);
369369
DEFINE_CLK_RPMH_VRM(rf_clk4, _d, "rfclkd4", 1);
370370

371+
DEFINE_CLK_RPMH_VRM(rf_clk3, _a2, "rfclka3", 2);
372+
371373
DEFINE_CLK_RPMH_VRM(clk1, _a1, "clka1", 1);
372374
DEFINE_CLK_RPMH_VRM(clk2, _a1, "clka2", 1);
373375
DEFINE_CLK_RPMH_VRM(clk3, _a1, "clka3", 1);
@@ -825,6 +827,27 @@ static const struct clk_rpmh_desc clk_rpmh_qcs615 = {
825827
.num_clks = ARRAY_SIZE(qcs615_rpmh_clocks),
826828
};
827829

830+
static struct clk_hw *sm8750_rpmh_clocks[] = {
831+
[RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw,
832+
[RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw,
833+
[RPMH_LN_BB_CLK1] = &clk_rpmh_clk6_a2.hw,
834+
[RPMH_LN_BB_CLK1_A] = &clk_rpmh_clk6_a2_ao.hw,
835+
[RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a2.hw,
836+
[RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a2_ao.hw,
837+
[RPMH_RF_CLK1] = &clk_rpmh_rf_clk1_a.hw,
838+
[RPMH_RF_CLK1_A] = &clk_rpmh_rf_clk1_a_ao.hw,
839+
[RPMH_RF_CLK2] = &clk_rpmh_rf_clk2_a.hw,
840+
[RPMH_RF_CLK2_A] = &clk_rpmh_rf_clk2_a_ao.hw,
841+
[RPMH_RF_CLK3] = &clk_rpmh_rf_clk3_a2.hw,
842+
[RPMH_RF_CLK3_A] = &clk_rpmh_rf_clk3_a2_ao.hw,
843+
[RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
844+
};
845+
846+
static const struct clk_rpmh_desc clk_rpmh_sm8750 = {
847+
.clks = sm8750_rpmh_clocks,
848+
.num_clks = ARRAY_SIZE(sm8750_rpmh_clocks),
849+
};
850+
828851
static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec,
829852
void *data)
830853
{
@@ -929,6 +952,7 @@ static const struct of_device_id clk_rpmh_match_table[] = {
929952
{ .compatible = "qcom,sm8450-rpmh-clk", .data = &clk_rpmh_sm8450},
930953
{ .compatible = "qcom,sm8550-rpmh-clk", .data = &clk_rpmh_sm8550},
931954
{ .compatible = "qcom,sm8650-rpmh-clk", .data = &clk_rpmh_sm8650},
955+
{ .compatible = "qcom,sm8750-rpmh-clk", .data = &clk_rpmh_sm8750},
932956
{ .compatible = "qcom,x1e80100-rpmh-clk", .data = &clk_rpmh_x1e80100},
933957
{ }
934958
};

0 commit comments

Comments
 (0)