From 1d3481a7740e05ebe85ff0a8f117cc0be56db430 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Sun, 4 Aug 2019 23:16:15 -0700 Subject: 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 (cherry picked from commit 36a57241a5af989f773980d3676337c8fc3e75a1) --- arch/arm/dts/fsl-imx8dx.dtsi | 1 + arch/arm/dts/fsl-imx8dxl-phantom-mek.dts | 42 ++++++++++++++++++++++++++++++++ arch/arm/dts/fsl-imx8qxp-mek.dts | 28 +++++++++++++++++++++ 3 files changed, 71 insertions(+) (limited to 'arch/arm') diff --git a/arch/arm/dts/fsl-imx8dx.dtsi b/arch/arm/dts/fsl-imx8dx.dtsi index a8571a12b50..ac9380d1f09 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 129354b2871..f75774452a6 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 0cce74ec5fa..d737cbc3c5d 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>; -- cgit v1.2.3