]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad4062: Add GPIO Controller support
authorJorge Marques <jorge.marques@analog.com>
Wed, 17 Dec 2025 12:13:32 +0000 (13:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 31 Dec 2025 17:59:25 +0000 (17:59 +0000)
commitda1d3596b1e456b5d5d5f719bbf5ce562f4fe22d
tree8955021c934cf21e48f7f1105dcaf8ec39587e32
parentd2ca7af298fe4c373bce2d6714649b887f6426d8
iio: adc: ad4062: Add GPIO Controller support

When gp0 or gp1 is not taken as an interrupt, expose them as GPO if
gpio-contoller is set in the devicetree. gpio-regmap is not used
because the GPO static low is 'b101 and static high is 0b110; low state
requires setting bit 0, not fitting the abstraction of low=0 and
high=mask.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad4062.c