Hello,
We chose the IMX676 sensor for our project, because it has a square sensor with a resolution of 3552 x 3552 according to its datasheet. However, it seems that Toradex’s driver is hard-coded to vertically crop the active sensor area. I am wondering if this is intentional, and whether it is possible for Toradex to modify the driver to use the entire active sensor area. I am not an experienced driver developer and hesitate to attempt this change myself.
I followed the driver and device tree setup in the documentation. That went well. The camera is working great and I am streaming video to my application.
The issue is that I can see my image is not perfectly square and is clearly cropped on the top and bottom. Digging deeper into the drivers in the imx676-driver
folder, I see the following:
// imx676-driver/imx676_regs.h
#define IMX676_DEFAULT_WIDTH 3552
#define IMX676_DEFAULT_HEIGHT 3092
And this:
// imx676-driver/imx676_mipi.c
static struct vvcam_mode_info_s pimx676_mode_info[] = {
{
.index = 0,
.size = {
.bounds_width = IMX676_DEFAULT_WIDTH,
.bounds_height = IMX676_DEFAULT_HEIGHT,
.top = 12,
.left = 8,
.width = 3536,
.height = 3072,
},
// ...
I don’t suppose I can simply change those values? It seems like they may have been picked for a particular reason. Let me know what you think.
Thank you,
William
Output of tdx-info
:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.84-7.2.0-g87bfb710b6f1 #1-Torizon SMP PREEMPT Mon Mar 31 08:47:48 UTC 2025
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/157a467dd3b97eaebfbf6e17d0c8859fdd0abc1d397c637c6ecd808f79dc0260/0
Distro name: NAME="Torizon OS"
Distro version: VERSION_ID=7.2.0-build.13
Distro variant: VARIANT="Docker"
Hostname: verdin-imx8mp-15601692
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus WB on Verdin Development Board
Toradex version: 0070 V1.1A
Serial number: 15601692
Processor arch: aarch64
------------------------------------------------------------