Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2431047img; Sun, 24 Mar 2019 08:31:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0x9KarearTMmi22bmvVgklafudySAy9mdKDz6bceByh0Jmhc8qXBygxRe8wHCPJ0W6k7o X-Received: by 2002:a63:fb45:: with SMTP id w5mr18960596pgj.118.1553441475937; Sun, 24 Mar 2019 08:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553441475; cv=none; d=google.com; s=arc-20160816; b=eHMJD5t5MF5l8a+Ppc20DmLN0Y+/vMxhFByZQl3ZBlzyYcM3cjZenD40L1wRwYfDuB 9df8roUXdWLdy/f3V/zcMBOElZL3VygdeYNIwmH8iRIdT3D9G3VISYnca+i4kJPzCOdb jsGasYfmmQdOZL9ZzZrHVMlbiUN/JAXj0P5Q6Sc2nBxgHuvlEXmAuZr4I3M+CDnhTLTB rl88alculWNAbxe7YdrAQfO/dsYdB+cwTvlTV1T25I13YJuGFteuitsnDyF8q27Hs7fy n6MnebYpbCN7X2fgb7DrdjfUiJi5Ens63tvfjr2COVYe1SiQwLpKTAMkzWg3cwC3/0Rk fveA== 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:subject:cc:to:from:date :dkim-signature; bh=b1YKSFWx56mBLZUTm31x5uX29X9gjAbTOFZ0NCUCvVY=; b=0KWfWKpXEcrYEtrScTillJLeHnaW0R9pFmaQZ4+eZlpMJuYA3AEJOESk4IvaGRc7ZT 3u887WsicnCX2+chD2ScUTN1MWtwgrlD4Aa/8dbuRtwz3dCr2YBgb2xGEfveRJixRec9 uMtWqLDrvzZIesF2P3lU7391HsZedUTtneeyp/FmmV68+lnM3BWEIOtzpqKk/B4kr9SV aOY/SI/fXNGUcNojwNvFvsM6dvYdvVS29hyFRtSEnajF0U9hcboPMjDZDTqO5aPhYsP3 zjQUHdyhJUTVVWCbjETnpBAKotF6ZBkAgpXek7Tw5RsYU4PS4vXoPOZ+xs91UOX/Sl0i UGWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nox7k5o1; 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=pass (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 i3si11151839pgq.282.2019.03.24.08.31.01; Sun, 24 Mar 2019 08:31:15 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=nox7k5o1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728509AbfCXPaZ (ORCPT + 99 others); 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>; > +};