[PATCH v2 0/5] media: rockchip: add support for the RK3576 Video Capture unit
WARM1d
From: Amin Gattout <hidden>
Date: 2026-09-21 15:31:43
Also in:
linux-devicetree, linux-media, linux-rockchip, lkml
This series adds support for the Video Capture (VICAP) unit of the Rockchip RK3576 to the rkcif driver. The RK3576 VICAP features a digital video port (DVP) and five MIPI CSI-2 capture interfaces. Compared to the RK3588 variant, the MIPI register blocks are laid out differently, the ID_CTRL0 bit layout has changed, the VC/DT filter has moved from ID_CTRL0 to ID_CTRL1, and the capture size is configured in the new ID_SET_SIZE register. In addition, the pixel clock of each MIPI port enters the VICAP through a dedicated gate in the clock and reset unit, so the VICAP claims five interface clocks and five interface resets. The two driver patches that come first prepare the rkcif driver for that, by adding a register index for the capture size and a callback for the contents of ID_CTRL1. Neither changes the behavior of the existing variants. The device tree node connects the VICAP to the two MIPI CSI-2 receivers that are usable with the MIPI D-PHYs in full mode, following the approach taken for the RK3588. Tested on a Radxa ROCK 4D with a Radxa Camera 4K, whose Sony IMX415 sensor is wired to the first MIPI D-PHY in full mode. This series applies on top of the RK3576 MIPI CSI-2 receiver series [1]. [1] https://lore.kernel.org/r/20260915-csi-2-rcv-dts-v2-0-bdaf8141616a@gmail.com (local) Signed-off-by: Amin Gattout <redacted> --- Changes in v2: - Split the driver patch in three, one adding a register index for the capture size, one adding a callback for the contents of ID_CTRL1, and one adding the RK3576 support itself (Michael) - Collected Acked-by from Conor and Reviewed-by from Michael on the binding patch, and Reviewed-by from Michael on the device tree patch - Link to v1: https://patch.msgid.link/20260915-vicap-rk3576-v1-0-d3f5eb58a0b5@gmail.com --- Amin Gattout (5): media: dt-bindings: add rockchip rk3576 vicap media: rockchip: rkcif: add a register index for the MIPI capture size media: rockchip: rkcif: add a callback for the MIPI ID_CTRL1 register media: rockchip: rkcif: add support for rk3576 vicap mipi capture arm64: dts: rockchip: add vicap node to rk3576 .../bindings/media/rockchip,rk3568-vicap.yaml | 46 +++++- arch/arm64/boot/dts/rockchip/rk3576.dtsi | 83 +++++++++++ .../platform/rockchip/rkcif/rkcif-capture-mipi.c | 155 ++++++++++++++++++++- .../platform/rockchip/rkcif/rkcif-capture-mipi.h | 1 + .../media/platform/rockchip/rkcif/rkcif-common.h | 4 +- drivers/media/platform/rockchip/rkcif/rkcif-dev.c | 21 +++ drivers/media/platform/rockchip/rkcif/rkcif-regs.h | 1 + 7 files changed, 308 insertions(+), 3 deletions(-) --- base-commit: bd5f485f3f026225b86573e559af0b7254ef4184 change-id: 20260828-vicap-rk3576-6e7118ea0246 prerequisite-change-id: 20260825-csi-2-rcv-dts-7712bd834de6:v2 prerequisite-patch-id: fbe2d84f88709b8bf846debe6b8ce62c4392ca63 prerequisite-patch-id: 9bce33933ae69e8cc7f7ef2f0d9acb969620bc85 prerequisite-patch-id: bff0c668524f94b0b7901c682d5ccdccfe18d46e prerequisite-patch-id: 8f45701f840680a35e044f43ebd3087282847990 prerequisite-patch-id: bdbb3e9b072469900cac21031cd799265b52d734 prerequisite-patch-id: c91ceb74abc8bc79ac036990abdef4cbd7328f97 Best regards, -- Amin Gattout [off-list ref]