Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1741083img; Sat, 23 Mar 2019 10:55:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxix0wkYXwA0V5V59AfrZXaabzNKkuAZvfQVMnZutS/24TD/CD9eSCcGLc2U0sA54ntvqev X-Received: by 2002:a63:7d03:: with SMTP id y3mr3111881pgc.8.1553363713320; Sat, 23 Mar 2019 10:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553363713; cv=none; d=google.com; s=arc-20160816; b=X0epuRM4XptX/fsfK+1BUsFyI9V4/jUKOpY5F6dhZmPO5wltgljYII0Gjt6iyt/pTZ b89CReW+0e0bVmvNkkROsE/GITCpWoaT3ps1Mp5oOe54gQWbkwPHdYA53EomEYXVy4Ev RCGK52IjrBmADn6zaiUcP43ZIEmHBUR/9ZC2Ov59ZL27mJQPiXrlUxX59nbyWyl9BbPD SByhrtqYrM4pmaz0tjWdB/N8ammvXEqJ4KJ3x/DffsIn+ue/OhhdcfgDCb5yW0SJ0B34 sEOrOkY8Dnd1591M2CQrrnZY8EZHi1ftVstu3TSKHkklzGFEI9YIOzc4NgaekLP5waU2 HAAg== 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:date:subject:cc:to:from; bh=la7wW4KIw3GH09cPeGRcbDbR0LA4Eu6dsC9hu0Tj1vA=; b=FTJUNAqlcwc0aFjqZjuA/vsJy2RChVrFCLnY42uAypAivACb9+MMqvyyNQN1j0ueTa WdUXl/gO1Byi5EnF+3B3j79P0h/CfQDNxVU+COAa6+R5hOzaGX7idHSRFDLRfzMzrIBS NAXLjidQZeqgmq7E9lXpoq/eL1fSVnnqsxMQDdnrOQ2gv8LavzpiN33XuEGjA/+MvqjC WoAdqkJu2JbFJ1Penj3Np88x6QSquvhou8Ag458mCGQyUztn8izvDQ9jn2U4E+E0D7QF ytCc5lQW/mTLpSjU71GGtjqgvStEHRXDdFvnmJz7j0AngZ8iwPKM4fEJrulXiZZ2CJWf e6TA== 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 s4si9222142pgp.364.2019.03.23.10.54.44; Sat, 23 Mar 2019 10:55:13 -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; 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 S1728155AbfCWR2j (ORCPT + 99 others); Sat, 23 Mar 2019 13:28:39 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:58529 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727945AbfCWR2h (ORCPT ); Sat, 23 Mar 2019 13:28:37 -0400 Received: from pc.localdomain (unknown [91.192.165.7]) (Authenticated sender: contact@artur-rojek.eu) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 7F5E4200006; Sat, 23 Mar 2019 17:28:34 +0000 (UTC) From: Artur Rojek To: Sebastian Reichel , Jonathan Cameron , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil , Artur Rojek Subject: [PATCH v2 3/4] dt-bindings: power: supply: Add docs for Ingenic JZ47xx SoCs battery. Date: Sat, 23 Mar 2019 18:28:08 +0100 Message-Id: <20190323172809.14407-3-contact@artur-rojek.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190323172809.14407-1-contact@artur-rojek.eu> References: <20190323172809.14407-1-contact@artur-rojek.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for the ingenic-battery driver, used on JZ47xx SoCs. Signed-off-by: Artur Rojek --- 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>; +}; -- 2.21.0