devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] GPIO: add single-register GPIO via CREG driver
@ 2018-09-11 15:09 Eugeniy Paltsev
  2018-09-11 15:09 ` [PATCH v3 1/2] " Eugeniy Paltsev
  2018-09-11 15:09 ` [PATCH v3 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings Eugeniy Paltsev
  0 siblings, 2 replies; 7+ messages in thread
From: Eugeniy Paltsev @ 2018-09-11 15:09 UTC (permalink / raw)
  To: linux-snps-arc, linux-gpio
  Cc: linux-kernel, Vineet Gupta, Alexey Brodkin, Linus Walleij,
	Rob Herring, devicetree, Mark Rutland, Eugeniy Paltsev

Add single-register MMIO GPIO driver for complex cases where
only several fields in register belong to GPIO lines and each GPIO
line owns a field with different length and on/off value.

Such CREG GPIOs are used in Synopsys AXS10x and HSDK boards.

Changes v2->v3:
 * Move parameters into a lookup table instead of device tree.
 * Use the ngpios attribute for instead of snps,ngpios.

Eugeniy Paltsev (2):
  GPIO: add single-register GPIO via CREG driver
  dt-bindings: Document the Synopsys GPIO via CREG bindings

 .../devicetree/bindings/gpio/snps,creg-gpio.txt    |  18 ++
 MAINTAINERS                                        |   6 +
 drivers/gpio/Kconfig                               |  10 +
 drivers/gpio/Makefile                              |   1 +
 drivers/gpio/gpio-creg-snps.c                      | 212 +++++++++++++++++++++
 5 files changed, 247 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt
 create mode 100644 drivers/gpio/gpio-creg-snps.c

-- 
2.14.4

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

end of thread, other threads:[~2018-09-26 20:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-11 15:09 [PATCH v3 0/2] GPIO: add single-register GPIO via CREG driver Eugeniy Paltsev
2018-09-11 15:09 ` [PATCH v3 1/2] " Eugeniy Paltsev
2018-09-24  9:37   ` Eugeniy Paltsev
2018-09-26  7:18   ` Linus Walleij
2018-09-11 15:09 ` [PATCH v3 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings Eugeniy Paltsev
2018-09-26  7:19   ` Linus Walleij
2018-09-26 20:26   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).