Hi,
Anyone developed a driver for Onsemi AR1335 image sensor for imx8m CPU?
I would appreciate if you could share some code.
Thx, MC
已解决! 转到解答。
Hi @malik_cisse ,
I guess this is what you are looking for (or maybe you already found it) : https://source.codeaurora.org/external/imx/isp-vvcam/tree/vvcam/v4l2/sensor/ar1335?h=lf-5.15.y_2.0.0
FYI: Today I've tested with a bare AR1335 camera module (designed within the company I work for). I've extracted the ar1335 v4l sensor driver from the isp-vvcam package, as suggested here, and that worked right away on the Toradex Verdin IMX8MP Dahlia board with 5.15 NXP/Toradex kernel I am using.
Image output is not perfect yet, since I am using the ISI, not the ISP, so I cannot get proper RGB output (instead I get RAW-interpreted-as-RGB, so images are all blue and somehow missing some bit depth) and RAW output did not work (probably because of issues in the ISI or ar1335 driver), but some capture at least works.
In case it is useful for anyone, I've published my work here: https://github.com/3devo/FM23-kernel-modules/tree/ar1335 That's the ar1335 driver in isolation, intended to be compiled as out of tree module (for example using torizon-core-builder in my case). The commit message where it is added also has the devicetree snippet I am using with this.
>>AR1335 resolution is too high for i.MX8MP integrated ISP. This is the reason why all available modules have external ISP.
This statement is unfortunately not true.
I could make the native AR1335 resolution (4096x3072) work on i.mx8mp at 26FPS without problems.
Strictly follow the instructions below and you can make it work too. I only had to slightly modify the stock driver.
@malik_cisseI'm also looking at the AR1335 sensor for a product, ideally using the integrated IMX ISP to make the system simpler and cheaper. I've read your post at https://community.nxp.com/t5/i-MX-RT/AR1335-camera-sensor-driver/m-p/1668563/highlight/true#M25510 where you point to a v4l2 linux driver, which I expect will be very helpful.
However, I am also running into the problem that I can find only (eval) modules with an integrated ISP. Did you ever find a module without the ISP? Or did you end up making your own board right away?
Hi matthijskooijman,
I send you private message too.
When typing "ar1335 sensor module csi-2" as google search you will wind CSI-2 modules without integrated ISP. For example:
https://www.e-consystems.com/13mp-onsemi-autofocus-mipi-camera-module.asp#
Thank you for the feedback.
There is no stock driver for Onsemi AR1335 image sensor and the vendor has no driver either.
I found what could potentially be used as a starting point but this is developed for an NVIDIA Tegra platform which is quite different from the i.MX8M-Plus environment:
https://github.com/bogsen/STLinux-Kernel/blob/master/drivers/media/platform/tegra/ar1335.c
Hi @malik_cisse ,
I guess this is what you are looking for (or maybe you already found it) : https://source.codeaurora.org/external/imx/isp-vvcam/tree/vvcam/v4l2/sensor/ar1335?h=lf-5.15.y_2.0.0
Hi Khang,
I would like to test this driver. Do you know which camera module + eval Kit I can use for this?
The Basler daA4200-30mci uses this sensor but this has inbuilt ISP and is not using imx8mp embedded ISP.
https://www.baslerweb.com/en/products/cameras/area-scan-cameras/dart/daa4200-30mci-s-mount/
Also other camera module vendors can be found but they all have onboard ISP:
Arducam, e-con, basler, etc.
Thank you
Hi Khang,
You are the man. I did actually not know this exists. I had spent 2 days searching already.
You can't imagine how happy I am this is already part of stock vvcam driver. It simple, days of development saved.
Thank you, MC
Hi @malik_cisse ,
You are welcome. Also, you can find some bonus here : https://community.nxp.com/t5/i-MX-RT/AR1335-camera-sensor-driver/m-p/1243666
Hello malik,
We have several cameras installed with yocto BSP if you can not find your camara ask to your vendor about the driver for the kernel you are using, if they can't provide you the camera driver you have to build yourself.
Regards