linux-phy.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] phy: qcom: edp: Add support for DT phy mode configuration
@ 2023-12-19 20:55 Abel Vesa
  2023-12-19 20:55 ` [PATCH 1/3] dt-bindings: phy: Add PHY_TYPE_EDP definition Abel Vesa
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Abel Vesa @ 2023-12-19 20:55 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Bjorn Andersson,
	Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Dmitry Baryshkov, Johan Hovold
  Cc: linux-phy, linux-kernel, linux-arm-msm, devicetree, Abel Vesa

Until now, all platform that supported both eDP and DP had different
compatibles for each mode. Using different compatibles for basically
the same IP block but for a different configuration is bad way all
around. There is a new compute platform from Qualcomm that supports
both eDP and DP with the same PHY. So instead of following the old
method, we should allow the mode to be configured from devicetree.

There has been an off-list discussion on what would be the right way
to pass on the PHY mode information to the driver and it has been
concluded that phy-cells is the way to go. This means that basically
the controller will pass another value (that is, the PHY type) to
its 'phys' DT property.

For this, we need both the bindings value and the PHY mode value to be
added as well.

The controller part will follow shortly. But for now, lets see where
this is going.

There has been another attempt at this here:
https://lore.kernel.org/all/20231122-phy-qualcomm-edp-x1e80100-v3-3-576fc4e9559d@linaro.org/

Compared to that version, this one uses the phy-cells method and drops
the X1E80100 support. The X1E80100 support will be a separate patchset.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
---
Abel Vesa (3):
      dt-bindings: phy: Add PHY_TYPE_EDP definition
      phy: Add PHY Embedded DisplayPort mode
      phy: qcom: edp: Allow PHY mode configuration via devicetree

 drivers/phy/qualcomm/phy-qcom-edp.c | 89 ++++++++++++++++++++++++++++---------
 include/dt-bindings/phy/phy.h       |  1 +
 include/linux/phy/phy.h             |  3 +-
 3 files changed, 70 insertions(+), 23 deletions(-)
---
base-commit: 0e182d9523f6c0af49357fcd812eaa702bd4b403
change-id: 20231219-x1e80100-phy-edp-compatible-refactor-8733eca7ccda

Best regards,
-- 
Abel Vesa <abel.vesa@linaro.org>


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-25 16:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 20:55 [PATCH 0/3] phy: qcom: edp: Add support for DT phy mode configuration Abel Vesa
2023-12-19 20:55 ` [PATCH 1/3] dt-bindings: phy: Add PHY_TYPE_EDP definition Abel Vesa
2023-12-20  7:42   ` Krzysztof Kozlowski
2023-12-19 20:55 ` [PATCH 2/3] phy: Add PHY Embedded DisplayPort mode Abel Vesa
2023-12-21 16:29   ` Dmitry Baryshkov
2023-12-19 20:55 ` [PATCH 3/3] phy: qcom: edp: Allow PHY mode configuration via devicetree Abel Vesa
2023-12-21 16:27 ` [PATCH 0/3] phy: qcom: edp: Add support for DT phy mode configuration Dmitry Baryshkov
2024-01-03 13:42   ` Konrad Dybcio
2024-01-15  9:52     ` Abel Vesa
2024-01-25 16:36       ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).