xref: /linux/Documentation/devicetree/bindings/power/supply/nokia,n900-battery.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1df89b285SSebastian Reichel# SPDX-License-Identifier: GPL-2.0
2df89b285SSebastian Reichel%YAML 1.2
3df89b285SSebastian Reichel---
4*1ea78ec5SKrzysztof Kozlowski$id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#
5*1ea78ec5SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6df89b285SSebastian Reichel
7df89b285SSebastian Reicheltitle: Nokia N900 battery
8df89b285SSebastian Reichel
9df89b285SSebastian Reichelmaintainers:
10df89b285SSebastian Reichel  - Pali Rohár <pali@kernel.org>
11df89b285SSebastian Reichel  - Sebastian Reichel <sre@kernel.org>
12df89b285SSebastian Reichel
13df89b285SSebastian ReichelallOf:
14df89b285SSebastian Reichel  - $ref: power-supply.yaml#
15df89b285SSebastian Reichel
16df89b285SSebastian Reichelproperties:
17df89b285SSebastian Reichel  compatible:
18df89b285SSebastian Reichel    const: nokia,n900-battery
19df89b285SSebastian Reichel
20df89b285SSebastian Reichel  io-channels:
21df89b285SSebastian Reichel    items:
22df89b285SSebastian Reichel      - description: ADC channel for temperature reading
23df89b285SSebastian Reichel      - description: ADC channel for battery size identification
24df89b285SSebastian Reichel      - description: ADC channel to measure the battery voltage
25df89b285SSebastian Reichel
26df89b285SSebastian Reichel  io-channel-names:
27df89b285SSebastian Reichel    items:
28df89b285SSebastian Reichel      - const: temp
29df89b285SSebastian Reichel      - const: bsi
30df89b285SSebastian Reichel      - const: vbat
31df89b285SSebastian Reichel
32df89b285SSebastian Reichelrequired:
33df89b285SSebastian Reichel  - compatible
34df89b285SSebastian Reichel  - io-channels
35df89b285SSebastian Reichel  - io-channel-names
36df89b285SSebastian Reichel
37df89b285SSebastian ReicheladditionalProperties: false
38df89b285SSebastian Reichel
39df89b285SSebastian Reichelexamples:
40df89b285SSebastian Reichel  - |
41df89b285SSebastian Reichel    battery {
42df89b285SSebastian Reichel      compatible = "nokia,n900-battery";
43df89b285SSebastian Reichel      io-channels = <&twl4030_madc 0>,
44df89b285SSebastian Reichel                    <&twl4030_madc 4>,
45df89b285SSebastian Reichel                    <&twl4030_madc 12>;
46df89b285SSebastian Reichel      io-channel-names = "temp",
47df89b285SSebastian Reichel                         "bsi",
48df89b285SSebastian Reichel                         "vbat";
49df89b285SSebastian Reichel    };
50