]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: adp5585: add support for the adp5589 expander
authorNuno Sá <nuno.sa@analog.com>
Tue, 1 Jul 2025 14:32:04 +0000 (15:32 +0100)
committerLee Jones <lee@kernel.org>
Tue, 1 Jul 2025 20:50:51 +0000 (21:50 +0100)
commit9f425bf713b511b1078e0fea5a88c497e13dbb64
tree5e5feb8af103425c7c52b6c1381afbb8b2ccb6c2
parent7077fb501b95360c7fe35553f2bdb1ccf34edd16
gpio: adp5585: add support for the adp5589 expander

Support the adp5589 I/O expander which supports up to 19 pins. We need
to add a chip_info based struct since accessing register "banks"
and "bits" differs between devices.

Also some register addresses are different.

While at it move ADP558X_GPIO_MAX defines to the main header file and
rename them. That information will be needed by the top level device in
a following change.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-9-b1fcfe9e9826@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/gpio/gpio-adp5585.c
include/linux/mfd/adp5585.h