public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add support of an FXL6408 GPIO expander
@ 2021-09-09 20:44 Oleksandr Suvorov
  2021-09-09 20:44 ` [PATCH v3 1/2] GPIO: fxl6408: Add support for " Oleksandr Suvorov
  0 siblings, 1 reply; 9+ messages in thread
From: Oleksandr Suvorov @ 2021-09-09 20:44 UTC (permalink / raw)
  To: u-boot
  Cc: Marcel Ziswiler, Philippe Schenker, Max Krummenacher,
	Oleksandr Suvorov, Fabio Estevam, Harm Berntsen, Heiko Schocher,
	Igor Opaniuk, Linus Walleij, Michal Simek, NXP i.MX U-Boot Team,
	Oleksandr Suvorov, Sebastian Reichel, Simon Glass, Stefan Roese,
	Stefano Babic, Stephan Gerhold, Tero Kristo, Weijie Gao


Add support of a Fairchild's FXL6408 i2c gpio expander and enable
this driver for Toradex Colibri iMX8QXP SoM.

Changes in v3:
- fix a warning:
    "drivers/gpio/gpio-fxl6408.c:348:15: warning: format
    ‘%ld’ expects argument of type ‘long int’, but argument
    3 has type ‘int’ [-Wformat=]"
- add Tested-by record.

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-16  8:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-09 20:44 [PATCH v3 0/2] Add support of an FXL6408 GPIO expander Oleksandr Suvorov
2021-09-09 20:44 ` [PATCH v3 1/2] GPIO: fxl6408: Add support for " Oleksandr Suvorov
2021-09-09 20:44   ` [PATCH v3 2/2] colibri-imx8x: add on-module gpio expander fxl6408 Oleksandr Suvorov
2021-09-10  4:30   ` [PATCH v3 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander Heiko Schocher
2021-09-10  6:34   ` Michal Simek
2021-09-10  7:01     ` Francesco Dolcini
2021-09-15 18:35     ` Oleksandr Suvorov
2021-09-16  7:05       ` Michal Simek
2021-09-16  8:46         ` Oleksandr Suvorov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox