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>
Fri, 9 Aug 2019 09:26:24 +0000 (02:26 -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>
arch/arm/dts/fsl-imx8qm-mek.dts
arch/arm/dts/fsl-imx8qm.dtsi

index 6a4d56b..eaa1ce1 100644 (file)
                        startup-delay-us = <100>;
                        u-boot,off-on-delay-us = <12000>;
                };
+
+               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 8f0b047..c99f5a9 100644 (file)
@@ -82,6 +82,8 @@
                i2c6 = &i2c1_lvds0;
                i2c8 = &i2c1_lvds1;
                spi0 = &flexspi0;
+               pci0 = &pciea;
+               pci1 = &pcieb;
        };
 
        memory@80000000 {