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>
This commit is contained in:
		 Daniel González Cabanelas
					Daniel González Cabanelas
				
			
				
					committed by
					
						 Petr Štetiar
						Petr Štetiar
					
				
			
			
				
	
			
			
			 Petr Štetiar
						Petr Štetiar
					
				
			
						parent
						
							8336b0df5d
						
					
				
				
					commit
					b8362c20e7
				
			| @@ -230,6 +230,7 @@ | |||||||
| 	rs5c372a: rs5c372a@32 { | 	rs5c372a: rs5c372a@32 { | ||||||
| 		compatible = "ricoh,rs5c372a"; | 		compatible = "ricoh,rs5c372a"; | ||||||
| 		reg = <0x32>; | 		reg = <0x32>; | ||||||
|  | 		wakeup-source; | ||||||
| 	}; | 	}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user