ARM: dts: am437x-idk: enable i2c2
authorFelipe Balbi <balbi@ti.com>
Thu, 19 Feb 2015 19:57:38 +0000 (13:57 -0600)
committerTony Lindgren <tony@atomide.com>
Mon, 16 Mar 2015 21:07:16 +0000 (14:07 -0700)
i2c2 goes to an expansion connector which we
want to use.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am437x-idk-evm.dts

index 0198f5a62b96cd8b8569d4ae5d6dfd2938fcd580..378344271746f20446cc8654c52fd2ef46c5cda2 100644 (file)
                >;
        };
 
+       i2c2_pins_default: i2c2_pins_default {
+               pinctrl-single,pins = <
+                       0x1e8 (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) /* cam1_data1.i2c2_scl */
+                       0x1ec (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE3) /* cam1_data0.i2c2_sda */
+               >;
+       };
+
+       i2c2_pins_sleep: i2c2_pins_sleep {
+               pinctrl-single,pins = <
+                       0x1e8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+                       0x1ec (PIN_INPUT_PULLDOWN | MUX_MODE7)
+               >;
+       };
+
        mmc1_pins_default: pinmux_mmc1_pins_default {
                pinctrl-single,pins = <
                        0x100 (PIN_INPUT | MUX_MODE0) /* mmc0_clk.mmc0_clk */
        };
 };
 
+&i2c2 {
+       status = "okay";
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&i2c2_pins_default>;
+       pinctrl-1 = <&i2c2_pins_sleep>;
+       clock-frequency = <100000>;
+};
+
 &epwmss0 {
        status = "okay";
 };