linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] media: rcar-csi2: Add D-PHY support for V4H`
@ 2025-06-11 15:44 Niklas Söderlund
  2025-06-11 15:44 ` [PATCH v3 1/4] media: rcar-csi2: Clarify usage of mbps and msps Niklas Söderlund
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Niklas Söderlund @ 2025-06-11 15:44 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Geert Uytterhoeven, Sakari Ailus,
	Tomi Valkeinen, Laurent Pinchart, linux-media, linux-renesas-soc,
	linux-kernel
  Cc: Niklas Söderlund

Hello,

This series adds support for CSI-2 D-PHY reception on R-Car Gen4 V4H
devices. Previously only C-PHY reception was supported due lack of 
documentation and no hardware to test D-PHY on.

Later revisions of the datasheet (Rev.1.21) describes the start-up
procedure in some detail, and we now have hardware to test on! The
documentation however only sparsely documents the registers involved and
instead mostly document magic values and an order to write them to
register offsets without much documentation.

This series tries to in the extend possible to at least used named
register and use formulas and lookup tables to make some sens of the
magic values. Still most of them comes of a table of magic values in the
datasheet.

Patch 1/4 clears up a unfortunate mix of the name mbps (mega bits per
second) used in the D-PHY context and msps (mega symbols per second)
used in the C-PHY context.

Patch 2/4 and 3/4 prepares for adding D-PHY support by cleaning up
register names and an updated common startup procedure for V4H which
have been revised in later versions of the datasheet since the initial
C-PHY V4H support was added.

Finally patch 4/4 adds D-PHY support.

The work is tested at many different link speed and number of
lanes. In 2-lane mode using an IMX219 and in 4-lane mode using IMX462
sensors.

See individual patches for change log.

Niklas Söderlund (4):
  media: rcar-csi2: Clarify usage of mbps and msps
  media: rcar-csi2: Rework macros to access AFE lanes
  media: rcar-csi2: Update start procedure for V4H
  media: rcar-csi2: Add D-PHY support for V4H

 drivers/media/platform/renesas/rcar-csi2.c | 342 ++++++++++++++++++---
 1 file changed, 297 insertions(+), 45 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-06-12 12:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 15:44 [PATCH v3 0/4] media: rcar-csi2: Add D-PHY support for V4H` Niklas Söderlund
2025-06-11 15:44 ` [PATCH v3 1/4] media: rcar-csi2: Clarify usage of mbps and msps Niklas Söderlund
2025-06-11 15:44 ` [PATCH v3 2/4] media: rcar-csi2: Rework macros to access AFE lanes Niklas Söderlund
2025-06-11 15:44 ` [PATCH v3 3/4] media: rcar-csi2: Update start procedure for V4H Niklas Söderlund
2025-06-11 15:44 ` [PATCH v3 4/4] media: rcar-csi2: Add D-PHY support " Niklas Söderlund
2025-06-11 23:04   ` Laurent Pinchart
2025-06-12 10:01     ` Niklas Söderlund
2025-06-12 11:19       ` Geert Uytterhoeven
2025-06-12 12:27         ` Niklas Söderlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).