Skip to content

Commit 43bd2c4

Browse files
h-shenoyvinodkoul
authored andcommitted
phy: cadence: cdns-dphy: Enable lower resolutions in dphy
Enable support for data lane rates between 80-160 Mbps cdns dphy as mentioned in TRM [0] by setting the pll_opdiv field to 16. This change enables lower resolutions like 640x480 at 60Hz. [0]: https://www.ti.com/lit/zip/spruil1 (Table 12-552. DPHY_TX_PLL_CTRL Register Field Descriptions) Reviewed-by: Udit Kumar <u-kumar1@ti.com> Reviewed-by: Devarsh Thakkar <devarsht@ti.com> Signed-off-by: Harikrishna Shenoy <h-shenoy@ti.com> Link: https://lore.kernel.org/r/20250807052002.717807-1-h-shenoy@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent e4a8db9 commit 43bd2c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/phy/cadence/cdns-dphy.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int cdns_dphy_get_pll_cfg(struct cdns_dphy *dphy,
136136

137137
dlane_bps = opts->hs_clk_rate;
138138

139-
if (dlane_bps > 2500000000UL || dlane_bps < 160000000UL)
139+
if (dlane_bps > 2500000000UL || dlane_bps < 80000000UL)
140140
return -EINVAL;
141141
else if (dlane_bps >= 1250000000)
142142
cfg->pll_opdiv = 1;
@@ -146,6 +146,8 @@ static int cdns_dphy_get_pll_cfg(struct cdns_dphy *dphy,
146146
cfg->pll_opdiv = 4;
147147
else if (dlane_bps >= 160000000)
148148
cfg->pll_opdiv = 8;
149+
else if (dlane_bps >= 80000000)
150+
cfg->pll_opdiv = 16;
149151

150152
cfg->pll_fbdiv = DIV_ROUND_UP_ULL(dlane_bps * 2 * cfg->pll_opdiv *
151153
cfg->pll_ipdiv,

0 commit comments

Comments
 (0)