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

clk: qcom: hfpll: Add QCS404-specific compatible

It doesn't appear that the configuration is for the HFPLL is generic, so
add a qcs404-specific compatible and rename the existing struct to
qcs404.

Keep qcom,hfpll in the driver for compatibility with old dtbs.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20240218-hfpll-yaml-v2-2-31543e0d6261@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
3db0f3b9 849ed9d4

+4 -2
+4 -2
drivers/clk/qcom/hfpll.c
··· 14 14 #include "clk-regmap.h" 15 15 #include "clk-hfpll.h" 16 16 17 - static const struct hfpll_data hdata = { 17 + static const struct hfpll_data qcs404 = { 18 18 .mode_reg = 0x00, 19 19 .l_reg = 0x04, 20 20 .m_reg = 0x08, ··· 84 84 }; 85 85 86 86 static const struct of_device_id qcom_hfpll_match_table[] = { 87 - { .compatible = "qcom,hfpll", .data = &hdata }, 88 87 { .compatible = "qcom,msm8976-hfpll-a53", .data = &msm8976_a53 }, 89 88 { .compatible = "qcom,msm8976-hfpll-a72", .data = &msm8976_a72 }, 90 89 { .compatible = "qcom,msm8976-hfpll-cci", .data = &msm8976_cci }, 90 + { .compatible = "qcom,qcs404-hfpll", .data = &qcs404 }, 91 + /* Deprecated in bindings */ 92 + { .compatible = "qcom,hfpll", .data = &qcs404 }, 91 93 { } 92 94 }; 93 95 MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table);