From patchwork Fri Sep 12 12:03:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 4894231 Return-Path: X-Original-To: patchwork-linux-arm@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 A46EFBEEA5 for ; Fri, 12 Sep 2014 12:05:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 376502020E for ; Fri, 12 Sep 2014 12:05:57 +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 DF90F20173 for ; Fri, 12 Sep 2014 12:05:55 +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 1XSPZm-0008D8-1v; Fri, 12 Sep 2014 12:03:42 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XSPZj-000873-HW for linux-arm-kernel@lists.infradead.org; Fri, 12 Sep 2014 12:03:40 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBS007WVEY40N00@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 12 Sep 2014 13:06:05 +0100 (BST) X-AuditID: cbfec7f4-b7f156d0000063c7-65-5412e101ccac Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 2D.CF.25543.101E2145; Fri, 12 Sep 2014 13:03:13 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBS00CYNET92180@eusync4.samsung.com>; Fri, 12 Sep 2014 13:03:13 +0100 (BST) From: Krzysztof Kozlowski To: Ben Dooks , Kukjin Kim , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: Add Maxim 77693 PMIC to the Trats2 board Date: Fri, 12 Sep 2014 14:03:06 +0200 Message-id: <1410523386-10581-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBLMWRmVeSWpSXmKPExsVy+t/xa7qMD4VCDHr281tsnLGe1WLSugNM FvOPnGO16H+zkNXi3KuVjBavXxha9C64ymZxtukNu8Wmx9dYLS7vmsNmMeP8PiaL25d5LdYe uctusfT6RSaLCdPXsli07j3CbrFq1x9GB0GPNfPWMHq0NPeweVzu62Xy+LvqBbPHzll32T1W Lv/C5rFpVSebx+Yl9R59W1YxenzeJBfAFcVlk5Kak1mWWqRvl8CVcadrIVvBCYGKiS93MzYw NvN2MXJySAiYSPyZNp0JwhaTuHBvPVsXIxeHkMBSRok9f7czQzh9TBL3lr9hB6liEzCW2Lx8 CViViMA2Zol1jb8YQRxmgTeMEr17JrKAVAkLOEs8OHQarINFQFXi1oKlYDavgLvExPer2CD2 yUmcPDaZdQIj9wJGhlWMoqmlyQXFSem5hnrFibnFpXnpesn5uZsYIaH7ZQfj4mNWhxgFOBiV eHg5zgmGCLEmlhVX5h5ilOBgVhLh3XVHKESINyWxsiq1KD++qDQntfgQIxMHp1QDo63c3Q1R VTqRgWlbjK0e3V/x6fr9WcnSf9ysVObvnae68+q7cMbVET1br7J+TxLuFmfVavhzfypDSYu6 3KtQlk2/1zssSJMMEbMSvKDVuknQpN43ZeFD759nyiK/tiVOzfi2S0v10wEBm2eRLCeYt9UL RBpZZK5I55tUkflQlnOb/vTJ+tx8SizFGYmGWsxFxYkANhgKSzsCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140912_050339_737062_A99AEF63 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) Cc: Krzysztof Kozlowski , Kyungmin Park , Bartlomiej Zolnierkiewicz , Tomasz Figa , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 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 The MAX77693 is a companion power management IC for smart phones and tablets. The MAX77693 contains input over-voltage protection (OVP), a fully-integrated 2.5A switching charger for Lithium Ion battery with integrated battery disconnect, OTG/accessory 5V output power, a high-current white LED driver for camera flash, two safeout LDOs, a haptic motor driver, Model Gauge m3 battery fuel gauge and MicroUSB Interface Controller (MUIC). I2C serial interface is used for communicating. Add MAX77693 node to the Trats2 board. This allows using: - charger regulator, - 2 safeout LDO regulators (for USB OTG), - extcon. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos4412-trats2.dts | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 11967f4561e0..0b641513a23d 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -22,6 +22,7 @@ aliases { i2c9 = &i2c_ak8975; i2c10 = &i2c_cm36651; + i2c11 = &i2c_max77693; }; memory { @@ -518,6 +519,39 @@ }; }; + i2c_max77693: i2c-gpio-1 { + compatible = "i2c-gpio"; + gpios = <&gpm2 0 0>, <&gpm2 1 0 >; + i2c-gpio,delay-us = <2>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + max77693@66 { + compatible = "maxim,max77693"; + interrupt-parent = <&gpx1>; + interrupts = <5 2>; + reg = <0x66>; + + regulators { + esafeout1_reg: esafeout@1 { + regulator-compatible = "ESAFEOUT1"; + regulator-name = "ESAFEOUT1"; + }; + esafeout2_reg: esafeout@2 { + regulator-compatible = "ESAFEOUT2"; + regulator-name = "ESAFEOUT2"; + }; + charger_reg: charger@0 { + regulator-compatible = "CHARGER"; + regulator-name = "CHARGER"; + regulator-min-microamp = <60000>; + regulator-max-microamp = <2580000>; + }; + }; + }; + }; + mmc@12550000 { num-slots = <1>; supports-highspeed;