HDMI resolution issue with IMX8M plus

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

HDMI resolution issue with IMX8M plus

1,231 Views
A_M01
Contributor I

Hi
We tried creating a image and issue occured in the imx8mp evk regarding the hdmi resolution
root@imx8mp-lpddr4-evk:~# xrandr -q
Screen 0: minimum 16 x 16, current 800 x 600, maximum 32767 x 32767
HDMI-A-1 connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
800x600 60.25*+
640x480 60.00
320x240 59.52
800x500 59.98
768x480 59.90
720x480 59.71
640x400 59.95
320x200 58.96
720x400 60.22
640x350 59.77


the above given xrandr output is when 800 * 600 is recieved ,


root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 6
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Similarly , we oftenly get the desired resolution of 1920 * 1080
here is the log:
root@imx8mp-lpddr4-evk:~# xrandr --verbose
Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
HDMI-A-1 connected 1920x1080+0+0 (0x5a) normal (normal left inverted right x axis y axis) 480mm x 270mm
Identifier: 0x59
Timestamp: 77284
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 0.0
Clones:
CRTC: 0
CRTCs: 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
RANDR Emulation: 1
non-desktop: 0
supported: 0, 1
1920x1080 (0x5a) 173.000MHz -HSync +VSync *current +preferred
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.16KHz
v: height 1080 start 1083 end 1088 total 1120 clock 59.96Hz
1440x1080 (0x5b) 129.000MHz -HSync +VSync
h: width 1440 start 1528 end 1680 total 1920 skew 0 clock 67.19KHz
v: height 1080 start 1083 end 1087 total 1120 clock 59.99Hz
1400x1050 (0x5c) 121.750MHz -HSync +VSync
h: width 1400 start 1488 end 1632 total 1864 skew 0 clock 65.32KHz
v: height 1050 start 1053 end 1057 total 1089 clock 59.98Hz
1280x1024 (0x5d) 109.000MHz -HSync +VSync
h: width 1280 start 1368 end 1496 total 1712 skew 0 clock 63.67KHz
v: height 1024 start 1027 end 1034 total 1063 clock 59.89Hz
1280x960 (0x5e) 101.250MHz -HSync +VSync
h: width 1280 start 1360 end 1488 total 1696 skew 0 clock 59.70KHz
v: height 960 start 963 end 967 total 996 clock 59.94Hz
1152x864 (0x5f) 81.750MHz -HSync +VSync
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.78KHz
v: height 864 start 867 end 871 total 897 clock 59.96Hz
1024x768 (0x60) 63.500MHz -HSync +VSync
h: width 1024 start 1072 end 1176 total 1328 skew 0 clock 47.82KHz
v: height 768 start 771 end 775 total 798 clock 59.92Hz
800x600 (0x61) 38.250MHz -HSync +VSync
h: width 800 start 832 end 912 total 1024 skew 0 clock 37.35KHz
v: height 600 start 603 end 607 total 624 clock 59.86Hz
640x480 (0x62) 23.750MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 29.69KHz
v: height 480 start 483 end 487 total 500 clock 59.38Hz
320x240 (0x24) 6.000MHz -HSync +VSync
h: width 320 start 336 end 360 total 400 skew 0 clock 15.00KHz
v: height 240 start 243 end 247 total 252 clock 59.52Hz
1680x1050 (0x63) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1440x900 (0x64) 106.500MHz -HSync +VSync
h: width 1440 start 1528 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
1280x800 (0x65) 83.500MHz -HSync +VSync
h: width 1280 start 1352 end 1480 total 1680 skew 0 clock 49.70KHz
v: height 800 start 803 end 809 total 831 clock 59.81Hz
1152x720 (0x66) 66.750MHz -HSync +VSync
h: width 1152 start 1208 end 1320 total 1488 skew 0 clock 44.86KHz
v: height 720 start 723 end 729 total 748 clock 59.97Hz
960x600 (0x67) 45.250MHz -HSync +VSync
h: width 960 start 992 end 1088 total 1216 skew 0 clock 37.21KHz
v: height 600 start 603 end 609 total 624 clock 59.63Hz
928x580 (0x68) 42.750MHz -HSync +VSync
h: width 928 start 968 end 1056 total 1184 skew 0 clock 36.11KHz
v: height 580 start 583 end 589 total 603 clock 59.88Hz
800x500 (0x69) 30.750MHz -HSync +VSync
h: width 800 start 824 end 896 total 992 skew 0 clock 31.00KHz
v: height 500 start 503 end 509 total 521 clock 59.50Hz
768x480 (0x26) 28.750MHz -HSync +VSync
h: width 768 start 792 end 864 total 960 skew 0 clock 29.95KHz
v: height 480 start 483 end 489 total 500 clock 59.90Hz
720x480 (0x27) 26.750MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 29.85KHz
v: height 480 start 483 end 493 total 500 clock 59.71Hz
640x400 (0x28) 20.000MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 25.00KHz
v: height 400 start 403 end 409 total 417 clock 59.95Hz
320x200 (0x29) 5.000MHz -HSync +VSync
h: width 320 start 336 end 360 total 400 skew 0 clock 12.50KHz
v: height 200 start 203 end 209 total 212 clock 58.96Hz
1600x900 (0x6a) 118.250MHz -HSync +VSync
h: width 1600 start 1696 end 1856 total 2112 skew 0 clock 55.99KHz
v: height 900 start 903 end 908 total 934 clock 59.95Hz
1368x768 (0x6b) 85.250MHz -HSync +VSync
h: width 1368 start 1440 end 1576 total 1784 skew 0 clock 47.79KHz
v: height 768 start 771 end 781 total 798 clock 59.88Hz
1280x720 (0x6c) 74.500MHz -HSync +VSync
h: width 1280 start 1344 end 1472 total 1664 skew 0 clock 44.77KHz
v: height 720 start 723 end 728 total 748 clock 59.86Hz
1024x576 (0x6d) 46.500MHz -HSync +VSync
h: width 1024 start 1064 end 1160 total 1296 skew 0 clock 35.88KHz
v: height 576 start 579 end 584 total 599 clock 59.90Hz
864x486 (0x6e) 32.500MHz -HSync +VSync
h: width 864 start 888 end 968 total 1072 skew 0 clock 30.32KHz
v: height 486 start 489 end 494 total 506 clock 59.92Hz
720x400 (0x6f) 22.250MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 24.83KHz
v: height 400 start 403 end 413 total 417 clock 59.55Hz
640x350 (0x2b) 17.500MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 21.88KHz
v: height 350 start 353 end 363 total 366 clock 59.77Hz


