title: Linux Device Tree Help (GPIO controller/interrupts)
body: <p>I've been learning about linux device trees and we've been trying to start porting some of our older code to use them. I'm having a little bit of trouble with the gpio controller node:</p>
  
  <pre><code>gpio1: gpio-controller@c00 {
      #gpio-cells = &lt;2&gt;;
      compatible = "cavium,octeon-3860-gpio";
      reg = &lt;0xc00 0x100&gt;;
      gpio-controller;
      /* Interrupts are specified by two parts:
       * 1) GPIO pin number (0..15)
       * 2) Triggering (1 - edge rising
       *                2 - edge falling
       *                4 - level active high
       *                8 - level active low)
       */
      interrupt-controller;
      interrupt-cells = &lt;2&gt;;
      interrupts = &lt;0 24&gt;, &lt;1 25&gt;, &lt;2 26&gt;, &lt;3 27&gt;;
  </code></pre>
  
  <p>};</p>
  
  <p>I'm trying to map certain IRQs to GPIO pins, however, it looks like its only ever mapping the first one &lt;0 24> IRQ 24 to gpio pin 0. I looked at the source code and it doesnt seem like it will ever interate of 'interrupts', though the device tree bindings text file seems to hint that it will (devicetree/bindings/gpio/cavium-octeon-gpio.txt). Does anyone know how i can map a handful of interupts to different gpio pins?</p>