diff mbox series

[41/47] clk: qcom: rpmh: Add support for QCS9100 rpmh clocks

Message ID 20240703035154.2182083-12-quic_tengfan@quicinc.com (mailing list archive)
State Not Applicable
Delegated to: Herbert Xu
Headers show
Series arm64: qcom: dts: add QCS9100 support | expand

Commit Message

Tengfei Fan July 3, 2024, 3:51 a.m. UTC
Adds the RPMH clocks present in QCS9100 SoC.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
---
 drivers/clk/qcom/clk-rpmh.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Taniya Das July 3, 2024, 5:33 a.m. UTC | #1
On 7/3/2024 9:21 AM, Tengfei Fan wrote:
> { .compatible = "qcom,qcs9100-rpmh-clk", .data = &clk_rpmh_sa8775p},

This is not required, we already have sa8775p bindings.
Tengfei Fan July 3, 2024, 10:04 a.m. UTC | #2
On 7/3/2024 1:33 PM, Taniya Das wrote:
> 
> 
> On 7/3/2024 9:21 AM, Tengfei Fan wrote:
>> { .compatible = "qcom,qcs9100-rpmh-clk", .data = &clk_rpmh_sa8775p},
> 
> This is not required, we already have sa8775p bindings.

This patch is necessary, and the cover letter provides detailed 
explanations for why we are making this change.

In this patch series, we are renaming sa8775p.dtsi to qcs9100.dtsi. 
Additionally, in the coming weeks, the auto team will submit a new 
sa8775p-related dtsi to upstream.

Within qcs9100.dtsi, we are updating all compatible names from sa8775p-* 
to qcs9100-*(only have qcs9100-*, remove all sa8775p-*). Consequently, 
we need to add support for qcs9100-* in the driver as well.
diff mbox series

Patch

diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c
index bb82abeed88f..8131afba85d6 100644
--- a/drivers/clk/qcom/clk-rpmh.c
+++ b/drivers/clk/qcom/clk-rpmh.c
@@ -876,6 +876,7 @@  static int clk_rpmh_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id clk_rpmh_match_table[] = {
+	{ .compatible = "qcom,qcs9100-rpmh-clk", .data = &clk_rpmh_sa8775p},
 	{ .compatible = "qcom,qdu1000-rpmh-clk", .data = &clk_rpmh_qdu1000},
 	{ .compatible = "qcom,sa8775p-rpmh-clk", .data = &clk_rpmh_sa8775p},
 	{ .compatible = "qcom,sc7180-rpmh-clk", .data = &clk_rpmh_sc7180},