ARM: dts: imx: bx50v3: i2c GPIOs are open drain
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 8 Mar 2021 15:18:28 +0000 (16:18 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 06:13:43 +0000 (14:13 +0800)
Explicitly mark I2C GPIOs as open drain to fix the following
kernel message being printed:

enforced open drain please flag it properly in DT/ACPI DSDT/board file

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-bx50v3.dtsi

index 2a98cc6..1092237 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>;
+       sda-gpios = <&gpio5 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+       scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 
        pca9547: mux@70 {
                compatible = "nxp,pca9547";
 &i2c2 {
        pinctrl-names = "default", "gpio";
        pinctrl-1 = <&pinctrl_i2c2_gpio>;
-       sda-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
-       scl-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
+       sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+       scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 };
 
 &i2c3 {
        pinctrl-names = "default", "gpio";
        pinctrl-1 = <&pinctrl_i2c3_gpio>;
-       sda-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
-       scl-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+       sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+       scl-gpios = <&gpio1 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 };
 
 &iomuxc {