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: 5126981 Return-Path: X-Original-To: patchwork-linux-omap@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 DB752C11AC for ; Tue, 21 Oct 2014 17:49:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D8A52022A for ; Tue, 21 Oct 2014 17:49:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3563420109 for ; Tue, 21 Oct 2014 17:49:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755956AbaJURrV (ORCPT ); Tue, 21 Oct 2014 13:47:21 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:61001 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933408AbaJURo6 (ORCPT ); Tue, 21 Oct 2014 13:44:58 -0400 Received: by mail-lb0-f171.google.com with SMTP id z12so1450717lbi.16 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 Cc: Andrew Morton , Lokesh Vutla , Guenter Roeck , nsekhar@ti.com, t-kristo@ti.com, j-keerthy@ti.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Johan Hovold 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> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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; +};