summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/imx53-tx53.dtsi
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2017-10-11 13:07:40 +0200
committerShawn Guo <shawnguo@kernel.org>2017-10-23 02:19:35 +0200
commitef4eec2bc3119863e9f7a8832499d1fcd9c420e0 (patch)
treec2fde73cead57456ca56bee9bfc58bb64b60e165 /arch/arm/boot/dts/imx53-tx53.dtsi
parentARM: dts: imx53-tx53: use explicit pad_ctl settings for I2C pins (diff)
downloadlinux-ef4eec2bc3119863e9f7a8832499d1fcd9c420e0.tar.xz
linux-ef4eec2bc3119863e9f7a8832499d1fcd9c420e0.zip
ARM: dts: imx53-tx53: add support for I2C bus recovery
The imx-i2c driver supports automatic bus recovery via the GPIO function of the I2C pins. Enable this functionality for the Ka-Ro electronics TX53 modules. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx53-tx53.dtsi')
-rw-r--r--arch/arm/boot/dts/imx53-tx53.dtsi19
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx53-tx53.dtsi b/arch/arm/boot/dts/imx53-tx53.dtsi
index 33934e53d518..8e10c4757770 100644
--- a/arch/arm/boot/dts/imx53-tx53.dtsi
+++ b/arch/arm/boot/dts/imx53-tx53.dtsi
@@ -233,8 +233,11 @@
};
&i2c1 {
- pinctrl-names = "default";
+ pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_i2c1>;
+ pinctrl-0 = <&pinctrl_i2c1_gpio>;
+ scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+ sda-gpios = <&gpio3 28 GPIO_ACTIVE_HIGH>;
clock-frequency = <400000>;
status = "okay";
@@ -394,6 +397,13 @@
>;
};
+ pinctrl_i2c1_gpio: i2c1-gpiogrp {
+ fsl,pins = <
+ MX53_PAD_EIM_D21__GPIO3_21 0x400001e6
+ MX53_PAD_EIM_D28__GPIO3_28 0x400001e6
+ >;
+ };
+
pinctrl_i2c3: i2c3grp {
fsl,pins = <
MX53_PAD_GPIO_3__I2C3_SCL 0x400001e4
@@ -401,6 +411,13 @@
>;
};
+ pinctrl_i2c3_gpio: i2c3-gpiogrp {
+ fsl,pins = <
+ MX53_PAD_GPIO_3__GPIO1_3 0x400001e6
+ MX53_PAD_GPIO_6__GPIO1_6 0x400001e6
+ >;
+ };
+
pinctrl_nand: nandgrp {
fsl,pins = <
MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B 0x4