All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v5 0/4] dm: gpio: Add driver for MPC85xx GPIO controller
@ 2016-05-25 13:15 Mario Six
  2016-05-25 13:15 ` [U-Boot] [PATCH v5 1/4] dm: gpio: Add driver for MPC85XX " Mario Six
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Mario Six @ 2016-05-25 13:15 UTC (permalink / raw)
  To: u-boot

The functions for accessing GPIOs on MPC85xx are hardcoded in
arch/powerpc/include/asm/mpc85xx_gpio.h This leads to problems if another GPIO
controller supporting the driver model is to be used simultaneously.

Therefore, this patch moves the "static" functions into a DM-compatible driver,
and also introduces a set of functions into the GPIO uclass that expose the
controller's capability to switch individual GPIOs into open-drain-mode.

v3/v4 also implement shadowing of the GPDAT register to work around a known
issue in some MPC85xx GPIO controllers (as pointed out by Joakim Tjernlund).

Furthermore, v4 adds tests for the open drain setting feature and extends the
sandbox GPIO driver accordingly.

Mario Six (4):
  dm: gpio: Add driver for MPC85XX GPIO controller
  dm: gpio: Add methods for open drain setting
  dm: gpio: Implement open drain for MPC85XX GPIO
  dm: test: Add GPIO open drain tests

 arch/powerpc/include/asm/arch-mpc85xx/gpio.h |   2 +
 arch/powerpc/include/asm/immap_85xx.h        |   2 +
 arch/sandbox/include/asm/gpio.h              |  20 +++
 drivers/gpio/Kconfig                         |  26 +++
 drivers/gpio/Makefile                        |   1 +
 drivers/gpio/gpio-uclass.c                   |  32 ++++
 drivers/gpio/mpc85xx_gpio.c                  | 228 +++++++++++++++++++++++++++
 drivers/gpio/sandbox.c                       |  35 ++++
 include/asm-generic/gpio.h                   |  34 ++++
 test/dm/gpio.c                               |   7 +
 10 files changed, 387 insertions(+)
 create mode 100644 drivers/gpio/mpc85xx_gpio.c

--
2.7.0.GIT

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

end of thread, other threads:[~2016-06-04 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-25 13:15 [U-Boot] [PATCH v5 0/4] dm: gpio: Add driver for MPC85xx GPIO controller Mario Six
2016-05-25 13:15 ` [U-Boot] [PATCH v5 1/4] dm: gpio: Add driver for MPC85XX " Mario Six
2016-06-04 15:59   ` York Sun
2016-05-25 13:15 ` [U-Boot] [PATCH v5 2/4] dm: gpio: Add methods for open drain setting Mario Six
2016-05-25 13:15 ` [U-Boot] [PATCH v5 3/4] dm: gpio: Implement open drain for MPC85XX GPIO Mario Six
2016-05-25 23:17   ` Simon Glass
2016-05-25 13:15 ` [U-Boot] [PATCH v5 4/4] dm: test: Add GPIO open drain tests Mario Six
2016-05-25 23:17   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.