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>
19 lines
380 B
Plaintext
19 lines
380 B
Plaintext
# Copyright 2024 NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig GPIO_ADP5585
|
|
bool "ADP5585_GPIO I2C GPIO chip"
|
|
default y
|
|
depends on DT_HAS_ADI_ADP5585_GPIO_ENABLED
|
|
select MFD
|
|
select I2C
|
|
help
|
|
Enable the ADP5585 GPIO driver.
|
|
|
|
config GPIO_ADP5585_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 70
|
|
depends on GPIO_ADP5585
|
|
help
|
|
Device driver initialization priority.
|