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 RPMH clocks on Milos

Add support for RPMH clocks on Milos SoCs.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20250707-sm7635-clocks-misc-v2-2-b49f19055768@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
4901838d 136e6393

+26
+26
drivers/clk/qcom/clk-rpmh.c
··· 386 386 DEFINE_CLK_RPMH_VRM(clk7, _a2, "clka7", 2); 387 387 DEFINE_CLK_RPMH_VRM(clk8, _a2, "clka8", 2); 388 388 389 + DEFINE_CLK_RPMH_VRM(clk7, _a4, "clka7", 4); 390 + 389 391 DEFINE_CLK_RPMH_VRM(div_clk1, _div2, "divclka1", 2); 390 392 391 393 DEFINE_CLK_RPMH_BCM(ce, "CE0"); ··· 541 539 static const struct clk_rpmh_desc clk_rpmh_sc8180x = { 542 540 .clks = sc8180x_rpmh_clocks, 543 541 .num_clks = ARRAY_SIZE(sc8180x_rpmh_clocks), 542 + }; 543 + 544 + static struct clk_hw *milos_rpmh_clocks[] = { 545 + [RPMH_CXO_CLK] = &clk_rpmh_bi_tcxo_div4.hw, 546 + [RPMH_CXO_CLK_A] = &clk_rpmh_bi_tcxo_div4_ao.hw, 547 + [RPMH_LN_BB_CLK2] = &clk_rpmh_clk7_a4.hw, 548 + [RPMH_LN_BB_CLK2_A] = &clk_rpmh_clk7_a4_ao.hw, 549 + /* 550 + * RPMH_LN_BB_CLK3(_A) and RPMH_LN_BB_CLK4(_A) are marked as optional 551 + * downstream, but do not exist in cmd-db on SM7635, so skip them. 552 + */ 553 + [RPMH_RF_CLK1] = &clk_rpmh_clk1_a1.hw, 554 + [RPMH_RF_CLK1_A] = &clk_rpmh_clk1_a1_ao.hw, 555 + [RPMH_RF_CLK2] = &clk_rpmh_clk2_a1.hw, 556 + [RPMH_RF_CLK2_A] = &clk_rpmh_clk2_a1_ao.hw, 557 + [RPMH_RF_CLK3] = &clk_rpmh_clk3_a1.hw, 558 + [RPMH_RF_CLK3_A] = &clk_rpmh_clk3_a1_ao.hw, 559 + [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw, 560 + }; 561 + 562 + static const struct clk_rpmh_desc clk_rpmh_milos = { 563 + .clks = milos_rpmh_clocks, 564 + .num_clks = ARRAY_SIZE(milos_rpmh_clocks), 544 565 }; 545 566 546 567 static struct clk_hw *sm8250_rpmh_clocks[] = { ··· 968 943 } 969 944 970 945 static const struct of_device_id clk_rpmh_match_table[] = { 946 + { .compatible = "qcom,milos-rpmh-clk", .data = &clk_rpmh_milos}, 971 947 { .compatible = "qcom,qcs615-rpmh-clk", .data = &clk_rpmh_qcs615}, 972 948 { .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000}, 973 949 { .compatible = "qcom,sa8775p-rpmh-clk", .data = &clk_rpmh_sa8775p},