devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Reichel <sre@debian.org>
To: "Benoît Cousson" <bcousson@baylibre.com>,
	"Tony Lindgren" <tony@atomide.com>
Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Sebastian Reichel <sre@debian.org>
Subject: [PATCH 01/14] DTS: ARM: OMAP3-N900: Add pinctrl for i2c devices
Date: Wed, 23 Oct 2013 00:49:30 +0200	[thread overview]
Message-ID: <1382482183-14426-2-git-send-email-sre@debian.org> (raw)
In-Reply-To: <1382482183-14426-1-git-send-email-sre@debian.org>

Add pin muxing support for the Nokia N900 i2c controllers.

Signed-off-by: Sebastian Reichel <sre@debian.org>
---
 arch/arm/boot/dts/omap3-n900.dts | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index e13b697..ad4edd9 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -28,7 +28,35 @@
 
 };
 
+&omap3_pmx_core {
+	pinctrl-names = "default";
+
+	i2c1_pins: pinmux_i2c1_pins {
+		pinctrl-single,pins = <
+			0x18a (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_scl */
+			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c1_sda */
+		>;
+	};
+
+	i2c2_pins: pinmux_i2c2_pins {
+		pinctrl-single,pins = <
+			0x18e (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c2_scl */
+			0x190 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c2_sda */
+		>;
+	};
+
+	i2c3_pins: pinmux_i2c3_pins {
+		pinctrl-single,pins = <
+			0x192 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_scl */
+			0x194 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c3_sda */
+		>;
+	};
+};
+
 &i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c1_pins>;
+
 	clock-frequency = <2200000>;
 
 	twl: twl@48 {
@@ -39,6 +67,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &twl_gpio {
 	ti,pullups	= <0x0>;
@@ -46,10 +75,16 @@
 };
 
 &i2c2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c2_pins>;
+
 	clock-frequency = <400000>;
 };
 
 &i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c3_pins>;
+
 	clock-frequency = <100000>;
 };
 
-- 
1.8.4.rc3

  reply	other threads:[~2013-10-22 22:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-22 22:49 [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Sebastian Reichel
2013-10-22 22:49 ` Sebastian Reichel [this message]
2013-10-22 22:49 ` [PATCH 02/14] DTS: ARM: OMAP3-N900: Fix i2c bus speed Sebastian Reichel
2013-10-22 22:49 ` [PATCH 03/14] DTS: ARM: OMAP3-N900: Add UART support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 04/14] DTS: ARM: OMAP3-N900: Add support for SD cards Sebastian Reichel
2013-10-22 22:49 ` [PATCH 05/14] DTS: ARM: OMAP3-N900: GPIO key definitions Sebastian Reichel
2013-10-22 22:49 ` [PATCH 06/14] DTS: ARM: OMAP3-N900: Add vibrator device Sebastian Reichel
2013-10-22 22:49 ` [PATCH 07/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 08/14] DTS: TWL4030: Add missing regulators Sebastian Reichel
     [not found] ` <1382482183-14426-1-git-send-email-sre-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2013-10-22 22:49   ` [PATCH 09/14] DTS: ARM: OMAP3-N900: Specify regulator info Sebastian Reichel
2013-10-22 22:49 ` [PATCH 10/14] DTS: ARM: OMAP3-N900: Add NAND support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 11/14] DTS: ARM: OMAP3-N900: Mux RX51_LCD_RESET_GPIO in DTS Sebastian Reichel
2013-10-22 22:49 ` [PATCH 12/14] DTS: ARM: OMAP3-N900: Add TLV320AIC3X support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 13/14] DTS: ARM: OMAP3-N900: Add LP5523 support Sebastian Reichel
2013-10-22 22:49 ` [PATCH 14/14] DTS: TWL4030: Add power button support Sebastian Reichel
2013-10-23  8:36 ` [PATCH 00/14] DTS: ARM: OMAP3-N900: Add misc. HW Benoit Cousson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382482183-14426-2-git-send-email-sre@debian.org \
    --to=sre@debian.org \
    --cc=bcousson@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).