From: Marcin Niestroj Date: Fri, 9 Dec 2016 11:33:27 +0000 (+0100) Subject: ARM: dts: am335x-chilisom: Wakeup from RTC-only state by power on event X-Git-Tag: v4.11-rc1~87^2~1^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca244a83ecc7f0a9242ee2116e622cb6d7ec2a90;p=platform%2Fkernel%2Flinux-exynos.git ARM: dts: am335x-chilisom: Wakeup from RTC-only state by power on event 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/boot/dts/am335x-chilisom.dtsi b/arch/arm/boot/dts/am335x-chilisom.dtsi index f9ee585..1b43ebd 100644 --- a/arch/arm/boot/dts/am335x-chilisom.dtsi +++ b/arch/arm/boot/dts/am335x-chilisom.dtsi @@ -124,6 +124,14 @@ &rtc { system-power-controller; + + pinctrl-0 = <&ext_wakeup>; + pinctrl-names = "default"; + + ext_wakeup: ext-wakeup { + pins = "ext_wakeup0"; + input-enable; + }; }; /* NAND Flash */