From patchwork Wed Nov 28 10:51:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 1815511 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 55C033FC54 for ; Wed, 28 Nov 2012 10:49:51 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TdfAF-00088i-94; Wed, 28 Nov 2012 10:46:47 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TdfA9-00084m-F2 for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2012 10:46:44 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0ME700HG21X6EZ40@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2012 19:46:22 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 64.60.01231.E7BE5B05; Wed, 28 Nov 2012 19:46:22 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-8e-50b5eb7ea529 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A3.60.01231.D7BE5B05; Wed, 28 Nov 2012 19:46:22 +0900 (KST) Received: from localhost.localdomain ([107.108.73.92]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0ME700BB61X4DH50@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2012 19:46:21 +0900 (KST) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com Subject: [PATCH] ARM: DTS: CROS5250: Add max77686 device tree support Date: Wed, 28 Nov 2012 16:21:40 +0530 Message-id: <1354099900-24779-1-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.6.6.1 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBLMWRmVeSWpSXmKPExsWyRsSkSrfu9dYAgwvfeSw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGxHuP2AveKlVs61vK3sA4X6qLkZNDQsBE4mLPHCYIW0ziwr31 bF2MXBxCAksZJa6vb2WEKXq+YQJUYhGjxPSv/awQznomiSN7f7KDVLEJ6Eks+PeVGcQWEbCX WHHiJJgtLOAq0fZvKpjNIqAqcezlGTYQmxco3nBoJ9QGBYnTH9ayQ9QISHybfIili5EDKC4r sekAM8guCYEVbBLLT++HOlVS4uCKGywTGAUWMDKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/d xAgMntP/nkntYFzZYHGIUYCDUYmH18Fxa4AQa2JZcWXuIUYJDmYlEV7mR0Ah3pTEyqrUovz4 otKc1OJDjD5Al0xklhJNzgcGdl5JvKGxibmpsamlkZGZqSkOYSVx3maPlAAhgfTEktTs1NSC 1CKYcUwcnFINjJud09UOzaiby88xySS4kP0BG1u505YDH+K423d3ruLgjC9j89H8unP1ef4Y r28ZT2IyL+9xrt4d0WErxJemJOP/SOPPsdUPpJ/V3argXXkoySNYJ1vJ5NPsYtl7S5PW7c88 5zD5J8P2vVqsnsarpz47ej25vHvul4IU5leefhn8e4wuafAxKbEUZyQaajEXFScCAL5SWEdL AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsVy+t9jAd2611sDDF5/ZrHY9PgaqwOjx+Yl 9QGMUQ2MNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlA U5UUyhJzSoFCAYnFxUr6dpgmhIa46VrANEbo+oYEwfUYGaCBhDWMGRPvPWIveKtUsa1vKXsD 43ypLkZODgkBE4nnGyawQdhiEhfurQeyuTiEBBYxSkz/2s8K4axnkjiy9yc7SBWbgJ7Egn9f mUFsEQF7iRUnToLZwgKuEm3/poLZLAKqEsdengGbygsUbzi0kxFig4LE6Q9r2Scwci1gZFjF KJpakFxQnJSea6hXnJhbXJqXrpecn7uJERyaz6R2MK5ssDjEKMDBqMTD6+C4NUCINbGsuDL3 EKMEB7OSCC/zI6AQb0piZVVqUX58UWlOavEhRh+g7ROZpUST84Fxk1cSb2hsYm5qbGppYmFi ZolDWEmct9kjJUBIID2xJDU7NbUgtQhmHBMHp1QDY9WE3Mr6uwcX7J+f8Np9W4udlum8efeW G0n65tz+EFWTNCk7R311q1ap4lu5pX/Phn4KFXLbNDUwbs/eKw8ljtSWKbC9cD++0HibOsv5 FIfXE1klD2+tObVxZufqhP4Dx9dGffKc+dBlp7rZEXaf0rOv/vI0HW/Y9KCC4/Dfw99ES+aU hR/5yaHEUpyRaKjFXFScCABuPxYOegIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121128_054642_309630_B14890E9 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 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] 0.1 HDRS_LCASE Odd capitalization of message header 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 --- arch/arm/boot/dts/cros5250-common.dtsi | 137 ++++++++++++++++++++++++++++++++ 1 files changed, 137 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/cros5250-common.dtsi b/arch/arm/boot/dts/cros5250-common.dtsi index fddd174..7849824 100644 --- a/arch/arm/boot/dts/cros5250-common.dtsi +++ b/arch/arm/boot/dts/cros5250-common.dtsi @@ -24,6 +24,143 @@ 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 = "vdd_alive"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + ldo2_reg: LDO2 { + regulator-name = "vdd_micom"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo3_reg: LDO3 { + regulator-name = "vdd_rtc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo7_reg: LDO7 { + regulator-name = "vdd10_xpll"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + ldo8_reg: LDO8 { + regulator-name = "vdd10_mipihdmi"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + ldo10_reg: LDO10 { + regulator-name = "vdd18_mipihdmi"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo12_reg: LDO12 { + regulator-name = "vdd33_usb3"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + }; + + ldo14_reg: LDO14 { + regulator-name = "vdd18_abb0"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo15_reg: LDO15 { + regulator-name = "vdd10_hsic"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + }; + + ldo16_reg: LDO16 { + regulator-name = "vdd18_hsic"; + 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 = "vdd18_adc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + buck6_reg: BUCK6 { + regulator-name = "vdd_bat1"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + }; + + buck7_reg: BUCK7 { + regulator-name = "vdd_bat2"; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + regulator-always-on; + }; + + buck8_reg: BUCK8 { + regulator-name = "vdd_emmc"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + regulator-always-on; + }; + }; + }; }; i2c@12C70000 {