Skip to content

RFC gpio: add DT support for basic memory-mapped GPIOs

Christian Lamparter linux-devicetree linux-gpio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 RFC Latest0 of 2 patches 0 repliesNew

Patches in v4 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [RFC v4 0/2] gpio: add DT support for basic memory-mapped GPIOs

This patch series adds device tree support for basic memory-mapped GPIOs. The GPIO library already allows drivers and architecture support code to reuse generic code for manageing 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].

[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>

---
Note: Since it was such a long time ago, I had issues with getting all the replies from lkml.org (the side simply browned-out some replies and comments to the original, v2 and v3 series. So please if you have already had a comment on the previous patch that wasn't implemented in this RFC, let me know.

Thanks! (Please keep me in the CC)
---

Christian Lamparter (1):
gpio: generic: fix GPIO_GENERIC_PLATFORM is set to module case

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

 .../devicetree/bindings/gpio/basic-mmio-gpio.txt   | 73 ++++++++++++++++++++++
 drivers/gpio/gpio-generic.c                        | 72 ++++++++++++++++++++-
 2 files changed, 142 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/gpio/basic-mmio-gpio.txt
Signature · 6 lines
2.8.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html