[PATCH 0/4] Extend phy_configure_opts_mipi_dphy to support position and polarity

From: Bryan O'Donoghue

Date: Wed Mar 25 2026 - 17:49:20 EST


struct phy_configure_opts_mipi_dphy currently passes @lanes as a linear
count of data-lanes starting from lane zero to a consuming DPHY driver.

This proves insufficient when we want to specify lane location and lane
polarity.

To address this gap extend the structure to pass four new fields.

- lane_positions
An array indicating the physical position of each data-lane

- lane_polarities
An array indicating the polarity of each data-lane

- clock_lane_position
A singleton indicating the physical location of the clock-lane

- clock_lane_polarity
A singleton indicating the polarity of the clock lane

These properties correspond to data-lanes, clock-lanes and lane-polarities
as defined in video-interfaces.yaml and already parsed by
v4l2_fwnode_endpoint_parse.

A controller can use these fields to pass down the relevant data to the PHY
driver over and above the assumption of simple linear consecutive
data-lanes as has been possible to this point.


Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
Bryan O'Donoghue (4):
phy: dphy: Add lane_positions to DPHY config struct
phy: dphy: Add lane_polarities to DPHY config struct
phy: dphy: Add clock_lane_position to DPHY config struct
phy: dphy: Add clock_lane_polarity to DPHY config struct

include/linux/phy/phy-mipi-dphy.h | 37 +++++++++++++++++++++++++++++++++++--
1 file changed, 35 insertions(+), 2 deletions(-)
---
base-commit: c824345288d11e269ce41b36c105715bc2286050
change-id: 20260325-dphy-params-extension-5fcd9ba8af61

Best regards,
--
Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>