From patchwork Thu Nov 6 15:11:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5244181 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A981A9F2F1 for ; Thu, 6 Nov 2014 15:14:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9AC0200E3 for ; Thu, 6 Nov 2014 15:14:51 +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 D72B5200E1 for ; Thu, 6 Nov 2014 15:14:50 +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 1XmOjy-0005Eq-40; Thu, 06 Nov 2014 15:12:50 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XmOjh-00051J-Sr for linux-arm-kernel@lists.infradead.org; Thu, 06 Nov 2014 15:12:34 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEM003WVID14490@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 06 Nov 2014 15:15:01 +0000 (GMT) X-AuditID: cbfec7f4-b7f6c6d00000120b-17-545b8fc9d9d6 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 43.AA.04619.9CF8B545; Thu, 06 Nov 2014 15:12:09 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NEM00GCFI85EK30@eusync2.samsung.com>; Thu, 06 Nov 2014 15:12:09 +0000 (GMT) From: Krzysztof Kozlowski To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH RESEND v3 1/4] devicetree: power/mfd: max77693: Document new bindings for charger Date: Thu, 06 Nov 2014 16:11:57 +0100 Message-id: <1415286720-6358-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1415286720-6358-1-git-send-email-k.kozlowski@samsung.com> References: <1415286720-6358-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsVy+t/xK7on+6NDDNY947LYOGM9q8WkJ++Z LeYfOcdqMXHlZGaL1y8MLc42vWG3uP/1KKPF5u8dbBabHl9jtbi8aw6bxefeI4wWM87vY7JY e+Quu8XpblaL07tLLFbt+sPoIOCxc9Zddo/NK7Q8Nq3qZPO4c20Pm8e8k4Eem5fUe/RtWcXo 8XmTXABHFJdNSmpOZllqkb5dAlfG5jO3mAq6xSo2fZvF1MD4QbCLkZNDQsBEYuOOM+wQtpjE hXvr2boYuTiEBJYySlw6Oo8RwuljkriyvJEVpIpNwFhi8/IlYFUiAnuYJD69WMEK4jALbGeS +PNtApDDwSEskCzxb3c+SAOLgKrE7GnrmUFsXgE3iW+TJjJCrJOTOHlsMlg5p4C7RPe3SpCw EFDJ86/zGCcw8i5gZFjFKJpamlxQnJSea6hXnJhbXJqXrpecn7uJERLCX3YwLj5mdYhRgINR iYd3A2d0iBBrYllxZe4hRgkOZiUR3uoeoBBvSmJlVWpRfnxRaU5q8SFGJg5OqQZGFuZTb/mk FIQNu/wO/3yctGxhEp9J+9muRaLWIXmTeWdpp6/5baSt+eOis5jiIS9fUXYB5u1MujdbXlw+ oKr2uMpRqmLVlrtLhaXuHvuyb+n+47FCG/ZuOPa9/srCHOc/SdNeTtE5ctzg4aWtZ2PD5ipd eHr7/6njC5Vur1nxpOIlq6RAx3keTiWW4oxEQy3mouJEAH15GKU/AgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141106_071234_108446_F5E6BF75 X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.6 (-----) Cc: Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , Tomasz Figa , Kyungmin Park , linux-arm-kernel@lists.infradead.org, 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=-2.5 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 Document new device tree bindings for Maxim 77693 charger driver. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mfd/max77693.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/max77693.txt b/Documentation/devicetree/bindings/mfd/max77693.txt index 01e9f30fe678..38e64405e98d 100644 --- a/Documentation/devicetree/bindings/mfd/max77693.txt +++ b/Documentation/devicetree/bindings/mfd/max77693.txt @@ -41,6 +41,41 @@ Optional properties: To get more informations, please refer to documentaion. [*] refer Documentation/devicetree/bindings/pwm/pwm.txt +- charger : Node configuring the charger driver. + If present, required properties: + - compatible : Must be "maxim,max77693-charger". + + Optional properties (if not set, defaults will be used): + - maxim,constant-microvolt : Battery constant voltage in uV. The charger + will operate in fast charge constant current mode till battery voltage + reaches this level. Then the charger will switch to fast charge constant + voltage mode. Also vsys (system voltage) will be set to this value when + DC power is supplied but charger is not enabled. + Valid values: 3650000 - 4400000, step by 25000 (rounded down) + Default: 4200000 + + - maxim,min-system-microvolt : Minimal system voltage in uV. + Valid values: 3000000 - 3700000, step by 100000 (rounded down) + Default: 3600000 + + - maxim,thermal-regulation-celsius : Temperature in Celsius for entering + high temperature charging mode. If die temperature exceeds this value + the charging current will be reduced by 105 mA/Celsius. + Valid values: 70, 85, 100, 115 + Default: 100 + + - maxim,battery-overcurrent-microamp : Overcurrent protection threshold + in uA (current from battery to system). + Valid values: 2000000 - 3500000, step by 250000 (rounded down) + Default: 3500000 + + - maxim,charge-input-threshold-microvolt : Threshold voltage in uV for + triggering input voltage regulation loop. If input voltage decreases + below this value, the input current will be reduced to reach the + threshold voltage. + Valid values: 4300000, 4700000, 4800000, 4900000 + Default: 4300000 + Example: max77693@66 { compatible = "maxim,max77693"; @@ -73,4 +108,14 @@ Example: pwms = <&pwm 0 40000 0>; pwm-names = "haptic"; }; + + charger { + compatible = "maxim,max77693-charger"; + + maxim,constant-microvolt = <4200000>; + maxim,min-system-microvolt = <3600000>; + maxim,thermal-regulation-celsius = <75>; + maxim,battery-overcurrent-microamp = <3000000>; + maxim,charge-input-threshold-microvolt = <4300000>; + }; };