drm: bridge: icn6211: Convert to regmap
authorMarek Vasut <marex@denx.de>
Sun, 3 Apr 2022 17:10:04 +0000 (19:10 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 13 Apr 2022 14:24:37 +0000 (16:24 +0200)
commitfb47723aba6fb62a6dce34eb108c886d9d469f9c
treebf1f80b5515db7d41205d3347ac71045a191a186
parent84ab41db1734c7764a4f29a99d3106586495638c
drm: bridge: icn6211: Convert to regmap

To make debugging easier, convert driver to regmap. Implement read and write
regmap tables for known registers, keep all known register readable and mark
those which are obviously read-only as not writeable.

Use common I2C regmap for the I2C configuration, implement custom regmap bus
for DSI configuration. The later is mandatory as this chip requires one extra
byte set to read access length between register address and data.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
To: dri-devel@lists.freedesktop.org
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220403171004.368464-1-marex@denx.de
drivers/gpu/drm/bridge/Kconfig
drivers/gpu/drm/bridge/chipone-icn6211.c