imx8mp using dual out, HDMI and LVDS

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

imx8mp using dual out, HDMI and LVDS

835 Views
cthilo
Contributor II

Hi

We need to use HDMI out and two LVDS out in parallel.

HDMI via the normal hdmi dts instance and LVDS via two adv7393 connected to ldb lvds channel0 and channel1.

With ldb lvds untouched, HDMI is working so far. Weston can start and use HDMI-A-1.

Then, I enable one of the adv7393 by adding the endpoints in
lvds-channel 0, port 1  and the hdmi part stops working and weston tells me, that there are no drm devices found.

How are the ldb and hdmi connected to each other, that the influence each other?

Any help is appreciated!

Kind regards
Thilo

 

0 Kudos
Reply
7 Replies

679 Views
cthilo
Contributor II

Hi Aldo

We build our own image based on yocto scarthgap. The kernel is linux-imx-tq with our own dts as we run on our own hardware (which can be the problem of course too).

meta-imx: scarthgap-6.6.52-2.2.2
meta-tq: scarthgap (latest)
meta-freescale: scarthgap (latest)

Our dts is based on the imx8mp-tqma8mpql-mba8mpxl.dts (as our hw uses the imx8mp SOM from TQ).

So, no not NXP EVK.

Could you still give me some hints?

Kind regards
Thilo

0 Kudos
Reply

604 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Sure will try to help, could you share the device tree so I can take a look at it?

Best regards/Saludos,
Aldo.

0 Kudos
Reply

510 Views
cthilo
Contributor II

Hi Aldo

here you are. Hopefully you see something.

There is a hdmi_cam_mux and a hdmi_cam_video_mux (commented out) which was a try to mux the hdmi in and the camera.

But this didn't work like this, as the imx8-media-dev.c:1041 expects the subdevs to be an i2c device but the video-mux isn't. If the rest would work, I don't know. Commenting this check out (easy test) did bring a kernel oops. So, not a good way.

Cheers
Thilo

0 Kudos
Reply

444 Views
cthilo
Contributor II

Hi Aldo

My answer was regarding another thread which I mixed up, but the Dts is correct.

Sorry for the confusion!

Cheers,
Thilo

146 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I was trying to find if the problem was a device tree issue, but couldn't find much about the bindings for the adv7393, so couldn't say for sure.

I would suggest to try without the HDMI and see if the video encoder is detected by the system.
Also, have you checked the dmesg?
Is the encoder found and the driver working correctly?

Finally regarding your initial question one could refer to the reference manual Figure 13-1. Display, Imaging, Camera I/F Diagram & Figure 13-4. MEDIAMIX Block Diagram

AldoG_0-1768945027170.png

 

AldoG_1-1768945126188.png


Best regards/Saludos,
Aldo.

 

0 Kudos
Reply

98 Views
cthilo
Contributor II

Hi Aldo

so HDMI should not be related to the lvds out channels, when I interpret that overview correctly.

Anyway, I'll try to disable hdmi related stuff and test if the lvds setup only is working.

Here is a grep of ldb, adv73 and interconnect, as theses three are related as far as I understand.

[root@vci ~]# dmesg | grep "ldb\|adv73\|interconnect"
[ 0.069206] /ldb-display-controller/lvds-channel@0: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a30000/adv7393@2a
[ 0.069265] /ldb-display-controller/lvds-channel@0: Fixed dependency cycle(s) with /soc@0/bus@32c00000/lcd-controller@32e90000
[ 0.069342] /ldb-display-controller/lvds-channel@1: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a20000/adv7393@2b
[ 0.069392] /ldb-display-controller/lvds-channel@1: Fixed dependency cycle(s) with /soc@0/bus@32c00000/lcd-controller@32e90000
[ 1.522532] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 32e90000.lcd-controller
[ 1.532750] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 32e90000.lcd-controller
[ 2.009363] imx-bus-devfreq 32700000.interconnect: failed to fetch clk: -2
[ 2.016254] imx-bus-devfreq: probe of 32700000.interconnect failed with error -2
[ 2.322034] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 0-002b
[ 2.342605] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 1-002a
[ 2.384121] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with phy-lvds
[ 2.393017] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with phy-lvds
[ 8.633579] adv7393 0-002b: chip found @ 0x56 (30a20000.i2c)
[ 8.669132] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 0-002b
[ 8.669387] adv7393 1-002a: chip found @ 0x54 (30a30000.i2c)
[ 8.698574] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with 1-002a

Can the failed probe of the interconnect be the problem?
I never touched the interconnect instance of the dtb, so I wonder how this can't work correctly?

The "Failed to create device link" errors are obvious but I can tell what caused it.

Could you tell me, what the cause can be for the "Failed to create device link" errors? 

Cheers,
Thilo

0 Kudos
Reply

803 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share the BSP version that you are using?
Also, are you using NXP EVK?

