Re: [PATCH v6 1/9] dt-bindings: phy: Add PHY_DIRECTION_TX/RX definitions
From: Michael Riesch
Date: Wed Nov 11 2026 - 05:32:32 EST
Hi Jason,
Thanks for the patch.
On 11/10/26 09:18, Jason Yang wrote:
> A MIPI D-PHY or C-PHY can be a transmitter or a receiver. Some PHY
> blocks have one of each and can use them at the same time, so one PHY
> node offers two PHYs. The existing cell, PHY_TYPE_DPHY or
> PHY_TYPE_CPHY, selects the mode of the whole block, not one of the two
> PHYs.
>
> Add PHY_DIRECTION_TX and PHY_DIRECTION_RX for a cell that selects the
> transmitter or the receiver. The first user is the Rockchip RK3588 MIPI
> DC-PHY, where the transmitter serves a DSI host and the receiver a CSI-2
> host.
>
> Suggested-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxx>
> Link: https://lore.kernel.org/r/7425ac83-f6d8-4443-a26e-a47f9306aa24@xxxxxxxxxxxxx
> Signed-off-by: Jason Yang <jason98166@xxxxxxxxx>
> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Reviewed-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxx>
Best regards,
Michael
> ---
> include/dt-bindings/phy/phy.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h
> index 979b5dfd8353..9ead74d9a172 100644
> --- a/include/dt-bindings/phy/phy.h
> +++ b/include/dt-bindings/phy/phy.h
> @@ -29,4 +29,7 @@
> #define PHY_POL_INVERT 1
> #define PHY_POL_AUTO 2
>
> +#define PHY_DIRECTION_TX 0
> +#define PHY_DIRECTION_RX 1
> +
> #endif /* _DT_BINDINGS_PHY */
>