root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 6
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- 3a -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


is it i2c read/write failure
whenever the resolution is 800*600 the data is not present in edid

could you help to solve the issue ....what should be the modification done

0 Kudos
Reply
17 Replies

804 Views
pengyong_zhang
NXP Employee
NXP Employee

HI @AM01 

i use HDMI port is J17 on EVK board. and the board is 46370 REV B2. My panel is DELL, HDMI cable is just a normal cable.

0 Kudos
Reply

892 Views
pengyong_zhang
NXP Employee
NXP Employee

HI @AM01 

I use the default BSP version. you can download on our NXP web.  And not change anything on  my site, 

https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for....

Have you use another panel and test?

B.R

0 Kudos
Reply

887 Views
AM01
Contributor I

Hi ,
 i have downloaded the image from same link ,  i tried with the 6.1.36 from this link itself.
I have tested with MI TV also , same happening in this case also

Could you share the evk revision which you have tested , and hdmi cable which you used , and the monitor specifications

we have used the evk with part number ( 568-8MPLUSLPD4-EVK)
kindly confirm whether you are using the same hardware revision

0 Kudos
Reply

933 Views
pengyong_zhang
NXP Employee
NXP Employee

HI @A_M01 

Firstly, I reproduce your test steps, I can not reproduce your issue, 3a still not disappear.

