]> 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)
commit1fa2a84e854479a16b679e1f866abc0aa513c4b6
tree15c964cb7d53bb38d0413e73c6525972569f6634
parentbf6941874480872b1884cf77dd8975d716c00c9d
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