gpio: Support ROHM BD71815 GPOs
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 5 Apr 2021 11:43:08 +0000 (14:43 +0300)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 09:19:22 +0000 (10:19 +0100)
commit703b288f3edf7b08d256499802fba88df5032d53
tree5b063c46e05e64e7942d3e6a7cda8ef224d0ae96
parent4dcdcfd5abb34d3139669fcd830b756d45678c47
gpio: Support ROHM BD71815 GPOs

Support GPO(s) found from ROHM BD71815 power management IC. The IC has two
GPO pins but only one is properly documented in the data-sheet. The driver
exposes by default only the documented GPO. The second GPO is connected to
E5 pin and is marked as GND in the data-sheet. Control for this
undocumented pin can be enabled using a special DT property.

This driver is derived from work by Peter Yang <yanglsh@embest-tech.com>
although not so much of the original is left.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-bd71815.c [new file with mode: 0644]