summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2023-03-20 18:23:44 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2023-03-29 17:33:40 +0200
commitaa0ff7e3554e578b665ce8f3daeab37672a9c440 (patch)
tree203ba054838fb3be105c0ba8499cb32b68a04adc
parentf6bf1945c5d57e7e35e5c3ddeba1d0a2ba96042a (diff)
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 <philippe.schenker@toradex.com>
-rw-r--r--arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi23
1 files changed, 22 insertions, 1 deletions
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 {