devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: OMAP4: Tablet: Add BMA180 sensor
@ 2013-07-29 14:58 Oleksandr Kravchenko
  2013-07-29 14:58 ` [PATCH 2/2] iio: add Bosch BMA180 acceleration sensor driver Oleksandr Kravchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Oleksandr Kravchenko @ 2013-07-29 14:58 UTC (permalink / raw)
  To: linux-iio, linux-kernel, linux-doc
  Cc: grant.likely, rob.herring, rob, jic23, pmeerw, holler,
	srinivas.pandruvada, devicetree-discuss, Oleksandr Kravchenko

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-04 13:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29 14:58 [PATCH 1/2] ARM: OMAP4: Tablet: Add BMA180 sensor Oleksandr Kravchenko
2013-07-29 14:58 ` [PATCH 2/2] iio: add Bosch BMA180 acceleration sensor driver Oleksandr Kravchenko
     [not found]   ` <1375109893-7917-2-git-send-email-x0199363-l0cyMroinI0@public.gmane.org>
2013-07-29 15:15     ` Peter Meerwald
     [not found]       ` <alpine.DEB.2.01.1307291704440.20459-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>
2013-07-31 21:18         ` Jonathan Cameron
2013-08-02 14:59           ` Oleksandr Kravchenko
2013-08-04 13:45     ` Lars-Peter Clausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).