Changing display (framebuffer) resolution is not wokring on Colibri-imx7 and Yocto build

Hello,

I’m trying change resolution on Colibri-imx7 and 7" AMP AM-800480 display and Yocto build to the 800x480 instead 640x480

I have updated imx7-colibri-u-boot.dtsi display timings to

display-timings {
			native-mode = <&timing_wvga>;
		/* WVGA Timing, e.g. EDT ET070080DH6 */
			timing_wvga: 800x480 {
				clock-frequency = <33260000>;
				hactive = <800>;
				vactive = <480>;
				hback-porch = <216>;
				hfront-porch = <40>;
				vback-porch = <35>;
				vfront-porch = <10>;
				hsync-len = <128>;
				vsync-len = <2>;

				de-active = <1>;
				hsync-active = <0>;
				vsync-active = <0>;
				pixelclk-active = <0>;
			};
};

I have added lines to colibri_imx7.h

CONFIG_EXTRA_ENV_SETTINGS

"vidargs=video=mxsfb:800x480M-16@60\0" \
"videomode=video=ctfb:x:800,y:480,depth:18,pclk:33260,le:48,ri:16,up:33,lo:10,hs:96,vs:2,sync:0,vmode:0\0" \

However, the display is not still filled to whole area.

fbset still prints

 fbset

mode "640x480-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 640 480 640 480 32
        timings 0 0 0 0 0 0 0
        accel true
        rgba 8/16,8/8,8/0,0/0
endmode

This also doesn’t wok.

fw_setenv vidargs video='mxsfb:800x480M-16@60'

Thanks for the advice, Petr

Hello @munzarp,

Welcome to the Toradex Community and thanks for contributing! :tada:

I see that you are modifying the device tree file for u-boot (imx7-colibri-u-boot.dtsi). Is that intentional?

For anything to be displayed from the kernel you should modify the corresponding device-tree file in the Linux kernel itself. You can find more details here about the right files, depending on whether you are on an upstream or downstream-based image: First Steps with Device Trees | Toradex Developer Center

At the end solution was to change

panel_dpi: panel-dpi {
		compatible = "edt,et057090dhu";

To et070080dh6
Or using
colibri-imx7_panel-cap-touch-7inch_overlay.dtbo

1 Like