From aa0ff7e3554e578b665ce8f3daeab37672a9c440 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Mon, 20 Mar 2023 18:23:44 +0100 Subject: arm64: dts: colibri-imx8x: Add wi-fi Add support for Wi-Fi that is connected to the SoC with PCIe. Make sure the clock is enabled with a GPIO Hog. Do also make sure the GPIO for power-down is high (power enabled). Upstream-Status: Pending - There is currently no support for PCIe on mainline. Signed-off-by: Philippe Schenker --- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 673ad8a23f35..9ff2494727c1 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -346,6 +346,18 @@ "USB_BYPASS_N", "Wi-Fi_PDn", "Wi-Fi_WKUP_BT"; + + pcie-clk-on-hog { + gpio-hog; + gpios = <3 GPIO_ACTIVE_HIGH>; + output-high; + }; + + wifi-power-on-hog { + gpio-hog; + gpios = <6 GPIO_ACTIVE_HIGH>; + output-high; + }; }; }; @@ -736,7 +748,16 @@ }; }; -/* TODO on-module PCIe for Wi-Fi */ +/* On-module PCIe for Wi-Fi */ +&pcieb { + compatible = "fsl,imx8qxp-pcie", "snps,dw-pcie"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcieb &pinctrl_wifi>; + ext_osc = <1>; + fsl,max-link-speed = <1>; + reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>; + status = "okay"; +}; /* On-module I2S */ &sai0 { -- cgit v1.2.3