]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
gpio: arizona: Add support for GPIOs that need to be maintained
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 23 May 2017 14:47:30 +0000 (15:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 09:09:01 +0000 (11:09 +0200)
commit27a49ed17e2245cacbdea88ad78b8494653e0338
tree58b1810f4ab32cb032a5a72928df0658886e4db6
parent05f479bf7d239f01ff6546f2bdeb14ad0fe65601
gpio: arizona: Add support for GPIOs that need to be maintained

The Arizona devices only maintain the state of output GPIOs whilst the
CODEC is active, this can cause issues if the CODEC suspends whilst
something is relying on the state of one of its GPIOs. However, in
many systems the CODEC GPIOs are used for audio related features
and thus the state of the GPIOs is unimportant whilst the CODEC is
suspended. Often keeping the CODEC resumed in such a system would
incur a power impact that is unacceptable.

Allow the user to select whether a GPIO output should keep the
CODEC resumed, by adding a flag through the second cell of the GPIO
specifier in device tree.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-arizona.c