Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp3418img; Thu, 28 Feb 2019 13:55:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzBInwvI3XVy5NqsX++3LS9UL7hikLvXoyjSmdeLLv5xh4pKlqUFo5uHCdltCiSe8A5CbQ/ X-Received: by 2002:a17:902:b087:: with SMTP id p7mr1702028plr.56.1551390932265; Thu, 28 Feb 2019 13:55:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551390932; cv=none; d=google.com; s=arc-20160816; b=DCsOrQGJ9FNE0pmsyWCZxnBeJgm5eGy0rvf7qn/cYv8XiJsZL0AzQfdqUcnF9QYFf5 OI0/7qAN0CZRON8K6TXCUcW3dANEmf+89S92oO54RmhJ/Bpk01AgygFhzt+b1bmaCGsc EUy2etQpD7fnLcoSH+Gg7K9p1UdeUrkCO8aWnrzZS0s+xTLTZ6Rmi5w203jQeaw1AfBI 8ulg04aopuHPSNnmLA0+0WIT3Uhtz7LtfsHYswBsXEaNGn/1oZhimpAN4+w/WWPy41WA xyF1XJ4dpGThS+IjjmkvEd9Nj9zqXhW2KM5pwZJKvJoiRreyp139nvRdRCzzxCWls6xc r3Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=PVulUzrfV8bH8v+NHtRBMnaT7LDFUA80fuXL7bGNgO0=; b=gj9UBFB0jVED3M63U3A2KSnAGE56VZxpWptmk3oDkAndbGnl/UPScapGsMxEA6j/Zi VddeWvYPpfiY+ZbqovkfBpByAu54BdmXymH9Zxgp13lzdo7ACn6Iq4QwVAYxubFx3XiI u7R8swAymBYQ8oviFd7+EnsIP8P/MpAnx1GDHAgngLAiqDDW7mVhPCvPaipiwZxNmfoC rhZ1G94bLNId6GbRiJ1qtsxbKehHzEiVQXU/RVdX0XhqRCq4rEwPyKl082bA38PngJ9A l8V5YbCqbPRxrPiv+ELToh9pkQlDA+uF1P+cGMS9MT7WBwst8I/t3mTcNutHDt/BPwAZ 7I3w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si20597602pfc.261.2019.02.28.13.55.17; Thu, 28 Feb 2019 13:55:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732428AbfB1UWT (ORCPT + 99 others); Thu, 28 Feb 2019 15:22:19 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:60781 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfB1UWS (ORCPT ); Thu, 28 Feb 2019 15:22:18 -0500 Received: from webmail.gandi.net (webmail6.sd4.0x35.net [10.200.201.6]) (Authenticated sender: contact@artur-rojek.eu) by relay6-d.mail.gandi.net (Postfix) with ESMTPA id CE609C000B; Thu, 28 Feb 2019 20:22:15 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 28 Feb 2019 21:22:15 +0100 From: Artur Rojek To: Rob Herring 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. In-Reply-To: <20190228184822.GA17624@bogus> References: <20190217142914.17433-1-contact@artur-rojek.eu> <20190217142914.17433-4-contact@artur-rojek.eu> <20190228184822.GA17624@bogus> Message-ID: X-Sender: contact@artur-rojek.eu User-Agent: Roundcube Webmail/1.1.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, thanks for the review. On 2019-02-28 19:48, Rob Herring wrote: > 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? This isn't quite a generic driver; see Jonathan's reply to patch 5/7. - Artur > > Rob