FROMLIST: drm: bridge/dw_hdmi: add dw hdmi i2c bus adapter support
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Sun, 30 Aug 2015 21:34:30 +0000 (00:34 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 06:22:40 +0000 (14:22 +0800)
commit2340e236eb85c518f64d70558b31b2507e691f2c
tree120cc38d1217f83803058f82b783f622f0d5cd10
parent07755b71c869bb2907bd551f3243d44bf82d9195
FROMLIST: 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.
(am from https://patchwork.kernel.org/patch/7098101)

Change-Id: Ic3abe878a02f89bda15f39676164803b467c62a1
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/292012
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
drivers/gpu/drm/bridge/dw-hdmi.c
drivers/gpu/drm/bridge/dw-hdmi.h