[PATCH 00/13] media/imx355: General code cleanups, and adding support for 2 lane operation
From: Dave Stevenson
Date: Wed May 06 2026 - 14:24:04 EST
This series came about as we had a customer ask about using imx355,
so I had a look at what was going on.
There was significant duplication between the various mode register lists,
unused parameters around, and no support for advertising the crop
rectangles through get_selection. It also wasn't using V4L2_CCI so
had all the boilerplate for writing registers.
The customer also wanted to run the sensor over only 2 CSI2 data lanes
which required some rework of the clock setup so that the MIPI link
frequency could be run at 445MHz instead of the 360MHz used for 4 lane
mode.
The first 11 patches are cleanups which should be fairly uncontroversial.
Patch 12 converts to use V4L2_CCI.
Finally patch 13 adds 2 lane support.
The series is based on sailus/next, with David Heidelberg's patch for
24MHz clock support added as that also suited my module.
(Linked in the dependencies).
---
Dave Stevenson (13):
media: imx355: Remove duplicated registers from the mode tables
media: imx355: Remove setting FRM_LENGTH_LINES in the mode regs
media: imx355: Programmatically set the crop parameters for each mode
media: imx355: Remove the duplication between width/height and x/y_out_size
media: imx355: Set register LINE_LENGTH_PCK programmatically
media: imx355: Set binning mode registers programmatically
media: imx355: Remove link_freq_index from each mode as ununsed
media: imx355: pixel_rate never changes, so don't recompute
media: imx355: Remove redundant fll_min, and implement fixed offset
media: imx355: Add support for get_selection
media: imx355: Use pm_runtime autosuspend_delay
media: imx355: Convert to new CCI register access helpers
media: imx355: Support 2 lane readout.
drivers/media/i2c/Kconfig | 1 +
drivers/media/i2c/imx355.c | 1317 ++++++++++++++------------------------------
2 files changed, 428 insertions(+), 890 deletions(-)
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260506-media-imx355-a30f5be3deda
prerequisite-message-id: <20260414-imx355-24mhz-v1-1-9ae77bc6e7ec@xxxxxxx>
prerequisite-patch-id: dd4b6c74431239b3fc0f609dda439d1812a7b01e
Best regards,
--
Dave Stevenson <dave.stevenson@xxxxxxxxxxxxxxx>