From 662850abf38a8632b806ee27d8638ec66771616a Mon Sep 17 00:00:00 2001 From: Balaji Selvanathan Date: Thu, 20 Aug 2026 15:30:29 +0530 Subject: [PATCH] clk: qcom: sc7280: enable shared RPMH clock driver The shared RPMH clock driver now covers SM8550, SM8650 and SA8775P. SC7280 exposes the same always-on RPMH clocks, so wire it up the same way: register the "qcom,sc7280-rpmh-clk" compatible in the shared driver, have CLK_QCOM_SC7280 select CLK_QCOM_RPMH, and drop the SC7280 entry from the clk-stub match table now that the real driver claims it. Signed-off-by: Balaji Selvanathan --- drivers/clk/clk-stub.c | 1 - drivers/clk/qcom/Kconfig | 7 ++++--- drivers/clk/qcom/clock-rpmh.c | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-stub.c b/drivers/clk/clk-stub.c index 85e54841386a..74825f87580a 100644 --- a/drivers/clk/clk-stub.c +++ b/drivers/clk/clk-stub.c @@ -52,7 +52,6 @@ static const struct udevice_id stub_clk_ids[] = { { .compatible = "qcom,qcs615-rpmh-clk" }, { .compatible = "qcom,rpmcc" }, { .compatible = "qcom,sc7180-rpmh-clk" }, - { .compatible = "qcom,sc7280-rpmh-clk" }, { .compatible = "qcom,sdm670-rpmh-clk" }, { .compatible = "qcom,sdm845-rpmh-clk" }, { .compatible = "qcom,sm6350-rpmh-clk" }, diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig index 3fd12fb32ee0..7f990b7ecd8f 100644 --- a/drivers/clk/qcom/Kconfig +++ b/drivers/clk/qcom/Kconfig @@ -100,9 +100,9 @@ config CLK_QCOM_RPMH depends on CLK help Say Y here to enable support for the RPMh-managed clocks found on - SoCs such as SM8550, SM8650 and SA8775P. These clocks are owned by - the always-on subsystem; the driver only reports the fixed CXO rate - (bi_tcxo_div2) and accepts no-op enable/set_rate requests. + SoCs such as SC7280, SM8550, SM8650 and SA8775P. These clocks are + owned by the always-on subsystem; the driver only reports the fixed + CXO rate (bi_tcxo_div2) and accepts no-op enable/set_rate requests. config CLK_QCOM_SA8775P bool "Qualcomm SA8775 GCC" @@ -197,6 +197,7 @@ config CLK_QCOM_SM8650 config CLK_QCOM_SC7280 bool "Qualcomm SC7280 GCC" select CLK_QCOM + select CLK_QCOM_RPMH help Say Y here to enable support for the Global Clock Controller on the Snapdragon SC7280 SoC. This driver supports the clocks diff --git a/drivers/clk/qcom/clock-rpmh.c b/drivers/clk/qcom/clock-rpmh.c index 026059def678..6e0ee3b3c505 100644 --- a/drivers/clk/qcom/clock-rpmh.c +++ b/drivers/clk/qcom/clock-rpmh.c @@ -47,6 +47,7 @@ static struct clk_ops qcom_rpmh_clk_ops = { static const struct udevice_id qcom_rpmh_clk_ids[] = { { .compatible = "qcom,sa8775p-rpmh-clk", .data = TCXO_DIV2_RATE }, + { .compatible = "qcom,sc7280-rpmh-clk", .data = TCXO_DIV2_RATE }, { .compatible = "qcom,sm8550-rpmh-clk", .data = TCXO_DIV2_RATE }, { .compatible = "qcom,sm8650-rpmh-clk", .data = TCXO_DIV2_RATE }, { }