]> git.ipfire.org Git - thirdparty/linux.git/commit
media: rzg2l-cru: csi-2: Support RZ/V2H input sizes
authorJacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Fri, 29 Aug 2025 11:12:14 +0000 (13:12 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 6 Jan 2026 09:14:13 +0000 (10:14 +0100)
commit63d95712309299af25ea2d170899468be051d91e
tree411dc548e036887ace6e6ed000468287038b12d2
parent22cd0db47f4f65ebe8afc8c34ab120c47c73da2a
media: rzg2l-cru: csi-2: Support RZ/V2H input sizes

The CRU version on the RZ/V2H SoC supports larger input sizes
(4096x4096) compared to the version on the RZ/G2L (2800x4095).

Store the per-SoC min/max sizes in the device match info and use them
in place of the hardcoded ones.

While at it, use the min sizes reported by the info structure to replace
the RZG2L_CSI2_DEFAULT_WIDTH/HEIGHT macros.

Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Tested-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c