Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp984533img; Thu, 28 Feb 2019 11:01:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzbqyEKqhXe8AALk/rTQegr+gqxnNJhVZSrkocecbGxA4gsJCLvCfey8rD+q50drgcvFjUV X-Received: by 2002:a65:6554:: with SMTP id a20mr667451pgw.170.1551380495988; Thu, 28 Feb 2019 11:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551380495; cv=none; d=google.com; s=arc-20160816; b=EEifhb84S7JJFy49SLY/0AXUAJWKDQe8hr6sUEm10I6sCBae+1wXqWyIt2fs9TTrwZ GGFL4uPgcqcywindVw+XPzVAq82Hcb808Ds4iJglMGmz68Sn2JtS0GELJ088sF2ZaYCe iSn/YNmtFL8ZlUgsVdIM5AP4bPYKct8nI+cOBCwyy66se8/XPIXP2wgWgSqiBwHgDPTK Gi9XpDIMU4WIfMW/0nj68u9VfDobpzcebm31nzeIK9lYRZvauxDi7eWSWxRggUQkm83K uuq4S4R4FcO20YjTyuiiijVWZsLedvivdW2VHCtMwt3TWbFo6uo60mCN4AYnpKeu69+k 1r3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=30SEL/MMjAJMNKdXS74lACgIJDPDuweQsqa9AAKNPLY=; b=PQwTJ8KT6OhR1XMob0/lr+gfiQWzCpXrUcKoS2oq2y/0+tkN/io1C/QFy7512ZEA/o WUWxViu/AXyoiruCckE5ncp+EEChrFxTMigX0CQ9N4Eb/dsLNfYVA35UkmvKQjskxhAZ FNWzr/cS5lpL3hu5EBRbwRgbyXOx9UY2NbHi+Zt8ksljWNUSTwgufbs6/TA+/HKVu/zp NNLbLv8yk6Gc88B/dG2Y4ewG6nqwyzt4UdJqFwVedOTKM42c6G8rctwmjFcDP0VO4UDk Vir8tPHsCrmU9a9gjZPToI7ZuEKfklSiB5Ap4x/eDT8GyyL37RIbRktD9G+peWOHNX5/ QP9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=sFkClUBd; 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=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90si15535840pla.401.2019.02.28.11.01.20; Thu, 28 Feb 2019 11:01:35 -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; dkim=fail header.i=@crapouillou.net header.s=mail header.b=sFkClUBd; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732774AbfB1S4W (ORCPT + 99 others); Thu, 28 Feb 2019 13:56:22 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:57458 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfB1S4W (ORCPT ); Thu, 28 Feb 2019 13:56:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1551380179; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=30SEL/MMjAJMNKdXS74lACgIJDPDuweQsqa9AAKNPLY=; b=sFkClUBdoDytdf3XaP4n7TzR37bpcg7LwUxkoAUExpo7QrNg2AoDSk/1mYlYS/2jmS2PAd TkujAnzaDXvNLbZN8ua3YLX519oFTcgOf0xYvDegmxufwTtBanwW5F72Bp8aK7VX/WSrx+ 99dggwQkWMK/GDL6muNyZBi9GeizuD0= Date: Thu, 28 Feb 2019 15:56:04 -0300 From: Paul Cercueil Subject: Re: [PATCH 4/7] dt-bindings: power: supply: Add docs for Ingenic JZ47xx SoCs battery. To: Rob Herring Cc: Artur Rojek , Sebastian Reichel , Jonathan Cameron , Mark Rutland , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <1551380164.10612.0@crapouillou.net> In-Reply-To: <20190228184822.GA17624@bogus> References: <20190217142914.17433-1-contact@artur-rojek.eu> <20190217142914.17433-4-contact@artur-rojek.eu> <20190228184822.GA17624@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Le jeu. 28 f=E9vr. 2019 =E0 15:48, Rob Herring a =E9crit=20 : > On Sun, Feb 17, 2019 at 03:29:13PM +0100, Artur Rojek wrote: >> Add documentation for the ingenic-battery driver, used on JZ47xx=20 >> SoCs. >>=20 >> Signed-off-by: Artur Rojek >> --- >> .../bindings/power/supply/ingenic,battery.txt | 31=20 >> +++++++++++++++++++ >> 1 file changed, 31 insertions(+) >> create mode 100644=20 >> Documentation/devicetree/bindings/power/supply/ingenic,battery.txt >>=20 >> diff --git=20 >> a/Documentation/devicetree/bindings/power/supply/ingenic,battery.txt=20 >> b/Documentation/devicetree/bindings/power/supply/ingenic,battery.txt >> new file mode 100644 >> index 000000000000..66430bf73815 >> --- /dev/null >> +++=20 >> b/Documentation/devicetree/bindings/power/supply/ingenic,battery.txt >> @@ -0,0 +1,31 @@ >> +* Ingenic JZ47xx battery bindings >> + >> +Required properties: >> + >> +- compatible: Must be "ingenic,jz4740-battery". >> +- io-channels: phandle and IIO specifier pair to the IIO device. >> + Format described in iio-bindings.txt. >> +- monitored-battery: phandle to a "simple-battery" compatible node. >> + >> +The "monitored-battery" property must be a phandle to a node using=20 >> the format >> +described in battery.txt, with the following properties being=20 >> required: >> + >> +- voltage-min-design-microvolt: Drained battery voltage. >> +- voltage-max-design-microvolt: Fully charged battery voltage. >> + >> +Example: >> + >> +#include >> + >> +simple_battery: battery { >> + compatible =3D "simple-battery"; >> + voltage-min-design-microvolt =3D <3600000>; >> + voltage-max-design-microvolt =3D <4200000>; >> +}; >> + >> +ingenic_battery { >> + compatible =3D "ingenic,jz4740-battery"; >> + io-channels =3D <&adc INGENIC_ADC_BATTERY>; >> + io-channel-names =3D "battery"; >> + monitored-battery =3D <&simple_battery>; >=20 > Isn't this just an ADC monitored battery? What's specific to JZ4740? >=20 > Maybe a generic binding is appropriate here? >=20 > Rob There is no generic driver, is there? The generic-adc-battery driver isn't OF-compatible and looks like dead code (nothing uses it). -Paul =