drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO
authorOtto Pflüger <otto.pflueger@abscue.de>
Mon, 24 Jul 2023 06:56:54 +0000 (08:56 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 2 Aug 2023 11:18:34 +0000 (13:18 +0200)
commit3a63ef6e4b9e9db6d1e131f9477f0f4006c894d9
treee9e4986b100150ce0d545fab29672de30b954481
parent8cc8ccbaa5d89b65a32f0260b0cd2288d2c9b6dc
drm/tiny: panel-mipi-dbi: Allow sharing the D/C GPIO

Displays that are connected to the same SPI bus may share the D/C GPIO.
Use GPIOD_FLAGS_BIT_NONEXCLUSIVE to allow access to the same GPIO for
multiple panel-mipi-dbi instances. Exclusive access to the GPIO during
transfers is ensured by the locking in drm_mipi_dbi.c.

Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230724065654.5269-3-otto.pflueger@abscue.de
drivers/gpu/drm/tiny/panel-mipi-dbi.c