Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp817703imm; Wed, 26 Sep 2018 07:16:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV632rcFWp0BpJovwk6dmV+MxUR2cpD+UDoZ0ZXQnqy5HmzP68OoOlxfY0YfHTsZReVm4/wZJ X-Received: by 2002:a17:902:bcc2:: with SMTP id o2-v6mr6507592pls.22.1537971383649; Wed, 26 Sep 2018 07:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537971383; cv=none; d=google.com; s=arc-20160816; b=jXQPNCfVPbIstT/UEp1oscexm3zjKAC0+wiNQliNLrOTV28kcTG7qtiKSlm269+tzm SiCOjhgTMYJwi/9RJqCjNtkeCbHYr0ORDAjcHmOKGjOWAHBr+qE+2Q5fiLHi5C1EaDM0 E6lS9JeDqDVIFEY+eRmSZUAwQjdrvu68PCtZ+sZSapI2Bc15HZN91//WNCsf7Bmu0yYn ecNcI8QL0hchO8AUbkdsQ3rGsd5+mh9Ao8HYK7V8zONx0O0H9LRFY8znCKoTNIZ8+wk9 Tn2n8moUuCrwOemoKmIQ9JzGBpa6IpdvI1F5dA8eYFNxwdwHC1A6yaAMHjgp6AW3qkhM ob2g== 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:dkim-signature; bh=aXDmXXbRT7u/qLNF9pbTjJY0sZTXi3cqdYnEnNpnmBQ=; b=U9vBUTl15JH0CqcQMCTH3P1n7lxD4asX/Y547pq00Op8aLQwXqNxcGeetJwYA8YDLn reUZI+KelCZLC9/4nkDNJUwKkovI2FeyYDVsrMDR3dBYG7/dePn5/2/+WbDvz8KvcoVG kLftMaYCaXMb1Zqmyhh3HJ4OCcsGweOfp0qLvmDv2NsrHjzhtFtYjqihkrURMZ/7SpFN oVd9iyeQnsaVvZeg77nbQBg8sCqxXggLbU1/phB1EhWNFm4R69d6WuyzMFY2/MrjcMXr FINI4+OAIWOMsNdGMq8zMJibTuOmgiLIMPit0FyzqMStN02inYT7ELsHNLQAjd0c8egx NgSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wC31Ee5L; 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=pass (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 x7-v6si1365484plv.413.2018.09.26.07.16.07; Wed, 26 Sep 2018 07:16:23 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=wC31Ee5L; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727263AbeIZU1Z (ORCPT + 99 others); Wed, 26 Sep 2018 16:27:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:44786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbeIZU1Y (ORCPT ); Wed, 26 Sep 2018 16:27:24 -0400 Received: from earth.universe (guest-nat.fw1.untrust.par1.mozilla.net [185.155.181.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7262120843; Wed, 26 Sep 2018 14:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537971254; bh=qmPqRFxop3+cGjGY8nfy+fCe86cVPE8SbZfWGqwk8uY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wC31Ee5LFboUFiCfg0rWzSQ13/NBxecM2tVMqhCjFctgipeawWDQ/R3xd7TJhni/f 7GmS4BQxOdwNxL4bMzAtMFkMIgzWcY3qjpsBnB3xuUEes7srldQgsjHIocqxXU9xjg WoMJPI53rq+flxgY7bhznibN6wuOEwnRmTef445M= Received: by earth.universe (Postfix, from userid 1000) id 9842A3C09D6; Wed, 26 Sep 2018 16:14:08 +0200 (CEST) Date: Wed, 26 Sep 2018 16:14:08 +0200 From: Sebastian Reichel To: Baolin Wang Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, yuanjiang.yu@unisoc.com, broonie@kernel.org, ctatlor97@gmail.com, linus.walleij@linaro.org Subject: Re: [PATCH v2 3/4] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation Message-ID: <20180926141408.dumlwnjmbue4nkjm@earth.universe> References: <358665e3f4f9ec105dc2f8a2dc6dd98dbe761fae.1537930252.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f23zl5vcp3oae2xk" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --f23zl5vcp3oae2xk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Sep 26, 2018 at 10:59:13AM +0800, Baolin Wang wrote: > This patch adds the binding documentation for Spreadtrum SC27XX series PM= ICs > fuel gauge unit device, which is used to calculate the battery capacity. >=20 > Signed-off-by: Baolin Wang > --- Looks good to me. -- Sebastian > Changes from v1: > - Renamed GPIO property. > - Use standand battery properties instead of 'sprd,inner-resist' and > 'sprd,ocv-cap-table'. > - Remove battery node's description. > --- > .../devicetree/bindings/power/supply/sc27xx-fg.txt | 52 ++++++++++++++= ++++++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/sc27xx= -fg.txt >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt= b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt > new file mode 100644 > index 0000000..b161468 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt > @@ -0,0 +1,52 @@ > +Spreadtrum SC27XX PMICs Fuel Gauge Unit Power Supply Bindings > + > +Required properties: > +- compatible: Should be one of the following: > + "sprd,sc2720-fgu", > + "sprd,sc2721-fgu", > + "sprd,sc2723-fgu", > + "sprd,sc2730-fgu", > + "sprd,sc2731-fgu". > +- reg: The address offset of fuel gauge unit. > +- battery-detect-gpios: GPIO for battery detection. > +- io-channels: Specify the IIO ADC channel to get temperature. > +- io-channel-names: Should be "bat-temp". > +- monitored-battery: Phandle of battery characteristics devicetree node. > + See Documentation/devicetree/bindings/power/supply/battery.txt > + > +Example: > + > + bat: battery { > + compatible =3D "simple-battery"; > + charge-full-design-microamp-hours =3D <1900000>; > + constant-charge-voltage-max-microvolt =3D <4350000>; > + ocv-capacity-table-temperatures =3D <20>; > + ocv-capacity-table-0 =3D <4185000 100>, <4113000 95>, <4066000 90>, > + <4022000 85>, <3983000 80>, <3949000 75>, > + <3917000 70>, <3889000 65>, <3864000 60>, > + <3835000 55>, <3805000 50>, <3787000 45>, > + <3777000 40>, <3773000 35>, <3770000 30>, > + <3765000 25>, <3752000 20>, <3724000 15>, > + <3680000 10>, <3605000 5>, <3400000 0>; > + ...... > + }; > + > + sc2731_pmic: pmic@0 { > + compatible =3D "sprd,sc2731"; > + reg =3D <0>; > + spi-max-frequency =3D <26000000>; > + interrupts =3D ; > + interrupt-controller; > + #interrupt-cells =3D <2>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + fgu@a00 { > + compatible =3D "sprd,sc2731-fgu"; > + reg =3D <0xa00>; > + battery-detect-gpios =3D <&pmic_eic 9 GPIO_ACTIVE_HIGH>; > + io-channels =3D <&pmic_adc 5>; > + io-channel-names =3D "bat-temp"; > + monitored-battery =3D <&bat>; > + }; > + }; > --=20 > 1.7.9.5 >=20 --f23zl5vcp3oae2xk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlurlCsACgkQ2O7X88g7 +pq5hw/9Fppud7JlWswYwKy8iOl9ahWFL+Ox5Rb4Eld97X30hAWQxTDhmjjYOmdy a1758rB+wSH7iCl7j9yhWck/iJ3bFVNNRBeXtlFJ1USU5r7No23cshCgR0BKBbUa w8MSvR8ayP1gKiSy3CEA8wC+n6mNNeLkeXrvu4Bqhb3SIwdo1kTmIvUgsnwqRfFv wVcMRuPqcO47pVxlwX8xPz226GhNx+KnUvQGx+JDk2u0xke5FcvI6QA4k7V30Ryi vL9QVG8pGFdOxwEfYv1F5F8Ucpu3KOyslEG1ih5rXY13AYPD57gRVkLJ4aVQoagp oCI1Y21kSrPZxvvjAyY7DcUukL/cVUhVz/zTZc4FEmYMP3yogcc9t4jieP+As4SE iCcrSCBP59ejkoHfqz8eVOl4ubbfFlRcBKH8J9K8Wx78fn7l1J2B8o4wkVC25dHu adZtZug7UDiuJkg5ydMHy7xXySQwVmlBNeZ4x7uPO8y144M23D05l4hB9192QoeH ZpO58Cky2F8Hik9idIhVL4HVbdmbrDofj8BQbPV8GPeoxruit67rvr2BGF/3HJg0 G+M3jWLVxu3RxVSkmYJ8MV21hmGJ9v57a0u9VGSwk1yYTGFkdbNJ3TVSPjC75GMz KVHUZVYf02uKKuX2XKjdpARhppV2TVRjYgNQC3apCHVpL1pgzqU= =THfg -----END PGP SIGNATURE----- --f23zl5vcp3oae2xk--