Skip to content

gpio: Add a driver for Cadence GPIO controller

Jan Kotas linux-devicetree linux-gpio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 8 repliesSuperseded

Changes in v3 from the cover letter

Added spinlocks in request, free and irq_set_type functions.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: gpio: Add bindings for Cadence GPIODocumentation/devicetree/bindings/gpio/cdns,gpio.txt+44 -01 reply
2/2gpio: Add Cadence GPIO driverdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/gpio-cadence.c+300 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] gpio: Add a driver for Cadence GPIO controller

This patchset adds a driver support for Cadence GPIO controller.

Number of supported lines is configurable. The driver initializes all pins as inputs in probe(). Currently it only supports level-sensitive interrupts.

The interrupts controller was tested with I2C and SPI IPs acting as interrupt sources.

Changes since V2:
Added spinlocks in request, free and irq_set_type functions.

Changes since V1:
Switched to generic GPIO infrastructure. Redesigned interrupts, now uses chained irqchip. Drop support for edge-sensitive interrupts. Restore bypass settings at unexport/remove.

Jan Kotas (2):
dt-bindings: gpio: Add bindings for Cadence GPIO
gpio: Add Cadence GPIO driver

 .../devicetree/bindings/gpio/cdns,gpio.txt         |  44 ++++
 drivers/gpio/Kconfig                               |   8 +
 drivers/gpio/Makefile                              |   1 +
 drivers/gpio/gpio-cadence.c                        | 291 +++++++++++++++++++++
 4 files changed, 344 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/cdns,gpio.txt
 create mode 100644 drivers/gpio/gpio-cadence.c
Signature · 1 line
2.15.0