From patchwork Tue Oct 21 17:38:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 5127111 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 72E99C11AC for ; Tue, 21 Oct 2014 17:52:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC2F82021F for ; Tue, 21 Oct 2014 17:52:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D242F20221 for ; Tue, 21 Oct 2014 17:51:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgdYe-0005k7-KC; Tue, 21 Oct 2014 17:49:20 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgdUp-0003F5-HA for linux-arm-kernel@bombadil.infradead.org; Tue, 21 Oct 2014 17:45:23 +0000 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgdUk-00013l-Lh for linux-arm-kernel@lists.infradead.org; Tue, 21 Oct 2014 17:45:21 +0000 Received: by mail-lb0-f179.google.com with SMTP id l4so1415367lbv.24 for ; Tue, 21 Oct 2014 10:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=07oU2PaSrB/wZMZwmpSWalghtFLEwo/h6xNBzGn6JGg=; b=nu0yALfhM3g/jjmgEffMH7eBgOFLWimVvBgC6Bsi5tHHdW7uRnPwN+hZqne+myGjh6 U7Pdqn8wghTmsMJArwY8zD2dz6xrIT/AGbNcayHQuKgdbu/kNNsXG4y3cGYuva4JyXRS NZtU7tpcyT+hlq9h27eGHFCPGyTbdlRMnQb2ahe8ULmjJ/s8Hc++QNqTJKL9nMGQxwm0 NfzgwvhbYz/XosuionaBWKWVWeVsBlJng/1q45aIsRiB6D7CNB2i0OZSCtQbsvuZ+QVc f+kyUTSJUpVwa40DviGfc2iZpXXFuOwPycqNuOqPhCD9x37rNfLJbvsw0+U9aVjl+qJg Y7pA== X-Received: by 10.112.182.1 with SMTP id ea1mr36001629lbc.16.1413913495705; Tue, 21 Oct 2014 10:44:55 -0700 (PDT) Received: from xi.terra (s83-177-171-8.cust.tele2.se. [83.177.171.8]) by mx.google.com with ESMTPSA id x6sm4807407lbb.25.2014.10.21.10.44.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 10:44:53 -0700 (PDT) X-Google-Original-Sender: Received: from johan by xi.terra with local (Exim 4.84) (envelope-from ) id 1XgdRO-0003OQ-V9; Tue, 21 Oct 2014 19:41:51 +0200 From: Johan Hovold To: Alessandro Zummo , Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Felipe Balbi Subject: [PATCH v2 20/20] ARM: dts: am335x-boneblack: enable power off and rtc wake up Date: Tue, 21 Oct 2014 19:38:06 +0200 Message-Id: <1413913086-12730-21-git-send-email-johan@kernel.org> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1413913086-12730-1-git-send-email-johan@kernel.org> References: <1412881594-25678-1-git-send-email-johan@kernel.org> <1413913086-12730-1-git-send-email-johan@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141021_184518_787288_78D52A49 X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -1.9 (-) Cc: devicetree@vger.kernel.org, rtc-linux@googlegroups.com, Lokesh Vutla , j-keerthy@ti.com, nsekhar@ti.com, linux-kernel@vger.kernel.org, Johan Hovold , t-kristo@ti.com, linux-arm-kernel@lists.infradead.org, Andrew Morton , linux-omap@vger.kernel.org, Guenter Roeck X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Configure the RTC as system-power controller, which allows the system to be powered off as well as woken up again on subsequent RTC alarms. Note that the PMIC needs to be put in SLEEP (rather than OFF) mode to maintain RTC power. Specifically, this means that the PMIC ti,pmic-shutdown-controller property must be left unset in order to be able to wake up on RTC alarms. Tested on BeagleBone Black (rev A5). Reviewed-by: Felipe Balbi Signed-off-by: Johan Hovold --- arch/arm/boot/dts/am335x-boneblack.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts index 305975d3f531..0c8cdc9520b7 100644 --- a/arch/arm/boot/dts/am335x-boneblack.dts +++ b/arch/arm/boot/dts/am335x-boneblack.dts @@ -75,3 +75,7 @@ status = "okay"; }; }; + +&rtc { + ti,system-power-controller; +};