linux/drivers/gpu/drm/rockchip
Sascha Hauer cf544c6a88 drm/rockchip: Add crtc_endpoint_id to rockchip_encoder
The VOP2 has an interface mux which decides to which encoder(s) a CRTC
is routed to. The encoders and CRTCs are connected via of_graphs in the
device tree. When given an encoder the VOP2 driver needs to know to
which internal register setting this encoder matches. For this the VOP2
binding offers different endpoints, one for each possible encoder. The
endpoint ids of these endpoints are used as a key from an encoders
device tree description to the internal register setting.

This patch adds the key aka endpoint id to struct rockchip_encoder plus
a function to read the endpoint id starting from the encoders device
node.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220422072841.2206452-4-s.hauer@pengutronix.de
2022-05-03 11:24:00 +02:00
..
analogix_dp-rockchip.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
cdn-dp-core.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
cdn-dp-core.h drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
cdn-dp-reg.c drm/rockchip: cdn-dp: fix sign extension on an int multiply for a u64 result 2021-05-28 20:27:44 +02:00
cdn-dp-reg.h
dw_hdmi-rockchip.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
dw-mipi-dsi-rockchip.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
inno_hdmi.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
inno_hdmi.h
Kconfig drm/display: Introduce a DRM display-helper module 2022-04-25 11:19:21 +02:00
Makefile drm/rockchip: use generic fbdev setup 2021-12-07 13:55:20 +01:00
rk3066_hdmi.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
rk3066_hdmi.h
rockchip_drm_drv.c drm/rockchip: Add crtc_endpoint_id to rockchip_encoder 2022-05-03 11:24:00 +02:00
rockchip_drm_drv.h drm/rockchip: Add crtc_endpoint_id to rockchip_encoder 2022-05-03 11:24:00 +02:00
rockchip_drm_fb.c drm/rockchip: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:35 +01:00
rockchip_drm_fb.h
rockchip_drm_gem.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
rockchip_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
rockchip_drm_vop.c drm/rockchip: Support YUV formats with U/V swapped 2022-05-03 00:04:17 +02:00
rockchip_drm_vop.h drm/rockchip: Support YUV formats with U/V swapped 2022-05-03 00:04:17 +02:00
rockchip_lvds.c drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
rockchip_lvds.h
rockchip_rgb.c drm: Rename dp/ to display/ 2022-04-25 11:17:45 +02:00
rockchip_rgb.h
rockchip_vop_reg.c drm/rockchip: Support YUV formats with U/V swapped 2022-05-03 00:04:17 +02:00
rockchip_vop_reg.h drm: rockchip: add alpha support for RK3036, RK3066, RK3126 and RK3188 2021-05-28 19:28:00 +02:00