]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: imx8-colibri: Add PCIe support
authorMax Krummenacher <max.krummenacher@toradex.com>
Tue, 22 Apr 2025 11:50:49 +0000 (13:50 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 9 May 2025 10:12:35 +0000 (18:12 +0800)
The needed drivers to support PCIe for i.MX 8QXP have been
added.
Configure PCIe for the Colibri iMX8X SoM.

The pcieb block is connected to the on module Wi-Fi/BT module.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi

index ecb35c6b67f597f6eee1b159e5adffee2eb1144f..e602d147e39b937ef6e1ff3f45d3df685784ee9f 100644 (file)
                regulator-name = "vref-1v8";
        };
 
+       reg_module_wifi: regulator-module-wifi {
+               compatible = "regulator-fixed";
+               gpio = <&gpio_expander_43 6 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+               regulator-always-on;
+               regulator-name = "Wi-Fi_PDn";
+               startup-delay-us = <2000>;
+       };
+
        reg_usbh_vbus: regulator-usbh-vbus {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
        };
 };
 
+&hsio_phy {
+       fsl,hsio-cfg = "pciea-x2-pcieb";
+       fsl,refclk-pad-mode = "input";
+       status = "okay";
+};
+
+&hsio_refb_clk {
+       enable-gpios = <&gpio_expander_43 3 GPIO_ACTIVE_HIGH>;
+};
+
 /* Colibri SPI */
 &lpspi2 {
        pinctrl-names = "default";
 
 /* TODO MIPI DSI with DSI-to-HDMI bridge lt8912 */
 
-/* TODO on-module PCIe for Wi-Fi */
+/* On-module PCIe for Wi-Fi */
+&pcieb {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pcieb>;
+       phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>;
+       phy-names = "pcie-phy";
+       reset-gpios = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
+       status = "okay";
+};
 
 /* On-module I2S */
 &sai0 {