]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Support panels connected directly to the DPAD outputs
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 2 Mar 2019 16:13:04 +0000 (18:13 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 28 Mar 2019 04:06:33 +0000 (06:06 +0200)
commit71f19093c59eef7fb8a34cdc0e7e17eb2e68846c
tree15c964cb7d53bb38d0413e73c6525972569f6634
parent4672edba437b352f23dc2a8296082d6358331516
drm: rcar-du: Support panels connected directly to the DPAD outputs

The R-Car DU driver assumes that a bridge is always connected to the DU
output. This is valid for the LVDS and HDMI outputs, but the DPAD
outputs can be connected directly to a panel, in which case no bridge is
available.

To support this use case, detect whether the entities connected to the
DU DPAD outputs are encoders or panels based on the number of ports of
their DT node, and retrieve the corresponding type of DRM objects. For
panels, additionally create panel bridge instances.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Kevin Key <kevin.key@gentex.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
drivers/gpu/drm/rcar-du/rcar_du_encoder.c