i want to use csi2-mipi interface in imx8mplus lpddr4 evk

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

i want to use csi2-mipi interface in imx8mplus lpddr4 evk

Jump to solution
2,980 Views
srinivas_123
Contributor III

i am using imx8mplus lpddr4 evk, i build the IMXLXYOCTOUG v.LF6.1.55_2.2.0  bsp version.

how to use the CSI2-MIPI interface.it is not detecting. what are the configurations I have to do?

I am using the ov5640 camera, when I connect this camera to the CSI1-MIPI interface, the camera works.

suppose I connect to the CSI2-MIPI  interface, it is not working. what is the reason? if anyone knows please help me out.

Thanks &Regards

Srinivas

0 Kudos
Reply
1 Solution
2,899 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @srinivas_123!

Yes, that is correct.
 

You can check the device trees saved on the memory using the next commands:

 

"fatls mmc 1:1" for SD card boot

 

"fatls mmc 2:1" for MMC boot

 

Best Regards!

Chavira

                       

View solution in original post

7 Replies
2,956 Views
KimberlyCarvajal
Contributor I

Hi Srinivas,

You could first check the CSI2-MIPI node in the device-tree. Check if there is a node for the ov5640 camera for the CSI2-MIPI and the state is set to "okay".

If the ov5640 camera does not have a node in the CSI2-MIPI you can try create it based on the node for the CSI1-MIPI.

 

Regards,

Kimberly Carvajal

Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

0 Kudos
Reply
2,917 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @srinivas_123!

Thank you for contacting NXP Support!

 

For iMX8MP you should set the device tree called "imx8mp-evk-basler-ov5640.dtb" or "imx8mp-evk-os08a20-ov5640.dtb"

https://www.nxp.com/docs/en/release-note/IMX_LINUX_RELEASE_NOTES.pdf

Best Regards!

Chavira

0 Kudos
Reply
2,903 Views
srinivas_123
Contributor III

set the dtb file means , change  variable fdtfile with file name  you given   fdtfile=imx8mp-evk.dtb .is it correct ?. i attached the uboot file .

thanks and Regards

srinivas

0 Kudos
Reply
2,900 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @srinivas_123!

Yes, that is correct.
 

You can check the device trees saved on the memory using the next commands:

 

"fatls mmc 1:1" for SD card boot

 

"fatls mmc 2:1" for MMC boot

 

Best Regards!

Chavira

                       

