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: tcsrcc-sm8650: Add support for Milos SoC

The Milos SoC has a very similar tcsrcc block, only TCSR_UFS_CLKREF_EN
uses different regs, and both TCSR_USB2_CLKREF_EN and
TCSR_USB3_CLKREF_EN are not present.

Modify these resources at probe if we're probing for Milos.

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-4-b49f19055768@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
7181c64f 5009024a

+8
+8
drivers/clk/qcom/tcsrcc-sm8650.c
··· 148 148 }; 149 149 150 150 static const struct of_device_id tcsr_cc_sm8650_match_table[] = { 151 + { .compatible = "qcom,milos-tcsr" }, 151 152 { .compatible = "qcom,sm8650-tcsr" }, 152 153 { } 153 154 }; ··· 156 155 157 156 static int tcsr_cc_sm8650_probe(struct platform_device *pdev) 158 157 { 158 + if (of_device_is_compatible(pdev->dev.of_node, "qcom,milos-tcsr")) { 159 + tcsr_ufs_clkref_en.halt_reg = 0x31118; 160 + tcsr_ufs_clkref_en.clkr.enable_reg = 0x31118; 161 + tcsr_cc_sm8650_clocks[TCSR_USB2_CLKREF_EN] = NULL; 162 + tcsr_cc_sm8650_clocks[TCSR_USB3_CLKREF_EN] = NULL; 163 + } 164 + 159 165 return qcom_cc_probe(pdev, &tcsr_cc_sm8650_desc); 160 166 } 161 167