Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5932607ybl; Tue, 14 Jan 2020 18:03:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyksK0YbVsjX92N24qxCKOQj7zF7ag1ctrg8BNoEmSGnHHfCg2pgAO1jU/W0CMfgqSU+iS/ X-Received: by 2002:aca:f411:: with SMTP id s17mr2488423oih.177.1579053782854; Tue, 14 Jan 2020 18:03:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579053782; cv=none; d=google.com; s=arc-20160816; b=rdl0AUx8LBjYZFOv6ROW4tsxWy/uon+FGC1buHioTNs9/kPCvHr4ZjT62NBn1e0pX0 eTufOcCOI94hAE8hUB3P/tVZLAYsUyurdc3VrTZzXKvNJFdfDv62dShBi4hIc/Ob9snK yN4mcQMlUcXnx11A7FidjhcHD1uC+0s1apREfwYFpZCesxXZqOX5qNR3GLt8iHj1Bajv JSSgVlzEPksmAoQlE0v/7d2RzFcnsEy1VzNVcOHzpKWFBIlYbbv6ovcN6E+GengWGhNZ n1dJAcTKgizvXuTn61e15fOtQtRj72/Jmn7XMZT9HtJznUKS/Dprt53E+lK+AfmYnULk pcgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TXUKuJW35exIxCuuFGP0F9ChBxkOTZKYHQSXMibvkgw=; b=JgWelZhV3MKUlWFsZCa+YV+NQVo4Ne+hqFFJF3UjnwGXPkyUleywtE6EPcIVscenwm 0+xikRJ0z2Zg9aBrrUkQVjsFajXLz6hYXAXYZP3peDyxdW6p9RZWI8R244L8G17G7YDZ kK6FezXvDnr6HfAld5J1lm0wz6WPBwxXC0WbUYYnNppJc9VCQQu12HhEvaAjnyxj8itr iowTpL2Q+cNawdxhhBcQXayRN5uuUMlOSFSJDLHaZ1qq5+IZEbyeYAReJ5NKgsnatkdX UmEaxFGw9aAarHWOjMhWi4Riv87OdNRUW7XdQGWVF1EcILBWn/qWnOmEKVvLHKmI4qF8 m1cg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w26si8932146otl.213.2020.01.14.18.02.51; Tue, 14 Jan 2020 18:03:02 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728894AbgAOCB6 (ORCPT + 99 others); Tue, 14 Jan 2020 21:01:58 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:36773 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728879AbgAOCB6 (ORCPT ); Tue, 14 Jan 2020 21:01:58 -0500 Received: by mail-ot1-f65.google.com with SMTP id m2so9866328otq.3 for ; Tue, 14 Jan 2020 18:01:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TXUKuJW35exIxCuuFGP0F9ChBxkOTZKYHQSXMibvkgw=; b=QrIRS+xMt2wRws/2OX5C84QZ/D0demVJVzlBo71FgVnXys1dy12TsQAkM2VcSOCaDA WqCS4v8zdw6iGvhbiCgxyJvqECo9GwA/gUe+igsnvu2wYyx7R/HM8xLj4KDDdhvFmTP4 q4oahH40n7V6XtUY5BWDB4CQJOGoE+ycwgY/secRY2SMU5lD0b3v3XnVTCiVs5EdgA45 2aWuwljnc8ZzFOzgWtqm/8HDCiXCqI6k5AgoPsXtKtMbvbxIQ2pDhy0Kx6422yIcGpTB 3j7H2/M22sYEbwEMT7dqBZEAytKyHHfa+DdxLD+bpQMf08jBlL0gW2OdzJKxJJmlDUKu YOOQ== X-Gm-Message-State: APjAAAUNHub7BZ+phiAQ2Xms2vvI/wHjTVumQCWJ69gxcM2ZeMV1KTNz 0KlqDXJGTIM3/sE97AXOvKIFLBQ= X-Received: by 2002:a9d:7590:: with SMTP id s16mr1007705otk.89.1579053717225; Tue, 14 Jan 2020 18:01:57 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 26sm5292530oij.9.2020.01.14.18.01.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 18:01:56 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 220a2e by rob-hp-laptop (DragonFly Mail Agent v0.11); Tue, 14 Jan 2020 20:01:55 -0600 Date: Tue, 14 Jan 2020 20:01:55 -0600 From: Rob Herring To: Tobias Schramm Cc: Sebastian Reichel , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND 2/2] dt-bindings: power: supply: cw2015_battery: add device tree binding documentation Message-ID: <20200115020155.GA7802@bogus> References: <20200109113955.2882-1-t.schramm@manjaro.org> <20200109113955.2882-3-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109113955.2882-3-t.schramm@manjaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 12:39:55PM +0100, Tobias Schramm wrote: > This patch adds the ds binding document for the cw2015 Fuel Gauge. ds? > > 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 Please make this a DT schema. See Documentation/devicetree/writing-schema.rst. > > 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 Use standard unit suffix. > + - cellwise,voltage-divider : Voltage divider for multi-cell packs, > + specified as two integer values , in ohms. Use standard unit suffix (-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 I think we have a standard property for this. Properties of the battery should be in a battery node. > + - cellwise,alert-level : Low battery alarm level in percent > + > +Example: > + cw2015@62 { > + status = "okay"; Don't show status in examples. > + 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>; Not documented. > + } > -- > 2.24.1 >