2,856 Views
srinivas_123
Contributor III
my fdtfile =imx8mp-evk.dtb
after running "fatls mmc 1:1"
it gives lots of dtb files . can you explain whether "imx8mp-evk-basler-ov5640.dtb" or "imx8mp-evk-os08a20-ov5640.dtb" files are read or not . is it required to change fdtfile=imx8mp-evk-basler-ov5640.dtb in uboot file .
0 Kudos
Reply
2,855 Views
srinivas_123
Contributor III
my fdtfile =imx8mp-evk.dtb
after running "fatls mmc 1:1"
it gives lots of dtb files . can you explain whether "imx8mp-evk-basler-ov5640.dtb" or "imx8mp-evk-os08a20-ov5640.dtb" files are read or not . is it required to change fdtfile=imx8mp-evk-basler-ov5640.dtb in uboot file
Hit any key to stop autoboot: 0
u-boot=>
u-boot=> fatls mmc 1:1
32856576 Image
58151 imx8mp-ab2.dtb
87685 imx8mp-evk-8mic-swpdm.dtb
87100 imx8mp-evk-basler-ov2775.dtb
86771 imx8mp-evk-basler-ov5640.dtb
85910 imx8mp-evk-basler.dtb
86823 imx8mp-evk-dpdk.dtb
66170 imx8mp-evk-dsp.dtb
86745 imx8mp-evk-dual-basler.dtb
86682 imx8mp-evk-dual-os08a20.dtb
86858 imx8mp-evk-dual-ov2775.dtb
86748 imx8mp-evk-ecspi-slave.dtb
86911 imx8mp-evk-flexcan2.dtb
88590 imx8mp-evk-hifiberry-dacplus.dtb
3059 imx8mp-evk-inmate.dtb
88089 imx8mp-evk-iqaudio-dacplus.dtb
88089 imx8mp-evk-iqaudio-dacpro.dtb
86963 imx8mp-evk-it6263-lvds-dual-channel.dtb
86786 imx8mp-evk-jdi-wuxga-lvds-panel.dtb
86991 imx8mp-evk-ndm.dtb
87119 imx8mp-evk-os08a20-ov5640.dtb
85973 imx8mp-evk-os08a20.dtb
87265 imx8mp-evk-ov2775-ov5640.dtb
87380 imx8mp-evk-ov2775.dtb
86911 imx8mp-evk-pcie-ep.dtb
89118 imx8mp-evk-revA3-8mic-revE.dtb
87446 imx8mp-evk-rm67191.dtb
87419 imx8mp-evk-rm67199.dtb
87895 imx8mp-evk-root.dtb
66874 imx8mp-evk-rpmsg-lpv.dtb
66898 imx8mp-evk-rpmsg.dtb
66247 imx8mp-evk-sof-pdm.dtb
66580 imx8mp-evk-sof-wm8960.dtb
86163 imx8mp-evk-spdif-lb.dtb
88743 imx8mp-evk-usdhc1-m2.dtb
86805 imx8mp-evk.dtb
8528 imx8mp_m7_TCM_hello_world.bin
139272 imx8mp_m7_TCM_low_power_wakeword.bin
20704 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin
20096 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin
56556 imx8mp_m7_TCM_sai_low_power_audio.bin
574328 tee.bin
System Volume Information/
56 .dropbox.device

