Skip to content

Commit 19298ac

Browse files
nunojsalag-linaro
authored andcommitted
Input: adp5585: Add Analog Devices ADP5585/89 support
The ADP5585 is a 10/11 input/output port expander with a built in keypad matrix decoder, programmable logic, reset generator, and PWM generator. This driver supports the keyboard function using the platform device registered by the core MFD driver. The ADP5589 has 19 pins and also features an unlock function. Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-16-b1fcfe9e9826@analog.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 988b28a commit 19298ac

4 files changed

Lines changed: 384 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ L: linux-pwm@vger.kernel.org
550550
S: Maintained
551551
F: Documentation/devicetree/bindings/*/adi,adp5585*.yaml
552552
F: drivers/gpio/gpio-adp5585.c
553+
F: drivers/input/keyboard/adp5585-keys.c
553554
F: drivers/mfd/adp5585.c
554555
F: drivers/pwm/pwm-adp5585.c
555556
F: include/linux/mfd/adp5585.h

drivers/input/keyboard/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ config KEYBOARD_ADP5520
3737
To compile this driver as a module, choose M here: the module will
3838
be called adp5520-keys.
3939

40+
config KEYBOARD_ADP5585
41+
tristate "ADP558x keypad support"
42+
depends on MFD_ADP5585
43+
select INPUT_MATRIXKMAP
44+
help
45+
This option enables support for the KEYPAD function found in the Analog
46+
Devices ADP5585 and similar devices.
47+
48+
To compile this driver as a module, choose M here: the
49+
module will be called adp5585-keys.
50+
4051
config KEYBOARD_ADP5588
4152
tristate "ADP5588/87 I2C QWERTY Keypad and IO Expander"
4253
depends on I2C

drivers/input/keyboard/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
obj-$(CONFIG_KEYBOARD_ADC) += adc-keys.o
99
obj-$(CONFIG_KEYBOARD_ADP5520) += adp5520-keys.o
10+
obj-$(CONFIG_KEYBOARD_ADP5585) += adp5585-keys.o
1011
obj-$(CONFIG_KEYBOARD_ADP5588) += adp5588-keys.o
1112
obj-$(CONFIG_KEYBOARD_ADP5589) += adp5589-keys.o
1213
obj-$(CONFIG_KEYBOARD_AMIGA) += amikbd.o

0 commit comments

Comments
 (0)