From patchwork Wed Oct 29 11:52:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 5187111 Return-Path: X-Original-To: patchwork-linux-rockchip@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 DE6239F349 for ; Wed, 29 Oct 2014 11:56:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 076A620179 for ; Wed, 29 Oct 2014 11:56:19 +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 1C6202022D for ; Wed, 29 Oct 2014 11:56:18 +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 1XjRrM-0006gp-51; Wed, 29 Oct 2014 11:56:16 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XjRou-00032E-Pq; Wed, 29 Oct 2014 11:53:45 +0000 Received: by mail-pd0-f179.google.com with SMTP id g10so2856521pdj.10 for ; Wed, 29 Oct 2014 04:53:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r8tksoYzvVYxr7uP+beA7fHPFuLr8rUV0GjC/SSjVxQ=; b=IeLdZkNN/nqlwhUvezfL97Vytf1SZPXEQvngk6jNLlTPWmcdVBYtLlO2AgGIhLinhf K0VX+taWPCy8ZW5fbrAPTw+azo37cb5ME35JI4rCbrerAcrSy7kW1uhb4y3j9hpuOBFQ PlnsSVsIuNCyMt5Ju9NI+ynyAUM+Fa9VvymhUDwIfQ0Rin9qlGPzzAsEWxyabbrPPux4 gdqtUfpjcCU5rwZPv5oY9kfajJ0qE0FuqKtC0UYZpYyFZmvgTSxILNjRBarXxSN1fuBf fpIjIEw4uSa+nTBCEtNFJtCINrhy8nq7wD1yOTF9gE2oeX51jxRbY2TDdNSa6hwEQ/I+ fErg== X-Received: by 10.70.48.138 with SMTP id l10mr5300621pdn.139.1414583603131; Wed, 29 Oct 2014 04:53:23 -0700 (PDT) Received: from localhost.localdomain ([104.166.103.139]) by mx.google.com with ESMTPSA id tc8sm3441987pab.19.2014.10.29.04.53.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 04:53:22 -0700 (PDT) From: Chris Zhong To: heiko@sntech.de, dianders@chromium.org Subject: [PATCH v6 7/7] ARM: dts: add suspend voltage setting for RK808 Date: Wed, 29 Oct 2014 19:52:05 +0800 Message-Id: <1414583525-17395-8-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414583525-17395-1-git-send-email-zyw@rock-chips.com> References: <1414583525-17395-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141029_045344_873904_E89A90EF X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.5 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , Linus Walleij , khilman@kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Kumar Gala , Chris Zhong , mturquette@linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, 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 global_pwroff would be pull to high when RK3288 entering suspend, this pin is a sleep signal for RK808, so RK808 could goto sleep mode, and some regulators would be disable. Signed-off-by: Chris Zhong --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3288-evb-rk808.dts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288-evb-rk808.dts b/arch/arm/boot/dts/rk3288-evb-rk808.dts index ff522f8..319fcb6 100644 --- a/arch/arm/boot/dts/rk3288-evb-rk808.dts +++ b/arch/arm/boot/dts/rk3288-evb-rk808.dts @@ -27,7 +27,7 @@ interrupt-parent = <&gpio0>; interrupts = <4 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; - pinctrl-0 = <&pmic_int>; + pinctrl-0 = <&pmic_int &global_pwroff>; rockchip,system-power-controller; wakeup-source; #clock-cells = <1>; @@ -46,6 +46,7 @@ regulator-min-microvolt = <750000>; regulator-max-microvolt = <1300000>; regulator-name = "vdd_arm"; + regulator-suspend-mem-disabled; }; vdd_gpu: DCDC_REG2 { @@ -54,12 +55,14 @@ regulator-min-microvolt = <850000>; regulator-max-microvolt = <1250000>; regulator-name = "vdd_gpu"; + regulator-suspend-mem-disabled; }; vcc_ddr: DCDC_REG3 { regulator-always-on; regulator-boot-on; regulator-name = "vcc_ddr"; + regulator-suspend-mem-enabled; }; vcc_io: DCDC_REG4 { @@ -68,6 +71,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vcc_io"; + regulator-suspend-mem-microvolt = <3300000>; }; vccio_pmu: LDO_REG1 { @@ -76,6 +80,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vccio_pmu"; + regulator-suspend-mem-microvolt = <3300000>; }; vcc_tp: LDO_REG2 { @@ -84,6 +89,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vcc_tp"; + regulator-suspend-mem-disabled; }; vdd_10: LDO_REG3 { @@ -92,6 +98,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-name = "vdd_10"; + regulator-suspend-mem-microvolt = <1000000>; }; vcc18_lcd: LDO_REG4 { @@ -100,6 +107,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-name = "vcc18_lcd"; + regulator-suspend-mem-disabled; }; vccio_sd: LDO_REG5 { @@ -108,6 +116,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-name = "vccio_sd"; + regulator-suspend-mem-disabled; }; vdd10_lcd: LDO_REG6 { @@ -116,6 +125,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-name = "vdd10_lcd"; + regulator-suspend-mem-disabled; }; vcc_18: LDO_REG7 { @@ -124,6 +134,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-name = "vcc_18"; + regulator-suspend-mem-microvolt = <1800000>; }; vcca_codec: LDO_REG8 { @@ -132,18 +143,21 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-name = "vcca_codec"; + regulator-suspend-mem-disabled; }; vcc_wl: SWITCH_REG1 { regulator-always-on; regulator-boot-on; regulator-name = "vcc_wl"; + regulator-suspend-mem-enabled; }; vcc_lcd: SWITCH_REG2 { regulator-always-on; regulator-boot-on; regulator-name = "vcc_lcd"; + regulator-suspend-mem-disabled; }; }; };