ARM: dts: am335x-chilisom: Wakeup from RTC-only state by power on event
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Fri, 9 Dec 2016 11:33:27 +0000 (12:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:03 +0000 (10:26 +0200)
commit484e3e7934491fc0a2e72951d3a6eec24d0ad0da
tree5da225277bd7ef3c24f3d766daf444cdb8519cf7
parentbc9ad17c7af2d04e376246f245a0c95c652db3ce
ARM: dts: am335x-chilisom: Wakeup from RTC-only state by power on event

[ Upstream commit ca244a83ecc7f0a9242ee2116e622cb6d7ec2a90 ]

On chiliSOM TPS65217 nWAKEUP pin is connected to AM335x internal RTC
EXT_WAKEUP input. In RTC-only state TPS65217 is notifying about power on
events (such as power buton presses) by setting nWAKEUP output
low. After that it waits 5s for proper device boot. Currently it doesn't
happen, as the processor doesn't listen for such events. Consequently
TPS65217 changes state from SLEEP (RTC-only state) to OFF.

Enable EXT_WAKEUP input of AM335x's RTC, so the processor can properly
detect power on events and recover immediately from RTC-only states,
without powering off RTC and losing time.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/am335x-chilisom.dtsi