From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FB47C43381 for ; Sun, 24 Mar 2019 15:30:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32B1320880 for ; Sun, 24 Mar 2019 15:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553441427; bh=c1JBR5+9CHZ/4tEK1w07i8bqdgUu+1+BWEUyzj/Cwpc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=QG7EWKg2a6rV/LWGMt0sMUfDgT5CZgvAAar6phFg7XL3kdlR2qbyngGc6TqgzpyQI wXlCw3hY83pgi4vdiZfxQcpR6988W6oxhqqASHLHv2HmeDRIrwepkLSTRExOK0sRh3 sMMsD/AGqRzw/OkyRqA7TAh1Z+0QSQz6t0xZE47Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728707AbfCXPaZ (ORCPT ); Sun, 24 Mar 2019 11:30:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:59656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfCXPaZ (ORCPT ); Sun, 24 Mar 2019 11:30:25 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5308A20830; Sun, 24 Mar 2019 15:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553441424; bh=c1JBR5+9CHZ/4tEK1w07i8bqdgUu+1+BWEUyzj/Cwpc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nox7k5o1yZSZIu9YgWlaBFWIgVAPvZL1ePY7MGeIoFQN1SvmK8yuBgd0aZGZCsTbH Mcj9ZBnFwRddbDJdqb3ZgJZAyX95Hso6HMm/e1cQ0kQyzJsRz+8tuBp+OVqAhlP96V gaoBaxsDvmiU+H9YTcNQOH0ol1my19vhCB1Nr9No= Date: Sun, 24 Mar 2019 15:30:18 +0000 From: Jonathan Cameron To: Artur Rojek Cc: Sebastian Reichel , Rob Herring , 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 v2 3/4] dt-bindings: power: supply: Add docs for Ingenic JZ47xx SoCs battery. Message-ID: <20190324153018.2e4011c9@archlinux> In-Reply-To: <20190323172809.14407-3-contact@artur-rojek.eu> References: <20190323172809.14407-1-contact@artur-rojek.eu> <20190323172809.14407-3-contact@artur-rojek.eu> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 23 Mar 2019 18:28:08 +0100 Artur Rojek wrote: > Add documentation for the ingenic-battery driver, used on JZ47xx SoCs. > > Signed-off-by: Artur Rojek Looks fine to me. Acked-by: Jonathan Cameron > --- > > Changes: > > v2: no change > > .../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>; > +};