Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit a627f796 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Vignesh Raghavendra
Browse files

phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes


As some D-PHY controllers support both Rx and Tx mode, we need a way for
users to explicitly request one or the other. For instance, Rx mode can
be used along with MIPI CSI-2 while Tx mode can be used with MIPI DSI.

Introduce new MIPI D-PHY PHY submodes to use with PHY_MODE_MIPI_DPHY.
The default (zero value) is kept to Tx so only the rkisp1 driver, which
uses D-PHY in Rx mode, needs to be adapted.

Signed-off-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent e9d19e58
Branches
Tags
No related merge requests found
...@@ -6,6 +6,19 @@ ...@@ -6,6 +6,19 @@
#ifndef __PHY_MIPI_DPHY_H_ #ifndef __PHY_MIPI_DPHY_H_
#define __PHY_MIPI_DPHY_H_ #define __PHY_MIPI_DPHY_H_
/**
* enum phy_mipi_dphy_submode - MIPI D-PHY sub-mode
*
* A MIPI D-PHY can be used to transmit or receive data.
* Since some controllers can support both, the direction to enable is specified
* with the PHY sub-mode. Transmit is assumed by default with phy_set_mode.
*/
enum phy_mipi_dphy_submode {
PHY_MIPI_DPHY_SUBMODE_TX = 0,
PHY_MIPI_DPHY_SUBMODE_RX,
};
/** /**
* struct phy_configure_opts_mipi_dphy - MIPI D-PHY configuration set * struct phy_configure_opts_mipi_dphy - MIPI D-PHY configuration set
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment