Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1399ybd; Tue, 25 Jun 2019 15:13:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqym8n8+Nbi820jswsc5DAu1Zgm38lH3oFQ8naAo/WB4wVYk5MYvI0MULXg5RkXAPLDDrGvO X-Received: by 2002:a63:fa0d:: with SMTP id y13mr41055852pgh.258.1561500830262; Tue, 25 Jun 2019 15:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561500830; cv=none; d=google.com; s=arc-20160816; b=R0mv5PCZ+RSxMnnNq9XweluikAcFMuIwVmjWYjUxkZ6Yoh4TVcyWdDknzJPAxyRFDC TZfY5JvtQcF3h5OkHHRk/Eoe9tcnlEKVELOzEf53182jyqVumHuaoxGks07WZJLR3Zpb jPp+sluhpDD2JnaqHy4+z0Giq1PN/SzxuVphBgNNu7Fjz7ZlGIDZ11K0HvxjR102MF7A /aTdQWltQ/Is+YCstske6zUo6qhLD6pfXr4CddFMTEYg/ikFXkQM6TgCaIZcgotteGLW +U7PzAWAU3ItLiPcf8hIFyslM8fcdPfazmwPcAGEMARvnEFHOaY1TG1FaXaBlljbW/7a /xLw== 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=NI8x3ZHN9/3axkdexGXMjmdVYh2s2Qw5wnaPOoPtNKc=; b=sO1fFTYr60xQIRN4UOmBOw/5KPT0dT9tyyh3+gq/kTcv4FjM+OcwpJAFBPTrxk2Xhu 7Uz7M/fSvCxXAEMHc9V2mPS/fATX9UgjAH86I2zkaEHqDv+a0YnogFVaPsLgZ4qKFT2x Y+KKG+DGFaZyrJeWaVvQMxkED2zWhvvoI32TmW7IaiE0gb4iqXDjo/uefkT3K+CwcnpP EbJ62rG8oo6ePlh+R8OouuHxKxilczs+e14mompoaXbs13YqKofY5D82U+SqsEbAjUKU NYPD1I+vH7bEvgIok6rCAGreXr5JkLaRGv3/Lfr75WJp5sSnEp5OhjBP7mzBU/693YZT ZQYA== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o26si13877685pgv.311.2019.06.25.15.13.33; Tue, 25 Jun 2019 15:13:50 -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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726556AbfFYWNO (ORCPT + 99 others); Tue, 25 Jun 2019 18:13:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59764 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726412AbfFYWNN (ORCPT ); Tue, 25 Jun 2019 18:13:13 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id A67332608D3 Received: by earth.universe (Postfix, from userid 1000) id 781F33C08D5; Wed, 26 Jun 2019 00:13:08 +0200 (CEST) Date: Wed, 26 Jun 2019 00:13:08 +0200 From: Sebastian Reichel To: Rob Herring Cc: "Angus Ainslie (Purism)" , angus.ainslie@puri.sm, Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dt-bindings: power: supply: Add documentation for the VINDPM properties Message-ID: <20190625221308.youac2n3wr7ojvyk@earth.universe> References: <20190520180712.32405-1-angus@akkea.ca> <20190520180712.32405-3-angus@akkea.ca> <20190613230906.GA10492@bogus> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ugu4qrkfrveoirjb" Content-Disposition: inline In-Reply-To: <20190613230906.GA10492@bogus> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ugu4qrkfrveoirjb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Jun 13, 2019 at 05:09:06PM -0600, Rob Herring wrote: > On Mon, May 20, 2019 at 11:07:12AM -0700, Angus Ainslie (Purism) wrote: > > Add documentation on how to control VINDPM from the devicetree. > >=20 > > Signed-off-by: Angus Ainslie (Purism) > > --- > > .../devicetree/bindings/power/supply/bq25890.txt | 8 ++++++++ > > 1 file changed, 8 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.txt= b/Documentation/devicetree/bindings/power/supply/bq25890.txt > > index dc0568933359..fe8b709dd666 100644 > > --- a/Documentation/devicetree/bindings/power/supply/bq25890.txt > > +++ b/Documentation/devicetree/bindings/power/supply/bq25890.txt > > @@ -26,9 +26,15 @@ Optional properties: > > - ti,use-ilim-pin: boolean, if present the ILIM resistor will be used = and the > > input current will be the lower between the resistor setting and t= he IINLIM > > register setting; > > +- ti,use-vinmin-threshold: boolean, if present the FORCE_VINDPM bit wi= ll be set > > + and the input voltage limit will be configured based on "ti,vinmin= -threshold" >=20 > Isn't presence of ti,vinmin-threshold enough to determine whether to set= =20 > FORCE_VINDPM or not? Just get rid of the default being 4.4V. > > > - ti,thermal-regulation-threshold: integer, temperature above which th= e charge > > current is lowered, to avoid overheating (in degrees Celsius). If = omitted, > > the default setting will be used (120 degrees); > > +- ti,vinmin-threshold: integer, lower absolute threshold for VINDPM. I= f the > > + voltage falls below this threshold the charge current is reduced u= ntil the > > + input voltage rises above the input voltage limit. If omitted, the= default > > + setting will be used (4.4V); We already have a "input-voltage-min-microvolt" property used by Maxim chargers, please resuse that for the bq25890 instead of creating a new property name. -- Sebastian > > =20 > > Example: > > =20 > > @@ -46,4 +52,6 @@ bq25890 { > > =20 > > ti,use-ilim-pin; > > ti,thermal-regulation-threshold =3D <120>; > > + ti,use-vinmin-threshold; > > + ti,vinmin-threshold =3D <3900000>; > > }; > > --=20 > > 2.17.1 > >=20 --ugu4qrkfrveoirjb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl0SnG0ACgkQ2O7X88g7 +pqDwhAAiOvtNtH70ZGzXyF9hiF1W3q9vQnI/q7O7DvRkYaPpRTAGMkAQf/83U1F /RUm0zLghA48EfALEVqti+zMEg4FLpHW8TgaiblKHWKHF5mUbLoUO1sNi55VzEXu 8rYeRIhHqjCQPta4cFW/reZoJ6QUtqnpUgT90xNjy5l26VLp0INpEzWi9luzn+Sg d7vW1T+hMcUJcCA26nobt/1pSK8vjGCKnxrAkNo2dsk6KU0zwtAJf25OSE7nJHkQ MXAMI7S9QK7F2C9DXsZ/AcPng6lTTccx86cZcvh5S0Pss5gKItQdLQcDqTYiF6B3 8Zaj84rLyYuujPnVcDXMjhtnufE5PNMsebM7Ia3EFb0Zfuai1zv8gXicjdNxpZV8 37zIVuJ5zPkd6wMJOPkOsACNF/lN4UJtBxxG94Bo1ACHLDVyDInb6drN0IEvBIlm KMU3bQT4tfTUBLIruAEdUR7AoJH4nWbPTuBUj0F0aQ554txdBMjJAHKm+TtQivMG Ha99S4c6wDFiDs/8wdX1reJOjB8G5AAwZXKywcVDDhfM1GolxtLgYWWWH8fdO0G1 ECfdzda5L+EdAUFRFNoqQ8BjtAQzY2rMHLVGOMoRVObwyVPYAXhUO8dDuAp38Yqc +DOcJo0/CzuxmGymnTjiCKOBb0O4WMPIAznhprDjW1XlpPjzxN8= =/rvN -----END PGP SIGNATURE----- --ugu4qrkfrveoirjb--