Hello,
We are encountering the display issue.
Hardware: NXP i.MX8M Mini SOM + our function board + third-party rm67199 based panel
OS: Linux 6.1.22
This is the first time we use panel to connect to our board. The original driver panel-raydium-rm67191.c is used with small change on the default mode per the panel vendor's advice, as below:
static const struct drm_display_mode default_mode = {
.....
.hdisplay = 1080,
.hsync_start = 1080 + 60,
.hsync_end = 1080 + 60 + 10,
.htotal = 1080 + 60 + 10 + 80,
.vdisplay = 1920,
.vsync_start = 1920 + 15,
.vsync_end = 1920 + 15 + 5,
.vtotal = 1920 + 15 + 5 + 8,
.width_mm = 68,
.height_mm = 121,
... ...
};
And the panel related part in board dts file, as below:
panel@0 {
compatible = "raydium,rm67199";
reg = <0x00>;
pinctrl-0 = <&mipi_dsi_en>;
reset-gpio = <&gpio1 8 0x1>; /* 0x1: GPIO_ACTIVE_LOW */
dsi-lanes = <0x04>;
video-mode = <0x2>; /* 0: burst mode
* 1: non-burst mode with sync event
* 2: non-burst mode with sync pulse
* 3: command mode
*/
panel-width-mm = <68>;
panel-height-mm = <121>;
status = "okay";
};
Now the system can boot up with "4 penguins" and then the background picture shown on the screen. However the color on the left half of screen is incorrect (the right half looks normally), as below:
Then we got the tool modetest for testing the display functionality. The output image of modetest (command: # modetest -s
35@33:1080x1920@XR24), is as below:
I also found that the display color of left screen should be incorrect by comparing to the modetest output on normal display system.
No obvious errors of panel driver and libdrm are found from the kernel log. The log may be not detailed enough.
Any tips for this issue are highly appreciated.
Thanks,
Frank Song