From f2f72902a28f390c9a146e44250ae8285169b962 Mon Sep 17 00:00:00 2001 From: Evgeny Boger Date: Thu, 1 Oct 2020 01:21:56 +0300 Subject: [PATCH] dts: wb6x: enable i2c bus recovery on WBIO bus --- arch/arm/boot/dts/imx6ul-wirenboard61.dts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6ul-wirenboard61.dts b/arch/arm/boot/dts/imx6ul-wirenboard61.dts index 77f89186596d8..55aabaa99be56 100644 --- a/arch/arm/boot/dts/imx6ul-wirenboard61.dts +++ b/arch/arm/boot/dts/imx6ul-wirenboard61.dts @@ -448,8 +448,12 @@ &i2c2 { clock_frequency = <100000>; - pinctrl-names = "default"; + /* GPIOs are used for bus recovery by the driver */ + pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-1 = <&pinctrl_i2c2_gpio>; + scl-gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; status = "okay"; }; @@ -663,6 +667,14 @@ >; }; + pinctrl_i2c2_gpio: i2c2gpiogrp { + fsl,pins = < + MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30 0xf0b0 /* SCL, 22k pull-up */ + MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31 0xf0b0 /* SDA, 22k pull-up */ + MX6UL_PAD_SD1_DATA0__GPIO2_IO18 0x30b0 /* INT */ + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1