mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Vinod Koul <vkoul@kernel.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	 Marco Felsch <m.felsch@pengutronix.de>,
	Maxime Ripard <mripard@kernel.org>
Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org,
	 Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Subject: [PATCH 2/4] phy: dphy: Add lane_polarities to DPHY config struct
Date: Wed, 25 Mar 2026 21:47:58 +0000	[thread overview]
Message-ID: <20260325-dphy-params-extension-v1-2-c6df5599284a@linaro.org> (raw)
In-Reply-To: <20260325-dphy-params-extension-v1-0-c6df5599284a@linaro.org>

Pass an array of data-lane polarities from controller to PHY. A true value
means the lane polarity is inverted.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 include/linux/phy/phy-mipi-dphy.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/linux/phy/phy-mipi-dphy.h b/include/linux/phy/phy-mipi-dphy.h
index c7eb11c41d7ec..3e0333b5a1a71 100644
--- a/include/linux/phy/phy-mipi-dphy.h
+++ b/include/linux/phy/phy-mipi-dphy.h
@@ -284,6 +284,14 @@ struct phy_configure_opts_mipi_dphy {
 	 * Indexed by logical lane number.
 	 */
 	unsigned char		lane_positions[PHY_MIPI_DPHY_MAX_DATA_LANES];
+
+	/**
+	 * @lane_polarities:
+	 *
+	 * Array representing data-lane polarities. True means inverted.
+	 * Indexed by logical lane number.
+	 */
+	bool			lane_polarities[PHY_MIPI_DPHY_MAX_DATA_LANES];
 };
 
 int phy_mipi_dphy_get_default_config(unsigned long pixel_clock,

-- 
2.52.0


  parent reply	other threads:[~2026-03-25 21:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 21:47 [PATCH 0/4] Extend phy_configure_opts_mipi_dphy to support position and polarity Bryan O'Donoghue
2026-03-25 21:47 ` [PATCH 1/4] phy: dphy: Add lane_positions to DPHY config struct Bryan O'Donoghue
2026-03-25 21:47 ` Bryan O'Donoghue [this message]
2026-03-25 21:47 ` [PATCH 3/4] phy: dphy: Add clock_lane_position " Bryan O'Donoghue
2026-03-25 21:48 ` [PATCH 4/4] phy: dphy: Add clock_lane_polarity " Bryan O'Donoghue
2026-05-19 10:27 ` [PATCH 0/4] Extend phy_configure_opts_mipi_dphy to support position and polarity Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260325-dphy-params-extension-v1-2-c6df5599284a@linaro.org \
    --to=bryan.odonoghue@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=m.felsch@pengutronix.de \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®