From patchwork Wed Dec 5 03:21:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 1840211 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 3F22C3FC64 for ; Wed, 5 Dec 2012 03:19:22 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tg5TQ-0003Hi-JZ; Wed, 05 Dec 2012 03:16:36 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tg5TM-0003HR-B1 for linux-arm-kernel@lists.infradead.org; Wed, 05 Dec 2012 03:16:34 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MEJ00KX1FQPRMF0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 05 Dec 2012 12:16:28 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.126]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 61.22.12699.C8CBEB05; Wed, 05 Dec 2012 12:16:28 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-ba-50bebc8cef1f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F0.22.12699.C8CBEB05; Wed, 05 Dec 2012 12:16:28 +0900 (KST) Received: from localhost.localdomain ([107.108.73.92]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MEJ0052XFRAL990@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 05 Dec 2012 12:16:28 +0900 (KST) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, dianders@chromium.org Subject: [PATCH v3] ARM: DTS: CROS5250: Add max77686 device tree support Date: Wed, 05 Dec 2012 08:51:42 +0530 Message-id: <1354677702-22669-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.6.6.1 In-reply-to: <1354099900-24779-1-git-send-email-a.kesavan@samsung.com> References: <1354099900-24779-1-git-send-email-a.kesavan@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsWyRsSkTrdnz74Ag7vTrCw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGhrU/mQt2qFY0f1jA3sC4S6aLkZNDQsBEouXucxYIW0ziwr31 bF2MXBxCAksZJa4/mcoEU7Tp5Wc2EFtIYDqjxJ0OA4ii9UwSv+YcYgVJsAnoSSz495W5i5GD Q0QgReLwcXuQMLNAscS2rWfBeoUFPCSubNvGCGKzCKhK3Dncwwxi8wq4Suw8vo4RYpeCxOkP a9lBbE4BN4k9ndOg9roCrfrMDNErIPFt8iEWkFUSArISmw4wg5wjIXCZTeJu60moOZISB1fc YJnAKLyAkWEVo2hqQXJBcVJ6rpFecWJucWleul5yfu4mRmAAnv73THoH46oGi0OMAhyMSjy8 Esb7AoRYE8uKK3MPMUpwMCuJ8P6zAwrxpiRWVqUW5ccXleakFh9i9AG6ZCKzlGhyPjA68kri DY1NzE2NTS2NjMxMTXEIK4nzNnukBAgJpCeWpGanphakFsGMY+LglGpgTPF8uPWF0NZktt/r NEWta8r5+h5qejKIyXu9mhltmPjRulGxaN+pvnpx52Vd195+YVm6JfDIDUfBSTvVCxtT1+/T Pi9/9vjTGS+L3jq9+XLuScy//6eO/XbzVOuYqXjz69dTbRqln7Svp5yL27vj7NcfF2OLvm1s srK03rH/zKk9b/+6TL33wkaJpTgj0VCLuag4EQCPPyJHbQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeLIzCtJLcpLzFFi42I5/e+xoG7Pnn0BBqvW6llsenyN1YHRY/OS +gDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwhrGjA1rfzIX7FCtaP6wgL2B cZdMFyMnh4SAicSml5/ZIGwxiQv31oPZQgLTGSXudBh0MXIB2euZJH7NOcQKkmAT0JNY8O8r cxcjB4eIQIrE4eP2IGFmgWKJbVvPgvUKC3hIXNm2jRHEZhFQlbhzuIcZxOYVcJXYeXwdI8Qu BYnTH9ayg9icAm4SezqnQe11BVr1mXkCI+8CRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmb GMHh/Ux6B+OqBotDjAIcjEo8vBLG+wKEWBPLiitzDzFKcDArifD+swMK8aYkVlalFuXHF5Xm pBYfYvQBumois5Rocj4w9vJK4g2NTcxNjU0tTSxMzCxxCCuJ8zZ7pAQICaQnlqRmp6YWpBbB jGPi4JRqYEzQVvzJzTVj85coxdNTpkz9v+BVQ51An9/KI+Jev8tt5/M+KE9/LrzV8oTV9hd8 HyqtUlfHLe5JMV97veTh4W1W5X5JN5qO/3x3Ksclpf0M236daxc/rc9hn9y6xzz9yqnbHjWM F1M79O9wBXdIWeSf3nNA9eL+06t9Us4K3723ZJfsQaaw/2FKLMUZiYZazEXFiQBLDcvrnAIA AA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121204_221633_001498_212CA320 X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: olof@lixom.net, Abhilash Kesavan , thomas.abraham@linaro.org, rahul.sharma@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The exynos5250 based chromebooks have a max77686 pmic on i2c channel 0. Add support for the pmic in the common cros5250 dts file. Tested after enabling cpufreq support for exynos5250 SoC and varying the arm frequency/voltage using the userspace governer. Signed-off-by: Abhilash Kesavan Acked-by: Doug Anderson --- Changes since v1: * Used generic names for the regulators * Changed BUCK5 as being default "ON" Changes since v2: * Fixed the LDO7 name from "P1.0V_LDO_OUT7" to "P1.1V_LDO_OUT7" arch/arm/boot/dts/cros5250-common.dtsi | 138 ++++++++++++++++++++++++++++++++ 1 files changed, 138 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/cros5250-common.dtsi b/arch/arm/boot/dts/cros5250-common.dtsi index fddd174..8ab8394 100644 --- a/arch/arm/boot/dts/cros5250-common.dtsi +++ b/arch/arm/boot/dts/cros5250-common.dtsi @@ -24,6 +24,144 @@ samsung,i2c-max-bus-freq = <378000>; gpios = <&gpb3 0 2 3 0>, <&gpb3 1 2 3 0>; + + max77686@09 { + compatible = "maxim,max77686"; + reg = <0x09>; + + voltage-regulators { + ldo1_reg: LDO1 { + regulator-name = "P1.0V_LDO_OUT1"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + ldo2_reg: LDO2 { + regulator-name = "P1.8V_LDO_OUT2"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo3_reg: LDO3 { + regulator-name = "P1.8V_LDO_OUT3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo7_reg: LDO7 { + regulator-name = "P1.1V_LDO_OUT7"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + ldo8_reg: LDO8 { + regulator-name = "P1.0V_LDO_OUT8"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + ldo10_reg: LDO10 { + regulator-name = "P1.8V_LDO_OUT10"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo12_reg: LDO12 { + regulator-name = "P3.0V_LDO_OUT12"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + + ldo14_reg: LDO14 { + regulator-name = "P1.8V_LDO_OUT14"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo15_reg: LDO15 { + regulator-name = "P1.0V_LDO_OUT15"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + ldo16_reg: LDO16 { + regulator-name = "P1.8V_LDO_OUT16"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + buck1_reg: BUCK1 { + regulator-name = "vdd_mif"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + }; + + buck2_reg: BUCK2 { + regulator-name = "vdd_arm"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-boot-on; + }; + + buck3_reg: BUCK3 { + regulator-name = "vdd_int"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + buck4_reg: BUCK4 { + regulator-name = "vdd_g3d"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + }; + + buck5_reg: BUCK5 { + regulator-name = "P1.8V_BUCK_OUT5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + buck6_reg: BUCK6 { + regulator-name = "P1.35V_BUCK_OUT6"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + }; + + buck7_reg: BUCK7 { + regulator-name = "P2.0V_BUCK_OUT7"; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + regulator-always-on; + }; + + buck8_reg: BUCK8 { + regulator-name = "P2.85V_BUCK_OUT8"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + }; + }; }; i2c@12C70000 {