CSI2 Bridge Driver for IMX8MM on Linux Kernel V6.6

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

CSI2 Bridge Driver for IMX8MM on Linux Kernel V6.6

420 Views
alexval1323
Contributor I

I am trying to implement a (any) CSI2 driver on the IMX8M Mini from Compulab and have been having issues getting the Media Pipeline setup correctly. Looking over the imx8mm.dtsi i see the bridge is supported by the following drivers.

compatible = "fsl,imx8mm-csi", "fsl,imx8mq-csi", "fsl,imx6s-csi";

When i search through the kernel sources for "fsl,imx8mm-csi" nothing returns. Seems as if this driver doesn't exist in the 6.6 kernel as the grep command only comes up with a few dtsi files.

When I boot, i see that the imx7-csi driver (compatible="fsl,imx8mq") tries to probe the bridge but fails due to "mclk" not being defined although by default it is in the imx8mm.dtsi. 

Kernel continues to the imx6s-csi driver where it claims the bridge is initializing but then never returns anything seeming as if it hung somewhere.

 

At this point I have no /dev/media0 node and when my camera driver binds correctly, I am still unable to load get any frames to user space. What is the correct setup for this that will allow the entire bridge to probe correctly?

0 Kudos
Reply
3 Replies

344 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @alexval1323 

Please share your dts file. and the boot log file. 

B.R

0 Kudos
Reply

388 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @alexval1323 

what is your camera? please share me your boot full log file.

B.R

375 Views
alexval1323
Contributor I

I am trying to set up two different cameras and have the same issue with both.

A) I am using an SiOnyx XQE-1350, it is as SCC complaint device so I have been working with the scc-generic drivers (Written for kernel v5.10, and I have ported to v6.6) - still need to finish implementation on this.

B) Using the Allied Vision 1500 C501-c camera with their supplied Alvium Drivers (written for kernel v5.15 and i have ported to v6.6)

Because the SiOnyx drivers are still being worked on I have attached the boot log with the DT using the Alvium Drivers. Note the camera is not plugged at boot time thus the driver does not load but I want the media pipeline initialize correctly.

Thank you.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2147112%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECSI2%20Bridge%20Driver%20for%20IMX8MM%20on%20Linux%20Kernel%20V6.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147112%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20implement%20a%20(any)%26nbsp%3B%3CSPAN%3ECSI2%20driver%20on%20the%20IMX8M%20Mini%20from%20Compulab%20and%20have%20been%20having%20issues%20getting%20the%20Media%20Pipeline%20setup%20correctly.%20Looking%20over%20the%20imx8mm.dtsi%20i%20see%20the%20bridge%20is%20supported%20by%20the%20following%20drivers.%3C%2FSPAN%3E%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3E%3CSPAN%3Ecompatible%20%3D%20%22fsl%2Cimx8mm-csi%22%2C%20%22fsl%2Cimx8mq-csi%22%2C%20%22fsl%2Cimx6s-csi%22%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3EWhen%20i%20search%20through%20the%20kernel%20sources%20for%20%22fsl%2Cimx8mm-csi%22%20nothing%20returns.%20Seems%20as%20if%20this%20driver%20doesn't%20exist%20in%20the%206.6%20kernel%20as%20the%20grep%20command%20only%20comes%20up%20with%20a%20few%20dtsi%20files.%3C%2FP%3E%3CP%3EWhen%20I%20boot%2C%20i%20see%20that%20the%20imx7-csi%20driver%20(compatible%3D%22fsl%2Cimx8mq%22)%20tries%20to%20probe%20the%20bridge%20but%20fails%20due%20to%20%22mclk%22%20not%20being%20defined%20although%20by%20default%20it%20is%20in%20the%20imx8mm.dtsi.%26nbsp%3B%3C%2FP%3E%3CP%3EKernel%20continues%20to%20the%20imx6s-csi%20driver%20where%20it%20claims%20the%20bridge%20is%20initializing%20but%20then%20never%20returns%20anything%20seeming%20as%20if%20it%20hung%20somewhere.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAt%20this%20point%20I%20have%20no%20%2Fdev%2Fmedia0%20node%20and%20when%20my%20camera%20driver%20binds%20correctly%2C%20I%20am%20still%20unable%20to%20load%20get%20any%20frames%20to%20user%20space.%20What%20is%20the%20correct%20setup%20for%20this%20that%20will%20allow%20the%20entire%20bridge%20to%20probe%20correctly%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152111%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CSI2%20Bridge%20Driver%20for%20IMX8MM%20on%20Linux%20Kernel%20V6.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152111%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253111%22%20target%3D%22_blank%22%3E%40alexval1323%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20share%20your%20dts%20file.%20and%20the%20boot%20log%20file.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2150228%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CSI2%20Bridge%20Driver%20for%20IMX8MM%20on%20Linux%20Kernel%20V6.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150228%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20set%20up%20two%20different%20cameras%20and%20have%20the%20same%20issue%20with%20both.%3C%2FP%3E%3CP%3EA)%20I%20am%20using%20an%20SiOnyx%26nbsp%3BXQE-1350%2C%20it%20is%20as%20SCC%20complaint%20device%20so%20I%20have%20been%20working%20with%20the%20scc-generic%20drivers%20(Written%20for%20kernel%20v5.10%2C%20and%20I%20have%20ported%20to%20v6.6)%20-%20still%20need%20to%20finish%20implementation%20on%20this.%3CBR%20%2F%3E%3CBR%20%2F%3EB)%20Using%20the%20Allied%20Vision%201500%20C501-c%20camera%20with%20their%20supplied%20Alvium%20Drivers%20(written%20for%20kernel%20v5.15%20and%20i%20have%20ported%20to%20v6.6)%3C%2FP%3E%3CP%3EBecause%20the%20SiOnyx%20drivers%20are%20still%20being%20worked%20on%20I%20have%20attached%20the%20boot%20log%20with%20the%20DT%20using%20the%20Alvium%20Drivers.%20Note%20the%20camera%20is%20not%20plugged%20at%20boot%20time%20thus%20the%20driver%20does%20not%20load%20but%20I%20want%20the%20media%20pipeline%20initialize%20correctly.%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2148905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CSI2%20Bridge%20Driver%20for%20IMX8MM%20on%20Linux%20Kernel%20V6.6%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253111%22%20target%3D%22_blank%22%3E%40alexval1323%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhat%20is%20your%20camera%3F%20please%20share%20me%20your%20boot%20full%20log%20file.%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E