AnsweredAssumed Answered

Dual channel lvds wrong colors on mx6

Question asked by Andrea Picaro on Oct 3, 2018
Latest reply on Oct 11, 2018 by Andrea Picaro

Hi, trying to integrate a fullHD panel on our imx6Q custom board. We are using dual channel lvds in split mode. The display is an innolux G156HCE_L01. The colors are all wrong, as seen in the attached pic, background should be black but displayed blue, the three stripes should be Red, Green and Blue.

This is our current dts config:

/*Dual channel lvds fullHD screen*/
&mxcfb1

{
   compatible = "fsl,mxc_sdc_fb";
   disp_dev = "ldb";
   interface_pix_fmt = "RGB24";
   mode_str="LDB-1080P60";
   default_bpp = <32>;
   int_clk = <0>;
   late_init = <0>;
   status = "okay";
};

&ldb

{
   status = "okay";
   split-mode;

   lvds-channel@0

   {
      fsl,data-mapping = "spwg";
      fsl,data-width = <24>;
      status = "okay";

      display-timings

      {
         native-mode = <&timing0>;
         timing0: hsd100pxn1 {
            clock-frequency = <140000000>;
            hactive = <1920>;
            vactive = <1080>;
            hback-porch = <100>;
            hfront-porch = <40>;
            vback-porch = <30>;
            vfront-porch = <3>;
            hsync-len = <10>;
            vsync-len = <2>;
         };
      };

};

lvds-channel@1

{
   fsl,data-mapping = "spwg";
   fsl,data-width = <24>;
   primary;
   status = "okay";

   display-timings

   {
      native-mode = <&timing1>;
      timing1: hsd100pxn1

      {
         clock-frequency = <140000000>;
         hactive = <1920>;
         vactive = <1080>;
         hback-porch = <100>;
         hfront-porch = <40>;
         vback-porch = <30>;
         vfront-porch = <3>;
         hsync-len = <10>;
         vsync-len = <2>;
      };
   };
};

};

Any hint would be appreciated

Outcomes