ARM: dts: omap3-n900: Add pinctrl for i2c devices
authorSebastian Reichel <sre@debian.org>
Tue, 22 Oct 2013 22:49:30 +0000 (00:49 +0200)
committerBenoit Cousson <bcousson@baylibre.com>
Wed, 23 Oct 2013 08:08:08 +0000 (10:08 +0200)
Add pin muxing support for the Nokia N900 i2c controllers.

Signed-off-by: Sebastian Reichel <sre@debian.org>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
arch/arm/boot/dts/omap3-n900.dts

index e13b697f8bce36eaf84cf4a03e6929aa48da3d82..ad4edd95b5b189a6fab7da88e6e50e97c1bcf418 100644 (file)
 
 };
 
+&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>;
 };
 
 &i2c2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c2_pins>;
+
        clock-frequency = <400000>;
 };
 
 &i2c3 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c3_pins>;
+
        clock-frequency = <100000>;
 };