Skip to content

i2c: adv748x: add support for CSI-2 TXA to work in 1-, 2- and 4-lane mode

Niklas Söderlund linux-devicetree linux-media linux-renesas-soc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 17 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: adv748x: make data-lanes property mandatory for CSI-2 endpointsDocumentation/devicetree/bindings/media/i2c/adv748x.txt+3 -06 replies
2/5i2c: adv748x: reorder register writes for CSI-2 transmitters initializationdrivers/media/i2c/adv748x/adv748x-core.c+7 -54 replies
3/5i2c: adv748x: reuse power up sequence when initializing CSI-2drivers/media/i2c/adv748x/adv748x-core.c+2 -261 reply
4/5i2c: adv748x: store number of CSI-2 lanes described in device treedrivers/media/i2c/adv748x/adv748x-core.c drivers/media/i2c/adv748x/adv748x.h+50 -01 reply
5/5i2c: adv748x: configure number of lanes used for TXA CSI-2 transmitterdrivers/media/i2c/adv748x/adv748x-core.c+67 -655 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchLaurent Pinchart
1/5R-b
2/5
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] i2c: adv748x: add support for CSI-2 TXA to work in 1-, 2- and 4-lane mode

From: Niklas Söderlund <[email protected]>

Hi,

This series allows the TXA CSI-2 transmitter of the adv748x to function in 1-, 2- and 4- lane mode. Currently the driver fixes the hardware in 4-lane mode. The driver looks at the standard DT property 'data-lanes' to determine which mode it should operate in.

Patch 1/5 lists the 'data-lanes' DT property as mandatory for endpoints describing the CSI-2 transmitters. Patch 2/5 and 3/5 refactors the initialization sequence of the adv748x to be able to reuse more code. Patch 4/5 adds the DT parsing and storing of the number of lanes. Patch 5/5 merges the TXA and TXB power up/down procedure while also taking the configurable number of lanes into account.

The series is based on the latest media-tree master and is tested on Renesas M3-N in 1-, 2- and 4- lane mode.

Niklas Söderlund (5):
dt-bindings: adv748x: make data-lanes property mandatory for CSI-2
endpoints
i2c: adv748x: reorder register writes for CSI-2 transmitters
initialization
i2c: adv748x: reuse power up sequence when initializing CSI-2
i2c: adv748x: store number of CSI-2 lanes described in device tree
i2c: adv748x: configure number of lanes used for TXA CSI-2 transmitter

 .../devicetree/bindings/media/i2c/adv748x.txt |   3 +
 drivers/media/i2c/adv748x/adv748x-core.c      | 207 ++++++++++--------
 drivers/media/i2c/adv748x/adv748x.h           |   1 +
 3 files changed, 122 insertions(+), 89 deletions(-)
Signature · 1 line
2.19.0