Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp664210ybl; Wed, 11 Dec 2019 05:41:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyVBW9tNC4jEi4c8UZ0rW7HWKVEpdAZI0anJFMqVgRoX6tCPjQgGGlOdSo2MbY7u3KD8m4C X-Received: by 2002:aca:4ad1:: with SMTP id x200mr2668367oia.104.1576071667368; Wed, 11 Dec 2019 05:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576071667; cv=none; d=google.com; s=arc-20160816; b=tCOLR7xoZ2B+4wFtS6xy9omB2hFJ2IphoZG9b/mQMnVi1DORxji7SEpw3M2n1pCAuS t92PVzGqPG1VqFofE36Cz+k1M8MUVPVFoB/yOQawZhrCBWMIg5hTGAmU2Jp05J60QAYP kaEnfeNqYJ29WfrpSS6CtxgsKobNp+2cHDqHOTIKzGVTBH7pQ+3t8IgnjowQ8sEcCTvu N0XhtX69/DaJint2aKkd1e4ZrONoWhBkbEaC7c7ZaGc+TdbHlP0JUlzPGOFnhE7FISIh 3+GWnyECI84wyjd+fNxzJByFLS2QzgLFNtV0wu91ZZyBfkzYa3zUapZKkeUGCj+LFUlB X05A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VrpTXg7cGGavSCJ81TQwlAXZVmi2U+r3aPmLCD1tQ44=; b=djhFOpgxq8HEIaw8Dkw5ysBES2rkIakOX/+MaXcHRPblqkuaj8y/G8EF5WZbrVzn3f +XC3Kq9d8FjquMIZHm/J8q/qBvpiDCP1NNnZI4+rbVGmjIPV+cq3j+CFbRhLaNaFFV5V vD6O+TdE8GZPq4IsVEU+agV25Dl0c33dMWA6n2LDMTglL7Gid/ZeMVcDGwdabLJvIGdf DEe4Fs/lQbHLZDTS8s4BlANmG+bytEorykpspmt8TdH35+tGb/WthbHvP9Vc3Aoul5Oc u71p7uALmh/dUGvQhs+11O2UdJed4k+vD0+kbwDcf+U/Uq2U0U996VAz/Lv3T0ZECR4n NJWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si1536700otk.151.2019.12.11.05.40.55; Wed, 11 Dec 2019 05:41:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729653AbfLKNkU (ORCPT + 99 others); Wed, 11 Dec 2019 08:40:20 -0500 Received: from mail.manjaro.org ([176.9.38.148]:36254 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729608AbfLKNkS (ORCPT ); Wed, 11 Dec 2019 08:40:18 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id DFD7736E32E4; Wed, 11 Dec 2019 14:40:16 +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 9BTMtQYUYIYh; Wed, 11 Dec 2019 14:40:13 +0100 (CET) From: Tobias Schramm To: linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, linux-i2c@vger.kernel.org Cc: anarsoul@gmail.com, sre@kernel.org, pali.rohar@gmail.com, david@lechnology.com, afd@ti.com, Tobias Schramm Subject: [PATCH 2/2] dt-bindings: power: supply: cw2015_battery: add device tree binding documentation Date: Wed, 11 Dec 2019 14:39:30 +0100 Message-Id: <20191211133930.7488-3-t.schramm@manjaro.org> In-Reply-To: <20191211133930.7488-1-t.schramm@manjaro.org> References: <20191211133930.7488-1-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; + } -- 2.24.0