xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/rx51-battery.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for Nokia N900 battery
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe Nokia N900 battery status can be read via the TWL4030's A/D converter.
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunRequired properties:
6*4882a593Smuzhiyun- compatible: Should contain one of the following:
7*4882a593Smuzhiyun * "nokia,n900-battery"
8*4882a593Smuzhiyun- io-channels: Should contain IIO channel specifiers
9*4882a593Smuzhiyun               for each element in io-channel-names.
10*4882a593Smuzhiyun- io-channel-names: Should contain the following values:
11*4882a593Smuzhiyun * "temp" - The ADC channel for temperature reading
12*4882a593Smuzhiyun * "bsi"  - The ADC channel for battery size identification
13*4882a593Smuzhiyun * "vbat" - The ADC channel to measure the battery voltage
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunExample from Nokia N900:
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunbattery: n900-battery {
18*4882a593Smuzhiyun	compatible = "nokia,n900-battery";
19*4882a593Smuzhiyun	io-channels = <&twl4030_madc 0>,
20*4882a593Smuzhiyun		      <&twl4030_madc 4>,
21*4882a593Smuzhiyun		      <&twl4030_madc 12>;
22*4882a593Smuzhiyun	io-channel-names = "temp",
23*4882a593Smuzhiyun			   "bsi",
24*4882a593Smuzhiyun			   "vbat";
25*4882a593Smuzhiyun};
26