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

clk: qcom: dispcc-sm8250: Add sc8180x support

The display clock controller in SC8180x is reused from SM8150, so add
the necessary compatible and wire up the driver to enable this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210511041719.591969-1-bjorn.andersson@linaro.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Bjorn Andersson and committed by
Stephen Boyd
8ff48c82 a0384ecf

+4 -1
+1
Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml
··· 20 20 properties: 21 21 compatible: 22 22 enum: 23 + - qcom,sc8180x-dispcc 23 24 - qcom,sm8150-dispcc 24 25 - qcom,sm8250-dispcc 25 26
+3 -1
drivers/clk/qcom/dispcc-sm8250.c
··· 1037 1037 }; 1038 1038 1039 1039 static const struct of_device_id disp_cc_sm8250_match_table[] = { 1040 + { .compatible = "qcom,sc8180x-dispcc" }, 1040 1041 { .compatible = "qcom,sm8150-dispcc" }, 1041 1042 { .compatible = "qcom,sm8250-dispcc" }, 1042 1043 { } ··· 1054 1053 1055 1054 /* note: trion == lucid, except for the prepare() op */ 1056 1055 BUILD_BUG_ON(CLK_ALPHA_PLL_TYPE_TRION != CLK_ALPHA_PLL_TYPE_LUCID); 1057 - if (of_device_is_compatible(pdev->dev.of_node, "qcom,sm8150-dispcc")) { 1056 + if (of_device_is_compatible(pdev->dev.of_node, "qcom,sc8180x-dispcc") || 1057 + of_device_is_compatible(pdev->dev.of_node, "qcom,sm8150-dispcc")) { 1058 1058 disp_cc_pll0_config.config_ctl_hi_val = 0x00002267; 1059 1059 disp_cc_pll0_config.config_ctl_hi1_val = 0x00000024; 1060 1060 disp_cc_pll0_config.user_ctl_hi1_val = 0x000000D0;