Add mfd_adp5585 and gpio_adp5585 driver. This driver enables ADP5585 as an GPIO expander. This chip is used as an GPIO expander on i.MX93 EVK. GPIO pinctrl, read/write and interrupt is supported. Note that ADP5585 has 2 GPIO banks with 5 pins each. The driver combines two group into a 16-bit port. Index 0~4 correspond to R0~R4 lines, index 8~12 correspond to C0~C4 lines. Index 5~7 is reserved unavailable. Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
18 lines
393 B
Plaintext
18 lines
393 B
Plaintext
# Copyright 2024 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig MFD_ADP5585
|
|
bool "Analog ADP5585 I2C configurable GPIO/PWM/KeyScan chip"
|
|
default y
|
|
depends on DT_HAS_ADI_ADP5585_ENABLED
|
|
depends on I2C
|
|
help
|
|
Enable driver for Analog ADP5585.
|
|
|
|
config MFD_ADP5585_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 65
|
|
depends on MFD_ADP5585
|
|
help
|
|
Device driver initialization priority.
|