[PATCH 1/2] ARM: OMAP4: Tablet: Add BMA180 sensor

From: Oleksandr Kravchenko
Date: Mon Jul 29 2013 - 10:58:48 EST


From: Oleksandr Kravchenko <o.v.kravchenko@xxxxxxxxxxxxxxx>

Add Bosch BMA180 acceleration sensor devicetree

Signed-off-by: Oleksandr Kravchenko <o.v.kravchenko@xxxxxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/