drm/bridge: analogix-anx78xx: add support for 7808 addresses
authorBrian Masney <masneyb@onstation.org>
Sun, 22 Sep 2019 17:59:40 +0000 (13:59 -0400)
committerAndrzej Hajda <a.hajda@samsung.com>
Thu, 10 Oct 2019 09:24:11 +0000 (11:24 +0200)
commit025910db8057f60d2d2aa11002f7751e3eb66588
tree7821252e8a94c3c8cebbb915c93246329e1bb00b
parent710abfe8ead2477a3769c0c297c1df2833725bb6
drm/bridge: analogix-anx78xx: add support for 7808 addresses

According to the downstream Android sources, the anx7808 variants use
address 0x78 for TX_P0 and the anx781x variants use address 0x70. Since
the datasheets aren't available for these devices, and we only have the
downstream kernel sources to look at, let's assume that these addresses
are fixed based on the model, and pass the i2c addresses to the driver
via the data pointer in the driver's of_match_table.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190922175940.5311-1-masneyb@onstation.org
drivers/gpu/drm/bridge/analogix-anx78xx.c
drivers/gpu/drm/bridge/analogix-anx78xx.h