lkml.org 
[lkml]   [2013]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] ARM: OMAP4: Tablet: Add BMA180 sensor
Date
From: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>

Add Bosch BMA180 acceleration sensor devicetree

Signed-off-by: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
---
arch/arm/boot/dts/omap4-sdp.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts
index c9022df..13d8279 100644
--- a/arch/arm/boot/dts/omap4-sdp.dts
+++ b/arch/arm/boot/dts/omap4-sdp.dts
@@ -170,6 +170,7 @@
&dss_hdmi_pins
&tpd12s015_pins
&apds9300_pins
+ &bma180_pins
>;

uart2_pins: pinmux_uart2_pins {
@@ -305,6 +306,12 @@
0x50 (PIN_INPUT | MUX_MODE3) /* gpmc_nbe1.gpio_61 */
>;
};
+
+ bma180_pins: pinmux_bma180_pins {
+ pinctrl-single,pins = <
+ 0x156 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_nbe1.gpio_178 */
+ >;
+ };
};

&i2c1 {
@@ -405,6 +412,17 @@
interrupt-parent = <&gpio2>;
interrupts = <29 8>; /* gpio line 61, low triggered */
};
+
+ bma180@40 {
+ compatible = "bosch,bma180";
+ reg = <0x40>;
+ interrupt-parent = <&gpio6>;
+ interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
+ range = <2>;
+ bw = <5>;
+ mode_config = <1>;
+ fuzz = <555>;
+ };
};

&mcspi1 {
--
1.7.9.5


\
 
 \ /
  Last update: 2013-07-29 17:21    [W:0.120 / U:10.432 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site