]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: freescale: imx95-toradex-smarc: Use gpio-hog for WIFI_UART_EN
authorFranz Schnyder <franz.schnyder@toradex.com>
Thu, 26 Mar 2026 14:37:06 +0000 (15:37 +0100)
committerFrank Li <Frank.Li@nxp.com>
Tue, 5 May 2026 19:13:20 +0000 (15:13 -0400)
On the Toradex SMARC iMX95, the WiFi UART signals are shared with the
JTAG. The WIFI_UART_EN signal is used to select between these
two functions. A GPIO hog is used to select the UART function by
default. This DT file is going to be used by both Linux and the boot
firmware, and the boot firmware will configure the GPIO hog way before
the Linux kernel is booted, therefore there is no actual race condition
between the Linux kernel BT UART driver and GPIO hog probe.

Configure WIFI_UART_EN as a gpio-hog driven high.

Signed-off-by: Franz Schnyder <franz.schnyder@toradex.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
arch/arm64/boot/dts/freescale/imx95-toradex-smarc.dtsi

index a90edefc5197bd5e0b408b0d6270859b10987a16..8eef26eb0f8764916565fed9ce68d5e30e97d348 100644 (file)
                        "",
                        "",
                        "SMARC_SDIO_WP";
+
+               wifi-uart-en-hog {
+                       gpio-hog;
+                       gpios = <12 GPIO_ACTIVE_HIGH>;
+                       line-name = "WIFI_UART_EN";
+                       output-high;
+               };
        };
 
        embedded-controller@28 {