]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: simple: Support panels with HPD where HPD isn't connected
authorDouglas Anderson <dianders@chromium.org>
Thu, 25 Oct 2018 22:21:30 +0000 (15:21 -0700)
committerSean Paul <seanpaul@chromium.org>
Mon, 29 Oct 2018 15:53:27 +0000 (11:53 -0400)
commitd5317baf6b744b6d4638a938a2fff168663c64ab
treed97dc4dc131b236e6db32e562df76e0eaa3df8df
parentdbc67f219c51661197202beab42d4aa7ba9e39ef
drm/panel: simple: Support panels with HPD where HPD isn't connected

Some eDP panels that are designed to be always connected to a board
use their HPD signal to signal that they've finished powering on and
they're ready to be talked to.

However, for various reasons it's possible that the HPD signal from
the panel isn't actually hooked up.  In the case where the HPD isn't
hooked up you can look at the timing diagram on the panel datasheet
and insert a delay for the maximum amount of time that the HPD might
take to come up.

Let's add support in simple-panel for this concept.

At the moment we will co-opt the existing "prepare" delay to keep
track of the delay and we'll use a boolean to specify that a given
panel should only apply the delay if the "no-hpd" property was
specified.

Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20181025222134.174583-2-dianders@chromium.org
drivers/gpu/drm/panel/panel-simple.c