From patchwork Thu Jan 9 11:39:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 1220321 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=manjaro.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47tkhZ1SKrz9sR0 for ; Thu, 9 Jan 2020 22:41:02 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725919AbgAILk5 (ORCPT ); Thu, 9 Jan 2020 06:40:57 -0500 Received: from mail.manjaro.org ([176.9.38.148]:37840 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728273AbgAILk4 (ORCPT ); Thu, 9 Jan 2020 06:40:56 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id ECFA936E4E7A; Thu, 9 Jan 2020 12:40:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AIFjZ7MUGe35; Thu, 9 Jan 2020 12:40:52 +0100 (CET) From: Tobias Schramm To: Sebastian Reichel , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [RESEND 2/2] dt-bindings: power: supply: cw2015_battery: add device tree binding documentation Date: Thu, 9 Jan 2020 12:39:55 +0100 Message-Id: <20200109113955.2882-3-t.schramm@manjaro.org> In-Reply-To: <20200109113955.2882-1-t.schramm@manjaro.org> References: <20200109113955.2882-1-t.schramm@manjaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the ds binding document for the cw2015 Fuel Gauge. Signed-off-by: Tobias Schramm --- .../bindings/power/supply/cw2015_battery.txt | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/cw2015_battery.txt diff --git a/Documentation/devicetree/bindings/power/supply/cw2015_battery.txt b/Documentation/devicetree/bindings/power/supply/cw2015_battery.txt new file mode 100644 index 000000000000..e847391268f3 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/cw2015_battery.txt @@ -0,0 +1,37 @@ +cw2015_battery +~~~~~~~~~~~~~~~~ + +The cellwise CW2015 is a shuntless single/multi-cell battery fuel gauge. + +Required properties : + - compatible : "cellwise,cw2015" + - cellwise,bat-config-info : Binary battery info blob + +Optional properties : + - cellwise,monitor-interval : Measurement interval in seconds + - cellwise,voltage-divider : Voltage divider for multi-cell packs, + specified as two integer values , in ohms. + - cellwise,virtual-power : Default to disconnected battery state (gauge in pack mode) + - cellwise,design-capacity : Design capacity of the battery cell in milliampere hours + - cellwise,alert-level : Low battery alarm level in percent + +Example: + cw2015@62 { + status = "okay"; + compatible = "cellwise,cw201x"; + reg = <0x62>; + cellwise,bat-config-info = < + 0x17 0x67 0x80 0x73 0x6E 0x6C 0x6B 0x63 + 0x77 0x51 0x5C 0x58 0x50 0x4C 0x48 0x36 + 0x15 0x0C 0x0C 0x19 0x5B 0x7D 0x6F 0x69 + 0x69 0x5B 0x0C 0x29 0x20 0x40 0x52 0x59 + 0x57 0x56 0x54 0x4F 0x3B 0x1F 0x7F 0x17 + 0x06 0x1A 0x30 0x5A 0x85 0x93 0x96 0x2D + 0x48 0x77 0x9C 0xB3 0x80 0x52 0x94 0xCB + 0x2F 0x00 0x64 0xA5 0xB5 0x11 0xF0 0x11 + >; + cellwise,monitor-interval = <5>; + cellwise,virtual-power; + cellwise,design-capacity = <9800>; + power-supplies = <&mains_charger>, <&usb_charger>; + }