Hello @daniel_m.tx ,
Yes I have set the CONFIG_DM_VIDEO set.
I had success to config the display resoluction in u-boot with the u-boot dts arch/arm/dts/imx6ull-colibri-u-boot.dtsi
Setting display timings as follow:
timing_vga: 800x480 {
u-boot,dm-pre-reloc;
- clock-frequency = <25175000>;
- hactive = <640>;
+ clock-frequency = <33260000>;
+ hactive = <800>;
vactive = <480>;
- hback-porch = <40>;
- hfront-porch = <24>;
- vback-porch = <32>;
- vfront-porch = <11>;
- hsync-len = <96>;
+ hback-porch = <216>;
+ hfront-porch = <40>;
+ vback-porch = <35>;
+ vfront-porch = <10>;
+ hsync-len = <128>;
vsync-len = <2>;
de-active = <1>;
This was the only way that I could set the my display timings.
However I still have an issue, the display starts on with the wrong config until execute the setup_lcd() function. I had to change bl_on pin and backlight pwm pin, the changes are:
static iomux_v3_cfg_t const backlight_pads[] = {
/* Backlight On */
- MX6_PAD_JTAG_TMS__GPIO1_IO11 | MUX_PAD_CTRL(NO_PAD_CTRL),
- /* Backlight PWM<A> (multiplexed pin) */
- MX6_PAD_NAND_WP_B__GPIO4_IO11 | MUX_PAD_CTRL(NO_PAD_CTRL),
+
+ MX6_PAD_CSI_DATA07__GPIO4_IO28 | MUX_PAD_CTRL(NO_PAD_CTRL),
+ /* Backlight PWM<B> (multiplexed pin) */
+ MX6_PAD_NAND_DQS__GPIO4_IO16 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
Here seems that have the same issue that me.
How can I change pin configurations that the display starts off and turn on only in setup_lcd()?
Do I have to change pins config in u-boot dts?