# How to integrate MIPI camera drivers into the system, which can load during the boot time.?

**URL:** <https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479>\
**Category:** NXP i.MX8M Plus\
**Created:** [October 7, 2022, 12:31pm UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479 "2022-10-07T12:31:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.lokesh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/j.lokesh/32/146_2.png) [@j.lokesh](https://community.solid-run.com/u/j.lokesh)\
**Post date:** [October 7, 2022, 12:31pm UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/1 "2022-10-07T12:31:02Z")

</div>

Hello there,

I’m are working with **OnSemi’s AR0234 MIPI camera** for our application and trying to integrate the driver into the system.

I’ve **ar0234.c, ar0234.h and fimware.txt** files with me from OnSemi but I don’t know how to integrate in the system using patch.?

I’ve updated the device-tree with the camera information into imx8mp-hummingboard-pulse.dts, but I’m not sure, where I should be including the driver files in order to load the drivers while booting the system and start using the MIPI Camera.

Could anyone please help me with this.??  
Looking forward to your response.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 9, 2022, 5:32am UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/2 "2022-10-09T05:32:36Z")

</div>

NXP has a sensor porting guide as part of the documentation for board. You can find it under their iMX8MP documentation on their site, [i.MX 8M Plus | Cortex-A53/M7 | NXP Semiconductors](https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-plus-arm-cortex-a53-machine-learning-vision-multimedia-and-industrial-iot:IMX8MPLUS?tab=Documentation_Tab)

---

<div class="post-metadata">

**Author:** ![j.lokesh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/j.lokesh/32/146_2.png) [@j.lokesh](https://community.solid-run.com/u/j.lokesh)\
**Post date:** [October 10, 2022, 5:08am UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/3 "2022-10-10T05:08:08Z")

</div>

@jnettlet Thanks for your response.  
Could you please tell me the specific name of the document you are taking about.??

I’m seeing so many documents but none of them seems to be relevant for the solution I’m looking for.

I already have driver files with me. The camera sensor already have ISP on it, so simple integrating the driver into the final build will help. I have device tree patch for the sensor as well. Which I’ve updated to imx8mp-hummingboard-pulse.dts, the only thing I’m not aware of where to add the driver files in order to install into the system.

Looking forward to your response.  
Thanks  
Lokesh

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 10, 2022, 5:11am UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/4 "2022-10-10T05:11:51Z")

</div>

The document is sensor porting for the iMX8MP, there are multiple documents regarding integrating camera sensors in NXP’s documentation archive. If the camera has an ISP then you will want to integrate it via the ISI. It is hard to say where to put the driver files without knowing how they are written. If they are kernel drivers they should have a Kconfig and Makefile to build them.

---

<div class="post-metadata">

**Author:** ![j.lokesh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/j.lokesh/32/146_2.png) [@j.lokesh](https://community.solid-run.com/u/j.lokesh)\
**Post date:** [October 10, 2022, 5:23am UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/5 "2022-10-10T05:23:56Z")

</div>

Dear @jnettlet ,

The camera driver and device tree patch I have for imx8m-mini of Toradex (Verdin) board.  
But want to integrate the camera for Solidrun imx8m-plus-hummung board-pulse.

I’ve gone through the patches and did the required changes to the paths for coping the contents of the patch into the build folders. Patch contains _aro234.c ar0234.h, ar0234\_firmware.txt_, **additional arguments for Kconfig and Makefile both** and another patch contains device tree requirement for the camera using i2c3, ISI and mipi-0.

After the build, I don’t see ar0234 driver folder under /sys/bus/i2c/drivers/, but I2C is able detect camera address and read aswell.

Thanks  
Lokesh

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [October 10, 2022, 5:27am UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/6 "2022-10-10T05:27:25Z")

</div>

Do you have a schematic for the sensors connector? Did you verify that VCC voltages match our pinout?

---

<div class="post-metadata">

**Author:** ![j.lokesh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/j.lokesh/32/146_2.png) [@j.lokesh](https://community.solid-run.com/u/j.lokesh)\
**Post date:** [October 10, 2022, 5:45am UTC](https://community.solid-run.com/t/how-to-integrate-mipi-camera-drivers-into-the-system-which-can-load-during-the-boot-time/479/7 "2022-10-10T05:45:24Z")

</div>

Dear @jnettlet ,

Yes, we have designed our own carrier card for imx8mp-som. Also, when I connect camera to the device, linux is able to detect the sensor i2c address and I’m abble to read the content as well from the camera. So the power supply should be OK in this case.

I can share the patch files what I have with me. Let mw know how can I share with you.  
I have original Patch files for Toradex and edited for solidrun.

Thanks  
Lokesh
