ARM: dta: omap3-gta04: Define and use itg3200 irq pin
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 17 May 2016 19:48:49 +0000 (21:48 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Jun 2016 11:58:06 +0000 (04:58 -0700)
Define pinmux and usage if irq pin + fix irq edge.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-gta04.dtsi

index e0520cf..094e5e1 100644 (file)
                        OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
                >;
        };
+
+       itg3200_pins: pinmux_itg3200_pins {
+               pinctrl-single,pins = <
+                       OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio56 */
+               >;
+       };
 };
 
 &omap3_pmx_core2 {
        itg3200@68 {
                compatible = "invensense,itg3200";
                reg = <0x68>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&itg3200_pins>;
                interrupt-parent = <&gpio2>;
-               interrupts = <24 0>; /* GPIO_56 */
+               interrupts = <24 IRQ_TYPE_EDGE_FALLING>; /* GPIO_56 */
        };
 
        /* leds */