Setting LVDS Display mode with WinIot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting LVDS Display mode with WinIot

2,628 Views
aditya_h
Contributor II

I am tying to connect 800x600 display to imx93 with WinIoT using LVDS mode.

Below Display Timing parameter is used 

/* 800x600@60 */
CONST IMX_DISPLAY_TIMING PreferredTiming_800x600_60 = {
.PixelClock = 40000000,
.HActive = 800,
.HBlank = 256,
.VActive = 600,
.VBlank = 28,
.HSync = 128,
.VSync = 4,
.HSyncOffset = 40,
.VSyncOffset = 1,
.HImageSize = 527,
.VImageSize = 296,
.HBorder = 0,
.VBorder = 0,
.EdidFlags = 0,
.Flags = 0,
.PixelRepetition = 0,
.Bpp = 24,
.PixelFormat = PIXEL_FORMAT_ARGB32,
};

The display is up but there are green patches on some areas with color gradient as shown in below image.

What could be the possible reason, And what should be the timing parameters value.

0 Kudos
Reply
11 Replies

2,590 Views
michal_hromadka
NXP Employee
NXP Employee

Hello @aditya_h ,

These parameters are set to some default values, but should be set according to the display datasheet. Do you have the datasheet of the display?

 

Regards,

Michal

0 Kudos
Reply

2,561 Views
aditya_h
Contributor II

Hi @michal_hromadka , Attaching the Display datasheet

0 Kudos
Reply

2,538 Views
aditya_h
Contributor II

@michal_hromadka Any inputs based on these data from the datasheet?

0 Kudos
Reply

2,513 Views
michal_hromadka
NXP Employee
NXP Employee

Hello @aditya_h ,

we are trying to reproduce this problem. What version of BSP are you using? 1.4.0?

 

Regards,

Michal

0 Kudos
Reply

2,507 Views
aditya_h
Contributor II

@michal_hromadka  Yes we are using 1.4.0.

And please note display we are using is RGB display(as referred in the datasheet), Does EVK93 support this? (We could see only ARGB/BGRA formats supported in EVK93).

If it is not supported what is the workaround? 

 

0 Kudos
Reply

2,435 Views
michal_hromadka
NXP Employee
NXP Employee

Hello @aditya_h ,

Your LCD panel does not seem to be compatible with the  LVDS Display Bridge. The panel supports RGB data via 3 of the 4 LVDS lines instead of the 4 lines supported by the i.MX93.

EDIT: The LCD is compatible if you omit the data3/RxIn3 line and switch the i.MX93 to JEIDA mode which maps the LSB RGB bits to this line (see below).

LCD panel input:

LCDPanelSharp.PNG

 i.MX93 LVDS output:

I.MX93LVDSDisplatBridge.PNG

 

Regards,

Michal

0 Kudos
Reply

2,315 Views
michal_hromadka
NXP Employee
NXP Employee

Hello @aditya_h ,

We were able to simulate the color issue by switching the display to 6-bit mode. After switching from the default SPWD data mode to JEIDA, the colors were fixed.
Please try to make the changes in the file as shown below:

File: <BSP>\mu_platform_nxp\Silicon\ARM\NXP\iMX8Pkg\Library\iMX8LcdHwLib\iMX9xLvds.c

code.png

Please let us know if this changes helped you.

 

@Naveen_V_M, We have been able to fixed the issue by changes above.

 

Best regards,

Michal

Best re

0 Kudos
Reply

2,306 Views
Naveen_V_M
Contributor I

Hello @michal_hromadka ,

Thanks a lot, this fix works.

Your quick help is much appreciated.

regards

Naveen

0 Kudos
Reply

2,380 Views
Naveen_V_M
Contributor I

Hello @michal_hromadka ,

Is there a Driver or Hardware workaround to make the i.MX93 EVK compatible with the 3 line displays?

 

0 Kudos
Reply

2,343 Views
michal_hromadka
NXP Employee
NXP Employee

Hello @Naveen_V_M ,

 

I am currently discussing this with the developers to see if this is possible.

 

Regards,

Michal

0 Kudos
Reply

2,585 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

(y)

0 Kudos
Reply