From patchwork Tue Aug 13 22:20:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russ Dill X-Patchwork-Id: 2844048 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 D2880BF546 for ; Tue, 13 Aug 2013 22:20:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F034E20438 for ; Tue, 13 Aug 2013 22:20:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2790B20379 for ; Tue, 13 Aug 2013 22:20:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759384Ab3HMWU0 (ORCPT ); Tue, 13 Aug 2013 18:20:26 -0400 Received: from mail-oa0-f42.google.com ([209.85.219.42]:43674 "EHLO mail-oa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759255Ab3HMWUX (ORCPT ); Tue, 13 Aug 2013 18:20:23 -0400 Received: by mail-oa0-f42.google.com with SMTP id i18so12338097oag.15 for ; Tue, 13 Aug 2013 15:20:23 -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=otvTDxIZgOhOY0F2TOgpoLtqx9hdjgCTe3Dmj1CrxBE=; b=U+4o1VZTW7PTVNruwtxg5ddU93AhcAI56vKugF5UdCUA2lxbQm4PQtQ7cqljwwxBwC aFjd6vxYjUzvTb0cbNhp2bQzCm0sejpIwBHYrpmkFxKE67/OyZZCWp/YCyx/Kb1VxGes FtimFKRXjGXXHGyjD6+TngqBPjiybyJ3grnJq4EB6Xu5E+U1IVGCGQN51CBZnz5bQ9ir vrccpdF0ri2+Qr65FznOp317EVZyoZjPvHW4vbpZ32HcRxDwokgSXzi8YPjw45nfclyA ZRsuZBZK2wE9q/ucx+RFgV/Rdg+0bPgCMez7hoVyIlYzZACeHOCGiLMTnS5rZFRDouq4 Zgaw== X-Received: by 10.182.61.44 with SMTP id m12mr8642269obr.52.1376432423094; Tue, 13 Aug 2013 15:20:23 -0700 (PDT) Received: from localhost (pool-173-60-222-174.lsanca.fios.verizon.net. [173.60.222.174]) by mx.google.com with ESMTPSA id n2sm41847438obo.6.2013.08.13.15.20.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Aug 2013 15:20:22 -0700 (PDT) From: Russ Dill To: linux-omap@vger.kernel.org Cc: devicetree@vger.kernel.org, Kevin Hilman , linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH v4 4/4] ARM: dts: AM33XX vdd core opp50 suspend for EVM-SK Date: Tue, 13 Aug 2013 15:20:12 -0700 Message-Id: <1376432412-8509-5-git-send-email-Russ.Dill@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1376432412-8509-1-git-send-email-Russ.Dill@ti.com> References: <1376432412-8509-1-git-send-email-Russ.Dill@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 From: Hebbar, Gururaja This adds a sleep and wake sequence to set the VDD core voltage to the OPP50 level, 0.950V. This saves power during suspend. The sequences are specific to the EVM-SK layout and PMIC, the TPS65910. The sequences are written out by the Cortex-M3. Signed-off-by: Hebbar, Gururaja Signed-off-by: Russ Dill --- arch/arm/boot/dts/am335x-evmsk.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts index 0c8ad17..704bbb3 100644 --- a/arch/arm/boot/dts/am335x-evmsk.dts +++ b/arch/arm/boot/dts/am335x-evmsk.dts @@ -174,6 +174,16 @@ status = "okay"; clock-frequency = <400000>; + /* Set OPP50 (0.95V) for VDD core */ + sleep_sequence = /bits/ 8 < + 0x02 0x2d 0x25 0x1f /* Set VDD2 to 0.95V */ + >; + + /* Set OPP100 (1.10V) for VDD core */ + wake_sequence = /bits/ 8 < + 0x02 0x2d 0x25 0x2b /* Set VDD2 to 1.1V */ + >; + tps: tps@2d { reg = <0x2d>; };