From patchwork Tue Aug 13 22:20:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russ Dill X-Patchwork-Id: 2844047 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 08ED79F2F6 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 281972040F 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 414FD202BE for ; Tue, 13 Aug 2013 22:20:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932105Ab3HMWU1 (ORCPT ); Tue, 13 Aug 2013 18:20:27 -0400 Received: from mail-ob0-f175.google.com ([209.85.214.175]:53096 "EHLO mail-ob0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757990Ab3HMWUW (ORCPT ); Tue, 13 Aug 2013 18:20:22 -0400 Received: by mail-ob0-f175.google.com with SMTP id xn12so11195202obc.34 for ; Tue, 13 Aug 2013 15:20:20 -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=u/08qaEeKXG6TvaOmlkm1tGZ+Bmjg0vVW+hsi5UOCzQ=; b=BsR5yof0TY1XxELsEUnoXASbKk9wgORHct6keJOxq8AI7eUBlj++0vbtarQtFrac3e k/O3QlGVPLdeAuW9fYG5BQ1EwgV0iRR0PZFXna2/9PibEE8XpAV9VUe0Xf7KYEBAdsVg 6uyUrXy0vQtmQggSghUEZWZPgp+rY3M5EM30a5Zcb7rAZHX8L/0oRBZHolvd0lxqpx/Z YAyQ4ecPW6h8sBoBLtMEhlvEXoLffi5NGbe0PzkY56hMj4KTRgK1DEacMsbaUNa7vwhg I51KNLamwmY8LM/OslANEL54sQq8f3uNwxYngQpDusdX2e4PjxHUO6RcelAoTLXizQc9 rhUg== X-Received: by 10.60.115.164 with SMTP id jp4mr810071oeb.19.1376432420902; Tue, 13 Aug 2013 15:20:20 -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 z2sm41844277obi.3.2013.08.13.15.20.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Aug 2013 15:20:20 -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 3/4] ARM: dts: add AM33XX vdd core opp50 suspend for AM335X GP EVM. Date: Tue, 13 Aug 2013 15:20:11 -0700 Message-Id: <1376432412-8509-4-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 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-evm.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 3aee1a4..81ce169 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -166,6 +166,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>; };