Skip to content

Integrate linux-imx-kuk/imx8mp_cherry-pick_video-clk_workaround

Commit: seco-ne/kernel/linux-imx-kuk@2a99f2e2

mx8mp: clk-composite-8m: Add workarround for media-disp clk with less allowed deviders

Measured the pixelclock on the lvds interface the frequencies generated by media_dips2_pix clock do not match the calculated values by the driver. The driver selects a devider between 1 and 64 ( according to the ref manual) but the measured frequencies only end up with frequencies matching a devider from 1,7,14,21,35. This patch changes the selected of deviders to that list, so the frequency is rounded to a actually working frequency.

BCS 746-000495

(cherry picked from commit 70382beaa7b0da42d44799d90ce437a15412d183)

--

Commit: seco-ne/kernel/linux-imx-kuk@754b009a

imx8mp-ldb: remove hardcoded pixel clock overwrite

The imx8mp ldb driver had an hardcoded overwrite for the pixelclock as the video_pll is not able to generate all needed frequencies. But the hardcoded value only fits to one mode, probably used on the EVK. Removing this override leads to a pixelclock that may be generated with a devider from the PLL, which ends up with a frquency much closer to what is expected.

Also it is not the ldb clock but the lcdif clock used for this, so this seems to be the wrong place for modifying the clock anyway.

BCS 746-000502

(cherry picked from commit 86df943de1f70cb4fdce4b08123221b982e0d0aa)

Merge request reports

Loading