[PATCH v8 0/3] media: rockchip: add driver for the rockchip mipi csi-2 receiver
From: Michael Riesch via B4 Relay <devnull+michael.riesch.collabora.com@kernel.org>
Date: 2026-01-20 12:22:31
Also in:
b4-sent, linux-devicetree, linux-media, linux-rockchip, lkml
Habidere, This series adds support for the Rockchip MIPI CSI-2 Receiver that is integrated into recent Rockchip SoCs, such as the RK3568 and the RK3588. According to Rockchip, this core is NOT the Synopsys MIPI CSI-2 Host, but it features a compatible register layout (thanks Chaoyi for the clarification). As pointed out by Frank, we should thus rename the driver and place it under drivers/media/platform/synopsys to facilitate re-use of this code for similar IP cores. As has been discussed in [0], it would be beneficial to add support for the split mode (a feature of the Rockchip CSI-2 DPHY) before integrating the MIPI CSI-2 Receiver into the respective SoC device tree includes. However, we can readily add the DT binding and the driver as I am positive they will not need to be changed significantly when this feature is introduced. This constitutes a small step towards mainline video capture and camera support on the Rockchip RK3588. Looking forward to your comments! Signed-off-by: Michael Riesch <michael.riesch@collabora.com> [0] https://lore.kernel.org/r/20240220-rk3568-vicap-v14-0-b38b6da0fc80@collabora.com (local) --- Changes in v8: - moved driver directly to drivers/media/platform/synopsys (Sakari) - fixed further cosmetic issues (Frank) - Link to v7: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v7-0-42ff419f9b51@collabora.com (local) Changes in v7: - fixed several cosmetic issues (Frank) - Link to v6: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v6-0-b7ce6e68b3fa@collabora.com (local) Changes in v6: - renamed driver to dw-mipi-csi2rx (Sakari) - fixed return value of v4l2_get_link_freq (this time, really) (Sakari) - Link to v5: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v5-0-45aa117f190a@collabora.com (local) Changes in v5: - fixed indentation in struct platform_driver ... (Sakari) - fixed return value in case v4l2_get_link_freq returns 0 (Sakari) - switched from pm_runtime_put_sync() to pm_runtime_put() (Sakari) - Link to v4: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v4-0-a9c86fecd052@collabora.com (local) Changes in v4: - moved driver to drivers/media/platform/synopsys and renamed it (Frank) - addresse review comments by Sakari - Link to v3: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v3-0-16e83aa7f395@collabora.com (local) Changes in v3: - rebased onto v6.19/recent media-committers/next - Link to v2: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v2-0-eb9b43377fc4@collabora.com (local) Changes in v2: - dropped one R-b by Bryan, as there were two of them on the same patch (Krzysztof) - Link to v1: https://lore.kernel.org/r/20251114-rockchip-mipi-receiver-v1-0-d13086e810dd@collabora.com (local) --- Michael Riesch (3): media: dt-bindings: add rockchip mipi csi-2 receiver media: synopsys: add driver for the designware mipi csi-2 receiver arm64: defconfig: enable designware mipi csi-2 receiver .../bindings/media/rockchip,rk3568-mipi-csi2.yaml | 141 ++++ MAINTAINERS | 7 + arch/arm64/configs/defconfig | 1 + drivers/media/platform/synopsys/Kconfig | 18 + drivers/media/platform/synopsys/Makefile | 2 + drivers/media/platform/synopsys/dw-mipi-csi2rx.c | 726 +++++++++++++++++++++ 6 files changed, 895 insertions(+) --- base-commit: eb4ee870747c3a77a9c3c84d84efb64bd481013a change-id: 20251114-rockchip-mipi-receiver-0baf244c9c8e Best regards, -- Michael Riesch [off-list ref]