ARM: dts: imx6q-bx50v3: Enable i2c recovery mechanism
authorJose Alarcon <jose.alarcon@ge.com>
Thu, 10 Aug 2017 10:42:29 +0000 (13:42 +0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Aug 2017 01:45:13 +0000 (09:45 +0800)
This commit enables i2c recovery, supported by the i2c core subsystem.
It defines the required GPIOs for SDA and SCL lines.

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-bx50v3.dtsi

index c90b26f00e24c8395b3ebd2d0d20f1a2481e0a33..1015e55ca8f7bd9eaa2edf68ed499f577fbac083 100644 (file)
 };
 
 &i2c1 {
+       pinctrl-names = "default", "gpio";
+       pinctrl-1 = <&pinctrl_i2c1_gpio>;
+       sda-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>;
+       scl-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;
+
        pca9547: mux@70 {
                compatible = "nxp,pca9547";
                reg = <0x70>;
        };
 };
 
+&i2c2 {
+       pinctrl-names = "default", "gpio";
+       pinctrl-1 = <&pinctrl_i2c2_gpio>;
+       sda-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
+       scl-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
+};
+
+&i2c3 {
+       pinctrl-names = "default", "gpio";
+       pinctrl-1 = <&pinctrl_i2c3_gpio>;
+       sda-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
+       scl-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+};
+
+&iomuxc {
+       pinctrl_i2c1_gpio: i2c1gpiogrp {
+               fsl,pins = <
+                       MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26        0x1b0b0
+                       MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27        0x1b0b0
+               >;
+       };
+
+       pinctrl_i2c2_gpio: i2c2gpiogrp {
+               fsl,pins = <
+                       MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0
+                       MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0
+               >;
+       };
+
+       pinctrl_i2c3_gpio: i2c3gpiogrp {
+               fsl,pins = <
+                       MX6QDL_PAD_GPIO_3__GPIO1_IO03   0x1b0b0
+                       MX6QDL_PAD_GPIO_6__GPIO1_IO06   0x1b0b0
+               >;
+       };
+};
+
 &usdhc4 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usdhc4>;