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: 4894181 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 823F4BEEA5 for ; Fri, 12 Sep 2014 12:03:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38D64202EC for ; Fri, 12 Sep 2014 12:03:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6C34B202E5 for ; Fri, 12 Sep 2014 12:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753610AbaILMDR (ORCPT ); Fri, 12 Sep 2014 08:03:17 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39326 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753275AbaILMDQ (ORCPT ); Fri, 12 Sep 2014 08:03:16 -0400 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>; 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 Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Tomasz Figa , Krzysztof Kozlowski 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= 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=-9.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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;