summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-08-04 23:16:15 -0700
committerYe Li <ye.li@nxp.com>2020-04-26 23:36:25 -0700
commit1d3481a7740e05ebe85ff0a8f117cc0be56db430 (patch)
treecf70a3d93307c10013fd31b784ba5ae3b031a628 /arch/arm
parentb2562204323aae1e4712ffd819568e9195e0b7c2 (diff)
MLK-22398-5 DTS: imx8qxp_mek/8dxl_phantom: Add PCI alias and node
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> (cherry picked from commit 36a57241a5af989f773980d3676337c8fc3e75a1)
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/dts/fsl-imx8dx.dtsi1
-rw-r--r--arch/arm/dts/fsl-imx8dxl-phantom-mek.dts42
-rw-r--r--arch/arm/dts/fsl-imx8qxp-mek.dts28
3 files changed, 71 insertions, 0 deletions
diff --git a/arch/arm/dts/fsl-imx8dx.dtsi b/arch/arm/dts/fsl-imx8dx.dtsi
index a8571a12b5..ac9380d1f0 100644
--- a/arch/arm/dts/fsl-imx8dx.dtsi
+++ b/arch/arm/dts/fsl-imx8dx.dtsi
@@ -68,6 +68,7 @@
usb0 = &usbotg1;
usbphy0 = &usbphy1;
usb1 = &usbotg3;
+ pci0 = &pcieb;
};
cpus {
diff --git a/arch/arm/dts/fsl-imx8dxl-phantom-mek.dts b/arch/arm/dts/fsl-imx8dxl-phantom-mek.dts
index 129354b287..f75774452a 100644
--- a/arch/arm/dts/fsl-imx8dxl-phantom-mek.dts
+++ b/arch/arm/dts/fsl-imx8dxl-phantom-mek.dts
@@ -32,6 +32,18 @@
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 = <&gpio4 18 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
reg_usb_otg1_vbus: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
@@ -138,6 +150,26 @@
SC_P_QSPI0B_DATA3_LSIO_QSPI0B_DATA3 0x06000021
>;
};
+
+ 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_wlreg_on: wlregongrp{
+ fsl,pins = <
+ SC_P_EMMC0_RESET_B_LSIO_GPIO4_IO18 0x06000000
+ >;
+ };
+
+ pinctrl_wlreg_on_sleep: wlregon_sleepgrp{
+ fsl,pins = <
+ SC_P_EMMC0_RESET_B_LSIO_GPIO4_IO18 0x07800000
+ >;
+ };
};
};
@@ -229,3 +261,13 @@
disable-over-current;
status = "okay";
};
+
+&pcieb{
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pcieb>;
+ clkreq-gpio = <&gpio4 1 GPIO_ACTIVE_LOW>;
+ reset-gpio = <&gpio4 0 GPIO_ACTIVE_LOW>;
+ epdev_on = <&epdev_on>;
+ ext_osc = <1>;
+ status = "okay";
+};
diff --git a/arch/arm/dts/fsl-imx8qxp-mek.dts b/arch/arm/dts/fsl-imx8qxp-mek.dts
index 0cce74ec5f..d737cbc3c5 100644
--- a/arch/arm/dts/fsl-imx8qxp-mek.dts
+++ b/arch/arm/dts/fsl-imx8qxp-mek.dts
@@ -40,6 +40,15 @@
off-on-delay-us = <3480>;
};
+ 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>;
@@ -153,6 +162,14 @@
>;
};
+ 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
@@ -323,6 +340,17 @@
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 = <&epdev_on>;
+ status = "okay";
+};
+
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec1>;