MLK-22398-5 DTS: imx8qxp_mek: Add PCI alias and node for MEK board
authorYe Li <ye.li@nxp.com>
Mon, 5 Aug 2019 06:16:15 +0000 (23:16 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 9 Aug 2019 09:28:10 +0000 (02:28 -0700)
Add pci alias for pcieb.
Enable the pcieb node in MEK board and add relevant pin config and
regulator.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/dts/fsl-imx8dx.dtsi
arch/arm/dts/fsl-imx8qxp-mek.dts

index d521f72..d805754 100644 (file)
@@ -68,6 +68,7 @@
                usb0 = &usbotg1;
                usbphy0 = &usbphy1;
                usb1 = &usbotg3;
+               pci0 = &pcieb;
        };
 
        cpus {
index 7631f94..2629084 100644 (file)
                        u-boot,off-on-delay-us = <12000>;
                };
 
+               epdev_on: fixedregulator@100 {
+                       compatible = "regulator-fixed";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-name = "epdev_on";
+                       gpio = <&pca9557_a 0 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+
                reg_usb_otg1_vbus: regulator@0 {
                        compatible = "regulator-fixed";
                        reg = <0>;
                        >;
                };
 
+               pinctrl_pcieb: pcieagrp{
+                       fsl,pins = <
+                               SC_P_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00         0x06000021
+                               SC_P_PCIE_CTRL0_CLKREQ_B_LSIO_GPIO4_IO01        0x06000021
+                               SC_P_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02          0x04000021
+                       >;
+               };
+
                pinctrl_flexspi0: flexspi0grp {
                        fsl,pins = <
                                SC_P_QSPI0A_DATA0_LSIO_QSPI0A_DATA0     0x06000021
        status = "okay";
 };
 
+&pcieb{
+       ext_osc = <1>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pcieb>;
+       clkreq-gpio = <&gpio4 1 GPIO_ACTIVE_LOW>;
+       power-on-gpio = <&pca9557_a 2 GPIO_ACTIVE_HIGH>;
+       reset-gpio = <&gpio4 0 GPIO_ACTIVE_LOW>;
+       epdev_on-supply = <&epdev_on>;
+       status = "okay";
+};
+
 &fec1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_fec1>;