diff options
author | Daniel González Cabanelas <dgcbueu@gmail.com> | 2020-11-24 16:06:52 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-12-22 18:59:10 +0100 |
commit | b8362c20e7a7e83707a39f84689ec4180a4b53fb (patch) | |
tree | 19dd59272557f7bc382d68281ed45bbeb6634559 /target/linux/mvebu | |
parent | 8336b0df5d6de83c9f44bef470a37a93b472773a (diff) | |
download | upstream-b8362c20e7a7e83707a39f84689ec4180a4b53fb.tar.gz upstream-b8362c20e7a7e83707a39f84689ec4180a4b53fb.tar.bz2 upstream-b8362c20e7a7e83707a39f84689ec4180a4b53fb.zip |
mvebu: LS421DE: use the RTC as a wakeup source
The Buffalo Linkstation LS421DE comes with a Ricoh RS5C372A real time
clock. This RTC has the INTRA pin connected to the power management
circuit, allowing to wake up the device from the power off state when an
alarm is scheduled.
Add the "wakeup-source" property in the RTC dts node to allow the use
of the alarm.
Example of use, the device is powered off and it comes to life after 5
minutes:
echo $(expr $(date '+%s') + 60 * 5) > /sys/class/rtc/rtc0/wakealarm
poweroff
This feature isn't available in the stock firmware.
Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Diffstat (limited to 'target/linux/mvebu')
-rw-r--r-- | target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts index 2a76649ec4..dee271541e 100644 --- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts +++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts @@ -230,6 +230,7 @@ rs5c372a: rs5c372a@32 { compatible = "ricoh,rs5c372a"; reg = <0x32>; + wakeup-source; }; }; |