ARM: dts: AM33XX: Add default pinctrl binding for I2C device
authorVaibhav Hiremath <hvaibhav@ti.com>
Tue, 26 Mar 2013 08:44:01 +0000 (14:14 +0530)
committerBenoit Cousson <benoit.cousson@linaro.org>
Tue, 18 Jun 2013 23:53:34 +0000 (18:53 -0500)
Add pin control binding for I2C device nodes in all
board specific DT files (as per current usage),

EVM: Both i2c0 and i2c1
EVM-SK and Bone: Only i2c0

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Acked-by: Matt Porter <mporter@ti.com>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
arch/arm/boot/dts/am335x-bone.dts
arch/arm/boot/dts/am335x-evm.dts
arch/arm/boot/dts/am335x-evmsk.dts

index 5302f79c05b719e3317bb0e3431c144073691724..860630b425ea5324b6167caa27475e2afe490627 100644 (file)
                                0x60 0x17       /* gpmc_a8.gpio1_24, OUTPUT_PULLUP | MODE7 */
                        >;
                };
+
+               i2c0_pins: pinmux_i2c0_pins {
+                       pinctrl-single,pins = <
+                               0x188 0x30      /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
+                               0x18c 0x30      /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
+                       >;
+               };
        };
 
        ocp {
@@ -44,6 +51,9 @@
                };
 
                i2c0: i2c@44e0b000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c0_pins>;
+
                        status = "okay";
                        clock-frequency = <400000>;
 
index 0423298a26fe634e174b4138cac7ee2ee28f6a2c..0668843004e8fd81ec2560b4f3346522b5ed1946 100644 (file)
                                0x154 0x27      /* spi0_d0.gpio0_3, INPUT | MODE7 */
                        >;
                };
+
+               i2c0_pins: pinmux_i2c0_pins {
+                       pinctrl-single,pins = <
+                               0x188 0x30      /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
+                               0x18c 0x30      /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
+                       >;
+               };
+
+               i2c1_pins: pinmux_i2c1_pins {
+                       pinctrl-single,pins = <
+                               0x158 0x32      /* spi0_d1.i2c1_sda PULLUP | INPUTENABLE | MODE2 */
+                               0x15c 0x32      /* spi0_cs0.i2c1_scl PULLUP | INPUTENABLE | MODE2 */
+                       >;
+               };
        };
 
        ocp {
@@ -52,6 +66,9 @@
                };
 
                i2c0: i2c@44e0b000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c0_pins>;
+
                        status = "okay";
                        clock-frequency = <400000>;
 
@@ -61,6 +78,9 @@
                };
 
                i2c1: i2c@4802a000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c1_pins>;
+
                        status = "okay";
                        clock-frequency = <100000>;
 
index f67c360844f482f20338c9b18b5ff0b76f2de542..15a305224bba9c00771cbe4721a08c861895a653 100644 (file)
                                0x9c 0x27       /* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */
                        >;
                };
+
+               i2c0_pins: pinmux_i2c0_pins {
+                       pinctrl-single,pins = <
+                               0x188 0x30      /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */
+                               0x18c 0x30      /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */
+                       >;
+               };
        };
 
        ocp {
@@ -59,6 +66,9 @@
                };
 
                i2c0: i2c@44e0b000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c0_pins>;
+
                        status = "okay";
                        clock-frequency = <400000>;