From patchwork Wed Oct 8 13:44:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 5053731 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 60825C11AB for ; Wed, 8 Oct 2014 13:47:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 190A520220 for ; Wed, 8 Oct 2014 13:47:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 483402020E for ; Wed, 8 Oct 2014 13:46:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932134AbaJHNqa (ORCPT ); Wed, 8 Oct 2014 09:46:30 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:52451 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756442AbaJHNq2 (ORCPT ); Wed, 8 Oct 2014 09:46:28 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id 96BE5609E1B From: Javier Martinez Canillas To: Mark Brown Cc: Doug Anderson , Chanwoo Choi , Olof Johansson , Chris Zhong , Krzysztof Kozlowski , Abhilash Kesavan , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Javier Martinez Canillas Subject: [PATCH 5/5] ARM: dts: Add initial regulator mode on exynos Peach boards Date: Wed, 8 Oct 2014 15:44:07 +0200 Message-Id: <1412775847-15213-6-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1412775847-15213-1-git-send-email-javier.martinez@collabora.co.uk> References: <1412775847-15213-1-git-send-email-javier.martinez@collabora.co.uk> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 The regulator core now has support to choose a default initial operating mode for regulators from DT. Set the initial opmode for the max77802 PMIC regulators with the same modes that are used in the downstream ChromeOS kernel, in order to allow the system to lower power at suspend time. Signed-off-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 26 ++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 26 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 9a050e1..f7eb70d 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -13,6 +13,7 @@ #include #include #include +#include #include "exynos5420.dtsi" / { @@ -192,6 +193,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck2_reg: BUCK2 { @@ -201,6 +203,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck3_reg: BUCK3 { @@ -210,6 +213,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck4_reg: BUCK4 { @@ -219,6 +223,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck5_reg: BUCK5 { @@ -227,6 +232,7 @@ regulator-max-microvolt = <1200000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck6_reg: BUCK6 { @@ -236,6 +242,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck7_reg: BUCK7 { @@ -244,6 +251,7 @@ regulator-max-microvolt = <1350000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck8_reg: BUCK8 { @@ -252,6 +260,7 @@ regulator-max-microvolt = <2850000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck9_reg: BUCK9 { @@ -260,6 +269,7 @@ regulator-max-microvolt = <2000000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck10_reg: BUCK10 { @@ -268,6 +278,7 @@ regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; ldo1_reg: LDO1 { @@ -275,6 +286,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo2_reg: LDO2 { @@ -288,6 +300,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; vqmmc_sdcard: ldo4_reg: LDO4 { @@ -295,6 +308,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo5_reg: LDO5 { @@ -302,6 +316,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo6_reg: LDO6 { @@ -309,6 +324,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo7_reg: LDO7 { @@ -322,6 +338,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo9_reg: LDO9 { @@ -329,6 +346,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo10_reg: LDO10 { @@ -336,6 +354,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo11_reg: LDO11 { @@ -343,6 +362,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo12_reg: LDO12 { @@ -350,6 +370,7 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo13_reg: LDO13 { @@ -357,6 +378,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo14_reg: LDO14 { @@ -364,6 +386,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo15_reg: LDO15 { @@ -371,6 +394,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo17_reg: LDO17 { @@ -378,6 +402,7 @@ regulator-min-microvolt = <900000>; regulator-max-microvolt = <1400000>; regulator-always-on; + regulator-initial-mode = ; }; ldo18_reg: LDO18 { @@ -451,6 +476,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo32_reg: LDO32 { diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index e8fdda8..3da8084 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -13,6 +13,7 @@ #include #include #include +#include #include "exynos5800.dtsi" / { @@ -191,6 +192,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck2_reg: BUCK2 { @@ -200,6 +202,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck3_reg: BUCK3 { @@ -209,6 +212,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck4_reg: BUCK4 { @@ -218,6 +222,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck5_reg: BUCK5 { @@ -226,6 +231,7 @@ regulator-max-microvolt = <1200000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck6_reg: BUCK6 { @@ -235,6 +241,7 @@ regulator-always-on; regulator-boot-on; regulator-ramp-delay = <12500>; + regulator-initial-mode = ; }; buck7_reg: BUCK7 { @@ -243,6 +250,7 @@ regulator-max-microvolt = <1350000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck8_reg: BUCK8 { @@ -251,6 +259,7 @@ regulator-max-microvolt = <2850000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck9_reg: BUCK9 { @@ -259,6 +268,7 @@ regulator-max-microvolt = <2000000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; buck10_reg: BUCK10 { @@ -267,6 +277,7 @@ regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; + regulator-initial-mode = ; }; ldo1_reg: LDO1 { @@ -274,6 +285,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo2_reg: LDO2 { @@ -287,6 +299,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; vqmmc_sdcard: ldo4_reg: LDO4 { @@ -294,6 +307,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo5_reg: LDO5 { @@ -301,6 +315,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo6_reg: LDO6 { @@ -308,6 +323,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo7_reg: LDO7 { @@ -321,6 +337,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo9_reg: LDO9 { @@ -328,6 +345,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo10_reg: LDO10 { @@ -335,6 +353,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo11_reg: LDO11 { @@ -342,6 +361,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo12_reg: LDO12 { @@ -349,6 +369,7 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo13_reg: LDO13 { @@ -356,6 +377,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo14_reg: LDO14 { @@ -363,6 +385,7 @@ regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; + regulator-initial-mode = ; }; ldo15_reg: LDO15 { @@ -370,6 +393,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo17_reg: LDO17 { @@ -377,6 +401,7 @@ regulator-min-microvolt = <900000>; regulator-max-microvolt = <1400000>; regulator-always-on; + regulator-initial-mode = ; }; ldo18_reg: LDO18 { @@ -450,6 +475,7 @@ regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; regulator-always-on; + regulator-initial-mode = ; }; ldo32_reg: LDO32 {