Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1110982img; Thu, 28 Feb 2019 13:15:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyFWe7tlsakp2yABz9v79eZaKmYHfNb43NaZMUjyU574eqiU66GkxQbUA1XvBhSLB+YhMDK X-Received: by 2002:a63:1260:: with SMTP id 32mr1216621pgs.278.1551388511803; Thu, 28 Feb 2019 13:15:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551388511; cv=none; d=google.com; s=arc-20160816; b=WK6UYh2BNTzWg3nIF+GveynsqqOizgqL/vQYW8bQUIjSL86Nads+XZTxVn0RjJ+Rbr PAwoY+FaZmvZVLRynB4hVEBFEWewfDtEwZg5tEp3pyQOiomZI2YCQsvNyDlrpaJlgEIe VIx/lIFGsc3C490HcvSycnUS8YnPqg9XjM5zfJx4+c3sxqnhWSDf7hDCg/IkktQB2dZj AhlW/kFi+ldEzOl63J7PUMVWb3BfYdjL0h5IscuGnNx2JwH6ury7GquVtPprD6kLwd8p Lx26fGq7IYlhK9lcCIpPeb3cUpRNxvC2/8bqBg9LZ2AOhLc8RU4dRpH38hsCJz/6TqAR nGkg== 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=roqaL1uJJkGE/SVuMmyzeIg//rbsB7+jOOnA0IByL7I=; b=yxTLXaipu1+P+uunq51paPYqD2bRdTaNA/6PbmYnqnZKVwtNFrARInEnJGP8Y6WK8U 2s5hmlmFEHIFo1DBH8Sb+7WKbVR4+cQyQTT98eB2AjJmykLQiKWB6N2dBtwkE564SWH8 U3Se2v2WbOfdqqNf7q6IGV104icisOCOdF7T7oM8GdvL+MsKLEO6Frtr6WlO7iAIFM8p /YVhFPpKI1z8HChxyQedr7DjXy57X4ogeIuD6Wq19Hoz7lFD4LEYVwmEfjUTIQEzy4pf qo9ntBYaJJbsl4u68sZ0llb3QqACnspdNGnHMWNTjZ6i81NS7zPXQsrsmCRP+uAhxmDl 4H+Q== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si17772815plt.307.2019.02.28.13.14.56; Thu, 28 Feb 2019 13:15: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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732118AbfB1SsZ (ORCPT + 99 others); Thu, 28 Feb 2019 13:48:25 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34016 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfB1SsZ (ORCPT ); Thu, 28 Feb 2019 13:48:25 -0500 Received: by mail-oi1-f195.google.com with SMTP id g16so17381998oib.1; Thu, 28 Feb 2019 10:48:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=roqaL1uJJkGE/SVuMmyzeIg//rbsB7+jOOnA0IByL7I=; b=t7fQK2T/yBUym2fM2vLpOf4igz3oRTvmfG0cm2iI1BxpjZ4pDN0xWdeA5JJc4/fT6V rqrOXCRwSP9ymbM+SUTzvgxHwObbE02VcvIbyszI81G4BjkNZMbJDzswGOP4/ldEH4VV gt1Lv+IhfgX3K5lTGoCcSRnOBPzC37IkEh1Xi925dbQ+UKgr9ML5OJHDHVI6ts62hyTm qv3olEuryw9CTolgNIIhmLflRrgNUhys7BMeOH6SCvAxA4kdCJ77IRfPRYMhD5eda68u 55cD363BkjyGblqjJOBpqRgn199CF4uiuSdxk6OtoiJrCV+K5WhsTbOA7diNFtVXi1Vv BVag== X-Gm-Message-State: AHQUAubd2JxKjW53wNqBOudpSxt0xas0DQ0jIE5jH1kyLu0SfWwnit2p dE2ZT8seyHmsX22J/8CNGw== X-Received: by 2002:aca:ac45:: with SMTP id v66mr737665oie.134.1551379704135; Thu, 28 Feb 2019 10:48:24 -0800 (PST) Received: from localhost (ip-184-203-129-180.hstntx.spcsdns.net. [184.203.129.180]) by smtp.gmail.com with ESMTPSA id v62sm8308367oie.21.2019.02.28.10.48.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 10:48:23 -0800 (PST) Date: Thu, 28 Feb 2019 12:48:22 -0600 From: Rob Herring To: Artur Rojek Cc: 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, Paul Cercueil Subject: Re: [PATCH 4/7] dt-bindings: power: supply: Add docs for Ingenic JZ47xx SoCs battery. Message-ID: <20190228184822.GA17624@bogus> References: <20190217142914.17433-1-contact@artur-rojek.eu> <20190217142914.17433-4-contact@artur-rojek.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190217142914.17433-4-contact@artur-rojek.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 17, 2019 at 03:29:13PM +0100, Artur Rojek wrote: > Add documentation for the ingenic-battery driver, used on JZ47xx SoCs. > > Signed-off-by: Artur Rojek > --- > .../bindings/power/supply/ingenic,battery.txt | 31 +++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/ingenic,battery.txt > > diff --git a/Documentation/devicetree/bindings/power/supply/ingenic,battery.txt b/Documentation/devicetree/bindings/power/supply/ingenic,battery.txt > new file mode 100644 > index 000000000000..66430bf73815 > --- /dev/null > +++ 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 the format > +described in battery.txt, with the following properties being required: > + > +- voltage-min-design-microvolt: Drained battery voltage. > +- voltage-max-design-microvolt: Fully charged battery voltage. > + > +Example: > + > +#include > + > +simple_battery: battery { > + compatible = "simple-battery"; > + voltage-min-design-microvolt = <3600000>; > + voltage-max-design-microvolt = <4200000>; > +}; > + > +ingenic_battery { > + compatible = "ingenic,jz4740-battery"; > + io-channels = <&adc INGENIC_ADC_BATTERY>; > + io-channel-names = "battery"; > + monitored-battery = <&simple_battery>; Isn't this just an ADC monitored battery? What's specific to JZ4740? Maybe a generic binding is appropriate here? Rob