Can lx2160ardb rtc0 support wakeup ?

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

Can lx2160ardb rtc0 support wakeup ?

Jump to solution
998 Views
minwang1
Contributor II

Hello,

There are 2 RTCs on lx2160ardb: rtc0 and rtc1. We can see rtc1 support wakealarm, but rtc0 doesn't. Can rtc0 support wakeup by adding attribute 'wakeup-source' in rtc@51 node of the dts? Full log see attachment.

root@lx2160ardb:~# ls /sys/class/rtc -l
total 0
lrwxrwxrwx 1 root root 0 Nov 29 08:58 rtc0 -> ../../devices/platform/soc/2040000.i2c/i2c-1/1-0051/rtc/rtc0
lrwxrwxrwx 1 root root 0 Nov 29 08:58 rtc1 -> ../../devices/platform/soc/2800000.timer/rtc/rtc1
root@lx2160ardb:~# ls /sys/class/rtc/rtc0
date dev device hctosys max_user_freq name power range since_epoch subsystem time timestamp0 uevent
root@lx2160ardb:~# ls /sys/class/rtc/rtc1
alarmtimer.2.auto date dev device hctosys max_user_freq name power since_epoch subsystem time uevent wakealarm

Thanks,

MinWang@WindRiver

0 Kudos
Reply
1 Solution
922 Views
yipingwang
NXP TechSupport
NXP TechSupport

rtc0 doesn't support wakeup.

rtc0 is used to set the system time.

rtc1 is FlexTimer (FTM), can support wake-up source and PWM.

View solution in original post

0 Kudos
Reply
3 Replies
923 Views
yipingwang
NXP TechSupport
NXP TechSupport

rtc0 doesn't support wakeup.

rtc0 is used to set the system time.

rtc1 is FlexTimer (FTM), can support wake-up source and PWM.

0 Kudos
Reply
871 Views
minwang1
Contributor II
Thanks for your answer. But I want to know why rtc0 can't support wakeup. Could you please give us more explanation?
0 Kudos
Reply
842 Views
yipingwang
NXP TechSupport
NXP TechSupport

rtc0 is not a FlexTimer (FTM). Only FlexTimer can support wakeup source.

0 Kudos
Reply