IMX8MP MIPI-CSI2 Problems in custom camera

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

IMX8MP MIPI-CSI2 Problems in custom camera

21,519 Views
v_parri
Contributor I

Hi, my name is Victor and I'm in a project where we're trying to send image from a custom 4-lane camera to the IMX8MP (in a imx8mp-evk board) using the MIPI-CSI2 interface but I'm stuck trying to make it work.

I want to modify the ov5640 config and drivers but I'm not sure how many things I have to change. I'm ony interested in make it work sending image, the I2C is not needed at this moment and the camera is conected to the MIPI_CSI_0.

1) Is it enough if I modify the device tree configuration? which parameters do I have to modify? This is the configuration that I'm using:

imx8mp.dtsi:

mipi_csi_0: csi@32e40000 {
compatible = "fsl,imx8mp-mipi-csi", "fsl,imx8mn-mipi-csi";
reg = <0x32e40000 0x10000>;
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
clock-frequency = <500000000>;
clocks = <&clk IMX8MP_CLK_MEDIA_CAM1_PIX>,
<&clk IMX8MP_CLK_MEDIA_AXI>,
<&clk IMX8MP_CLK_MEDIA_APB>;
clock-names = "mipi_clk", "disp_axi", "disp_apb";
assigned-clocks = <&clk IMX8MP_CLK_MEDIA_CAM1_PIX>;
assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>;
assigned-clock-rates = <500000000>;
bus-width = <4>;
csi-gpr = <&mediamix_gasket0>;
gpr = <&mediamix_blk_ctl>;
no-reset-control;
power-domains = <&mipi_phy1_pd>;
status = "disabled";
};

imx8mp-evk.dts:

&mipi_csi_0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

port@0 {
reg = <0>;
mipi_csi0_ep: endpoint {
remote-endpoint = <&ov5640_mipi_0_ep>;
data-lanes = <4>;
};
};
};

 

2) Do I have to modify the ov5640 driver too? I've located this driver: ov5640_mipi_v2.c but not sure about it

Just modifying the device tree if I try to build a pipe with gstreamer to read from video0 I'm getting this error:

gst-launch-1.0 -v v4l2src ! "video/x-bayer,format=bggr,width=640,height=480,framerate=30/1" ! bayer2rgb ! videoconvert ! autovideosink sync=false
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' is not a capture device.Additional debug info:
../../../git/sys/v4l2/v4l2_calls.c(677): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x4204000
Setting pipeline to NULL ...
Freeing pipeline ...

Also the configuration read from v412-ctl tool is:

v4l2-ctl --list-devices
mxc-isi-m2m (platform:32e00000.isi:m2m_devic):
/dev/video0

 

v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar

[0]: 'RGBP' (16-bit RGB 5-6-5)
[1]: 'RGB3' (24-bit RGB 8-8-8)
[2]: 'BGR3' (24-bit BGR 8-8-8)
[3]: 'YUYV' (YUYV 4:2:2)
[4]: 'YUV4' (32-bit A/XYUV 8-8-8-8)
[5]: 'NV12' (Y/CbCr 4:2:0)
[6]: 'YM24' (Planar YUV 4:4:4 (N-C))
[7]: 'XR24' (32-bit BGRX 8-8-8-8)
[8]: 'AR24' (32-bit BGRA 8-8-8-8)

 

Please any help will be appreciated

0 Kudos
Reply
25 Replies

16,869 Views
joanxie
NXP TechSupport
NXP TechSupport

which dts file do you use? did you try to use imx8mp-evk-basler-ov5640.dtb?

0 Kudos
Reply

2,358 Views
Matt_S
Contributor I

I just used the evk dts as a base.  Should I use the Hassler one to get the camera working?

0 Kudos
Reply

2,322 Views
joanxie
NXP TechSupport
NXP TechSupport

I just got my imx8mp board, firstly, pls tell me what bsp version you use? let me reproduce this

 

0 Kudos
Reply

1,803 Views
Matt_S
Contributor I

Did you get any where with this?   It is important to get the capture device functioning. 

0 Kudos
Reply

2,296 Views
v_parri
Contributor I

Hi, the BSP we're curently using is the 5.4.47. 

Any help will be appreciated,

