i.Mx7 RTC Wake Up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.Mx7 RTC Wake Up

754 Views
tanioka
Contributor I

Hi

We are trying to wake up RTC from state S5 of ACPI using i.Mx7D to seve power.
At that time, I tried setting alarm_time with the following command on the console, but it does not start up.
Can you tell me if there are any procedures?
------------------------------
root @ imx 7 dsabresd: ~ # date '+% s' - d '+ 5 minutes'> / sys / class / rtc / rtc 0 / wakealarm
root @ imx 7 dsabresd: ~ # cat / proc / driver / rtc
rtc_time: 15: 14: 13
rtc_date: 2018 - 10 - 09
alrm_time: 15: 19: 08
alrm_date: 2018-10-09
alarm_IRQ: yes
alrm_pending: no
update IRQ enabled: no
periodic IRQ enabled: no
periodic IRQ frequency: 1
max user IRQ frequency: 64
24hr: yes
root @ imx 7 dsabresd: ~ # shutdown - h now
------------------------------

Thank you

Labels (3)
Tags (1)
0 Kudos
2 Replies

594 Views
tanioka
Contributor I

Hi

I ran the rtc-unit test,and I could confirm PASS.
However, Is there any procedure to confirm startup from S5(power off)?

Please let me know if you know how to drop it to S4 (Hibernation).

-----------------------------------------------------------------

root@imx7dsabresd:~# ./autorun-rtc.sh
./autorun-rtc.sh: line 5: print_name: command not found
i.MX7D
Checking for devnode: /dev/rtc0
autorun-rtc.sh: PASS devnode found: /dev/rtc0

Running test case: ./rtctest.out --no-periodic

RTC Driver Test Example.

Counting 5 update (1/sec) interrupts from reading /dev/rtc0: 1 2 3 4 5
Again, from using select(2) on /dev/rtc0: 1 2 3 4 5

Current RTC date/time is 1-1-1970, 01:03:06.
Alarm time now set to 01:03:11.
Waiting 5 seconds for alarm... okay. Alarm rang.


*** Test complete ***

Typing "cat /proc/interrupts" will show 11 more events on IRQ rtc.

autorun-rtc.sh: PASS test case: ./rtctest.out --no-periodic

rtc irqs before running unit test: 0
rtc irqs after running unit test: 11
so rtc irqs during test was: 11
checking rtc interrupts PASS
autorun-rtc.sh: Exiting PASS

-----------------------------------------------------------------

Best regards

H.Tanioka

0 Kudos

594 Views
igorpadykov
NXP Employee
NXP Employee

Hi  谷岡 弘章

one can try rtc unit test:

mxc_rtc\test - imx-test - i.MX Driver Test Application Software 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos