]> git.dujemihanovic.xyz Git - linux.git/commit
drm/msm/dp: Add support for determining the eDP/DP mode from DT
authorAbel Vesa <abel.vesa@linaro.org>
Sun, 24 Mar 2024 18:56:51 +0000 (20:56 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 8 Apr 2024 15:38:40 +0000 (18:38 +0300)
commitd8f177ba1b983e478a8d83ca94b49371129e2c34
tree559dbe421db9a8e9095353ed2eba57b3ad6d52db
parent3e5a516f3bf1a33f2bf219f570e9b5c031616f6a
drm/msm/dp: Add support for determining the eDP/DP mode from DT

Instead of relying on different compatibles for eDP and DP, lookup
the panel node in devicetree to figure out the connector type and
then pass on that information to the PHY. External DP doesn't have
a panel described in DT, therefore, assume it's eDP if panel node
is present.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/584534/
Link: https://lore.kernel.org/r/20240324-x1e80100-display-refactor-connector-v4-1-e0ebaea66a78@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_display.c