Skip to content

ARM: at91: irqdomain and device tree for AIC and GPIO

Rob Herring linux-arm-kernel linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

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

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] ARM: at91: irqdomain and device tree for AIC and GPIO

Nicolas,

Quoted 24 lines · Nicolas Ferre

Hi,

This series adds irqdomain and device tree support for both the interrupt and GPIO controllers of AT91 SoC.

The AIC part has already been sent some time ago but has been reworked to address Rob's comments. This reworked patch is marked with a "v4" tag.

The series can go on top of Jamie's patch
"irqdomain: export irq_domain_simple_ops for !CONFIG_OF" and has been tested on top of 'v3.2-rc5' + 'arm-soc/at91/ioremap' and 'arm-soc/at91/gpio'

Jean-Christophe PLAGNIOL-VILLARD (1):
ARM: at91/gpio: add DT support

Nicolas Ferre (5):
ARM: at91/aic: add irq domain and device tree support
ARM: at91/gpio: add irqdomain to gpio interrupts
ARM: at91/gpio: add .to_irq gpio_chip handler and rework irq_to_gpio
ARM: at91/gpio: remove the static specification of gpio_chip.base
ARM: at91/board-dt: remove AIC irq domain from board file

Quoted 13 lines
 .../devicetree/bindings/arm/atmel-aic.txt          |   38 ++++
 .../devicetree/bindings/gpio/gpio_at91.txt         |   20 ++
 arch/arm/Kconfig                                   |    1 +
 arch/arm/boot/dts/at91sam9g20.dtsi                 |   44 ++++-
 arch/arm/boot/dts/at91sam9g45.dtsi                 |   59 +++++-
 arch/arm/mach-at91/board-dt.c                      |   15 +--
 arch/arm/mach-at91/gpio.c                          |  197 ++++++++++++++++----
 arch/arm/mach-at91/include/mach/gpio.h             |   12 --
 arch/arm/mach-at91/include/mach/irqs.h             |    3 +-
 arch/arm/mach-at91/irq.c                           |   91 +++++++--
 10 files changed, 383 insertions(+), 97 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/atmel-aic.txt
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio_at91.txt

What about using generic irq chip as I previously mentioned? It looks to me like both the AIC and gpio controller could use it. I've added irq domain support to generic irq chip, so it should simplify your changes. The latest branch is here:

git://sources.calxeda.com/kernel/linux.git pl061-domain-v2

Rob