Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400984

[PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Christian Lamparter <chunkeey@googlemail.com>
Newsgroups linux.kernel
Subject [PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs
Date Fri, 13 May 2016 23:10:03 +0200
Message-ID <rysvo-2VC-3@gated-at.bofh.it> (permalink)
X-Original-To linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dDMeynwaKbCmQDoU9iWXtsTsdfdqxtxuvVsHOej3zvA=; b=0pYV2H2SUyYQ1Yb11D2VCb71+lW2z262uBbtL1UXoLgfPfxrZP+cljK0rvJY9ra0ce d0m2rxPm5y1ItTUsNH8IbbfmsN8+zExnu90ZPbb37nB9kCXKTLhDqNJS/GvAo5gIqzFY I31YoIc0TFkDEuNEDYqvEym0xZqT6g0ypCCXTfLf+Py5/eBt/sIGfeUg3uK6iTC9X8gm UOCuv1u2xJ5XIxF3HVVfJRMEpazsFnevq8Od9+8oMP9xWV1dPk0XTeXW1I0laRv//l8D LLoygPln7EMh6qNBo0M61gBQIgRS3B0+JlW76VIGIt8MhBMmqDc2AsYghv4q/uHtsLiI pk6Q==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dDMeynwaKbCmQDoU9iWXtsTsdfdqxtxuvVsHOej3zvA=; b=ZS+WT7EfQTY0Jq37EhyTWq4p/+tfpuASqbvy1+xntfmzoiPpeCRq2EUE6Yr/CgUMnK oDbBSG8LdcXUpNVGLvhYd2t+xSviyOtrtfrG+2LfU7+qBloHYiEnI9z9wnQlHxHbZgTt ij4q/ARGAc07mwWOjJRv239frcO3RtpMM0feXOQqf74+GuUmj0ELXX5zz/tpq0WJtbIA MlTn8Ugtux1q3mdjOzaB2pSRr+rgfRZVJEWmJXvA8BdsjfKzGgMT6stV15PC8LaKmpx/ 2kiZQZbf1WPPcR9tT0rvH4h84Fml4cYncuND4pyJ1G4DcckPvmBRcZ0WCC4njKI6kkvQ R0Dg==
X-Gm-Message-State AOPr4FWW1Cl7uSyi1fXbYUTXexCyoBAGAvCtD4CAh1QkaYErdLDwds0/HePK/jk/L6TC9g==
X-Received by 10.28.5.140 with SMTP id 134mr5667230wmf.80.1463173646022; Fri, 13 May 2016 14:07:26 -0700 (PDT)
X-Mailer git-send-email 2.8.1
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 88
Organization linux.* mail to news gateway
X-Original-Cc Christian Lamparter <chunkeey@googlemail.com>, Álvaro Fernández Rojas <noltari@gmail.com>, Alexandre Courbot <gnurou@gmail.com>, Linus Walleij <linus.walleij@linaro.org>, Andy Shevchenko <andy.shevchenko@gmail.com>, Joachim Eastwood <manabian@gmail.com>
X-Original-Date Fri, 13 May 2016 23:07:10 +0200
X-Original-Message-ID <cover.1463172434.git.chunkeey@googlemail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1400984

Show key headers only | View raw


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). His generic approach patch allowed
me to easily get the GPIO (and the connected LEDs, buttons, gpiohogs)
up and running. Even thought, Mr. Fernandez initially developed it
for his work on the brcm63xx [2].

There was a third patch which moved the gpio-clps711x, gpio-ge,
gpio-moxart and gpio-ts4800 into gpio-mmio.c. But it was dropped
from the series as the compat dt parser code became too dense and
complex.

Thanks!

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

v9 -> v10:
	- split "gpio: mmio: add DT support for memory-mapped GPIOs"
	  into two parts.
		- PATCH 1/2 adds the DT infrastructure
		- PATCH 2/2 adds the "wd,mbl-gpio" driver binding and
		  property parser.
	- removed "move clps711x, moxart, ts4800 and gpio-ge into gpio-mmio"

v8 -> v9:
	- made dt match table grep-able
	- reorganized bgpio_dt_parse
	- dropped already applied patch (dt binding) from the series

v7 -> v8:
	- removed ngpio property parser and most flags parsers
	- converted clps711x to switch case for GPIO
	- retained original Kconfig syms which now select GPIO_GENERIC_PLATFORM

v6 -> v7:
	- finally made a PATCH series (based on linux-gpio devel branch)
	- added Rob Herring's ACK to the dt bindings
	- cc'd clps711x, gpio-ge, moxart and ts4800 authors for driver
	  changes.

v5 -> v6:
	- rewrote bindings and driver patch to fit the wd,mbl-gpio
	- unified parser code for gpio-ge, gpio-moxart and gpio-ts4800
	- fixed gpio chip's base being overwritten with bogus "0"
	- fixed compat driver crash when reload gpio-generic.ko module
	- dropped already applied patches from the series
	- rebased code on linus' devel tree
	- moved dt bindings patch to the top of the series

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 (1):
  gpio: mmio: add MyBook Live GPIO support

Álvaro Fernández Rojas (1):
  gpio: mmio: add DT support for memory-mapped GPIOs

 drivers/gpio/gpio-mmio.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 49 insertions(+), 2 deletions(-)

-- 
2.8.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs Christian Lamparter <chunkeey@googlemail.com> - 2016-05-13 23:10 +0200
  [PATCH v10 2/2] gpio: mmio: add MyBook Live GPIO support Christian Lamparter <chunkeey@googlemail.com> - 2016-05-13 23:10 +0200
  Re: [PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs Linus Walleij <linus.walleij@linaro.org> - 2016-05-24 12:50 +0200

csiph-web