All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v5 0/4] gpio: add DT support for generic memory-mapped GPIOs
@ 2016-04-29  0:53 ` Christian Lamparter
  0 siblings, 0 replies; 31+ messages in thread
From: Christian Lamparter @ 2016-04-29  0:53 UTC (permalink / raw)
  To: linux-gpio, devicetree, linux-kernel, linux-arm-kernel
  Cc: Christian Lamparter, Álvaro Fernández Rojas,
	Kumar Gala, Alexander Shiyan, Ian Campbell, Mark Rutland,
	Pawel Moll, Rob Herring, Alexandre Courbot, Linus Walleij

This patch series adds device tree support for generic memory-mapped GPIOs.
The GPIO library already allows drivers and architecture support code to
reuse generic code for managing a GPIO chip. Currently, a developer has
to create a platform device "basic-mmio-gpio" and attach a bgpio_pdata
platform data structure to make use of it. However, for architectures
which rely on the device tree to enumerate devices, creating custom
platform devices is another extra step that can be avoided by having
direct support via a device tree binding.

I initially came across this patch [0] from Álvaro Fernández Rojas,
while looking for an easy way to add support for the GPIO of my
WD MyBook Live [1] (APM82181 - ppc464). This generic approach patch
allowed me to easily get the GPIO (and the connected LEDs,
buttons, gpiohogs, etc.) up and running. Even tought, Mr. Fernandez
initially developed it for his work on the brcm63xx [2].

The device tree parses for the integrated drivers:
gpio-clps711x, gpio-ge, gpio-moxart and gpio-ts4800 are now part
of the gpio-generic.c driver file. The old driver files have been
removed and the Kconfig, Makefile entries have been updated
accordingly. If no complaints are filed (MODULE_ALIASES?), I'll
go ahead and post the PATCH series beginning of next week.

And finally, the most important stat about the series:
	>>> 312 insertions(+), 412 deletions(-) <<<
	It removes more lines than it adds!

Thanks! (Please keep me in the CC)

[0] <https://patchwork.ozlabs.org/patch/422121/>
[1] <https://github.com/chunkeey/MBL-openwrt>
[2] <https://wiki.openwrt.org/doc/hardware/soc/soc.broadcom.bcm63xx>

changelog:

v4 -> v5:
	- reverted rename of gpio-mmio.c back to gpio-generic.c
	- fixed Andy Shevchenko's comments
	- consolidated changes from clps711x, gpio-ge, gpio-moxart and
	  gpio-ts4800 into one patch.

v3 -> v4:
	- renamed gpio-generic.c to gpio-mmio.c
	- changed compat. string to "linux,gpio-mmio"
	- integrated Cirrus clps711x driver
	- integrated GE FGPA gpio-ge driver
	- integrated MOXA ART GPIO driver
	- integrated TS4800 gpio driver
	- reshuffled patches, reworded commits, fixed spelling errors, etc.

Christian Lamparter (2):
  gpio: generic: fix GPIO_GENERIC_PLATFORM is set to module case
  gpio: move clps711x, moxart, ts4800 and gpio-ge into gpio-generic

Álvaro Fernández Rojas (2):
  gpio: generic: add DT support for generic memory-mapped GPIOs
  gpio: dt-bindings: add gpio-mmio bindings

 .../devicetree/bindings/gpio/gpio-mmio.txt         |  73 +++++++
 drivers/gpio/Kconfig                               |  43 +---
 drivers/gpio/Makefile                              |   4 -
 drivers/gpio/gpio-clps711x.c                       |  91 --------
 drivers/gpio/gpio-ge.c                             | 114 ----------
 drivers/gpio/gpio-generic.c                        | 234 ++++++++++++++++++++-
 drivers/gpio/gpio-moxart.c                         |  84 --------
 drivers/gpio/gpio-ts4800.c                         |  81 -------
 8 files changed, 312 insertions(+), 412 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-mmio.txt
 delete mode 100644 drivers/gpio/gpio-clps711x.c
 delete mode 100644 drivers/gpio/gpio-ge.c
 delete mode 100644 drivers/gpio/gpio-moxart.c
 delete mode 100644 drivers/gpio/gpio-ts4800.c

-- 
2.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-05-10 11:52 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29  0:53 [RFC v5 0/4] gpio: add DT support for generic memory-mapped GPIOs Christian Lamparter
2016-04-29  0:53 ` Christian Lamparter
2016-04-29  0:53 ` Christian Lamparter
2016-04-29  0:53 ` [RFC v5 1/4] gpio: generic: fix GPIO_GENERIC_PLATFORM is set to module case Christian Lamparter
2016-04-29  0:53   ` Christian Lamparter
2016-04-29 14:13   ` Linus Walleij
2016-04-29 14:13     ` Linus Walleij
2016-04-29  0:53 ` [RFC v5 2/4] gpio: generic: add DT support for generic memory-mapped GPIOs Christian Lamparter
2016-04-29  0:53   ` Christian Lamparter
2016-04-29  0:53   ` Christian Lamparter
2016-04-29  0:53 ` [RFC v5 3/4] gpio: move clps711x, moxart, ts4800 and gpio-ge into gpio-generic Christian Lamparter
2016-04-29  0:53   ` Christian Lamparter
2016-04-29  8:05   ` Andy Shevchenko
2016-04-29  8:05     ` Andy Shevchenko
2016-04-29 14:18   ` Linus Walleij
2016-04-29 14:18     ` Linus Walleij
2016-04-29 19:06     ` Christian Lamparter
2016-04-29 19:06       ` Christian Lamparter
2016-05-10 11:52       ` Linus Walleij
2016-05-10 11:52         ` Linus Walleij
2016-04-29  0:53 ` [RFC v5 4/4] gpio: dt-bindings: add gpio-mmio bindings Christian Lamparter
2016-04-29  0:53   ` Christian Lamparter
     [not found]   ` <a0ded4d0161f7ab3cd1945741d95d2718dbe4f44.1461888822.git.chunkeey-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2016-04-29 11:15     ` Mark Rutland
2016-04-29 11:15       ` Mark Rutland
2016-04-29 11:15       ` Mark Rutland
2016-04-29 21:17       ` Christian Lamparter
2016-04-29 21:17         ` Christian Lamparter
2016-04-29 21:17         ` Christian Lamparter
2016-04-29 14:29   ` Linus Walleij
2016-04-29 14:29     ` Linus Walleij
2016-04-29 14:29     ` Linus Walleij

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.