pengyong_zhang_0-1726034736439.png

And my panel still on 1920x1080 display.

pengyong_zhang_1-1726034797442.png

Do you have any other operations? Please share all of your test steps for me.

B.R

0 Kudos
Reply

912 Views
AM01
Contributor I

Hi
From my end the issue is easily recreatable on evk
Could you share which is the board you are using
I tried with 6.1.55 and 6.6 nxp image I am also sharing the logs of image we tried in nxp board
MACHINE=imx8mp-lpddr4-evk DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b build
bitbake imx-image-multimedia
 image on sd card :- imx-image-multimedia-imx8mp-lpddr4-evk-20240910051317.rootfs.wic.zst

We are using
TYPE- 8MPLUSLPD4-EVK
part Number - 568-8MPLUSLPD4-EVK
Thank you

0 Kudos
Reply

971 Views
pengyong_zhang
NXP Employee
NXP Employee

hi @A_M01 

I test your case on my site, there is no problem on my site with HDMI display 1920x1080.

please show your result with modetest command.

B.R

0 Kudos
Reply

960 Views
A_M01
Contributor I

Hi
As you said , once we get hdmi at 1920*1080 , we are able to get edid and 1920*1080
After than i run the following command
i2cdetect -y -r 6
there it showed 3a which i have mentioned in previous posts
after that again i run i2cdetect -y -r 6
at this time 3a gets disappeared
then i run the command reboot

then it booted with 800 * 600
both the modetest outputs are provided below

root@imx8mp-lpddr4-evk:~# modetest
trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...failed
trying to open device 'msm'...failed
trying to open device 'sti'...failed
trying to open device 'tegra'...failed
trying to open device 'imx-drm'...done
Encoders:
id crtc type possible crtcs possible clones
40 39 TMDS 0x00000004 0x00000001

Connectors:
id encoder status name size (mm) modes encoders
41 40 connected HDMI-A-1 480x270 17 40
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
#1 1920x1080 59.94 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
#2 1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
#3 1600x900 60.00 1600 1624 1704 1800 900 901 904 1000 108000 flags: phsync, pvsync; type: driver
#4 1280x1024 75.02 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver
#5 1280x1024 60.02 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
#6 1152x864 75.00 1152 1216 1344 1600 864 865 868 900 108000 flags: phsync, pvsync; type: driver
#7 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#8 1280x720 59.94 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
#9 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
#10 800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
#11 800x600 56.25 800 824 896 1024 600 601 603 625 36000 flags: phsync, pvsync; type: driver
#12 720x576 50.00 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
#13 720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
#14 720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
#15 640x480 60.00 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
#16 640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
props:
1 EDID:
flags: immutable blob
blobs:

value:
00ffffffffffff004c2d1a0d41424344
2e19010380301b782a5295a556549d25
0e5054bfef80714f81c0810081809500
a9c0b3000101023a801871382d40582c
4500dd0c1100001e000000fd00324b1e
5111000a202020202020000000fc0053
3232463335300a2020202020000000ff
004831414b3530303030300a20200158
020311b14690041f13120365030c0010
00011d00bc52d01e20b8285540dd0c11
00001e8c0ad090204031200c405500dd
0c110000188c0ad08a20e02d10103e96
00dd0c11000018000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000050
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:

value:
42 max bpc:
flags: range
values: 8 16
value: 16

CRTCs:
id fb pos size
33 0 (0,0) (0x0)
#0 nan 0 0 0 0 0 0 0 0 0 flags: ; type:
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
36 0 (0,0) (0x0)
#0 nan 0 0 0 0 0 0 0 0 0 flags: ; type:
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
39 48 (0,0) (1920x1080)
#0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: preferred, driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0

Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 0 0 0,0 0,0 0 0x00000001
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
32 zpos:
flags: immutable range
values: 0 0
value: 0
34 0 0 0,0 0,0 0 0x00000002
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
35 zpos:
flags: immutable range
values: 0 0
value: 0
37 39 48 0,0 0,0 0 0x00000004
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
38 zpos:
flags: immutable range
values: 0 0
value: 0

