Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: rpmh: Add support for SM8750 rpmh clocks

Add the RPMH clocks present in SM8750 SoC.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20241204-sm8750_master_clks-v3-3-1a8f31a53a86@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Taniya Das and committed by
Bjorn Andersson
c035a9e2 d7df7a71

+24
+24
drivers/clk/qcom/clk-rpmh.c
··· 368 368 DEFINE_CLK_RPMH_VRM(rf_clk3, _d, "rfclkd3", 1); 369 369 DEFINE_CLK_RPMH_VRM(rf_clk4, _d, "rfclkd4", 1); 370 370 371 + DEFINE_CLK_RPMH_VRM(rf_clk3, _a2, "rfclka3", 2); 372 + 371 373 DEFINE_CLK_RPMH_VRM(clk1, _a1, "clka1", 1); 372 374 DEFINE_CLK_RPMH_VRM(clk2, _a1, "clka2", 1); 373 375 DEFINE_CLK_RPMH_VRM(clk3, _a1, "clka3", 1); ··· 827 825 .num_clks = ARRAY_SIZE(qcs615_rpmh_clocks), 828 826 }; 829 827 828 + static struct clk_hw *sm8750_rpmh_clocks[] = { 829 + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw, 830 + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw, 831 + [RPMH_LN_BB_CLK1] = &clk_rpmh_clk6_a2.hw, 832 + [RPMH_LN_BB_CLK1_A] = &clk_rpmh_clk6_a2_ao.hw, 833 + [RPMH_LN_BB_CLK3] = &clk_rpmh_clk8_a2.hw, 834 + [RPMH_LN_BB_CLK3_A] = &clk_rpmh_clk8_a2_ao.hw, 835 + [RPMH_RF_CLK1] = &clk_rpmh_rf_clk1_a.hw, 836 + [RPMH_RF_CLK1_A] = &clk_rpmh_rf_clk1_a_ao.hw, 837 + [RPMH_RF_CLK2] = &clk_rpmh_rf_clk2_a.hw, 838 + [RPMH_RF_CLK2_A] = &clk_rpmh_rf_clk2_a_ao.hw, 839 + [RPMH_RF_CLK3] = &clk_rpmh_rf_clk3_a2.hw, 840 + [RPMH_RF_CLK3_A] = &clk_rpmh_rf_clk3_a2_ao.hw, 841 + [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw, 842 + }; 843 + 844 + static const struct clk_rpmh_desc clk_rpmh_sm8750 = { 845 + .clks = sm8750_rpmh_clocks, 846 + .num_clks = ARRAY_SIZE(sm8750_rpmh_clocks), 847 + }; 848 + 830 849 static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, 831 850 void *data) 832 851 { ··· 952 929 { .compatible = "qcom,sm8450-rpmh-clk", .data = &clk_rpmh_sm8450}, 953 930 { .compatible = "qcom,sm8550-rpmh-clk", .data = &clk_rpmh_sm8550}, 954 931 { .compatible = "qcom,sm8650-rpmh-clk", .data = &clk_rpmh_sm8650}, 932 + { .compatible = "qcom,sm8750-rpmh-clk", .data = &clk_rpmh_sm8750}, 955 933 { .compatible = "qcom,x1e80100-rpmh-clk", .data = &clk_rpmh_x1e80100}, 956 934 { } 957 935 };