Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1402559

[PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin

From Marek Belisko <marek@goldelico.com>
Newsgroups linux.kernel
Subject [PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin
Date 2016-05-17 21:50 +0200
Message-ID <rzTaa-mb-29@gated-at.bofh.it> (permalink)
References <rzTaa-mb-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: "H. Nikolaus Schaller" <hns@goldelico.com>

Add pinmux and usage of bma180 irq pin.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index cef8b23..e0520cf 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -250,6 +250,12 @@
 			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 {
@@ -320,6 +326,8 @@
 	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 */
 	};
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] ARM: dts: omap3-gta04: Various updates Marek Belisko <marek@goldelico.com> - 2016-05-17 21:50 +0200
  [PATCH 2/5] ARM: dts: omap3-gta04: Define and use bma180 irq pin Marek Belisko <marek@goldelico.com> - 2016-05-17 21:50 +0200
  [PATCH 5/5] ARM: dts: omap3-gat04: Fix wifi handling Marek Belisko <marek@goldelico.com> - 2016-05-17 21:50 +0200
  [PATCH 1/5] ARM: dts: omap3-gta04: Add backlight support Marek Belisko <marek@goldelico.com> - 2016-05-17 22:00 +0200
  Re: [PATCH 0/5] ARM: dts: omap3-gta04: Various updates Belisko Marek <marek.belisko@gmail.com> - 2016-05-31 08:50 +0200

csiph-web