Skip to content

Commit 69f16d9

Browse files
Frank Oltmannsjernejsk
authored andcommitted
clk: sunxi-ng: a64: Set minimum and maximum rate for PLL-MIPI
When the Allwinner A64's TCON0 searches the ideal rate for the connected panel, it may happen that it requests a rate from its parent PLL-MIPI which PLL-MIPI does not support. This happens for example on the Olimex TERES-I laptop where TCON0 requests PLL-MIPI to change to a rate of several GHz which causes the panel to stay blank. It also happens on the pinephone where a rate of less than 500 MHz is requested which causes instabilities on some phones. Set the minimum and maximum rate of Allwinner A64's PLL-MIPI according to the Allwinner User Manual. Fixes: ca1170b ("clk: sunxi-ng: a64: force select PLL_MIPI in TCON0 mux") Reported-by: Diego Roversi <[email protected]> Closes: https://groups.google.com/g/linux-sunxi/c/Rh-Uqqa66bw Tested-by: Diego Roversi <[email protected]> Cc: [email protected] Reviewed-by: Maxime Ripard <[email protected]> Signed-off-by: Frank Oltmanns <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jernej Skrabec <[email protected]>
1 parent b914ec3 commit 69f16d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/sunxi-ng/ccu-sun50i-a64.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ static struct ccu_nkm pll_mipi_clk = {
182182
&ccu_nkm_ops,
183183
CLK_SET_RATE_UNGATE | CLK_SET_RATE_PARENT),
184184
.features = CCU_FEATURE_CLOSEST_RATE,
185+
.min_rate = 500000000,
186+
.max_rate = 1400000000,
185187
},
186188
};
187189

0 commit comments

Comments
 (0)