Thanks @bruno.tx for the fast reply!
We suspect this is just a difference in our interpose design, but getting the datasheet facts from framos for their interposer seems a bit tricky ![]()
Thanks @bruno.tx for the fast reply!
We suspect this is just a difference in our interpose design, but getting the datasheet facts from framos for their interposer seems a bit tricky ![]()
Hello @alan01252,
If you need to drive the GPIO high, maybe the overlay is not properly configured with your pin?
Because otherwise the pin should be taken by the driver and not accessible.
What I am saying here is that I think you may have a different GPIO connected to reset than the one you have configured in the device tree.
Best Regards,
Bruno
Hi Bruno,
Sorry the context is that for the device to even appear on the i2c bus we need to pull the reset pin high.
Once we do that the device appears on the i2c and the imx662 module takes over and then correctly owns that pin from that point onwards.
Hello @alan01252,
Sorry for the delay here, this thread is now out of our tracking system so I forgot to reply.
Unfortunately there is no elegant way to do this in the device tree.
A possible workaround is to setup a service to bring this GPIO high initially.
Best Regards,
Bruno
Thanks @bruno.tx , we are (as of this morning ) finally cooking with gas!
I’ve had to do somethings in our yocto build for our custom board that were not obvious to me ( and there maybe a better way ) but in case you have better ideas or this helps others..
The device tree that the meta-toradex-framos is obviously specific to the verdin boards and not custom boards. For a long time ( way longer than it should have been ) I didn’t realise that this wasn’t being excluded using this
KERNEL_DEVICETREE:remove = "verdin-imx8mp_imx662_overlay.dtb"
KERNEL_DEVICETREE:remove = "verdin-imx8mp_imx676_overlay.dtb"
KERNEL_DEVICETREE:remove = "verdin-imx8mp_imx682_overlay.dtb"
and instead we had to do
# Prevent the toradex specific device trees from being written
BBMASK += 'meta-toradex-framos/recipes-kernel/linux/device-tree-overlays.*'
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT:verdin-imx8mp:remove = "verdin-imx8mp_imx662_overlay.dtbo"
TEZI_EXTERNAL_KERNEL_DEVICETREE_BOOT:remove=" verdin-imx8mp_imx662_overlay.dtbo "
Else madness ensued
I also had to do the folowing patch against the repo for it to overwrite the sensors patch properly which I’m still surprised you didn’t have to do
diff --git a/recipes-bsp/isp-imx/isp-imx/0002-Add-support-for-imx6xx-sensors.patch b/recipes-bsp/isp-imx/isp-imx/0002-Add-support-for-imx6xx-sensors.patch
index 8afcabd..d9b47c8 100644
--- a/recipes-bsp/isp-imx/isp-imx/0002-Add-support-for-imx6xx-sensors.patch
+++ b/recipes-bsp/isp-imx/isp-imx/0002-Add-support-for-imx6xx-sensors.patch
@@ -917,7 +917,7 @@ index 22e7783..311924f 100755
# no device tree found exit with code no device or address
- echo "No device tree found for Basler camera or os08a20, check dtb file!" >&2
+ echo "No device tree found for image sensors, check dtb file!" >&2
- exit 0
+ exit 6
fi
diff --git a/units/isi/CMakeLists.txt b/units/isi/CMakeLists.txt
index 0775d24..e0177ed 100755
diff --git a/recipes-bsp/isp-imx/isp-imx_%.bbappend b/recipes-bsp/isp-imx/isp-imx_%.bbappend
index 292f300..e6db09e 100644
--- a/recipes-bsp/isp-imx/isp-imx_%.bbappend
+++ b/recipes-bsp/isp-imx/isp-imx_%.bbappend
@@ -1,6 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/isp-imx/:"
-SRC_URI:append = "file://0002-Add-support-for-imx6xx-sensors.patch"
+SRC_URI:append = " file://0002-Add-support-for-imx6xx-sensors.patch "
FILES_SOLIBS_VERSIONED += " \
Hello @alan01252,
Thanks for the update.
If multiple device tree overlays were enabled for the same device, that explains some of the weird behavior you saw.
The first change should not really be needed from what I tested here.
However, the second change (adding the spaces to the append) looks important. I am not sure why I did not have issues without it.
I will raise this with my colleague that maintains this layer.
Best Regards,
Bruno