]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: omap3-gta04: Define and use bma180 irq pin
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 17 May 2016 19:48:48 +0000 (21:48 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Jun 2016 11:58:06 +0000 (04:58 -0700)
Add pinmux and usage of bma180 irq pin.

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 cef8b23a6b19b0018842a5f10eb1fbf40bc9e3f0..e0520cf0f45c73a81292463368c59c824fd9ef4d 100644 (file)
                        OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda.hdq */
                >;
        };
+
+       bma180_pins: pinmux_bma180_pins {
+               pinctrl-single,pins = <
+                       OMAP3_CORE1_IOPAD(0x213a, PIN_INPUT_PULLUP | MUX_MODE4) /* gpio115 */
+               >;
+       };
 };
 
 &omap3_pmx_core2 {
        bma180@41 {
                compatible = "bosch,bma180";
                reg = <0x41>;
+               pinctrl-names = "default";
+               pintcrl-0 = <&bma180_pins>;
                interrupt-parent = <&gpio4>;
                interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_115 */
        };