[PATCH v2 0/2] Add support of the FXL6408 GPIO expander
Oleksandr Suvorov
oleksandr.suvorov at foundries.io
Sat Aug 28 12:23:23 CEST 2021
Add support of the Fairchild's FXL6408 i2c gpio expander and enable
this driver for Toradex Colibri iMX8QXP SoM.
Changes in v2:
- Kconfig: add better description for the config option.
- gpio-fxl6408.c:
-- improve registers' naming.
-- fix code style (comments, etc.).
-- reimplement fxl6408_read() reducing number of parameters.
-- change return value of fxl6408_is_output() to bool.
-- replace IS_ERR_VALUE() macros with simple x < 0 where it's
possible.
-- fxl6408_set_direction(): fix type of parameter "dir".
-- fix return error codes to avoid using the predefined in the driver
model ones.
-- removed extra debug code.
-- expand TODO list.
Oleksandr Suvorov (2):
GPIO: fxl6408: Add support for FXL6408 GPIO expander
colibri-imx8x: add on-module gpio expander fxl6408
arch/arm/dts/fsl-imx8qxp-colibri.dts | 27 ++
configs/colibri-imx8x_defconfig | 1 +
drivers/gpio/Kconfig | 7 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-fxl6408.c | 366 +++++++++++++++++++++++++++
5 files changed, 402 insertions(+)
create mode 100644 drivers/gpio/gpio-fxl6408.c
--
2.31.1
More information about the U-Boot
mailing list