Thanks

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1234225%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1234225%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20my%20name%20is%20Victor%20and%20I'm%20in%20a%20project%20where%20we're%20trying%20to%20send%20image%20from%20a%20custom%204-lane%20camera%26nbsp%3Bto%20the%20IMX8MP%20(in%20a%20imx8mp-evk%20board)%20using%20the%20MIPI-CSI2%20interface%20but%20I'm%20stuck%20trying%20to%20make%20it%20work.%3C%2FP%3E%3CP%3EI%20want%20to%20modify%20the%20ov5640%20config%20and%20drivers%26nbsp%3Bbut%20I'm%20not%20sure%20how%20many%20things%20I%20have%20to%20change.%20I'm%20ony%20interested%20in%20make%20it%20work%20sending%20image%2C%20the%20I2C%20is%20not%20needed%26nbsp%3Bat%20this%20moment%20and%20the%20camera%20is%20conected%20to%20the%20MIPI_CSI_0.%3C%2FP%3E%3CP%3E1)%20Is%20it%20enough%20if%20I%20modify%20the%20device%20tree%20configuration%3F%20which%20parameters%20do%20I%20have%20to%20modify%3F%20This%20is%20the%20configuration%20that%20I'm%20using%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3Eimx8mp.dtsi%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3Emipi_csi_0%3A%20csi%4032e40000%20%7B%3CBR%20%2F%3Ecompatible%20%3D%20%22fsl%2Cimx8mp-mipi-csi%22%2C%20%22fsl%2Cimx8mn-mipi-csi%22%3B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0x32e40000%200x10000%26gt%3B%3B%3CBR%20%2F%3Einterrupts%20%3D%20%3CGIC_SPI%2017%3D%22%22%20irq_type_level_high%3D%22%22%3E%3B%3CBR%20%2F%3Eclock-frequency%20%3D%20%26lt%3B500000000%26gt%3B%3B%3CBR%20%2F%3Eclocks%20%3D%20%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_MEDIA_CAM1_PIX%26gt%3B%2C%3CBR%20%2F%3E%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_MEDIA_AXI%26gt%3B%2C%3CBR%20%2F%3E%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_MEDIA_APB%26gt%3B%3B%3CBR%20%2F%3Eclock-names%20%3D%20%22mipi_clk%22%2C%20%22disp_axi%22%2C%20%22disp_apb%22%3B%3CBR%20%2F%3Eassigned-clocks%20%3D%20%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_MEDIA_CAM1_PIX%26gt%3B%3B%3CBR%20%2F%3Eassigned-clock-parents%20%3D%20%26lt%3B%26amp%3Bclk%20IMX8MP_SYS_PLL2_1000M%26gt%3B%3B%3CBR%20%2F%3Eassigned-clock-rates%20%3D%20%26lt%3B500000000%26gt%3B%3B%3CBR%20%2F%3Ebus-width%20%3D%20%26lt%3B4%26gt%3B%3B%3CBR%20%2F%3Ecsi-gpr%20%3D%20%26lt%3B%26amp%3Bmediamix_gasket0%26gt%3B%3B%3CBR%20%2F%3Egpr%20%3D%20%26lt%3B%26amp%3Bmediamix_blk_ctl%26gt%3B%3B%3CBR%20%2F%3Eno-reset-control%3B%3CBR%20%2F%3Epower-domains%20%3D%20%26lt%3B%26amp%3Bmipi_phy1_pd%26gt%3B%3B%3CBR%20%2F%3Estatus%20%3D%20%22disabled%22%3B%3CBR%20%2F%3E%7D%3B%3C%2FGIC_SPI%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Eimx8mp-evk.dts%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3E%26amp%3Bmipi_csi_0%20%7B%3CBR%20%2F%3E%23address-cells%20%3D%20%26lt%3B1%26gt%3B%3B%3CBR%20%2F%3E%23size-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3CBR%20%2F%3Estatus%20%3D%20%22okay%22%3B%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3Eport%400%20%7B%3CBR%20%2F%3Ereg%20%3D%20%26lt%3B0%26gt%3B%3B%3CBR%20%2F%3Emipi_csi0_ep%3A%20endpoint%20%7B%3CBR%20%2F%3Eremote-endpoint%20%3D%20%26lt%3B%26amp%3Bov5640_mipi_0_ep%26gt%3B%3B%3CBR%20%2F%3Edata-lanes%20%3D%20%26lt%3B4%26gt%3B%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%7D%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20Do%20I%20have%20to%20modify%20the%20ov5640%20driver%20too%3F%20I've%20located%20this%20driver%3A%20ov5640_mipi_v2.c%20but%20not%20sure%20about%20it%3C%2FP%3E%3CP%3EJust%20modifying%20the%20device%20tree%20if%20I%20try%20to%20build%20a%20pipe%20with%20gstreamer%20to%20read%20from%20video0%20I'm%20getting%20this%20error%3A%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3Egst-launch-1.0%20-v%20v4l2src%20!%20%22video%2Fx-bayer%2Cformat%3Dbggr%2Cwidth%3D640%2Cheight%3D480%2Cframerate%3D30%2F1%22%20!%20bayer2rgb%20!%20videoconvert%20!%20autovideosink%20sync%3Dfalse%3CBR%20%2F%3ESetting%20pipeline%20to%20PAUSED%20...%3CBR%20%2F%3EERROR%3A%20Pipeline%20doesn't%20want%20to%20pause.%3CBR%20%2F%3EERROR%3A%20from%20element%20%2FGstPipeline%3Apipeline0%2FGstV4l2Src%3Av4l2src0%3A%20Device%20'%2Fdev%2Fvideo0'%20is%20not%20a%20capture%20device.Additional%20debug%20info%3A%3CBR%20%2F%3E..%2F..%2F..%2Fgit%2Fsys%2Fv4l2%2Fv4l2_calls.c(677)%3A%20gst_v4l2_open%20()%3A%20%2FGstPipeline%3Apipeline0%2FGstV4l2Src%3Av4l2src0%3A%3CBR%20%2F%3ECapabilities%3A%200x4204000%3CBR%20%2F%3ESetting%20pipeline%20to%20NULL%20...%3CBR%20%2F%3EFreeing%20pipeline%20...%3C%2FP%3E%3CP%3EAlso%20the%20configuration%20read%20from%20v412-ctl%20tool%20is%3A%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3Ev4l2-ctl%20--list-devices%3CBR%20%2F%3Emxc-isi-m2m%20(platform%3A32e00000.isi%3Am2m_devic)%3A%3CBR%20%2F%3E%2Fdev%2Fvideo0%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3Ev4l2-ctl%20--list-formats-ext%3CBR%20%2F%3Eioctl%3A%20VIDIOC_ENUM_FMT%3CBR%20%2F%3EType%3A%20Video%20Capture%20Multiplanar%3C%2FP%3E%3CP%20class%3D%22lia-indent-padding-left-30px%22%20style%3D%22padding-left%20%3A%2030px%3B%22%20style%3D%22padding-left%20%3A%2030px%3B%22%3E%5B0%5D%3A%20'RGBP'%20(16-bit%20RGB%205-6-5)%3CBR%20%2F%3E%5B1%5D%3A%20'RGB3'%20(24-bit%20RGB%208-8-8)%3CBR%20%2F%3E%5B2%5D%3A%20'BGR3'%20(24-bit%20BGR%208-8-8)%3CBR%20%2F%3E%5B3%5D%3A%20'YUYV'%20(YUYV%204%3A2%3A2)%3CBR%20%2F%3E%5B4%5D%3A%20'YUV4'%20(32-bit%20A%2FXYUV%208-8-8-8)%3CBR%20%2F%3E%5B5%5D%3A%20'NV12'%20(Y%2FCbCr%204%3A2%3A0)%3CBR%20%2F%3E%5B6%5D%3A%20'YM24'%20(Planar%20YUV%204%3A4%3A4%20(N-C))%3CBR%20%2F%3E%5B7%5D%3A%20'XR24'%20(32-bit%20BGRX%208-8-8-8)%3CBR%20%2F%3E%5B8%5D%3A%20'AR24'%20(32-bit%20BGRA%208-8-8-8)%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EPlease%20any%20help%20will%20be%20appreciated%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290315%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290315%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Victor%2C%3C%2FP%3E%3CP%3EFor%20i.MX8MP%2C%20%3CSTRONG%3Edevice%20tree%20changes%20alone%20are%20not%20sufficient%3C%2FSTRONG%3E%20when%20using%20a%20custom%20CSI-2%20camera.%20The%20CSI%20block%20will%20enumerate%2C%20but%20without%20a%20properly%20bound%20%3CSTRONG%3EV4L2%20subdevice%20(sensor)%3C%2FSTRONG%3E%20and%20media%20graph%2C%20%2Fdev%2Fvideo0%20ends%20up%20being%20an%20ISI%20m2m%20node%2C%20not%20a%20capture%20device%20%E2%80%94%20which%20explains%20the%20GStreamer%20error%20you%E2%80%99re%20seeing.%3C%2FP%3E%3CP%3EEven%20if%20I%C2%B2C%20control%20is%20not%20needed%20initially%2C%20the%20sensor%20driver%20(or%20a%20minimal%20stub%20based%20on%20ov5640)%20is%20still%20required%20to%20advertise%20formats%2C%20lanes%2C%20clocks%2C%20and%20link%20the%20CSI%20%E2%86%92%20ISI%20pipeline.%20Simply%20modifying%20ov5640%20DT%20without%20matching%20driver%20changes%20will%20not%20expose%20a%20capture-capable%20video%20node.%3C%2FP%3E%3CP%3EIn%20practice%2C%20you%20need%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EA%20sensor%2Fsubdev%20driver%20that%20matches%20your%20CSI-2%20output%20(lane%20count%2C%20format%2C%20timings)%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ECorrect%20media%20links%20between%20sensor%20%E2%86%92%20MIPI-CSI%20%E2%86%92%20ISI%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EValidation%20via%20media-ctl%20-p%20before%20using%20v4l2-ctl%20or%20GStreamer%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3ESome%20upstream%20references%20that%20may%20help%20while%20aligning%20driver%20%2B%20DT%20tested%20on%20NXP%20platforms%3C%2FP%3E%3CP%3E%3CSTRONG%3ELinux%20Camera%20drivers%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fweb.git.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux-next.git%2Fcommit%2F%3Fid%3Dfa9e6df636fb8b3b27570f38c53640c9e2b02f79%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fweb.git.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux-next.git%2Fcommit%2F%3Fid%3Dfa9e6df636fb8b3b2...%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fpatchew.org%2Flinux%2F20251216065956.13604-1-himanshu.bhavani%40siliconsignals.io%2F20251216065956.13604-3-himanshu.bhavani%40siliconsignals.io%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fpatchew.org%2Flinux%2F20251216065956.13604-1-himanshu.bhavani%40siliconsignals.io%2F20251216065956.1...%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fweb.git.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux-next.git%2Fcommit%2F%3Fid%3D5bd6b8c1bb2d49d5ff15c7c47d6b33d2d38785f0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fweb.git.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux-next.git%2Fcommit%2F%3Fid%3D5bd6b8c1bb2d49d5f...%3C%2FA%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSTRONG%3EZephyr%20camera%20driver%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fcommit%2Fc784481ca039ccd606a192ee07bc83f6b0117e59%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fzephyrproject-rtos%2Fzephyr%2Fcommit%2Fc784481ca039ccd606a192ee07bc83f6b0117e59%3C%2FA%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3ECamera%20brindup%20guide%20from%20%3CA%20href%3D%22https%3A%2F%2Fsiliconsignals.io%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ESilicon%20Signals%3C%2FA%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fsiliconsignals.io%2Fblog%2Fv4l2-camera-stack-step-by-step-guide-for-custom-devices%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fsiliconsignals.io%2Fblog%2Fv4l2-camera-stack-step-by-step-guide-for-custom-devices%2F%3C%2FA%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1304882%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1304882%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20v_parri%2C%3C%2FP%3E%3CP%3ECould%20you%20make%20the%204-lanes%20work%3F%3C%2FP%3E%3CP%3EWhat%20changes%20did%20you%20make%20to%20CSI%20part%20in%20imx8mp.dtsi%20file%3F%3C%2FP%3E%3CP%3EThanks%2C%20MC%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20have%20made%20some%20progress%20then%2C%26nbsp%3B%20I%20am%20not%20getting%20%2Fdev%2Fvideo%20(created%20by%20imx8-isi-m2m.c%2C%20to%20even%20have%20capture%20abilities%20when%20queried.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20I%20dont%20have%20a%20media0%20device%20either.%26nbsp%3B%20%26nbsp%3BI%20am%20starting%20to%20think%20the%20camera%20is%20broken!%26nbsp%3B%20%26nbsp%3BNothing%26nbsp%3B%20I%20have%20tried%2C%20with%20any%20of%20the%20CONFIGs%20has%20made%20any%20difference.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291756%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESorry%2C%20crash%20was%20not%20in%20probe%2C%20but%20in%20mxc_isi_m2m_g_fmt_vid_caps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291755%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291755%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20also%20had%20a%20NULL%20pointer%20issue.%20In%20the%20function%26nbsp%3B%3CSPAN%3E.set_fmt%20of%20the%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ev4l2_subdev_pad_ops%20the%20fmt%20pointer%20was%20set%20to%20NULL.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20saw%20that%20there%20was%20an%20issue%20in%20the%20function.%20But%20meanwhile%20I%20changed%20the%20code%20so%20many%20times.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBut%20thats%20exactly%20the%20field%20where%20I%20am%20currently%20working%20on.%20My%20feeling%20is%20the%20the%20pads%20are%20connected%20together%20in%20the%20right%20way%2C%20but%20the%20negotiation%20of%20frame%20format%2C%20colorspace%20and%20fps%20in%20not%20correct.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20can%20list%20the%20available%20formats%20but%20the%20type%20is%20not%20correct.%20It%20always%20says%20GRAY%20(8-bit%20Greyscale)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%3Ev4l2-ctl%20--device%20%2Fdev%2Fvideo0%20--list-formats-ext%3CBR%20%2F%3Eioctl%3A%20VIDIOC_ENUM_FMT%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BType%3A%20Video%20Capture%20Multiplanar%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%5B0%5D%3A%20'GREY'%20(8-bit%20Greyscale)%3CBR%20%2F%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%3BSize%3A%20Discrete%20768x576%3CBR%20%2F%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%3BInterval%3A%20Discrete%200.040s%20(25.000%20fps)%3CBR%20%2F%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%3BSize%3A%20Discrete%20640x480%3CBR%20%2F%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%3BInterval%3A%20Discrete%200.033s%20(30.000%20fps)%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291753%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291753%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThats%20a%20big%20help%2C%20thanks.%26nbsp%3B%20%26nbsp%3BI%20saw%20the%20use%20of%20media%20to%20set%20the%20topography%20in%20a%20script%2C%20but%20that%20was%20on%20older%20systems%2C%20I%20guess%20on%20later%20kernels%20it%20is%20done%20programatically%20via%20pads.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20thanks%20for%20the%20tip%20on%20using%20it%20to%20show%20the%20topography%2C%20thats%20perfect!%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20I%20have%20is%20I%20get%20a%20kennel%20null%20pointer%20dereference%20in%20imx8-isi-m2m.c%20then%20it%20is%20probed.%26nbsp%3B%20The%20fmt%20member%20is%20null.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20is%20the%20device%20that%20creates%20%2Fdev%2Fvideo0%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHave%20you%20seen%20this%3F%26nbsp%3B%20I%20am%20assuming%20is%20a%20configuration%20issue%2C%20and%20am%20about%20to%20debug%20it%2C%20but%20if%20you%20knew%20its%20cause%20that%20would%20be%20a%20great%20help%20to.%3CBR%20%2F%3E%3CBR%20%2F%3EThx!%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EThis%20is%20the%20way%20I%20added%20the%20media%20entities%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ev4l2_i2c_subdev_init%3C%2FSPAN%3E%3CSPAN%3E(%26amp%3B%3C%2FSPAN%3E%3CSPAN%3Esensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Esubdev%3C%2FSPAN%3E%3CSPAN%3E%2C%20i2c_client%2C%20%26amp%3Bsensor_subdev_ops)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3Esensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Esubdev%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eflags%3C%2FSPAN%3E%3CSPAN%3E%20%7C%3D%20V4L2_SUBDEV_FL_HAS_DEVNODE%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Esensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Esubdev%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Einternal_ops%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20%26amp%3Bsensor_subdev_internal_ops%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Esensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Esubdev%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eentity%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Efunction%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20MEDIA_ENT_F_CAM_SENSOR%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Esensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Esubdev%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eentity%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eops%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20%26amp%3Bsensor_entity_ops%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3Esensor-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Epad%3C%2FSPAN%3E%3CSPAN%3E%5B%3C%2FSPAN%3E%3CSPAN%3E0%3C%2FSPAN%3E%3CSPAN%3E%5D.%3C%2FSPAN%3E%3CSPAN%3Eflags%3C%2FSPAN%3E%3CSPAN%3E%20%3D%20MEDIA_PAD_FL_SOURCE%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%3E%3CSPAN%3Eret%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%20%3C%2FSPAN%3E%3CSPAN%3Emedia_entity_pads_init%3C%2FSPAN%3E%3CSPAN%3E(%26amp%3Bsensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Esubdev%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eentity%3C%2FSPAN%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%3CSPAN%3E%2Csensor%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3Epad%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EYou%20can%20print%20out%20the%20topology%20with%20media-ctl%20tool%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CPRE%3Emedia-ctl%20--print-topology%0Amedia-ctl%20--print-dot%20%26gt%3B%20graph.dot%0Adot%20-Tpng%20graph.dot%20%26gt%3B%20graph.png%3C%2FPRE%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22graph.png%22%20style%3D%22width%3A%20497px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22graph.png%22%20style%3D%22width%3A%20497px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F146984iDF113688AE6E5541%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22graph.png%22%20alt%3D%22graph.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291340%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291340%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDid%20you%20get%20any%20where%20with%20this%3F%26nbsp%3B%20%26nbsp%3BIt%20is%20important%20to%20get%20the%20capture%20device%20functioning.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhat%20is%20'media%20entities'%20and%20how%20do%20you%20add%20a%20driver%20to%20it%3F%26nbsp%3B%20Interesting%20to%20see%20you%20have%20a%20link%20created%2C%20I%20think%20this%20is%20important%2C%20it%20seems%20to%20be%20the%20way%20the%20device%20topography%20is%20established%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1278377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1278377%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20switch%20back%20to%20the%26nbsp%3B%3CSPAN%3E%26nbsp%3Bdriver%20imx8m%3C%2FSPAN%3E%3CU%3E%3CSTRONG%3En%3C%2FSTRONG%3E%3C%2FU%3E%3CSPAN%3E-mipi-csi%20(mxc-mipi-csi2-sam)%20and%20added%20to%20my%20driver%20the%20media%20entities.%20And%20now%20I%20can%20see%20a%20video0%20device.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3Edmesg%20%7C%20grep%20mipi%0A%5B%20%20%20%201.888060%5D%20mxc-mipi-csi2-sam%2032e40000.csi%3A%2032e40000.csi%20supply%20mipi-phy%20not%20found%2C%20using%20dummy%20regulator%0A%5B%20%20%20%201.902159%5D%20mxc-mipi-csi2-sam%2032e40000.csi%3A%20lanes%3A%202%2C%20hs_settle%3A%2013%2C%20clk_settle%3A%202%2C%20wclk%3A%201%2C%20freq%3A%20500000000%0A%5B%20%20%20%202.862258%5D%20mx8-img-md%3A%20created%20link%20%5Bmxc-mipi-csi2.0%5D%20%3D%26gt%3B%20%5Bmxc_isi.0%5D%0A%5B%20%20%20%202.868710%5D%20mx8-img-md%3A%20created%20link%20%5Bs2d13p04%202-0037%5D%20%3D%26gt%3B%20%5Bmxc-mipi-csi2.0%5D%0Amoba%40moba-hmi%3A~%24%20dmesg%20%7C%20grep%20video0%0A%5B%20%20%20%202.842503%5D%20mx8-img-md%3A%20Registered%20mxc_isi.0.capture%20as%20%2Fdev%2Fvideo0%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3EI%20hope%20that%20I%20am%20step%20closer%20to%20my%20objective%20now.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277476%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277476%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20also%20use%20the%205.4.70%20kernel.%20Where%20did%20you%20find%20the%20driver%3F%20When%20I%20search%20for%20fsl%2Cimx8mp-mipi-csi%20overall%2C%20I%20only%20find%20entries%20in%20the%20imx8mp.dtsi%20file%20but%20nowhere%20in%20the%20drivers%20section.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277462%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20the%205.4%20kernel%2C%20there%20is%20an%208mp%20driver%20there.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20dont%20know%20how%20this%20is%20supposed%20to%20fit%20together%2C%20so%20I%20cant%20really%20comment%20I%20am%20afraid.%26nbsp%3B%20There%20could%20be%20something%20missing%2C%20there%20seems%20to%20be%2C%20but%20I%20just%20dont%20know.%20.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277453%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277453%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20my%20origin%20imx8mp.dtsi%20the%20mipi_csi_0%20compatible%20string%20is%3A%3C%2FP%3E%3CDIV%3E%3CDIV%3Ecompatible%20%3D%20%22fsl%2Cimx8mp-mipi-csi%22%2C%20%22fsl%2Cimx8mn-mipi-csi%22%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThere%20is%20no%20driver%20for%20imx8mp-mipi-csi.%20And%20if%20I%20use%20the%20imx8m%3CU%3E%3CSTRONG%3En%3C%2FSTRONG%3E%3C%2FU%3E-mipi-csi%20I%20got%20a%20kernel%20crash%20during%20boot%20up.%20That%20is%20the%20reason%20why%20I%20changed%20to%26nbsp%3B%20imx8mm-mipi-csi.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EFurthermore%20I%20think%20the%20suspend%20state%20of%20the%20driver%20has%20something%20to%20do%20with%20the%20power%20management%20of%20the%20kernel.%20When%20the%20device%20is%20not%20use%20the%20kernel%20set%20it%20into%20suspend%20mode%20for%20saving%20power.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIs%20it%20possible%20that%20there%20is%20a%20link%20missing%20between%20mipi_csi%20and%20maybe%20the%20isp%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20the%20one%20set%20as%20default%20in%20the%20dtsi%20file%2C%20but%20in%20my%20case%20I%20am%20on%20the%20imx8mp%20board%2C%20so%20it%20is%20%3A%3CBR%20%2F%3Edsti%20looks%20like%20this%3A%3C%2FP%3E%3CP%3Emipi_csi_0%3A%20%3CA%20href%3D%22mailto%3Acsi%4032e40000%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ecsi%4032e40000%3C%2FA%3E%26nbsp%3B%7B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20compatible%20%3D%20%22fsl%2Cimx8mp-mipi-csi%22%2C%20%22fsl%2C%20imx8mm-mipi-csi%22%3B%3C%2FP%3E%3CP%3E...%3CBR%20%2F%3E%3CBR%20%2F%3Emy%20dts%20file%20doesnt%20change%20this%2C%20its%20mipi_csi_0%20node%20just%20sets%20it%20to%20enabled%2C%20and%20sets%20a%20remote%20enpoint.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMatt%20what%20kind%20of%20driver%20do%20you%20use%20for%20mipi_csi_0%3F%3CBR%20%2F%3EI%20currently%20use%20the%20mxc_mipi_csi%20driver%20out%20of%20the%20%2Fdriver%2Fmedia%2Fplatform%2Fmxc%2Fcapture%20folder%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26amp%3Bmipi_csi_0%3C%2FSPAN%3E%3CSPAN%3E%20%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Ecompatible%20%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22fsl%2Cimx8mm-mipi-csi%22%3C%2FSPAN%3E%3CSPAN%3E%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFrom%20dmesg%20search%20the%20file%20system%20for%20that%20driver%20name%2C%20'mxc-mipi-csi2-sam'%2C%26nbsp%3B%20go%20to%20that%20dir%2C%20and%20follow%20the%20hardware%20address.csi%20link%2C%20in%20that%20dir%20isa%20power%20dir%2C%20and%20in%20there%20a%20status.%26nbsp%3B%20%26nbsp%3B%20I%20assume%20this%20is%20the%20state%20of%20the%20hardware.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277376%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277376%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%20I%20see%20exactly%20the%20same%20trace.%26nbsp%3B%20Not%20sure%20what%20it%26nbsp%3B%20means%20though.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20dont%20remember%20where%20I%20saw%20it%20sais%20suspended%2C%20somewhere%20in%26nbsp%3B%20the%20file%20system.%20I'll%20try%20to%20find%20where.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ewhere%20can%20you%20see%20that%20the%20device%20is%20suspend%3F%20Adding%20a%20power%20handler%20can%20be%20possible%3C%2FP%3E%3CP%3EHere%20is%20one%20of%20the%20dmesg%20messages%3A%26nbsp%3B%3C%2FP%3E%3CP%3Emxc_mipi-csi%2032e40000.csi%3A%2032e40000.csi%20supply%20mipi-phy%20not%20found%2C%20using%20dummy%20regulator%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277364%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20just%20used%20the%20evk%20dts%20as%20a%20base.%26nbsp%3B%20Should%20I%20use%20the%20Hassler%20one%20to%20get%20the%20camera%20working%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277363%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENo%2C%20I%20didnt%20yet.%26nbsp%3B%20Do%26nbsp%3B%20you%20know%20which%20driver%20creates%20the%20%2Fdev%2Fvideo%20device%2C%20I%20was%20thinking%20about%20working%20back%20from%20there%20and%20seeing%20in%20the%20code%20why%20it%20is%20failig.%3CBR%20%2F%3E%3CBR%20%2F%3EFYI%20dmesg%20looks%20normal%2C%20no%20errors%2C%26nbsp%3B%20but%20the%20device%20is%20showing%20as%20suspended%2C%20so%20adding%20a%20power%20handler%20to%20the%20dts%20node%20perhaps%3F%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1277355%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1277355%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDid%20you%20find%20the%20reason%20why%20csi%20doesn't%20create%20a%20video%20device%3F%20I%20just%20have%20the%20same%20issue.%20csi%20is%20loaded%20but%20there%20is%20no%20%2Fdev%2Fvideo0%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1276891%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1276891%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%20%26nbsp%3BVictor%2C%20I%20have%20a%20similar%20issue.%26nbsp%3B%20%26nbsp%3B%20I%20only%20have%20video0%2C%20which%20is%20on%20the%20isi%20device%2C%20not%20csi%2C%26nbsp%3Bv4l-ctl%20--all%26nbsp%3B%20says%20its%20driver%20is%20mxc-isi-m2m%2C%20so%20despite%20doing%20pretty%20much%20what%20you%20have%20with%26nbsp%3B%20imx8mp-evk.dts%2C%20the%20csi%20device%20just%20isnt%20showing%2C%20and%20neither%20is%20yours.%26nbsp%3B%20The%20csi%20device%20is%20on%200x32e40000%2C%20the%20isi%20device%20on%2032e00000%2C%20which%20is%20what%20you%20have%20in%20--list-devices.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20the%20question%20is%2C%20how%20to%20get%20the%20csi%20device%20to%20appear.%20dmesg%20shows%3A%3CBR%20%2F%3Emxc-mipi-csi2-sam%26nbsp%3B%20%26nbsp%3B32e40000.csi%3A%20lanes%201%2C%20hs_settle%3A%2022%2C%20clck_settle%3A%26nbsp%3B%200%2C%20wclk%3A%201%2C%20freq%3A%205000000000%26nbsp%3B%20(my%20dts%20changes%20the%20values%20for%20settle)%3C%2FP%3E%3CP%3ESo%20it%20looks%20as%20if%20the%20csi%20device%20loaded%20ok%2C%20it%20just%20isnt%20creating%20a%26nbsp%3B%20videox%20device.%3C%2FP%3E%3CP%3EAny%20ideas%3F%20Its%20a%20bit%20of%20a%20mystery.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1247872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1247872%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ewhich%20dts%20file%20do%20you%20use%3F%20did%20you%20try%20to%20use%20imx8mp-evk-basler-ov5640.dtb%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1237589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1237589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20the%20BSP%20we're%20curently%20using%20is%20the%205.4.47.%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20will%20be%20appreciated%2C%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1237052%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX8MP%20MIPI-CSI2%20Problems%20in%20custom%20camera%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1237052%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20just%20got%20my%20imx8mp%20board%2C%20firstly%2C%20pls%20tell%20me%20what%20bsp%20version%20you%20use%3F%20let%20me%20reproduce%20this%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E