From patchwork Wed Jun 7 18:37:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Breck X-Patchwork-Id: 9772291 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 5E5806034B for ; Wed, 7 Jun 2017 18:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E7FE2841C for ; Wed, 7 Jun 2017 18:38:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31F6528455; Wed, 7 Jun 2017 18:38:43 +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 B28532842B for ; Wed, 7 Jun 2017 18:38:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406AbdFGSii (ORCPT ); Wed, 7 Jun 2017 14:38:38 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35925 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752394AbdFGSif (ORCPT ); Wed, 7 Jun 2017 14:38:35 -0400 Received: by mail-pf0-f196.google.com with SMTP id y7so2403833pfd.3; Wed, 07 Jun 2017 11:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZalvNHrpzpvu9gVT2dEn3t/7fPL22QMb+3dZw+3QJ0Y=; b=hu+NG5IW+O2rFGUPM1LverW7ThfHY+/GNqCciw0JFQYk48MtHJzxRHE2D5HKhWg9a1 7wbKXuCipUnGPRAB4t+aLc1QNWwIUL91aqsvGtM/WDKXehySmieG68ynqUUbmq4Pd5t9 POfoE28cgQ/Fi6Q3m4fo9x6DALcq9ysVDPTpJp6cMn3Ie9tRBTSdZzU2bkPNLkSDNkGc +GYZbVy3fT8Fzc3gTl6dxTIPX2Vf1ZGWHkJaxEXHYSBb1lEN8CT50UTDCeihBz5UJQfy YjVdBhxg5ugKHGlVszuWluQBqn16gTsJsOaCPxa2ERdNZadaz4+XA5cZqnp6CCPuiMq6 /IGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ZalvNHrpzpvu9gVT2dEn3t/7fPL22QMb+3dZw+3QJ0Y=; b=h3D0oaRdSyVgPOH+Ug6q+Nf2H8WkfDuxXOxL3ZUjCw15CYfEkXoV3hqUe13fxP51yX rl6QBFIZ6t/kxos8NYhNTp9dF5C4ME853MGucY7/whsZ6Y1Bwtks9NATGkuwM78KwVjU Hmo7FmHC8XJ7zxa1lHiNSFN54Ru5eGKH9higsOp5KjyrC5tAp4021G6FoljPybIOsdnr yQi4m0K9TolFSP9nPvwL8zrEIlBzCkc8y5VA7OkHGY829HdUfZ9XYEdp7jG9rqqQmx1X Gweow10whRWTurXMLz2fENkHwSifc3JG9j2Q58N1gcnkUgcHlEb23zwIcAPzptnyfGWq xDNA== X-Gm-Message-State: AODbwcBypvKNDvgJ7CpuO0uFPdbUZ8YRdlT7fwLolJjcDSoWePYk937H SQmj8k5XrFOKDw== X-Received: by 10.99.172.17 with SMTP id v17mr34327445pge.234.1496860709684; Wed, 07 Jun 2017 11:38:29 -0700 (PDT) Received: from localhost.localdomain (c-73-223-93-234.hsd1.ca.comcast.net. [73.223.93.234]) by smtp.gmail.com with ESMTPSA id q85sm319529pfd.7.2017.06.07.11.38.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jun 2017 11:38:29 -0700 (PDT) From: Liam Breck To: Sebastian Reichel , "Pali Rohar" , linux-pm@vger.kernel.org Cc: Enric Balletbo , Paul Kocialkowski , Quentin Schulz , Rob Herring , devicetree@vger.kernel.org, Matt Ranostay , Liam Breck Subject: [PATCH v14 05/11] dt-bindings: power: supply: bq27xxx: Add monitored-battery documentation Date: Wed, 7 Jun 2017 11:37:53 -0700 Message-Id: <20170607183759.20261-6-liam@networkimprov.net> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170607183759.20261-1-liam@networkimprov.net> References: <20170607183759.20261-1-liam@networkimprov.net> 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: Liam Breck Document monitored-battery = <&battery_node> Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Matt Ranostay Signed-off-by: Liam Breck Acked-by: Rob Herring --- .../devicetree/bindings/power/supply/bq27xxx.txt | 31 +++++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.txt b/Documentation/devicetree/bindings/power/supply/bq27xxx.txt index b0c95ef6..6858e1a8 100644 --- a/Documentation/devicetree/bindings/power/supply/bq27xxx.txt +++ b/Documentation/devicetree/bindings/power/supply/bq27xxx.txt @@ -1,7 +1,7 @@ -Binding for TI BQ27XXX fuel gauge family +TI BQ27XXX fuel gauge family Required properties: -- compatible: Should contain one of the following: +- compatible: contains one of the following: * "ti,bq27200" - BQ27200 * "ti,bq27210" - BQ27210 * "ti,bq27500" - deprecated, use revision specific property below @@ -26,11 +26,28 @@ Required properties: * "ti,bq27425" - BQ27425 * "ti,bq27441" - BQ27441 * "ti,bq27621" - BQ27621 -- reg: integer, i2c address of the device. +- reg: integer, I2C address of the fuel gauge. + +Optional properties: +- monitored-battery: phandle of battery characteristics node + The fuel gauge uses the following battery properties: + + energy-full-design-microwatt-hours + + charge-full-design-microamp-hours + + voltage-min-design-microvolt + Both or neither of the *-full-design-*-hours properties must be set. + See Documentation/devicetree/bindings/power/supply/battery.txt Example: -bq27510g3 { - compatible = "ti,bq27510g3"; - reg = <0x55>; -}; + bat: battery { + compatible = "simple-battery"; + voltage-min-design-microvolt = <3200000>; + energy-full-design-microwatt-hours = <5290000>; + charge-full-design-microamp-hours = <1430000>; + }; + + bq27510g3: fuel-gauge@55 { + compatible = "ti,bq27510g3"; + reg = <0x55>; + monitored-battery = <&bat>; + };