Hi all
I want to clearfy how to wakeup from standby by PMIC_STBY_REQ.
I tested wakeup from standby by PMIC_STBY_REQ both MCIMX6DL-SDP and SABRE-AI.
But SABRE-AI have never wakedup by PMIC_STBY_REQ.
could someone answer following question ?
Q1.
I use following command to enter standby mode.
echo mem > /sys/power/state
Is it same effect on both board ?
Q2.
When I use echo mem > /sys/power/state command, the vstby bit will set.
Am I correct ?
Q3.
I found that the MCIMX6DL-SDP have PWR_BTN_SNS signal but SABRE-AI doesn't have it.
Does user need to add PWR_BTN_SNS signal for wakeup from standby by PMIC_STBY_REQ ?
Ko-hey
Hi Ko-hey
1. yes
2. correct
3. wake-up is performed by "gpio-key,wakeup;" in dts files, so corresponding gpios should be able to wake:
PWR_BTN_SNS is connected to EIM_D29 in i.MX6Q Sabre SD (spf-27392 schematic p.3)
(it is used for parallel nor flash on Sabre AI board)
linux/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
imx6qdl-sabresd.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel
pinctrl_gpio_keys: gpio_keysgrp {
fsl,pins = <
MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x1b0b0
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_keys>;
power {
label = "Power Button";
gpios = <&gpio3 29 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
linux,code = <KEY_POWER>;
};
gpio buttons on Sabre AI SCH-26662 p.13 schematic
linux/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
imx6qdl-sabreauto.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel
gpio-keys {
compatible = "gpio-keys1";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_keys>;
home {
label = "Home";
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
..
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor
Could i.MX6 wake-up from standby by PMIC_STBY_REQ without gpio-key,wakeup ?
If yes, Please tell me how to do that.
Ko-hey
Hi Ko-hey
>Could i.MX6 wake-up from standby by PMIC_STBY_REQ without gpio-key,wakeup ?
no
Best regards
igor
Hi igorpadykov
Let me confirm more.
Q1.
In the circuit diagram of SABR-SDP, I think that MX6_ONOFF and PWR_BTN_SNS will be low at the same time when SW1 is pushed.
Are these two signals necessary for returning from DSM ? Or is it only PWR_BTN_SNS ?
Q2.
For the above confirmation, could you verify the operation after removing R22 of SABR - SDP?
Q3.
Can I assign any other GPIO pin to which the function of PWR_BTN_SNS ?
Q4.
It seems that PWR_BTN_SNS is operated with active low.
How long time are required for the input Low section ?
Ko-hey
Hi Ko-hey
for new questions please create new threads.
>Q3. Can I assign any other GPIO pin to which the function of PWR_BTN_SNS ?
yes
Best regards
igor
Hi igorpadykov
Thank you for reply.
I posted another thread as follow.
https://community.nxp.com/thread/488559
Could you follow it ?
Ko-hey
Hi Ko-hey
not, sorry.
Best regards
igor