Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8571898ybl; Thu, 16 Jan 2020 19:55:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyjFotNfKji40ziyeR2ch4Vq4WdQdeUtgReEqey6nd2KOLFE/xe+cxCGTRvW984I/GL4TKT X-Received: by 2002:aca:503:: with SMTP id 3mr2049425oif.106.1579233311411; Thu, 16 Jan 2020 19:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579233311; cv=none; d=google.com; s=arc-20160816; b=PxNRZXWInrc6ngFAr9I2FIcD1ZTrR3OaNSU3AWgCBeJB7JK7/D5Jeq8Azhr5ZTdV8h W7VT5/W6fG9Mi99o4B8fKgkjobaO7/iDsarl3PaA5TrgMwef6TzMa4oyq+qAL4IqXx3A Y8npgPyXw2dt6fz8FqM577ijTeEkDCN6YpavyAer2As6T7OVomqiYHSXv0iU7LhCEmBO nFkt1xOlJ0ThNrlmXnErsSsDBCmWnEC+kdYmnXtHkp4wm9bkwwfV09muY3Vi6YaAYgsR onNi3L15njan2T81xQNuRHqj9cq56kS3oP8kPhOd3nx/84b+Sq3G/2v01U+RyASIoKSN 04Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=HbcmC+xA38EL7o2x2luLzmlifDfZ3gM2SYgJPY+KxN8=; b=znz0OApIPd1INQSYKJZD16+NcDVh3hY/w7HUM/rjNtDtpOk+1r5tHYJombuKgg2YIn 9b5zqDeghRrH36KdCGymNmK1mcFetJJxVSTQjkV7BOYKKo6XO0VCmx3co8D5IiwHH4YW 8sxVwwwpgNOY117JZ1ns4QCGUta6SvWWYfOiL8/IB3jx2lGJGAtVPFkag/2w82p7Ju0H JqwqS1T6F0NdFSRo9RjkQ72gW/z9fI/uQIyDUvvzdbXlfpElTEaZOONXw+eJvd8PEBDy +SNGbx3N+DtYsywcK6Z4j06oNR/ERHSgwNcyN7kLQHwNura1V9qXMgUQE7gQ37+QPycF VvkQ== 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 w9si6388568otk.91.2020.01.16.19.55.00; Thu, 16 Jan 2020 19:55:11 -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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387466AbgAQBF2 (ORCPT + 99 others); Thu, 16 Jan 2020 20:05:28 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34340 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbgAQBF1 (ORCPT ); Thu, 16 Jan 2020 20:05:27 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 5350129330B Received: by earth.universe (Postfix, from userid 1000) id E8D7A3C0C7E; Fri, 17 Jan 2020 02:05:22 +0100 (CET) Date: Fri, 17 Jan 2020 02:05:22 +0100 From: Sebastian Reichel To: Dan Murphy Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/4] dt-bindings: power: Add the bq2515x family dt bindings Message-ID: <20200117010522.giiz42csswgyc472@earth.universe> References: <20200116175039.1317-1-dmurphy@ti.com> <20200116175039.1317-4-dmurphy@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cetc77rkog4fj2n6" Content-Disposition: inline In-Reply-To: <20200116175039.1317-4-dmurphy@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cetc77rkog4fj2n6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Jan 16, 2020 at 11:50:38AM -0600, Dan Murphy wrote: > Add the bindings for the bq25150 and bq25155 500mA > charging ICs from Texas Instruments. >=20 > Datasheet: > http://www.ti.com/lit/ds/symlink/bq25150.pdf > http://www.ti.com/lit/ds/symlink/bq25155.pdf >=20 > Signed-off-by: Dan Murphy > --- > .../bindings/power/supply/bq2515x.yaml | 85 +++++++++++++++++++ > 1 file changed, 85 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/bq2515= x.yaml >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/bq2515x.yaml = b/Documentation/devicetree/bindings/power/supply/bq2515x.yaml > new file mode 100644 > index 000000000000..670952021e8d > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/bq2515x.yaml > @@ -0,0 +1,85 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (C) 2019 Texas Instruments Incorporated > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/power/supply/bq2515x.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: TI bq2515x 500-mA Linear charger family > + > +maintainers: > + - Dan Murphy > + > +description: | > + The BQ2515x family is a highly integrated battery charge management IC= that > + integrates the most common functions for wearable devices, namely a ch= arger, > + an output voltage rail, ADC for battery and system monitoring, and > + push-button controller. > + > + Specifications about the charger can be found at: > + http://www.ti.com/lit/ds/symlink/bq25150.pdf > + http://www.ti.com/lit/ds/symlink/bq25155.pdf > + > +properties: > + compatible: > + enum: > + - ti,bq25150 > + - ti,bq25155 > + > + reg: > + maxItems: 1 > + > + pg-gpios: > + description: | > + GPIO used for connecting the bq2515x device PG (Power Good) > + pin. This pin should be used if possible as this is the > + recommended way to obtain the charger's input PG state. > + If this pin is not specified a software-based approach for PG > + detection is used. Let's name this "ac-detect-gpios", which is easy to understand an generic enough for all chargers. > + reset-gpios: > + description: | > + GPIO used for hardware reset. > + > + low-power-gpios: > + description: | > + GPIO used for low power mode of IC. > + > + charge-enable-gpios: > + description: | > + GPIO used to turn on and off charging. > + > + constant-charge-current-max-microamp: > + description: | > + Maximum charging current in micro Amps. > + minimum: 50000 > + maximum: 600000 > + > + constant-charge-voltage-max-microvolt: > + description: | > + Maximum charging voltage in micro volts. > + minimum: 3600000 > + maximum: 4600000 The above two are properties, that are coming from the battery. Please use the simple-battery binding as described in this file: Documentation/devicetree/bindings/power/supply/battery.txt -- Sebastian > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + #include > + i2c0 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + charger@6b { > + compatible =3D "ti,bq25150"; > + reg =3D <0x6b>; > + > + pg-gpios =3D <&gpio1 28 GPIO_ACTIVE_HIGH>; > + reset-gpios =3D <&gpio0 14 GPIO_ACTIVE_HIGH>; > + low-power-gpios =3D <&gpio0 15 GPIO_ACTIVE_HIGH>; > + charge-enable-gpios =3D <&gpio0 13 GPIO_ACTIVE_LOW>; > + constant-charge-current-max-microamp =3D <300000>; > + voltage-max-design-microvolt =3D <4200000>; > + }; > + }; > --=20 > 2.25.0 >=20 --cetc77rkog4fj2n6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl4hCFIACgkQ2O7X88g7 +pp05RAAjpWounywSeXfEg3EJg9d3eafJJ5Z59FAPerwuy5mdRRUJrhpptTa7Sd2 HTspJ6Ap5Ol3mGC14bxhN/bR7UTqeD0rDtmfDLJOY4naKt2X5i+PZLysSXlUP4YM lWmRqjFMPc3QvKDnf6MrlveROmGLG315bMTW1HCMRIG4LKlA/FFGD4m3gOLHv8UC ORhV3sl0kR7V7Jr4/YTeiEhNhU9VKKprjfCAur/D/XmhxL/3sr+uT133S+9b9thF vzizMxvITyvNORid3NmKGy7JZtaeuPVc6JPDLQV4zdNFLN//+esQAdfrKdiBS7S/ 5OBS0djyRb9Iv019VSc8MQW9IDqNJWEyTX//iornIcQ3QAaabQwNtETFITi/UIB6 bODom4aOsCqbk6R3xFFHlQzTEsMnrwzmFke/HM2cPDNJrNaL7VK4jrER3dhti2Ne RO0VmNyLA8o52Ub1UlGI+MaecL5sxW+X6rMHVCqElf8FDIaui6v58pPUasst4ccE 28svNkBthzInmJzGmXeH4QJ5eqfU8IeitFvZr+5/0zyzAygZfK34La2KpkO5WWX9 Y5hOrbD0XS/7dbjhIseYF/KHmL5fgPy5i79HixCSADvFjVKk0j6T9Rlx5PHANo/X ZUWQzf6DVB4vW/t5XNbRT1ICmOK4fuMHXI394NgWfainJhuLk0c= =hgBF -----END PGP SIGNATURE----- --cetc77rkog4fj2n6--