Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx7-colibri: add recovery for I2C for iMX7

- add recovery mode for applicable i2c buses for
Colibri iMX7 module.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Oleksandr Suvorov and committed by
Shawn Guo
4e9ccbd6 02200d29

+23 -2
+23 -2
arch/arm/boot/dts/imx7-colibri.dtsi
··· 140 140 141 141 &i2c1 { 142 142 clock-frequency = <100000>; 143 - pinctrl-names = "default"; 143 + pinctrl-names = "default", "gpio"; 144 144 pinctrl-0 = <&pinctrl_i2c1 &pinctrl_i2c1_int>; 145 + pinctrl-1 = <&pinctrl_i2c1_recovery &pinctrl_i2c1_int>; 146 + scl-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 147 + sda-gpios = <&gpio1 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 148 + 145 149 status = "okay"; 146 150 147 151 codec: sgtl5000@a { ··· 246 242 247 243 &i2c4 { 248 244 clock-frequency = <100000>; 249 - pinctrl-names = "default"; 245 + pinctrl-names = "default", "gpio"; 250 246 pinctrl-0 = <&pinctrl_i2c4>; 247 + pinctrl-1 = <&pinctrl_i2c4_recovery>; 248 + scl-gpios = <&gpio7 8 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 249 + sda-gpios = <&gpio7 9 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 251 250 }; 252 251 253 252 &lcdif { ··· 543 536 >; 544 537 }; 545 538 539 + pinctrl_i2c4_recovery: i2c4-recoverygrp { 540 + fsl,pins = < 541 + MX7D_PAD_ENET1_RGMII_TD2__GPIO7_IO8 0x4000007f 542 + MX7D_PAD_ENET1_RGMII_TD3__GPIO7_IO9 0x4000007f 543 + >; 544 + }; 545 + 546 546 pinctrl_lcdif_dat: lcdif-dat-grp { 547 547 fsl,pins = < 548 548 MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79 ··· 747 733 fsl,pins = < 748 734 MX7D_PAD_LPSR_GPIO1_IO05__I2C1_SDA 0x4000007f 749 735 MX7D_PAD_LPSR_GPIO1_IO04__I2C1_SCL 0x4000007f 736 + >; 737 + }; 738 + 739 + pinctrl_i2c1_recovery: i2c1-recoverygrp { 740 + fsl,pins = < 741 + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x4000007f 742 + MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x4000007f 750 743 >; 751 744 }; 752 745