[PATCH v1 1/1] arm64: dts: imx8mn-evk: Pass GPIO_OPEN_DRAIN flag on i2c3 GPIOs
Peng Fan
peng.fan at oss.nxp.com
Thu Oct 15 04:02:48 PDT 2026
On Thu, Oct 15, 2026 at 10:11:49AM +0200, Stefano Radaelli wrote:
>From: Stefano Radaelli <stefano.r at variscite.com>
>
>scl-gpios and sda-gpios need GPIO_OPEN_DRAIN flag, otherwise the
>following run-time warning is seen:
>
>gpio-146 (scl): enforced open drain please flag it properly in DT/ACPI DSDT/board file
>
>Signed-off-by: Stefano Radaelli <stefano.r at variscite.com>
>---
> arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi
>index 3e590afa4fab..036afa0f6990 100644
>--- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi
>+++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi
>@@ -287,8 +287,8 @@ &i2c3 {
> pinctrl-names = "default", "gpio";
> pinctrl-0 = <&pinctrl_i2c3>;
> pinctrl-1 = <&pinctrl_i2c3_gpio>;
>- scl-gpios = <&gpio5 18 GPIO_ACTIVE_HIGH>;
>- sda-gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>;
>+ scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
>+ sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
I think ODE should be configured for pinctrl_i2c3_gpio.
Regards
Peng
> status = "okay";
>
> pca6416: gpio at 20 {
>--
>2.47.3
>
More information about the linux-arm-kernel
mailing list