gpio: tegra: Dynamically allocate IRQ base, and support DT
authorStephen Warren <swarren@nvidia.com>
Wed, 4 Jan 2012 08:39:37 +0000 (08:39 +0000)
committerOlof Johansson <olof@lixom.net>
Tue, 7 Feb 2012 02:25:00 +0000 (18:25 -0800)
commit6f74dc9bc8de41f3de474a7269a70921e773c40f
tree2804776d56077c3732db396e0cf42719ee9a83a5
parent2123552d12168e744271aaf206e5826760fbd857
gpio: tegra: Dynamically allocate IRQ base, and support DT

Enhance the driver to dynamically allocate the base IRQ number, and
create an IRQ domain for itself. The use of an IRQ domain ensures that
any device tree node interrupts properties are correctly parsed.

Describe interrupt-related properties in the device tree binding docs,
and the contents of "child" node interrupts property.

Update tegra*.dtsi to specify the required interrupt-related properties.

Finally, remove the definition of TEGRA_GPIO_TO_IRQ; this macro no longer
gives correct results since the IRQ numbers for GPIOs are dynamically
allocated.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Olof Johansson <olof@lixom.net>
Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
arch/arm/boot/dts/tegra20.dtsi
arch/arm/boot/dts/tegra30.dtsi
arch/arm/mach-tegra/include/mach/gpio-tegra.h
drivers/gpio/gpio-tegra.c