Frame buffers:
id size pitch



root@imx8mp-lpddr4-evk:~# modetest
trying to open device 'i915'...failed
trying to open device 'amdgpu'...failed
trying to open device 'radeon'...failed
trying to open device 'nouveau'...failed
trying to open device 'vmwgfx'...failed
trying to open device 'omapdrm'...failed
trying to open device 'exynos'...failed
trying to open device 'tilcdc'...failed
trying to open device 'msm'...failed
trying to open device 'sti'...failed
trying to open device 'tegra'...failed
trying to open device 'imx-drm'...done
Encoders:
id crtc type possible crtcs possible clones
40 39 TMDS 0x00000004 0x00000001

Connectors:
id encoder status name size (mm) modes encoders
41 40 connected HDMI-A-1 0x0 4 40
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
#1 800x600 56.25 800 824 896 1024 600 601 603 625 36000 flags: phsync, pvsync; type: driver
#2 848x480 60.00 848 864 976 1088 480 486 494 517 33750 flags: phsync, pvsync; type: driver
#3 640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
props:
1 EDID:
flags: immutable blob
blobs:

value:
2 DPMS:
flags: enum
enums: On=0 Standby=1 Suspend=2 Off=3
value: 0
5 link-status:
flags: enum
enums: Good=0 Bad=1
value: 0
6 non-desktop:
flags: immutable range
values: 0 1
value: 0
4 TILE:
flags: immutable blob
blobs:

value:
42 max bpc:
flags: range
values: 8 16
value: 16

CRTCs:
id fb pos size
33 0 (0,0) (0x0)
#0 nan 0 0 0 0 0 0 0 0 0 flags: ; type:
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
36 0 (0,0) (0x0)
#0 nan 0 0 0 0 0 0 0 0 0 flags: ; type:
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
39 47 (0,0) (800x600)
#0 800x600 60.32 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0

Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 0 0 0,0 0,0 0 0x00000001
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
32 zpos:
flags: immutable range
values: 0 0
value: 0
34 0 0 0,0 0,0 0 0x00000002
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
35 zpos:
flags: immutable range
values: 0 0
value: 0
37 39 47 0,0 0,0 0 0x00000004
formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
38 zpos:
flags: immutable range
values: 0 0
value: 0

Frame buffers:
id size pitch

 

0 Kudos
Reply

972 Views
A_M01
Contributor I

Additionally
I added these to &lcdif3 {
assigned-clock-rates = <276571432>, <69142858>, <400000000>, <133333333>;
status = "okay";
thres-low = <1 2>; /* (FIFO * 1 / 2) */
thres-high = 4>; /* (FIFO * 3 / 4) */
};

root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- UU -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- 72 -- -- -- -- --
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 6
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- 3a -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Again i tried to run the same commands
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- UU -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- 72 -- -- -- -- --
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 6
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

After this if i tried to reboot the device , at this time i was not able to get 1920*1080 and edid also failed
root@imx8mp-lpddr4-evk:~# cat /sys/class/drm/card1-HDMI-A-1/modes
800x600
800x600
848x480
640x480
root@imx8mp-lpddr4-evk:~# cat /sys/class/drm/card1-HDMI-A-1/edid
root@imx8mp-lpddr4-evk:~#
root@imx8mp-lpddr4-evk:~# cat /sys/class/drm/card1-HDMI-A-1/edid
root@imx8mp-lpddr4-evk:~# cat /sys/class/drm/card1-HDMI-A-1/edid
root@imx8mp-lpddr4-evk:~# cat /sys/class/drm/card1-HDMI-A-1/edid

i tried to power off the monitor and turned it on
at that time

