]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: adp5585: Add support for input devices
authorNuno Sá <nuno.sa@analog.com>
Tue, 1 Jul 2025 14:32:09 +0000 (15:32 +0100)
committerLee Jones <lee@kernel.org>
Tue, 1 Jul 2025 20:50:51 +0000 (21:50 +0100)
commitbd113a13e1fa51789f55987369b80e1d8bc19389
tree9f64ee316fe5341cca81a4c320ebf80f249aa105
parent333812da70d5f71bf5e176f6d55a5f716301b5fc
mfd: adp5585: Add support for input devices

The ADP558x family supports a built in keypad matrix decoder which can
be added as an Input device. In order to both support the Input and the
GPIO device, we need to create a bitmap of the supported pins and track
their usage since they can either be used as GPIOs (GPIs) or as part of
the keymap.

We also need to mark special pins busy in case some features are being
used (ex: pwm or reset events).

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-14-b1fcfe9e9826@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/adp5585.c
include/linux/mfd/adp5585.h