mbox series

[v2,0/8] media: rcar-csi2: Add support for V4M

Message ID 20240830203104.3479124-1-niklas.soderlund+renesas@ragnatech.se
Headers show
Series media: rcar-csi2: Add support for V4M | expand

Message

Niklas Söderlund Aug. 30, 2024, 8:30 p.m. UTC
Hello,

This series enables support for R-Car V4M to the CSI-2 receiver.

Patch 1 adds the binding for the new device. This patch was posted 
separately in v1 but have now been folded in to this series.

Patch 2-3 clean up some simplifications in the driver which where
possible before V4M support but that now needs to be addressed.

Patch 4-6 prepares for V4M support by extending some of the abstractions
used in the driver to cover how they are implemented in the V4M version
of the CSI-2 IP.

Patch 7 improves the documentation around two registers used on Gen4 as
later datasheets now document them and they will be used when enabling
V4M support.

And finally patch 8 adds V4M support. The V4M is similar in design to
V4H with the big difference it only supports CSI-2 D-PHY. All of the
media graph setup and V4L2 callbacks can be reused, only the start
procedure is different.

See individual patches for changelog.

Niklas Söderlund (8):
  dt-bindings: media: renesas,csi2: Add binding for V4M
  media: rcar-csi2: Correct field size for PHTW writes
  media: rcar-csi2: Allow writing any code and data value to PHTW
  media: rcar-csi2: Abstract PHTW and PHYPLL register offsets
  media: rcar-csi2: Add helper to lookup mbps settings
  media: rcar-csi2: Move PHTW write helpers
  media: rcar-csi2: Add documentation for PHY_EN and PHY_MODE registers
  media: rcar-csi2: Add support for R-Car V4M

 .../bindings/media/renesas,csi2.yaml          |   1 +
 drivers/media/platform/renesas/rcar-csi2.c    | 518 ++++++++++++++----
 2 files changed, 419 insertions(+), 100 deletions(-)