From: Tony Lindgren <tony@atomide.com>
To: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org, linux-omap@vger.kernel.org
Subject: [PATCH 1/2] dt-bindings: cpcap-battery: Add binding
Date: Wed, 31 May 2017 17:19:20 -0700 [thread overview]
Message-ID: <20170601001921.11091-2-tony@atomide.com> (raw)
In-Reply-To: <20170601001921.11091-1-tony@atomide.com>
---
.../bindings/power/supply/cpcap-battery.txt | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/supply/cpcap-battery.txt
diff --git a/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt b/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt
new file mode 100644
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/supply/cpcap-battery.txt
@@ -0,0 +1,27 @@
+Motorola CPCAP PMIC battery driver binding
+
+Required properties:
+- compatible: Shall be "motorola,cpcap-battery"
+- interrupts: Interrupt specifier for each name in interrupt-names
+- interrupt-names: Should contain the following entries:
+ "lowbph", "lowbpl", "chrgcurr1", "battdetb"
+- io-channels: IIO ADC channel specifier for each name in io-channel-names
+- io-channel-names: Should contain the following entries:
+ "battdetb", "battp", "chg_isense", "batti"
+
+Example:
+
+cpcap_battery: battery {
+ compatible = "motorola,cpcap-battery";
+ interrupts-extended = <
+ &cpcap 5 0 &cpcap 3 0
+ &cpcap 20 0 &cpcap 54 0
+ >;
+ interrupt-names =
+ "lowbph", "lowbpl",
+ "chrgcurr1", "battdetb";
+ io-channels = <&cpcap_adc 0 &cpcap_adc 1
+ &cpcap_adc 5 &cpcap_adc 6>;
+ io-channel-names = "battdetb", "battp",
+ "chg_isense", "batti";
+};
--
2.13.0
next prev parent reply other threads:[~2017-06-01 0:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 0:19 [PATCHv3 0/2] Add cpcap battery driver Tony Lindgren
2017-06-01 0:19 ` Tony Lindgren [this message]
[not found] ` <20170601001921.11091-2-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-06-01 0:26 ` [PATCH 1/2] dt-bindings: cpcap-battery: Add binding Tony Lindgren
[not found] ` <20170601002621.GQ3730-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-06-07 21:36 ` Rob Herring
[not found] ` <20170601001921.11091-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-06-01 0:19 ` [PATCH 2/2] power: supply: cpcap-battery: Add a battery driver Tony Lindgren
2017-06-08 11:06 ` [PATCHv3 0/2] Add cpcap " Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170601001921.11091-2-tony@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.