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

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

Add RPMH clock support for the Glymur SoC to allow enable/disable of the
clocks.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250825-glymur-clock-controller-v5-v5-4-01b8c8681bcd@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Taniya Das and committed by
Bjorn Andersson
ebcb9db9 2c1d6ce4

+22
+22
drivers/clk/qcom/clk-rpmh.c
··· 390 390 391 391 DEFINE_CLK_RPMH_VRM(div_clk1, _div2, "divclka1", 2); 392 392 393 + DEFINE_CLK_RPMH_VRM(clk3, _a, "C3A_E0", 1); 394 + DEFINE_CLK_RPMH_VRM(clk4, _a, "C4A_E0", 1); 395 + DEFINE_CLK_RPMH_VRM(clk5, _a, "C5A_E0", 1); 396 + DEFINE_CLK_RPMH_VRM(clk8, _a, "C8A_E0", 1); 397 + 393 398 DEFINE_CLK_RPMH_BCM(ce, "CE0"); 394 399 DEFINE_CLK_RPMH_BCM(hwkm, "HK0"); 395 400 DEFINE_CLK_RPMH_BCM(ipa, "IP0"); ··· 884 879 .clka_optional = true, 885 880 }; 886 881 882 + static struct clk_hw *glymur_rpmh_clocks[] = { 883 + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div2.hw, 884 + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div2_ao.hw, 885 + [RPMH_RF_CLK3] = &clk_rpmh_clk3_a.hw, 886 + [RPMH_RF_CLK3_A] = &clk_rpmh_clk3_a_ao.hw, 887 + [RPMH_RF_CLK4] = &clk_rpmh_clk4_a.hw, 888 + [RPMH_RF_CLK4_A] = &clk_rpmh_clk4_a_ao.hw, 889 + [RPMH_RF_CLK5] = &clk_rpmh_clk5_a.hw, 890 + [RPMH_RF_CLK5_A] = &clk_rpmh_clk5_a_ao.hw, 891 + }; 892 + 893 + static const struct clk_rpmh_desc clk_rpmh_glymur = { 894 + .clks = glymur_rpmh_clocks, 895 + .num_clks = ARRAY_SIZE(glymur_rpmh_clocks), 896 + }; 897 + 887 898 static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, 888 899 void *data) 889 900 { ··· 989 968 } 990 969 991 970 static const struct of_device_id clk_rpmh_match_table[] = { 971 + { .compatible = "qcom,glymur-rpmh-clk", .data = &clk_rpmh_glymur}, 992 972 { .compatible = "qcom,milos-rpmh-clk", .data = &clk_rpmh_milos}, 993 973 { .compatible = "qcom,qcs615-rpmh-clk", .data = &clk_rpmh_qcs615}, 994 974 { .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000},