[PATCH v5 RESEND 0/1] media: imx: csi: Parse link configuration from fw_node

Mathis Foerst mathis.foerst at mt.com
Mon Jul 14 01:19:12 PDT 2025


Hi,

this patch fixes the imx-media-csi driver to work with camera drivers that
do not implement the subdev-pad-operation "get_mbus_format".

It's the follow up of this discussion:
https://lore.kernel.org/linux-media/Z8AoA6WjbXQufqR6@kekkonen.localdomain/

Changelog:
v3 -> v4:
- Determine the expected mbus_type based on the link topology. If the
  parallel port is used, try to parse the endpoint as V4L2_MBUS_PARALLEL
  and as V4L2_MBUS_BT656.

v2 -> v3:
- Factor out the function "csi_parse_upstream_fw_link_config" for better
  readability.

v1 -> v2:
- No changes (I submitted the wrong patch. I'm sorry for that)

Link to v1 discussion:
https://lore.kernel.org/linux-media/20250305113802.897087-1-mathis.foerst@mt.com/

I tested the changes successfully on an i.MX6DL with an MT9M114 and an
MT9V032 camera. They both use the parallel camera interface.
Sadly, I don't have the hardware to test with a MIPI CSI-2 camera.

Best regards,
Mathis Foerst


Mathis Foerst (1):
  media: imx: csi: Parse link configuration from fw_node

 drivers/staging/media/imx/imx-media-csi.c | 62 +++++++++++++++++++++--
 1 file changed, 58 insertions(+), 4 deletions(-)


base-commit: a8598c7de1bcd94461ca54c972efa9b4ea501fb9
-- 
2.34.1




More information about the linux-arm-kernel mailing list