diff mbox series

drm/rockchip: analogix_dp: get encoder port ID from DT

Message ID 20240103181301.3339595-1-l.stach@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series drm/rockchip: analogix_dp: get encoder port ID from DT | expand

Commit Message

Lucas Stach Jan. 3, 2024, 6:13 p.m. UTC
The VOP2 driver needs this port ID to properly configure the
display data routing.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Heiko Stübner Jan. 4, 2024, 8:14 a.m. UTC | #1
On Wed, 3 Jan 2024 19:13:01 +0100, Lucas Stach wrote:
> The VOP2 driver needs this port ID to properly configure the
> display data routing.
> 
> 

Applied, thanks!

[1/1] drm/rockchip: analogix_dp: get encoder port ID from DT
      commit: bb056046c2139c72e20a5b6fc39c9caaf9eac2b8

Best regards,
diff mbox series

Patch

diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
index 84aa811ca1e9..cea8d1af0ec7 100644
--- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
+++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
@@ -344,6 +344,9 @@  static int rockchip_dp_bind(struct device *dev, struct device *master,
 		return ret;
 	}
 
+	rockchip_drm_encoder_set_crtc_endpoint_id(&dp->encoder,
+						  dev->of_node, 0, 0);
+
 	dp->plat_data.encoder = &dp->encoder.encoder;
 
 	ret = analogix_dp_bind(dp->adp, drm_dev);