We are trying to build an Android 9 OS for our custom board that is using an iMX8M Mini SoM and a Custom MIPI-DSI Display Panel.
As a first step we wrote a driver to the display on Yocto Linux environment (based on panel-raydium-rm67191 driver).
The result was fine and the clock rate of the MIPI-DSI was about 153MHz.
When we tried to customize the Android driver, the result was blank display and the MIPI-DSI clock was about 442MHz, although the MIPI-DSI configurations on both Yocto and Android seems the same.
Our LCD Module supports up to 250MHz.
We tried to tweak the mipi_dsi's assigned-clock-rates in the fsl-imx8mm.dtsi file, but we see on the Oscilloscope no change on the clock lines (still 442MHz, no matter what value we wrote at the assigned-clock-rates values).
for changing clock may be useful to look at
Regarding Android modifications, it also should work if works in linux. Suggest to rebuild all from scratch and try latest
releases from link
The first thing we've (@StanislavR & I) tried, was to change the pixel clock.
On Yocto the MIPI-DSI clock changed accordingly to the changes we've wrote in the panel driver, but on the Android build nothing changed.
Every time we build and run, no matter what we've changed (pixel clock or MIPI-DSI clock rates), the measured MIPI-DSI clock was about 445MHz.
Attached the display manufacturer's parameters.
Android 9 is old release and not more supported, suggest to try latest releases from link