From patchwork Tue Dec 4 13:18:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 1837491 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 A26023FCA5 for ; Tue, 4 Dec 2012 13:17:11 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TfsK1-0003A4-Gt; Tue, 04 Dec 2012 13:14:01 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TfsJw-00039X-Tt for linux-arm-kernel@lists.infradead.org; Tue, 04 Dec 2012 13:13:59 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MEI007LRCR2R9M0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 04 Dec 2012 22:13:50 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E6.65.12699.E07FDB05; Tue, 04 Dec 2012 22:13:50 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-f6-50bdf70ec42b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 86.65.12699.E07FDB05; Tue, 04 Dec 2012 22:13:50 +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 <0MEI00CCVCPJ0XA0@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 04 Dec 2012 22:13:50 +0900 (KST) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, dianders@chromium.org Subject: [PATCH v2] ARM: DTS: CROS5250: Add max77686 device tree support Date: Tue, 04 Dec 2012 18:48:16 +0530 Message-id: <1354627096-9433-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+NgFrrFLMWRmVeSWpSXmKPExsWyRsSkVpfv+94Ag3/P1Cw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfG35ZVTAUbVSq63j5namA8Id3FyMkhIWAiceb3NTYIW0ziwr31 YLaQwFJGiSXL5GFqVk34xtjFyAUUn84o8WPmMjYIZz2TxN/u6cwgVWwCehIL/n0Fsjk4RARS JA4ftwcJMwsUS2zbehZsqLCAh8T2LUeZQGwWAVWJQ42rwOK8Ai4SRy98hDpCQeL0h7XsIDan gJvEns5pUAe5Svya85kZoldA4tvkQywgqyQEZCU2HWAGOUdC4DqbxOXN99kh5khKHFxxg2UC o/ACRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGIEBePrfM+kdjKsaLA4xCnAwKvHwLnix J0CINbGsuDL3EKMEB7OSCK/Ch70BQrwpiZVVqUX58UWlOanFhxh9gC6ZyCwlmpwPjI68knhD YxNzU2NTSyMjM1NTHMJK4rzNHikBQgLpiSWp2ampBalFMOOYODilGhinCvr9bbb0ka5Rntv4 wMdrsVn9q1dW985ZpOyYeXehTzRHaPD9K2qhS2v/c1/8dET3cF/Bzr0LEninFewv3Kh+/tG6 ihkNKzrT5wWyaj0rmM+wQv/ylXu/w3N/W68O/7Ne6Mf+wj+FH/8H/d6948ldk08xc7027gmR vnB62rp/b35oy+Yy3V2vqcRSnJFoqMVcVJwIAPzVoOBtAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xoC7f970BBoffSFpsenyN1YHRY/OS +gDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwhrGjL8tq5gKNqpUdL19ztTA eEK6i5GTQ0LARGLVhG+MELaYxIV769m6GLk4hASmM0r8mLkMylnPJPG3ezozSBWbgJ7Egn9f gWwODhGBFInDx+1BwswCxRLbtp5lA7GFBTwktm85ygRiswioShxqXAUW5xVwkTh64SMbxDIF idMf1rKD2JwCbhJ7OqeBxYUEXCV+zfnMPIGRdwEjwypG0dSC5ILipPRcI73ixNzi0rx0veT8 3E2M4AB/Jr2DcVWDxSFGAQ5GJR7eBS/2BAixJpYVV+YeYpTgYFYS4VX4sDdAiDclsbIqtSg/ vqg0J7X4EKMP0FUTmaVEk/OB0ZdXEm9obGJuamxqaWJhYmaJQ1hJnLfZIyVASCA9sSQ1OzW1 ILUIZhwTB6dUA2Ns1l6DacdPuvxbtvGa6rabDXtXi3Q6OJRas62sPS3DNndSKePxxtS8nxKn 4vZ0lniJ2rxI6at6ttr2V9NEt7dq6iYeaScsL7JkOM/9urzeNtBf+U/kc7Vl7xUcrs3OWn7r KrNF6Ey5Jcuiwv7wt8kXcvm5h/C9/rx+Wv3cMLMkwdPuF0O2dCqxFGckGmoxFxUnAgBoycNH nQIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121204_081357_542601_2ECFA3E4 X-CRM114-Status: UNSURE ( 8.33 ) 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.33 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" 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.0V_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 {