Skip to content

Commit

Permalink
Documentation: DT: Document rx51-battery binding
Browse files Browse the repository at this point in the history
Add devicetree binding documentation for rx51-battery,
which is a simple A/D converter consumer.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
  • Loading branch information
Sebastian Reichel committed Jul 18, 2014
1 parent 57da5e8 commit c93e12c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Documentation/devicetree/bindings/power/rx51-battery.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Binding for Nokia N900 battery

The Nokia N900 battery status can be read via the TWL4030's A/D converter.

Required properties:
- compatible: Should contain one of the following:
* "nokia,n900-battery"
- io-channels: Should contain IIO channel specifiers
for each element in io-channel-names.
- io-channel-names: Should contain the following values:
* "temp" - The ADC channel for temperature reading
* "bsi" - The ADC channel for battery size identification
* "vbat" - The ADC channel to measure the battery voltage

Example from Nokia N900:

battery: n900-battery {
compatible = "nokia,n900-battery";
io-channels = <&twl4030_madc 0>,
<&twl4030_madc 4>,
<&twl4030_madc 12>;
io-channel-names = "temp",
"bsi",
"vbat";
};

0 comments on commit c93e12c

Please sign in to comment.