I’m trying to capture video with ADV7280m, I added related kernel driver to yocto multimedia image but there is no /dev/video including video, although I can see I2C port on line 5 but it has not been registered.
it seems that I have to add a device -tree overlay in /boot/overlay.txt to make it work properly but I don’t find related file in my resources.
what should I do exactly to make ADV7280m work and capture video?
I changed &i2c3 to i2c5 because I find i2c on line 5 (i2cdetect -y 5)
and changed adv7280@21 and reg = <0x21> to adv7280@20 and reg = <0x20> because I use address 0x20 on i2c port
then I compiled my dts and added final dtbo to /boot/overlays.txt
but after rebooting I got this error on uboot:
Applying Overlay: adv7280_overlay.dtbo
1194 bytes read in 50 ms (22.5 KiB/s)
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
10649014 bytes read in 334 ms (30.4 MiB/s)
Uncompressed size: 25704960 = 0x1883A00
Bootargs: pci=nomsi root=PARTUUID=adb3e59a-02 ro rootwait
ERROR: Did not find a cmdline Flattened Device Tree
FDT and ATAGS support not compiled in - hanging
### ERROR ### Please RESET the board ###
Thanks for the update. In order for your device tree to work, you should have it both on the overlays.txt file and on the overlays folder. As a check, what are the outputs of the following commands?
cat /boot/overlays.txt
ls /boot/overlays
Can you please also share the full dmesg output?
Also, it seems that, for instance, these pinctrls and power supplies are not defined on the Apalis iMX8 Device Trees. They may have other names:
On Apalis iMX8, there is for instance, ®_3v3_vmmc. So please have a look at it.
I added multiple lines of printk(KERN_ALERT “some message”); in adv7280.c file and recompiled kernel but can’t see my messages in dmesg neither in /var/log/message.
what causes this problem? is it because my dts overlay can’t interconnect with the driver?
I appreciate any help.
We’ve been made aware that there may be a problem with the driver for the adv7280 and we’re waiting for a development board to arrive in our office so that we could test it and ensure we can make it work. We’ll update you once it is here and tested.
now I’m using this driver linux/adv7180.c at v5.4 · torvalds/linux · GitHub which supports MIPI CSI and I attached my device tree overlay file. adv7280.dts (1.7 KB)
now chip has been detected and all three I2C ports related to register maps, I2P and CSI sub maps has been registered and has UU symbol.
I also have a video device at /dev/video0 which is linked to my CSI input but I can’t capture video and I got an error related to ISI CAP:
mxc-mipi-csi2.1: is_entity_link_setup, No remote pad found!
this is from is_entity_link_setup function in imx8-isi-cap.c that fails. but I can’t see why.
here is my full dmesg: dmesg.txt (40.0 KB) there are some of my own debug messages in dmesg starting with “adv7280”.
it seems that my dts overlay has some kind of problem.
I tried my adv7280m module with iMX6Q, the main dts has been defined with 0x21 I2C address but my module I2C address is 0x20 so I had to add a dts overlay; then replaced my driver with original driver due to lacking of MIPI CSI in original one.
but still no success.
Have you been able to do any progress on the topic? I’ve been doing some tests on my side without much success. Could you please share with me the latest overlay that you have for the Apalis iMX8Q?
It would be also nice to have your Image.gz file for me to compare our kernel configurations.
Hi @gclaudino.tx ,
I hope you are doing well,
I still can’t capture any video on iMX8Q neither on iMX6Q, I really got stuck in setting this module up.
here is my latest dts overlay for iMX8Q: adv7280.dts (1.8 KB)
and this is my Image.gz file:
I’ve still not been able to make it work on my side. I’ll retest it with another module just to try to check that the camera and everything that I’m using works properly so I can retest it on Apalis iMX8. I can’t still promise you a timeframe to check it.
by the way may I ask you what kind of adv7280-m module are you working with? is it some kind of evaluation board or a custom module?
I’m working with a custom module and there are possibilities of hardware malfunction and maybe your module can help me compare schematics.
and another question, what SoM besides iMX8 are you going to check your camera with? is there a Toradex module with proper support and device tree?