MLK-22398-3 DTS: imx8qm_mek: Add PCI alias and node for MEK board
authorYe Li <ye.li@nxp.com>
Tue, 30 Jul 2019 08:36:13 +0000 (01:36 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:30 +0000 (00:56 -0700)
Add PCI alias for pciea and pcieb.
Enable the pciea node in MEK board and add relevant pin config and
regulator

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit f755e125fc97096a7fc785271401c3ae0a0eee2e)
(cherry picked from commit 51c3590b6ea3208549ad03bd7e5496f2d2b7f9f5)

arch/arm/dts/fsl-imx8qm-mek.dts
arch/arm/dts/fsl-imx8qm.dtsi

index 0d6a240..4819bb8 100644 (file)
                        off-on-delay-us = <4800>;
                        enable-active-high;
                };
+
+               epdev_on: fixedregulator@100 {
+                       compatible = "regulator-fixed";
+                       pinctrl-names = "default", "sleep";
+                       pinctrl-0 = <&pinctrl_wlreg_on>;
+                       pinctrl-1 = <&pinctrl_wlreg_on_sleep>;
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-name = "epdev_on";
+                       gpio = <&gpio1 13 0>;
+                       enable-active-high;
+               };
        };
 };
 
                                SC_P_LVDS1_I2C1_SDA_LVDS1_I2C1_SDA      0xc600004c
                        >;
                };
+
+               pinctrl_wlreg_on: wlregongrp{
+                       fsl,pins = <
+                               SC_P_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13             0x06000000
+                       >;
+               };
+
+               pinctrl_wlreg_on_sleep: wlregon_sleepgrp{
+                       fsl,pins = <
+                               SC_P_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13             0x07800000
+                       >;
+               };
        };
 };
 
        };
 };
 
+&pciea{
+       ext_osc = <1>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pciea>;
+       disable-gpio = <&gpio4 9 GPIO_ACTIVE_LOW>;
+       reset-gpio = <&gpio4 29 GPIO_ACTIVE_LOW>;
+       clkreq-gpio = <&gpio4 27 GPIO_ACTIVE_LOW>;
+       epdev_on = <&epdev_on>;
+       status = "okay";
+};
+
 &sata {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pciea>;
index 5220f94..547a2c0 100644 (file)
@@ -72,6 +72,8 @@
                i2c6 = &i2c1_lvds0;
                i2c8 = &i2c1_lvds1;
                spi0 = &flexspi0;
+               pci0 = &pciea;
+               pci1 = &pcieb;
        };
 
        memory@80000000 {