Dual channel lvds wrong colors on mx6

cancel
Showing results for 
Search instead for 
Did you mean: 

Dual channel lvds wrong colors on mx6

525 Views
andreapicaro
Contributor I

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

Tags (2)
0 Kudos
2 Replies

237 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Andrea

one can check similar case on

linux-imx6/imx6qdl-eo.dtsi at boundary-imx_4.9.x_2.0.0_ga · boundarydevices/linux-imx6 · GitHub 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

237 Views
andreapicaro
Contributor I

Hi, tested boundary devices way, i get exactly same result.

0 Kudos