Hello,
I have an LVDS screen with a resolution of 1920x720.
I am set the following setting in U-boot:
setenv vidargs=video=mxcfb0:dev=ldb,1920x720M@60,if=RGB24 fbmem=32M
I follow this link and clone to compile the kernel.However, I am not sure which setting to make in imx6qdl-apalis.dtsi file on arch/arm/boot/dts path.
mxcfb1: fb@0 {
compatible = "fsl,mxc_sdc_fb";
disp_dev = "ldb";
interface_pix_fmt = "RGB666";
default_bpp = <16>;
int_clk = <0>;
late_init = <0>;
status = "disabled";
};
&ldb {
status = "okay";
// split-mode;
// dual-mode;
lvds-channel@0 {
reg = <0>;
fsl,data-mapping = "spwg"; /* "jeida"; */
fsl,data-width = <18>;
crtc = "ipu2-di1";
primary;
status = "okay";
display-timings {
native-mode = <&timing_xga>;
/* LDB-AM-800600LTNQW-A0H */
timing_svga: 800x600 {
clock-frequency = <55000000>;
hactive = <800>;
vactive = <600>;
hback-porch = <112>;
hfront-porch = <32>;
vback-porch = <3>;
vfront-porch = <17>;
hsync-len = <80>;
vsync-len = <4>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
/* Standard XGA timing */
timing_xga: 1024x768 {
clock-frequency = <65000000>;
hactive = <1024>;
vactive = <768>;
hback-porch = <160>;
hfront-porch = <24>;
vback-porch = <29>;
vfront-porch = <3>;
hsync-len = <136>;
vsync-len = <6>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
timing_wxga: 1280x800 {
clock-frequency = <68930000>;
hactive = <1280>;
vactive = <800>;
hback-porch = <64>;
hfront-porch = <64>;
vback-porch = <5>;
vfront-porch = <5>;
hsync-len = <40>;
vsync-len = <6>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
/* LTTD1280800101-L4WH-CT1, note that it needs
fsl,data-mapping = "spwg"; fsl,data-width = <24>; */
timing_wxga1: 1280x800-1 {
clock-frequency = <71100000>;
hactive = <1280>;
vactive = <800>;
hback-porch = <60>;
hfront-porch = <60>;
vback-porch = <7>;
vfront-porch = <7>;
hsync-len = <40>;
vsync-len = <9>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
timing_fullhd: 1920x1080 {
clock-frequency = <138500000>;
hactive = <1920>;
vactive = <1080>;
hback-porch = <80>;
hfront-porch = <48>;
vback-porch = <23>;
vfront-porch = <3>;
hsync-len = <32>;
vsync-len = <5>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
};
};
lvds-channel@1 {
reg = <1>;
fsl,data-mapping = "spwg";
fsl,data-width = <18>;
crtc = "ipu1-di0";
status = "okay";
display-timings {
/* native-mode = <&timing_svga_ch2>;*/
/* LDB-AM-800600LTNQW-A0H */
timing_svga_ch2: 800x600 {
clock-frequency = <55000000>;
hactive = <800>;
vactive = <600>;
hback-porch = <112>;
hfront-porch = <32>;
vback-porch = <3>;
vfront-porch = <17>;
hsync-len = <80>;
vsync-len = <4>;
hsync-active = <0>;
vsync-active = <0>;
pixelclk-active = <0>;
};
};
};
};
Can anyone help me.
Thanks