Hi colleagues!
I have a correct custom image (Apalis iMX6) with updated core + device tree and it works fine with 2 LVDS displays. I would like to check new features with Torizon and I tried to activate my LVDS overlay but without success.
Device tree modifications used in my previous custom image:
&clks {
fsl,ldb-di0-parent = <&clks IMX6QDL_CLK_MMDC_CH1_AXI>; // 528 MHz, separate from HDMI clock parent (PLL5)
fsl,ldb-di1-parent = <&clks IMX6QDL_CLK_MMDC_CH1_AXI>;
};
&ldb {
ipu_id = <1>; /* IPU numbers start from 0 here */
lvds-channel@0 {
fsl,data-width = <24>;
disp_id = <0>;
crtc = "ipu2-di0"; /* IPU numbers start from 1 here */
display-timings {
/* Ampire AM-1280800P2TZQW-00H */
timing_wxga: 1280x800 {
clock-frequency = <75428571>; // 528/7
hactive = <1280>;
vactive = <800>;
hback-porch = <5>;
hfront-porch = <121>;
vback-porch = <2>;
vfront-porch = <90>;
hsync-len = <1>;
vsync-len = <1>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
};
};
lvds-channel@1 {
fsl,data-width = <24>;
disp_id = <1>;
crtc = "ipu2-di1"; /* IPU numbers start from 1 here */
display-timings {
/* NLT Technologies NL12880AC20-14D */
timing_wxga12: 1280x800 {
clock-frequency = <75428571>; // 528/7
hactive = <1280>;
vactive = <800>;
hback-porch = <5>;
hfront-porch = <121>;
vback-porch = <2>;
vfront-porch = <90>;
hsync-len = <1>;
vsync-len = <1>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
};
};
};
Steps I did:
- installed Torizon 5, started Docker container with developer tools
- Activated LVDS overlay (apalis-imx6-lvds-overlay.dts)
- Activated my overlay
apalis-additional-overlay.dts
/dts-v1/;
/plugin/;
/ {
compatible = "toradex,apalis_imx6q";
fragment@0 {
target-path="/panel-lvds";
__overlay__ {
status = "okay";
data-mapping = "vesa-24";
width-mm = <193>;
height-mm = <130>;
panel-timing {
clock-frequency = <75428571>;
hactive = <1280>;
vactive = <800>;
hback-porch = <5>;
hfront-porch = <121>;
vback-porch = <2>;
vfront-porch = <90>;
hsync-len = <1>;
vsync-len = <1>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
};
};
};
and checked that these overlays were applied ok.
After the system was restarted I checked dmesg:
apalis-imx6-05186757:~$ dmesg | grep fb
[ 0.000000] Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash ostree=/ostree/boot.1/torizon/f46c3c780ebf0456b2908b6e7325693465a4f7c37df2d25fd65fb5ab88853ef1/0
[ 1.795921] imx-drm display-subsystem: fb0: imx-drmdrmfb frame buffer device
But, when I called “fbset” there were no timings and frequencies:
apalis-imx6-05186757:~$ sudo fbset
Password:
mode "1280x800-0"
# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
geometry 1280 800 1920 1080 16
timings 0 0 0 0 0 0 0
accel true
rgba 5/11,6/5,5/0,0/0
endmode
Could you please what is wrong with my overlay?
Thanks!