cat /sys/class/drm/card1-HDMI-A-1/edid
ABCD.�0*R��VT�%PT��qO���������:�q8-@X,E�
�2KQ
�S22F350
�H1AK500000
X�F�e
�R� �(U@�

А @1
@U�

Њ �->��
Proot@imx8mp-lpddr4-evk:~#

 

0 Kudos
Reply

991 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @A_M01 

I mean your panel datasheet, in the different, it should have different clock parameter. Please share your dts file. You should set the right &lcdif parameter for your panel.  

&lcdif {

assigned-clock-rates = <276571432>, <69142858>, <400000000>, <133333333>;

};

 

B.R

0 Kudos
Reply

981 Views
A_M01
Contributor I
Thank you Pengyong for the reply ,
for your kind info :- we are using a samsung monitor , and also a Mi Tv ,how to get panel parameter for that ?

dts file --> we are using imx8mp-evk.dts



0 Kudos
Reply

1,059 Views
pengyong_zhang
NXP Employee
NXP Employee

HI @A_M01 

What is your panel parameter include pixel clock etc.?

B.R

0 Kudos
Reply

1,037 Views
A_M01
Contributor I
We have tried with LF_v6.1.55-2.2.1_images_IMX8MPEVK.zip and LF_v6.6.23-2.0.0_images_IMX8MPEVK.zip
didn't modify or made any changes to it.

For our custom image also nothing is modified of kernel 6.1.36 for hdmi drivers ,

Could you provide the path or the file for the panel parameters

1920x1080 (0x5a) 173.000MHz -HSync +VSync *current +preferred
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.16KHz
v: height 1080 start 1083 end 1088 total 1120 clock 59.96Hz
1440x1080 (0x5b) 129.000MHz -HSync +VSync
h: width 1440 start 1528 end 1680 total 1920 skew 0 clock 67.19KHz
v: height 1080 start 1083 end 1087 total 1120 clock 59.99Hz
1400x1050 (0x5c) 121.750MHz -HSync +VSync
h: width 1400 start 1488 end 1632 total 1864 skew 0 clock 65.32KHz
v: height 1050 start 1053 end 1057 total 1089 clock 59.98Hz
1280x1024 (0x5d) 109.000MHz -HSync +VSync
h: width 1280 start 1368 end 1496 total 1712 skew 0 clock 63.67KHz
v: height 1024 start 1027 end 1034 total 1063 clock 59.89Hz
1280x960 (0x5e) 101.250MHz -HSync +VSync
h: width 1280 start 1360 end 1488 total 1696 skew 0 clock 59.70KHz
v: height 960 start 963 end 967 total 996 clock 59.94Hz
1152x864 (0x5f) 81.750MHz -HSync +VSync
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.78KHz
v: height 864 start 867 end 871 total 897 clock 59.96Hz
1024x768 (0x60) 63.500MHz -HSync +VSync
h: width 1024 start 1072 end 1176 total 1328 skew 0 clock 47.82KHz
v: height 768 start 771 end 775 total 798 clock 59.92Hz
800x600 (0x61) 38.250MHz -HSync +VSync
h: width 800 start 832 end 912 total 1024 skew 0 clock 37.35KHz
v: height 600 start 603 end 607 total 624 clock 59.86Hz

This is when the edid is not read
root@imx8mp-lpddr4-evk:~# xrandr --verbose
Screen 0: minimum 16 x 16, current 800 x 600, maximum 32767 x 32767
HDMI-A-1 connected 800x600+0+0 (0x22) normal (normal left inverted right x axis y axis) 0mm x 0mm
Identifier: 0x21
Timestamp: 77284
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 0.0
Clones:
CRTC: 0
CRTCs: 0
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
RANDR Emulation: 1
non-desktop: 0
supported: 0, 1
800x600 (0x22) 38.500MHz -HSync +VSync *current +preferred
h: width 800 start 832 end 912 total 1024 skew 0 clock 37.60KHz
v: height 600 start 603 end 607 total 624 clock 60.25Hz
640x480 (0x23) 24.000MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 30.00KHz
v: height 480 start 483 end 487 total 500 clock 60.00Hz
320x240 (0x24) 6.000MHz -HSync +VSync
h: width 320 start 336 end 360 total 400 skew 0 clock 15.00KHz
v: height 240 start 243 end 247 total 252 clock 59.52Hz
800x500 (0x25) 31.000MHz -HSync +VSync
h: width 800 start 824 end 896 total 992 skew 0 clock 31.25KHz
v: height 500 start 503 end 509 total 521 clock 59.98Hz
768x480 (0x26) 28.750MHz -HSync +VSync
h: width 768 start 792 end 864 total 960 skew 0 clock 29.95KHz
v: height 480 start 483 end 489 total 500 clock 59.90Hz
720x480 (0x27) 26.750MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 29.85KHz
v: height 480 start 483 end 493 total 500 clock 59.71Hz
640x400 (0x28) 20.000MHz -HSync +VSync
...

Kindly support as this is been critical.
0 Kudos
Reply

1,172 Views
pengyong_zhang
NXP Employee
NXP Employee

hi @A_M01 

Sorry for reply late. What is your Image? and what is your BSP version. For i.MX8MP EVK board, you can download the image follow the below link:

https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for...

B.R

0 Kudos
Reply

1,135 Views
A_M01
Contributor I
Additionally Im addidng some more information
In the imx8mplus -BB board i have flashed 2 firmwares to emmc using

for LF_v6.1.55-2.2.1_images_IMX8MPEVK.zip
sudo uuu -b emmc_all imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk imx-image-multimedia-imx8mpevk.wic

and LF_v6.6.23-2.0.0_images_IMX8MPEVK.zip
sudo uuu -b emmc_all imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk imx-image-full-imx8mpevk.wic

In both these cases most of the time its booting with 800*600 , at this time edid is not read which is checked by
cat /sys/class/drm/card1-HDMI../edid

similarly in i2cdetect -y -r 6 , 3a is not present

But if it boots with 1080*1020 edid is readd and i2cdetect -y -r 6 shows 3a and when i run the same command after 2..3 seconds the 3a gets down , then if i try rebooting the resolution will be 800*600 and edid is not there

Similarly , for our custom image build via yocto (bitbake imx-image-multimedia) i tried putting some kernel prints



[ 138.723399] ---------- dw_hdmi_detect, 2467
[ 138.728128] ---------- dw_hdmi_phy_read_hpd, 1707
[ 138.762308] ---------- dw_hdmi_detect, 2467
[ 138.767340] ---------- dw_hdmi_phy_read_hpd, 1707
[ 138.772594] ---------- dw_hdmi_connector_get_modes, 2526
[ 138.778498] ---------- dw_hdmi_get_edid, 2486
[ 139.203492] ---failed to get edid
[ 139.214429] ---------- dw_hdmi_bridge_atomic_enable, 2989

When i get 1080 resolution
[ 158.143806] ---------- dw_hdmi_detect, 2467
[ 158.148565] ---------- dw_hdmi_phy_read_hpd, 1707
[ 158.153823] ---------- dw_hdmi_connector_get_modes, 2526
[ 158.160709] ---------- dw_hdmi_get_edid, 2486
[ 158.383233] ----got edid dw_hdmi_get_edid,2500
[ 158.407213] ---------- dw_hdmi_bridge_atomic_enable, 2989

Please help me with this edid issue as this is critical now, when the edid is read then only the audio is played via hdmi
0 Kudos
Reply

1,159 Views
A_M01
Contributor I
Hi pengyong_zhang ,

We have tested the NXP image LF_v6.6.23-2.0.0_images_IMX8MPEVK in the evk , similarly we also tried with our custom image with default hdmi driver driver with version 6.1.36+gitAUTOINC+04b05c5527-r0 with our custom image in the evk .In both images when it boots with 800*600 it doesn't read edid . Also audio cant be played in hdmi in this scenario.

root@imx8mp-lpddr4-evk:~# i2cdetect -y -r 6

0 1 2 3 4 5 6 7 8 9 a b c d e f

00: -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: 30 -- -- -- -- -- -- -- -- -- 3a -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --

This is when we get edid / we get the 1080p resolution , but when i run the same command i2cdetect -y -r 6 the address 3a is not present after that if i try to reboot , it doesn't read edid and will be booted with 800 * 600 resolution .

root@imx8mp-lpddr4-evk:~# export DISPLAY=:0

root@imx8mp-lpddr4-evk:~# xrandr --verbose

Screen 0: minimum 16 x 16, current 800 x 600, maximum 32767 x 32767

HDMI-A-1 connected 800x600+0+0 (0x22) normal (normal left inverted right x axis y axis) 0mm x 0mm

Identifier: 0x21

Timestamp: 77284

Subpixel: unknown

Gamma: 1.0:1.0:1.0

Brightness: 0.0

Clones:

CRTC: 0

CRTCs: 0

Transform: 1.000000 0.000000 0.000000

0.000000 1.000000 0.000000

0.000000 0.000000 1.000000

filter:

RANDR Emulation: 1

non-desktop: 0

supported: 0, 1

800x600 (0x22) 38.500MHz -HSync +VSync *current +preferred

h: width 800 start 832 end 912 total 1024 skew 0 clock 37.60KHz

v: height 600 start 603 end 607 total 624 clock 60.25Hz

640x480 (0x23) 24.000MHz -HSync +VSync

h: width 640 start 664 end 720 total 800 skew 0 clock 30.00KHz

v: height 480 start 483 end 487 total 500 clock 60.00Hz

320x240 (0x24) 6.000MHz -HSync +VSync

h: width 320 start 336 end 360 total 400 skew 0 clock 15.00KHz

v: height 240 start 243 end 247 total 252 clock 59.52Hz

800x500 (0x25) 31.000MHz -HSync +VSync

h: width 800 start 824 end 896 total 992 skew 0 clock 31.25KHz

v: height 500 start 503 end 509 total 521 clock 59.98Hz

768x480 (0x26) 28.750MHz -HSync +VSync

h: width 768 start 792 end 864 total 960 skew 0 clock 29.95KHz

v: height 480 start 483 end 489 total 500 clock 59.90Hz

720x480 (0x27) 26.750MHz -HSync +VSync

h: width 720 start 744 end 808 total 896 skew 0 clock 29.85KHz

v: height 480 start 483 end 493 total 500 clock 59.71Hz

640x400 (0x28) 20.000MHz -HSync +VSync

h: width 640 start 664 end 720 total 800 skew 0 clock 25.00KHz

v: height 400 start 403 end 409 total 417 clock 59.95Hz

320x200 (0x29) 5.000MHz -HSync +VSync

h: width 320 start 336 end 360 total 400 skew 0 clock 12.50KHz

v: height 200 start 203 end 209 total 212 clock 58.96Hz

720x400 (0x2a) 22.500MHz -HSync +VSync

h: width 720 start 744 end 808 total 896 skew 0 clock 25.11KHz

v: height 400 start 403 end 413 total 417 clock 60.22Hz

640x350 (0x2b) 17.500MHz -HSync +VSync

h: width 640 start 664 end 720 total 800 skew 0 clock 21.88KHz

v: height 350 start 353 end 363 total 366 clock 59.77Hz

This are the video modes available .
Could you help me with the patches for 6.1.36+gitAUTOINC+04b05c5527-r0 to solve this issue?

Thanks in advance.
0 Kudos
Reply

1,207 Views
A_M01
Contributor I

Awaiting for your valuable response

0 Kudos
Reply

1,194 Views
A_M01
Contributor I

Iam not able to read edid
randomly its reading
because of this edid , iam not able to play audio via hdmi

 

0 Kudos
Reply