Best regards/Saludos,
Aldo.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2290864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290864%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20need%20to%20use%20HDMI%20out%20and%20two%20LVDS%20out%20in%20parallel.%3CBR%20%2F%3E%3CBR%20%2F%3EHDMI%20via%20the%20normal%20hdmi%20dts%20instance%20and%20LVDS%20via%20two%26nbsp%3Badv7393%20connected%20to%20ldb%20lvds%20channel0%20and%20channel1.%3CBR%20%2F%3E%3CBR%20%2F%3EWith%20ldb%20lvds%20untouched%2C%26nbsp%3BHDMI%20is%20working%20so%20far.%20Weston%20can%20start%20and%20use%20HDMI-A-1.%3CBR%20%2F%3E%3CBR%20%2F%3EThen%2C%20I%20enable%20one%20of%20the%20adv7393%20by%20adding%20the%20endpoints%20in%3CBR%20%2F%3Elvds-channel%200%2C%20port%201%26nbsp%3B%26nbsp%3Band%20the%20hdmi%20part%20stops%20working%20and%20weston%20tells%20me%2C%20that%20there%20are%20no%20drm%20devices%20found.%3C%2FP%3E%3CP%3EHow%20are%20the%20ldb%20and%20hdmi%20connected%20to%20each%20other%2C%20that%20the%20influence%20each%20other%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20help%20is%20appreciated!%3CBR%20%2F%3E%3CBR%20%2F%3EKind%20regards%3CBR%20%2F%3EThilo%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291129%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291129%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECould%20you%20share%20the%20BSP%20version%20that%20you%20are%20using%3F%3CBR%20%2F%3EAlso%2C%20are%20you%20using%20NXP%20EVK%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291516%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Aldo%3C%2FP%3E%3CP%3EWe%20build%20our%20own%20image%20based%20on%20yocto%20scarthgap.%20The%20kernel%20is%20linux-imx-tq%20with%20our%20own%20dts%20as%20we%20run%20on%20our%20own%20hardware%20(which%20can%20be%20the%20problem%20of%20course%20too).%3C%2FP%3E%3CP%3Emeta-imx%3A%20scarthgap-6.6.52-2.2.2%3CBR%20%2F%3Emeta-tq%3A%20scarthgap%20(latest)%3CBR%20%2F%3Emeta-freescale%3A%20scarthgap%20(latest)%3C%2FP%3E%3CP%3EOur%20dts%20is%20based%20on%20the%26nbsp%3Bimx8mp-tqma8mpql-mba8mpxl.dts%20(as%20our%20hw%20uses%20the%20imx8mp%20SOM%20from%20TQ).%3CBR%20%2F%3E%3CBR%20%2F%3ESo%2C%20no%20not%20NXP%20EVK.%3C%2FP%3E%3CP%3ECould%20you%20still%20give%20me%20some%20hints%3F%3C%2FP%3E%3CP%3EKind%20regards%3CBR%20%2F%3EThilo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292921%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292921%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3ESure%20will%20try%20to%20help%2C%20could%20you%20share%20the%20device%20tree%20so%20I%20can%20take%20a%20look%20at%20it%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2294356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Aldo%3C%2FP%3E%3CP%3Ehere%20you%20are.%20Hopefully%20you%20see%20something.%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20is%20a%26nbsp%3Bhdmi_cam_mux%20and%20a%26nbsp%3Bhdmi_cam_video_mux%20(commented%20out)%20which%20was%20a%20try%20to%20mux%20the%20hdmi%20in%20and%20the%20camera.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20this%20didn't%20work%20like%20this%2C%20as%20the%20imx8-media-dev.c%3A1041%20expects%20the%20subdevs%20to%20be%20an%20i2c%20device%20but%20the%20video-mux%20isn't.%20If%20the%20rest%20would%20work%2C%20I%20don't%20know.%20Commenting%20this%20check%20out%20(easy%20test)%20did%20bring%20a%20kernel%20oops.%20So%2C%20not%20a%20good%20way.%3CBR%20%2F%3E%3CBR%20%2F%3ECheers%3CBR%20%2F%3EThilo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Aldo%3C%2FP%3E%3CP%3EMy%20answer%20was%20regarding%20another%20thread%20which%20I%20mixed%20up%2C%20but%20the%20Dts%20is%20correct.%3C%2FP%3E%3CP%3ESorry%20for%20the%20confusion!%3C%2FP%3E%3CP%3ECheers%2C%3CBR%20%2F%3EThilo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2296890%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20using%20dual%20out%2C%20HDMI%20and%20LVDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2296890%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20was%20trying%20to%20find%20if%20the%20problem%20was%20a%20device%20tree%20issue%2C%20but%20couldn't%20find%20much%20about%20the%20bindings%20for%20the%26nbsp%3Badv7393%2C%20so%20couldn't%20say%20for%20sure.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20suggest%20to%20try%20without%20the%20HDMI%20and%20see%20if%20the%20video%20encoder%20is%20detected%20by%20the%20system.%3CBR%20%2F%3EAlso%2C%20have%20you%20checked%20the%20dmesg%3F%3CBR%20%2F%3EIs%20the%20encoder%20found%20and%20the%20driver%20working%20correctly%3F%3CBR%20%2F%3E%3CBR%20%2F%3EFinally%20regarding%20your%20initial%20question%20one%20could%20refer%20to%20the%20reference%20manual%26nbsp%3BFigure%2013-1.%20Display%2C%20Imaging%2C%20Camera%20I%2FF%20Diagram%20%26amp%3B%26nbsp%3BFigure%2013-4.%20MEDIAMIX%20Block%20Diagram%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AldoG_0-1768945027170.png%22%20style%3D%22width%3A%20679px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AldoG_0-1768945027170.png%22%20style%3D%22width%3A%20679px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373559i58DC7CE02AC6951C%2Fimage-dimensions%2F679x427%3Fv%3Dv2%22%20width%3D%22679%22%20height%3D%22427%22%20role%3D%22button%22%20title%3D%22AldoG_0-1768945027170.png%22%20alt%3D%22AldoG_0-1768945027170.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AldoG_1-1768945126188.png%22%20style%3D%22width%3A%20679px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AldoG_1-1768945126188.png%22%20style%3D%22width%3A%20679px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373561i8C58E9DB4AD632F9%2Fimage-dimensions%2F679x509%3Fv%3Dv2%22%20width%3D%22679%22%20height%3D%22509%22%20role%3D%22button%22%20title%3D%22AldoG_1-1768945126188.png%22%20alt%3D%22AldoG_1-1768945126188.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20regards%2FSaludos%2C%3CBR%20%2F%3EAldo.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E