drm: bridge/dw_hdmi: add dw hdmi i2c bus adapter support
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Wed, 24 Aug 2016 05:46:37 +0000 (08:46 +0300)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Sep 2016 06:07:24 +0000 (08:07 +0200)
commit3efc2fa3b777e65e344a7612d38a8278e78a0514
tree2ebd3d55285160f4e724cb2a8cfd46eeeb6b7896
parent9f04a1f2b389a656486c1f9f918a3305569fba6a
drm: bridge/dw_hdmi: add dw hdmi i2c bus adapter support

The change adds support of internal HDMI I2C master controller, this
subdevice is used by default, if "ddc-i2c-bus" DT property is omitted.

The main purpose of this functionality is to support reading EDID from
an HDMI monitor on boards, which don't have an I2C bus connected to
DDC pins.

The current implementation does not support "I2C Master Interface
Extended Read Mode" to read data addressed by non-zero segment
pointer, this means that if EDID has more than 1 extension blocks,
EDID reading operation won't succeed, in my practice all tested HDMI
monitors have at maximum one extension block.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Documentation/devicetree/bindings/display/bridge/dw_hdmi.txt
drivers/gpu/drm/bridge/dw-hdmi.c
drivers/gpu/drm/bridge/dw-hdmi.h