summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaradarajan Narayanan <[email protected]>2026-04-16 10:41:51 +0530
committerPeng Fan <[email protected]>2026-05-06 10:20:30 +0800
commitf07c15c16a1bbdf8eaa9ad79af774e31948bcba3 (patch)
tree9083f998ad2e544afd86fb7a8290160faa5e5c41
parent2a628fee83c1f8d0f260f51b93c342d9a788986a (diff)
mmc: msm_sdhci: Use max-frequency to get clock rate
msm_sdc_clk_init() uses clock-frequency to get the clock rate for SDC clocks. However, the DT files seem to use max-frequency for the same. Since msm_sdc_clk_init() doesn't find clock-frequency in the DT, it sets 201500000 as the clock rate and this results in timeout errors on IPQ platforms. Additionally, clock-frequency is not DT bindings compliant. Hence, get clock rate using DT bindings compliant max-frequency. Signed-off-by: Varadarajan Narayanan <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--drivers/mmc/msm_sdhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
index 66f3cf2de4f..aaa87923604 100644
--- a/drivers/mmc/msm_sdhci.c
+++ b/drivers/mmc/msm_sdhci.c
@@ -71,8 +71,7 @@ static int msm_sdc_clk_init(struct udevice *dev)
var_info = (void *)dev_get_driver_data(dev);
- ret = ofnode_read_u32(node, "clock-frequency", (uint *)(&clk_rate));
- if (ret)
+ if (ofnode_read_u32(node, "max-frequency", (uint *)(&clk_rate)))
clk_rate = 201500000;
ret = clk_get_bulk(dev, &prv->clks);