Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1471188ima; Sun, 21 Oct 2018 12:31:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV63i5YL43rcqFUM9BjD0V/v+YIrXfYtUFbCgIyIyQ7vXPya4gv3+5SP4+AnDelvN/I1YCmXC X-Received: by 2002:a17:902:be01:: with SMTP id r1-v6mr40823699pls.143.1540150267441; Sun, 21 Oct 2018 12:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540150267; cv=none; d=google.com; s=arc-20160816; b=aJ0WrBNO7on6tCqQIdBsNfJnvtgnu1wFEcl+WfO1sSU4+TabVYsdUhaBTAdnnraafp B7fwjeeL2wwplYvekWaPc4qNlUf6TXRipqXNX+CzQ3UHwd82ICCFHG4p3NdelfX5yVJ8 Bij3OSE3IR7+zZ9FExq4fJmDhIJc5EPNSHClcLFJWnkYflA4kZDFhDOSRuJsyoLmX7EC iCIBwjRe/rfd6NA+LX04RxnG6Tud7ycXfw1BThoecVR8w91YaMK6tecTnOf4HmfwOY9e JKCjHf+weRJV/18tzQYHZk/ILSjJYp1766genuX/H7jmIoCVq+WCwaYA/u1qrMgHc61h 927A== 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=aGWEC12A5VqNUY7f9tMIHbS6JShxp4vtcQ7CSHLaC+0=; b=zANMB9kvPz6kpfujeNRKRdMxb9F0+FBAs/xpiLD6kMKDHUduyMxmz1DwmF4aOtOgDT ac9x+xIbE2WxIT1RChXS0awDSzTv+XuRoq7urTa9IRCwPe+5VvHsk9NsTmNBKYEti2o9 pU2um+uhjaQd5tHZm6vyQSdt11/lPrYdsl90ccj2w521rLN04AnaVKu+UuRgFwMp1Ejo XCVozcUYZ9dV/y1DFyfK5Yg0QU+CEuRHuL5pEv2DB5TTGKD5lEdJA6fT1Y4EZNy2Nq/X fBcQsJiEI/qG3k5gDgBjrTrggn+mvGgw6GTA+DtUrAEt3okBGM2TreQrNMG5slxgH6Yr ONWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YAXo3pXG; 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 w22-v6si33968833plk.377.2018.10.21.12.30.52; Sun, 21 Oct 2018 12:31:07 -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=YAXo3pXG; 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 S1728133AbeJVDm2 (ORCPT + 99 others); Sun, 21 Oct 2018 23:42:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:33380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbeJVDm2 (ORCPT ); Sun, 21 Oct 2018 23:42:28 -0400 Received: from earth.universe (unknown [62.214.5.194]) (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 8F4A32083A; Sun, 21 Oct 2018 19:27:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540150027; bh=sv/Y108eq/xLiUeAJj6VVEDfsF9PV00K2pQI0ixBsek=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YAXo3pXGqBOTAUGgUXzgXUNo2Dz2mU+N48ygT0KnH+77ED+q6VeHEeo/w2MfdWhkp 3aNvYRcSbdqO1AnvPjnQXtsErlBsQt+icAnPNnEjfvWsMlhokicRAy5MZCaeThHvjn puZPYP2CDAJOavzIpVCD1v/Tl4qRdkZ8mChqXl5g= Received: by earth.universe (Postfix, from userid 1000) id AEF9A3C0997; Sun, 21 Oct 2018 18:27:29 +0200 (CEST) Date: Sun, 21 Oct 2018 18:27:29 +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 v5 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation Message-ID: <20181021162729.a6wf2x5a54vtkqha@earth.universe> References: <14b947c6195133ed93cf0302b1575c033c4ccf04.1539915051.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bjcucz36wvptpzwu" Content-Disposition: inline In-Reply-To: <14b947c6195133ed93cf0302b1575c033c4ccf04.1539915051.git.baolin.wang@linaro.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bjcucz36wvptpzwu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Oct 19, 2018 at 06:53:14PM +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 > Reviewed-by: Linus Walleij > Reviewed-by: Rob Herring > --- Looks good to me. -- Sebastian > Changes from v4: > - None. >=20 > Changes from v3: > - Add reviewed tag from Rob. >=20 > Changes from v2: > - Add reviewed tag from Linus. >=20 > 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..98a2400 > --- /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-celsius =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 --bjcucz36wvptpzwu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlvMqPEACgkQ2O7X88g7 +poe1xAAjmr4C6QHN0bfOsVqTEesbiF5VMwxknBbssBOO/+gE4deNLdKdcaPnVuD 7pm2JXHd1dnb445SMo3a7DXtVObI9fSB+oSeBlhlgfXLfGwcQwrj9aNxIVDUu2wl 1PqLkqwZG72TMJPDHbhW+0w0grruEN0/wytnPgZzz7JKAVLg3sQsv0uzai8RceDU huHt9XBRancR7fPWrCNwCk0fTIC0vT80QCEapLUWeGVG0SKUVyAxiOCFFtg0jpJL N8YlI3Ax3upTY1q1LSBtETy8wNravokVSQsOB4d3+DEz+Zxdm7Yh3WKYe3gRGw4u 2GGUEgbPgvi1O24baFx4J4c805hV8X2sENfFh+fVw0CUfMJrG8VTDHCo2OJZl5Yq unmtt7mXrSabqTmR/cyoKW1nrs12hriP3YCVgjm8GABnug1x+Zih32AqlUl+DesX wdxzZ810USb8FmZnRw3QPwpBQBzaY/M7XLDC9iEtGn9vviHJv7xCSxxyUBmnL6uM 1mffLu2G2OPzRWkl7wRoeI/vQ1n6/XYZjaDuFiNDOHqiqzzi9YK4vs/KB/ec4SGm /ehEym4/rGKnuhUpao2STbeGbjeynhd96XcVZSSGXTzscpoDLbM9srocPXDT+g/6 bqoIGbHFNW61MpEODdlo1coe8NMFsaogyagprhPWA+uU7K4b+Z0= =6j8X -----END PGP SIGNATURE----- --bjcucz36wvptpzwu--