43 file(s), 1 dir(s)
0 Kudos
Reply
2,850 Views
srinivas_123
Contributor III
i am connecting 0v5640 camera sensor to CSI2-MIPI interface
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1868229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1868229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ei%20am%20using%20imx8mplus%20lpddr4%20evk%2C%20i%20build%20the%26nbsp%3BIMXLXYOCTOUG%20v.LF6.1.55_2.2.0%26nbsp%3B%20bsp%20version.%3C%2FP%3E%3CP%3Ehow%20to%20use%20the%20CSI2-MIPI%20interface.it%20is%20not%20detecting.%20what%20are%20the%20configurations%20I%20have%20to%20do%3F%3C%2FP%3E%3CP%3EI%20am%20using%20the%20ov5640%20camera%2C%20when%20I%20connect%20this%20camera%20to%20the%20CSI1-MIPI%20interface%2C%20the%20camera%20works.%3C%2FP%3E%3CP%3Esuppose%20I%20connect%20to%20the%20CSI2-MIPI%26nbsp%3B%20interface%2C%20it%20is%20not%20working.%20what%20is%20the%20reason%3F%20if%20anyone%20knows%20please%20help%20me%20out.%3C%2FP%3E%3CP%3EThanks%20%26amp%3BRegards%3C%2FP%3E%3CP%3ESrinivas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1869366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1869366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei%20am%20connecting%200v5640%20camera%20sensor%20to%20CSI2-MIPI%20interface%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1869340%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1869340%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Emy%20fdtfile%20%3Dimx8mp-evk.dtb%3CBR%20%2F%3Eafter%20running%20%22fatls%20mmc%201%3A1%22%3CBR%20%2F%3Eit%20gives%20lots%20of%20dtb%20files%20.%20can%20you%20explain%20whether%20%22imx8mp-evk-basler-ov5640.dtb%22%20or%20%22imx8mp-evk-os08a20-ov5640.dtb%22%20files%20are%20read%20or%20not%20.%20is%20it%20required%20to%20change%20fdtfile%3Dimx8mp-evk-basler-ov5640.dtb%20in%20uboot%20file%3CBR%20%2F%3EHit%20any%20key%20to%20stop%20autoboot%3A%200%3CBR%20%2F%3Eu-boot%3D%26gt%3B%3CBR%20%2F%3Eu-boot%3D%26gt%3B%20fatls%20mmc%201%3A1%3CBR%20%2F%3E32856576%20Image%3CBR%20%2F%3E58151%20imx8mp-ab2.dtb%3CBR%20%2F%3E87685%20imx8mp-evk-8mic-swpdm.dtb%3CBR%20%2F%3E87100%20imx8mp-evk-basler-ov2775.dtb%3CBR%20%2F%3E86771%20imx8mp-evk-basler-ov5640.dtb%3CBR%20%2F%3E85910%20imx8mp-evk-basler.dtb%3CBR%20%2F%3E86823%20imx8mp-evk-dpdk.dtb%3CBR%20%2F%3E66170%20imx8mp-evk-dsp.dtb%3CBR%20%2F%3E86745%20imx8mp-evk-dual-basler.dtb%3CBR%20%2F%3E86682%20imx8mp-evk-dual-os08a20.dtb%3CBR%20%2F%3E86858%20imx8mp-evk-dual-ov2775.dtb%3CBR%20%2F%3E86748%20imx8mp-evk-ecspi-slave.dtb%3CBR%20%2F%3E86911%20imx8mp-evk-flexcan2.dtb%3CBR%20%2F%3E88590%20imx8mp-evk-hifiberry-dacplus.dtb%3CBR%20%2F%3E3059%20imx8mp-evk-inmate.dtb%3CBR%20%2F%3E88089%20imx8mp-evk-iqaudio-dacplus.dtb%3CBR%20%2F%3E88089%20imx8mp-evk-iqaudio-dacpro.dtb%3CBR%20%2F%3E86963%20imx8mp-evk-it6263-lvds-dual-channel.dtb%3CBR%20%2F%3E86786%20imx8mp-evk-jdi-wuxga-lvds-panel.dtb%3CBR%20%2F%3E86991%20imx8mp-evk-ndm.dtb%3CBR%20%2F%3E87119%20imx8mp-evk-os08a20-ov5640.dtb%3CBR%20%2F%3E85973%20imx8mp-evk-os08a20.dtb%3CBR%20%2F%3E87265%20imx8mp-evk-ov2775-ov5640.dtb%3CBR%20%2F%3E87380%20imx8mp-evk-ov2775.dtb%3CBR%20%2F%3E86911%20imx8mp-evk-pcie-ep.dtb%3CBR%20%2F%3E89118%20imx8mp-evk-revA3-8mic-revE.dtb%3CBR%20%2F%3E87446%20imx8mp-evk-rm67191.dtb%3CBR%20%2F%3E87419%20imx8mp-evk-rm67199.dtb%3CBR%20%2F%3E87895%20imx8mp-evk-root.dtb%3CBR%20%2F%3E66874%20imx8mp-evk-rpmsg-lpv.dtb%3CBR%20%2F%3E66898%20imx8mp-evk-rpmsg.dtb%3CBR%20%2F%3E66247%20imx8mp-evk-sof-pdm.dtb%3CBR%20%2F%3E66580%20imx8mp-evk-sof-wm8960.dtb%3CBR%20%2F%3E86163%20imx8mp-evk-spdif-lb.dtb%3CBR%20%2F%3E88743%20imx8mp-evk-usdhc1-m2.dtb%3CBR%20%2F%3E86805%20imx8mp-evk.dtb%3CBR%20%2F%3E8528%20imx8mp_m7_TCM_hello_world.bin%3CBR%20%2F%3E139272%20imx8mp_m7_TCM_low_power_wakeword.bin%3CBR%20%2F%3E20704%20imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin%3CBR%20%2F%3E20096%20imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin%3CBR%20%2F%3E56556%20imx8mp_m7_TCM_sai_low_power_audio.bin%3CBR%20%2F%3E574328%20tee.bin%3CBR%20%2F%3ESystem%20Volume%20Information%2F%3CBR%20%2F%3E56%20.dropbox.device%3CBR%20%2F%3E%3CBR%20%2F%3E43%20file(s)%2C%201%20dir(s)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1869337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1869337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Emy%20fdtfile%20%3Dimx8mp-evk.dtb%3CBR%20%2F%3Eafter%20running%20%22fatls%20mmc%201%3A1%22%3CBR%20%2F%3Eit%20gives%20lots%20of%20dtb%20files%20.%20can%20you%20explain%20whether%20%22imx8mp-evk-basler-ov5640.dtb%22%20or%20%22imx8mp-evk-os08a20-ov5640.dtb%22%20files%20are%20read%20or%20not%20.%20is%20it%20required%20to%20change%20fdtfile%3Dimx8mp-evk-basler-ov5640.dtb%20in%20uboot%20file%20.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1869083%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1869083%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F231093%22%20target%3D%22_blank%22%3E%40srinivas_123%3C%2FA%3E!%3C%2FP%3E%0A%3CP%3EYes%2C%20that%20is%20correct.%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20check%20the%20device%20trees%20saved%20on%20the%20memory%20using%20the%20next%20commands%3A%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%22fatls%20mmc%201%3A1%22%20for%20SD%20card%20boot%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%22fatls%20mmc%202%3A1%22%20for%20MMC%20boot%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards!%3C%2FP%3E%0A%3CP%3EChavira%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1869076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1869076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eset%20the%20dtb%20file%20means%20%2C%20change%26nbsp%3B%20variable%20%3CSTRONG%3Efdtfile%3C%2FSTRONG%3E%20with%20file%20name%26nbsp%3B%20you%20given%26nbsp%3B%20%26nbsp%3B%3CSTRONG%3Efdtfile%3Dimx8mp-evk.dtb%20.%3C%2FSTRONG%3Eis%20it%20correct%20%3F.%20i%20attached%20the%20uboot%20file%20.%3C%2FP%3E%3CP%3Ethanks%20and%20Regards%3C%2FP%3E%3CP%3Esrinivas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1868949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1868949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F231093%22%20target%3D%22_blank%22%3E%40srinivas_123%3C%2FA%3E!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThank%20you%20for%20contacting%20NXP%20Support!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EFor%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EiMX8MP%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Byou%20should%20set%20the%20device%20tree%20called%20%22imx8mp-evk-basler-ov5640.dtb%22%20or%20%22imx8mp-evk-os08a20-ov5640.dtb%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Frelease-note%2FIMX_LINUX_RELEASE_NOTES.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Frelease-note%2FIMX_LINUX_RELEASE_NOTES.pdf%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EBest%20Regards!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EChavira%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1868325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i%20want%20to%20use%20csi2-mipi%20interface%20in%20imx8mplus%20lpddr4%20evk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1868325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CSPAN%3ESrinivas%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EYou%20could%20first%20check%20the%26nbsp%3B%3CSPAN%3ECSI2-MIPI%26nbsp%3Bnode%20in%20the%20device-tree.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ECheck%20if%20there%20is%20a%20node%20for%20the%26nbsp%3Bov5640%20camera%20for%20the%20CSI2-MIPI%20and%20the%20state%20is%20set%20to%26nbsp%3B%22okay%22.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20the%20ov5640%20camera%20does%20not%20have%20a%20node%20in%20the%26nbsp%3BCSI2-MIPI%20you%20can%20try%20create%20it%20based%20on%20the%20node%20for%20the%26nbsp%3BCSI1-MIPI.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EKimberly%20Carvajal%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EEmbedded%20SW%20Engineer%20at%20RidgeRun%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EContact%20us%3A%20support%40ridgerun.com%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EDevelopers%20wiki%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.ridgerun.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.ridgerun.com%3C%2FA%3E%3CBR%20%2F%3E%3CSPAN%3EWebsite%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fwww.ridgerun.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ewww.ridgerun.com%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E