From patchwork Fri Jun 17 05:00:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chris@lapa.com.au X-Patchwork-Id: 9182463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3934B6075F for ; Fri, 17 Jun 2016 05:02:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E5022094F for ; Fri, 17 Jun 2016 05:02:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22EF22839C; Fri, 17 Jun 2016 05:02:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F3F62094F for ; Fri, 17 Jun 2016 05:02:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933481AbcFQFAk (ORCPT ); Fri, 17 Jun 2016 01:00:40 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35578 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933476AbcFQFAi (ORCPT ); Fri, 17 Jun 2016 01:00:38 -0400 Received: by mail-pa0-f67.google.com with SMTP id hf6so5001386pac.2 for ; Thu, 16 Jun 2016 22:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lapa-com-au.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=yhIB5wtMx3A/Y4sFcHbPsX86jbHtVx/c/B/OV0+fghc=; b=AXpML0wCVhLB6xRy2Qp/6eVMdWyNesg+kuf4A9psgOKSt62rlQ/Mt3z+MEqcktgVYv cIq/TLJUtBoAMS4eAOvgIgVMD6N9epXsbhtmXZPbeyoGe9Jh+EbwQzl4f2YDRpiwBL1J 9wiR75gMlPTWqMYTi1aDg2HAWyvHdinO9dHy3uEUwfZoP5NMOFpUgCL3DKBT8asPV3S/ YYuvVXCn1Hg5QKFIRLOOwOGeh6WksmbOzpNHepmuxajU1RU0qEmdHmcJmMydx8ZRbKVK j7IgZePdGS1zvaEylZzTy6AsAHGQtcq3FvKBG+9ggyoqExApqtt0xtjCdTco+kg41RtW URuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=yhIB5wtMx3A/Y4sFcHbPsX86jbHtVx/c/B/OV0+fghc=; b=OOFfQl0iSNOmjy0TL4jL4HVe8H4hSAVUj6tE+5js5KPVC4zc0mYh5MGk5t5gaqpqxk IibGeUy8eKTvlxLHXFg8gbyu+9bAvbpi8X92tvxxMfQdzYO+7rA2Lm0IQHyI5IqYr/Uy XZNDL4eixZswk1kj2HLADmb74R6c8Hc+xrMnXv7DfNNZwZAwyAP6GYXclxwyAvb7wLsL jSD7888RZbGBwFKeQF+cHZxL+NZ2XkQtLKCKPUm576YHvxPB8sWdATjHHhCgo+yqJNLj qoQjpQCgOuzIllUJwYCmAEqe8o5rKKItLj2ysUB6IAzbRP+1TMKiQM5PoyvncN2PixKj w2ng== X-Gm-Message-State: ALyK8tI6OdOxNMFN67V8CeCpEdgCDdHmxa9JQYHwsKUhPpPbFSA0U7yTKekEDXaYYprbHQ== X-Received: by 10.66.73.71 with SMTP id j7mr202243pav.109.1466139637564; Thu, 16 Jun 2016 22:00:37 -0700 (PDT) Received: from bbb-dev.management.cpd (163.164.70.115.static.exetel.com.au. [115.70.164.163]) by smtp.gmail.com with ESMTPSA id d2sm60999741pfk.36.2016.06.16.22.00.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jun 2016 22:00:37 -0700 (PDT) From: Chris Lapa X-Google-Original-From: Chris Lapa To: k.kozlowski@samsung.com, dwmw2@infradead.org, dbaryshkov@gmail.com, sre@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Chris Lapa Subject: [PATCH v3 1/7] max8903: adds documentation for device tree bindings. Date: Fri, 17 Jun 2016 15:00:20 +1000 Message-Id: <1466139626-51434-2-git-send-email-chris@lapa.com.au> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466139626-51434-1-git-send-email-chris@lapa.com.au> References: <1464849897-21527-3-git-send-email-chris@lapa.com.au> <1466139626-51434-1-git-send-email-chris@lapa.com.au> In-Reply-To: <1464849897-21527-3-git-send-email-chris@lapa.com.au> References: <1464849897-21527-3-git-send-email-chris@lapa.com.au> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chris Lapa Signed-off-by: Chris Lapa Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/max8903-charger.txt diff --git a/Documentation/devicetree/bindings/power/max8903-charger.txt b/Documentation/devicetree/bindings/power/max8903-charger.txt new file mode 100644 index 0000000..aea1dd2a --- /dev/null +++ b/Documentation/devicetree/bindings/power/max8903-charger.txt @@ -0,0 +1,25 @@ +Maxim Semiconductor MAX8903 Battery Charger bindings + +Required properties: +- compatible: "maxim,max8903-charger" for MAX8903 Battery Charger +- dok-gpios: Valid DC power has been detected, optional if uok-gpios is provided +- uok-gpios: Valid USB power has been detected, optional if dok-gpios is provided + +Optional properties: +- cen-gpios: Charge enable pin +- chg-gpios: Charger status pin +- flt-gpios: Fault pin +- dcm-gpios: Current limit mode setting (DC or USB) +- usus-gpios: USB suspend pin + + +Example: + + max8903-charger { + compatible = "maxim,max8903-charger"; + dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; + flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; + chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; + cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; + status = "okay"; + };