Thread (1 message) 1 message, 1 author, 2012-01-05

[PATCH 5/6] gpio: tegra: Dynamically allocate IRQ base, and support DT

From: Jamie Iles <hidden>
Date: 2012-01-05 16:48:57
Also in: linux-devicetree, linux-tegra

On Thu, Jan 05, 2012 at 08:47:15AM -0800, Stephen Warren wrote:
Jamie Iles wrote at Thursday, January 05, 2012 6:18 AM:
quoted
On Wed, Jan 04, 2012 at 11:39:37AM -0700, Stephen Warren wrote:
quoted
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.
...
quoted
quoted
diff --git a/Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
...
quoted
quoted
+- #interrupt-cells : Should be 2.
+  The first cell is the GPIO number.
+  The second cell is used to specify flags:
+    bits[3:0] trigger type and level flags:
+      1 = low-to-high edge triggered.
+      2 = high-to-low edge triggered.
+      4 = active high level-sensitive.
+      8 = active low level-sensitive.
+      Valid combinations are 1, 2, 3, 4, 8.
It looks to me like the tegra gpio driver can do IRQ_TYPE_EDGE_BOTH so I
would expect 12 to be a valid combination too no?
I believe EDGE_BOTH is 3 (OR of edge low and edge high)
Doh!  Yes, you're quite right.  Sorry for the noise!

Jamie
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help