ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD SOM-LV [Linux 4.9.189]

This Linux kernel change "ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD SOM-LV" is included in the Linux 4.9.189 release. This change is authored by Adam Ford <aford173 [at] gmail.com> on Thu Feb 15 08:25:56 2018 -0600. The commit for this change in Linux stable tree is 5770e69 (patch) which is from upstream commit 5fe3c0f. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 5fe3c0f.

ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD SOM-LV

[ Upstream commit 5fe3c0fa0d54877c65e7c9b4442aeeb25cdf469a ]

Since I2C1 and I2C4 have explicit pinmuxing set, let's be on the
safe side and set the pin muxing for I2C2 and I2C3.

Signed-off-by: Adam Ford <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>

There are 16 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/arm/boot/dts/logicpd-som-lv.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/logicpd-som-lv.dtsi b/arch/arm/boot/dts/logicpd-som-lv.dtsi
index 876ed5f..43035cb 100644
--- a/arch/arm/boot/dts/logicpd-som-lv.dtsi
+++ b/arch/arm/boot/dts/logicpd-som-lv.dtsi
@@ -114,10 +114,14 @@
 };

 &i2c2 {
+   pinctrl-names = "default";
+   pinctrl-0 = <&i2c2_pins>;
    clock-frequency = <400000>;
 };

 &i2c3 {
+   pinctrl-names = "default";
+   pinctrl-0 = <&i2c3_pins>;
    clock-frequency = <400000>;
 };

@@ -239,6 +243,18 @@
            OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4)    /* sys_boot1.gpio_3 */
        >;
    };
+   i2c2_pins: pinmux_i2c2_pins {
+       pinctrl-single,pins = <
+           OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0)    /* i2c2_scl */
+           OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0)    /* i2c2_sda */
+       >;
+   };
+   i2c3_pins: pinmux_i2c3_pins {
+       pinctrl-single,pins = <
+           OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0)    /* i2c3_scl */
+           OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0)    /* i2c3_sda */
+       >;
+   };
 };

 &omap3_pmx_core2 {

Leave a Reply

Your email address will not be published. Required fields are marked *