Raspberry Pi Camera V1.0 Not Working on i.MX93 CSI-2 Interface

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

Raspberry Pi Camera V1.0 Not Working on i.MX93 CSI-2 Interface

625 Views
Arvind_01
Contributor I

Hi Team,

We are using an NXP i.MX93 board. The NXP MIPI CSI-2 (2-lane) camera is working correctly.

We also tried connecting a Raspberry Pi Camera Module V1.0, which uses a CSI-2 2-lane interface. The corresponding camera driver has been installed in Linux, but the camera is not working and cannot be accessed.

Could you please help us identify the root cause? Is there any additional device tree configuration, driver modification, or MIPI CSI-2 compatibility requirement needed to support the Raspberry Pi camera on i.MX93?

Please let us know if any logs or debug information are required.

Thanks.

0 Kudos
Reply
1 Reply

620 Views
yipingwang
NXP TechSupport
NXP TechSupport

What you should check (practical debug checklist)

Step 1: Verify I2C basic communication

i2cdetect -y <bus>

dmesg | grep imx219 / ov5647

Key question:

  • detected but probe fails → clock/reset issue
  • not detected → HW / pin / power issue

 

Step 2: Check clock output

Confirm:

  • CLK pin actually outputs waveform
  • frequency correct (24/25 MHz)

 

Step 3: Validate reset / power-down GPIO

Ensure DTS includes:

reset-gpios = <...>;

pwdn-gpios = <...>;

Test:

  • toggle manually (debug prints or GPIO sysfs)

 

Step 4: Compare with working NXP camera DTS

Use:

OV5640 or AP1302 DTS from BSP

Compare:

endpoint

port

lane config

Step 5: Check media graph

media-ctl -p

Verify pipeline is complete.

Step 6: Confirm lane configuration

Mismatch examples:

data-lanes = <1 2>;

clock-lane = <0>;

Wrong config → no stream

 

Recommendation:

Option A (recommended for project):

Use NXP-validated camera module → saves weeks of bring-up

 

Option B (if must use RPi camera):

You need to:

  1. Fully port sensor driver tuning:
    • clock frequency
    • link frequency
    • MIPI timing
  2. Carefully align:
    • power sequence
    • reset timing
  3. Adjust DTS + pipeline

Expect non-trivial effort

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2382886%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERaspberry%20Pi%20Camera%20V1.0%20Not%20Working%20on%20i.MX93%20CSI-2%20Interface%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382886%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3EWe%20are%20using%20an%20NXP%20i.MX93%20board.%20The%20NXP%20MIPI%20CSI-2%20(2-lane)%20camera%20is%20working%20correctly.%3C%2FP%3E%3CP%3EWe%20also%20tried%20connecting%20a%20Raspberry%20Pi%20Camera%20Module%20V1.0%2C%20which%20uses%20a%20CSI-2%202-lane%20interface.%20The%20corresponding%20camera%20driver%20has%20been%20installed%20in%20Linux%2C%20but%20the%20camera%20is%20not%20working%20and%20cannot%20be%20accessed.%3C%2FP%3E%3CP%3ECould%20you%20please%20help%20us%20identify%20the%20root%20cause%3F%20Is%20there%20any%20additional%20device%20tree%20configuration%2C%20driver%20modification%2C%20or%20MIPI%20CSI-2%20compatibility%20requirement%20needed%20to%20support%20the%20Raspberry%20Pi%20camera%20on%20i.MX93%3F%3C%2FP%3E%3CP%3EPlease%20let%20us%20know%20if%20any%20logs%20or%20debug%20information%20are%20required.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2382904%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Raspberry%20Pi%20Camera%20V1.0%20Not%20Working%20on%20i.MX93%20CSI-2%20Interface%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2382904%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhat%20you%20should%20check%20(practical%20debug%20checklist)%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%201%3A%20Verify%20I2C%20basic%20communication%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3Ei2cdetect%20-y%20%3CBUS%3E%3C%2FBUS%3E%3C%2FP%3E%0A%3CP%3Edmesg%20%7C%20grep%20imx219%20%2F%20ov5647%3C%2FP%3E%0A%3CP%3EKey%20question%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Edetected%20but%20probe%20fails%20%E2%86%92%20clock%2Freset%20issue%3C%2FLI%3E%0A%3CLI%3Enot%20detected%20%E2%86%92%20HW%20%2F%20pin%20%2F%20power%20issue%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EStep%202%3A%20Check%20clock%20output%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EConfirm%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECLK%20pin%20actually%20outputs%20waveform%3C%2FLI%3E%0A%3CLI%3Efrequency%20correct%20(24%2F25%20MHz)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EStep%203%3A%20Validate%20reset%20%2F%20power-down%20GPIO%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EEnsure%20DTS%20includes%3A%3C%2FP%3E%0A%3CP%3Ereset-gpios%20%3D%20%26lt%3B...%26gt%3B%3B%3C%2FP%3E%0A%3CP%3Epwdn-gpios%20%3D%20%26lt%3B...%26gt%3B%3B%3C%2FP%3E%0A%3CP%3ETest%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Etoggle%20manually%20(debug%20prints%20or%20GPIO%20sysfs)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EStep%204%3A%20Compare%20with%20working%20NXP%20camera%20DTS%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EUse%3A%3C%2FP%3E%0A%3CP%3EOV5640%20or%20AP1302%20DTS%20from%20BSP%3C%2FP%3E%0A%3CP%3ECompare%3A%3C%2FP%3E%0A%3CP%3Eendpoint%3C%2FP%3E%0A%3CP%3Eport%3C%2FP%3E%0A%3CP%3Elane%20config%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%205%3A%20Check%20media%20graph%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3Emedia-ctl%20-p%3C%2FP%3E%0A%3CP%3EVerify%20pipeline%20is%20complete.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%206%3A%20Confirm%20lane%20configuration%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EMismatch%20examples%3A%3C%2FP%3E%0A%3CP%3Edata-lanes%20%3D%20%26lt%3B1%202%26gt%3B%3B%3C%2FP%3E%0A%3CP%3Eclock-lane%20%3D%20%26lt%3B0%26gt%3B%3B%3C%2FP%3E%0A%3CP%3EWrong%20config%20%E2%86%92%20no%20stream%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3ERecommendation%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EOption%20A%20(recommended%20for%20project)%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EUse%20%3CSTRONG%3ENXP-validated%20camera%20module%3C%2FSTRONG%3E%20%E2%86%92%20saves%20weeks%20of%20bring-up%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EOption%20B%20(if%20must%20use%20RPi%20camera)%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20need%20to%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EFully%20port%20sensor%20driver%20tuning%3A%0A%3CUL%3E%0A%3CLI%3Eclock%20frequency%3C%2FLI%3E%0A%3CLI%3Elink%20frequency%3C%2FLI%3E%0A%3CLI%3EMIPI%20timing%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ECarefully%20align%3A%0A%3CUL%3E%0A%3CLI%3Epower%20sequence%3C%2FLI%3E%0A%3CLI%3Ereset%20timing%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EAdjust%20DTS%20%2B%20pipeline%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EExpect%20non-trivial%20effort%3C%2FP%3E%3C%2FLINGO-BODY%3E