1
0
Fork 0

MLK-20456 arm64: dts: imx8qm: keep wlreg_on regulator during system suspended

Keep wlreg_on regulator on during system suspended status due to
external wifi module power requirement. Also keep the old Murata
1CQ M.2 card support.

To set the PIN to "latch" status before the GPIO controller is power
off during suspend, and set the PIN to "PASS" status after GPIO
controller status restored during system resume back.

Reviewed-by: yang.tian <yang.tian@nxp.com>
Tested-by: yang.tian <yang.tian@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit: 015599e40fd5cc942f8f6a8d4b6c3475440a114e)
pull/10/head
Andy Duan 2018-11-23 18:27:04 +08:00
parent b2d5c65131
commit 1903129efe
1 changed files with 17 additions and 3 deletions

View File

@ -85,10 +85,13 @@
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 9 0>;
gpio = <&gpio1 13 0>;
enable-active-high;
};
@ -438,7 +441,6 @@
SC_P_PCIE_CTRL0_CLKREQ_B_LSIO_GPIO4_IO27 0x04000021
SC_P_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO28 0x04000021
SC_P_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO29 0x04000021
SC_P_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13 0x06000000
SC_P_USDHC2_RESET_B_LSIO_GPIO4_IO09 0x04000021
>;
};
@ -628,6 +630,18 @@
SC_P_SCU_GPIO0_07_SCU_DSC_RTC_CLOCK_OUTPUT_32K 0x20
>;
};
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
>;
};
};
};
@ -1091,7 +1105,7 @@
ext_osc = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pciea &pinctrl_wifi>;
disable-gpio = <&gpio1 13 GPIO_ACTIVE_LOW>;
disable-gpio = <&gpio4 9 GPIO_ACTIVE_LOW>;
reset-gpio = <&gpio4 29 GPIO_ACTIVE_LOW>;
clkreq-gpio = <&gpio4 27 GPIO_ACTIVE_LOW>;
epdev_on-supply = <&epdev_on>;