drm/vc4: Respect GPIO_ACTIVE_LOW on HDMI HPD if set in the devicetree.
authorEric Anholt <eric@anholt.net>
Tue, 1 Mar 2016 01:53:01 +0000 (17:53 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 14 Mar 2016 00:06:57 +0000 (17:06 -0700)
commit0b06e0a7945130e6a187f7959529cba7725f573a
tree014e9783220bbbf9f0a423735eb7536ac4fd3851
parent0e60eab57557bc06bb3a5ef8d5d6dcd9ddd47aff
drm/vc4: Respect GPIO_ACTIVE_LOW on HDMI HPD if set in the devicetree.

The original Raspberry Pi had the GPIO active high, but the later
models are active low.  The DT GPIO bindings allow specifying the
active flag, except that it doesn't get propagated to the gpiodesc, so
you have to handle it yourself.

Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Daniel Stone <daniels@collabora.com>
drivers/gpu/drm/vc4/vc4_hdmi.c