diff options
author | Sebastian Reichel <sre@kernel.org> | 2014-03-01 15:22:45 -0500 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-07-18 17:40:22 -0400 |
commit | c93e12c0ff42de33514d574ff1292f5347e2a8b5 (patch) | |
tree | c160cbaec8ee215c18df281941e11cf7b979559f /Documentation/devicetree/bindings/power | |
parent | 57da5e86e6f4101c0fc629a63d870508348e2a84 (diff) |
Documentation: DT: Document rx51-battery binding
Add devicetree binding documentation for rx51-battery,
which is a simple A/D converter consumer.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/power')
-rw-r--r-- | Documentation/devicetree/bindings/power/rx51-battery.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/rx51-battery.txt b/Documentation/devicetree/bindings/power/rx51-battery.txt new file mode 100644 index 000000000000..90438453db58 --- /dev/null +++ b/Documentation/devicetree/bindings/power/rx51-battery.txt | |||
@@ -0,0 +1,25 @@ | |||
1 | Binding for Nokia N900 battery | ||
2 | |||
3 | The Nokia N900 battery status can be read via the TWL4030's A/D converter. | ||
4 | |||
5 | Required properties: | ||
6 | - compatible: Should contain one of the following: | ||
7 | * "nokia,n900-battery" | ||
8 | - io-channels: Should contain IIO channel specifiers | ||
9 | for each element in io-channel-names. | ||
10 | - io-channel-names: Should contain the following values: | ||
11 | * "temp" - The ADC channel for temperature reading | ||
12 | * "bsi" - The ADC channel for battery size identification | ||
13 | * "vbat" - The ADC channel to measure the battery voltage | ||
14 | |||
15 | Example from Nokia N900: | ||
16 | |||
17 | battery: n900-battery { | ||
18 | compatible = "nokia,n900-battery"; | ||
19 | io-channels = <&twl4030_madc 0>, | ||
20 | <&twl4030_madc 4>, | ||
21 | <&twl4030_madc 12>; | ||
22 | io-channel-names = "temp", | ||
23 | "bsi", | ||
24 | "vbat"; | ||
25 | }; | ||