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