FRDM-IMX93 Display issue

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

FRDM-IMX93 Display issue

521 Views
Jokar4
Contributor I

Hi,

Im using the FRDM-IMX93 board with yocto linux image ( https://github.com/nxp-imx-support/meta-imx-frdm ). I'm having some issues with a waveshare 4 inch 720x720 resolution display. It simply does not show anything and stays black all the time. It uses HDMI connection and I connect it to the HDMI connector "P5". I'm using imx93-11x11-frdm.dtb and for instance /sys/class/drm/card0-HDMI-A-1/modes is empty when the display is connected (I would expect mode = 720x720). I have also looked into potential missing display-timings and such but with no further success. Got any advice or hints on how to proceed here? I suspect I need to do some DTS modifications or similar but would need some help in pointing out where. For additional information I have used another bigger 15.6 inch HDMI display and it works perfectly fine and it shows 1280x720 under /sys/class/drm/card0-HDMI-A-1/modes.

Regards,
Jonathan

0 Kudos
Reply
2 Replies

489 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

In general, LCD panels have a single video mode, and that means it supports a single resolution. In the case of MIPI DSI/LVDS to HDMI bridges, at the end we are using an HDMI monitor which supports different resolutions, and it has a preferred video mode.

You need to change the resolution to 720x720 by edit Weston configuration file:

nano /etc/xdg/weston/weston.ini

Example:

[output]
name=HDMI-A-1
mode=720x720@60
#transform=rotate-90

To enable the new resolution restart Weston service:

systemctl restart weston

In case you are using LVDS to HDMI bridge, you might be seeing only one video mode. This is due to the LDB PLL limitation, as with the current dts PLL setting we are able to generate only 1 clock for the video mode.

You also need to change the PLL settings according to your display resolution in device tree:

LVDS Serializer rate = Pixel Clock x 7 / number of LVDS channels

Example:

&lcdif {
	status = "okay";
	assigned-clock-rates = <4158000000>, <1039500000>;
};

Rebuild the device tree based on the instructions from i.MX Linux User's Guide Chapter 4.5.12 How to build U-Boot and Kernel in stand-alone environment and copy the new dtb on the target board.

Best regards.

0 Kudos
Reply

460 Views
Jokar4
Contributor I

Thanks for your response. By adding proper clock rates it seems like I got one step further but still a black screen not showing anything. The new clock rate im using is:

assigned-clock-rates = <336000000>, <48000000>;

I also tested the weston config changes with no success. But with "one step further" I mean that for instance now I can see the IT6263 being picked up and used which it was not before. I have attached some logs which might be useful. Any thoughts on next step?

Regards,
Jonathan

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2326489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFRDM-IMX93%20Display%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EIm%20using%20the%20FRDM-IMX93%20board%20with%20yocto%20linux%20image%20(%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx-support%2Fmeta-imx-frdm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx-support%2Fmeta-imx-frdm%3C%2FA%3E%20).%20I'm%20having%20some%20issues%20with%20a%20waveshare%204%20inch%20720x720%20resolution%20display.%20It%20simply%20does%20not%20show%20anything%20and%20stays%20black%20all%20the%20time.%20It%20uses%20HDMI%20connection%20and%20I%20connect%20it%20to%20the%20HDMI%20connector%20%22P5%22.%20I'm%20using%20imx93-11x11-frdm.dtb%20and%20for%20instance%20%2Fsys%2Fclass%2Fdrm%2Fcard0-HDMI-A-1%2Fmodes%20is%20empty%20when%20the%20display%20is%20connected%20(I%20would%20expect%20mode%20%3D%20720x720).%20I%20have%20also%20looked%20into%20potential%20missing%20display-timings%20and%20such%20but%20with%20no%20further%20success.%20Got%20any%20advice%20or%20hints%20on%20how%20to%20proceed%20here%3F%20I%20suspect%20I%20need%20to%20do%20some%20DTS%20modifications%20or%20similar%20but%20would%20need%20some%20help%20in%20pointing%20out%20where.%20For%20additional%20information%20I%20have%20used%20another%20bigger%2015.6%20inch%20HDMI%20display%20and%20it%20works%20perfectly%20fine%20and%20it%20shows%201280x720%20under%20%2Fsys%2Fclass%2Fdrm%2Fcard0-HDMI-A-1%2Fmodes.%3C%2FP%3E%3CP%3ERegards%2C%3CBR%20%2F%3EJonathan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326595%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-IMX93%20Display%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326595%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EIn%20general%2C%20LCD%20panels%20have%20a%20single%20video%20mode%2C%20and%20that%20means%20it%20supports%20a%20single%20resolution.%20In%20the%20case%20of%20MIPI%20DSI%2FLVDS%20to%20HDMI%20bridges%2C%20at%20the%20end%20we%20are%20using%20an%20HDMI%20monitor%20which%20supports%20different%20resolutions%2C%20and%20it%20has%20a%20preferred%20video%20mode.%3C%2FP%3E%0A%3CP%3EYou%20need%20to%20change%20the%20resolution%20to%26nbsp%3B720x720%20by%20edit%20Weston%20configuration%20file%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3Enano%20%2Fetc%2Fxdg%2Fweston%2Fweston.ini%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EExample%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%5Boutput%5D%0Aname%3DHDMI-A-1%0Amode%3D720x720%4060%0A%23transform%3Drotate-90%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ETo%20enable%20the%20new%20resolution%20restart%20Weston%20service%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3Esystemctl%20restart%20weston%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIn%20case%20you%20are%20using%20LVDS%20to%20HDMI%20bridge%2C%20you%20might%20be%20seeing%20only%20one%20video%20mode.%20This%20is%20due%20to%20the%20LDB%20PLL%20limitation%2C%20as%20with%20the%20current%20dts%20PLL%20setting%20we%20are%20able%20to%20generate%20only%201%20clock%20for%20the%20video%20mode.%3C%2FP%3E%0A%3CP%3EYou%20also%20need%20to%20change%20the%20PLL%20settings%20according%20to%20your%20display%20resolution%20in%20device%20tree%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ELVDS%20Serializer%20rate%20%3D%20Pixel%20Clock%20x%207%20%2F%20number%20of%20LVDS%20channels%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EExample%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%26amp%3Blcdif%20%7B%0A%09status%20%3D%20%22okay%22%3B%0A%09assigned-clock-rates%20%3D%20%26lt%3B4158000000%26gt%3B%2C%20%26lt%3B1039500000%26gt%3B%3B%0A%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ERebuild%20the%20device%20tree%20based%20on%20the%20instructions%20from%20i.MX%20Linux%20User's%20Guide%20Chapter%204.5.12%20How%20to%20build%20U-Boot%20and%20Kernel%20in%20stand-alone%20environment%20and%20copy%20the%20new%20dtb%20on%20the%20target%20board.%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20FRDM-IMX93%20Display%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20your%20response.%20By%20adding%20proper%20clock%20rates%20it%20seems%20like%20I%20got%20one%20step%20further%20but%20still%20a%20black%20screen%20not%20showing%20anything.%20The%20new%20clock%20rate%20im%20using%20is%3A%3C%2FP%3E%3CP%3Eassigned-clock-rates%20%3D%20%26lt%3B336000000%26gt%3B%2C%20%26lt%3B48000000%26gt%3B%3B%3C%2FP%3E%3CP%3EI%20also%20tested%20the%20weston%20config%20changes%20with%20no%20success.%20But%20with%20%22one%20step%20further%22%20I%20mean%20that%20for%20instance%20now%20I%20can%20see%20the%20IT6263%20being%20picked%20up%20and%20used%20which%20it%20was%20not%20before.%20I%20have%20attached%20some%20logs%20which%20might%20be%20useful.%20Any%20thoughts%20on%20next%20step%3F%3C%2FP%3E%3CP%3ERegards%2C%3CBR%20%2F%3EJonathan%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E