summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/power/supply/nokia,n900-battery.yaml
blob: 4a1489f2b28d885c32e70766f5fbd74fcb2ac819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: "http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Nokia N900 battery

maintainers:
  - Pali Rohár <pali@kernel.org>
  - Sebastian Reichel <sre@kernel.org>

allOf:
  - $ref: power-supply.yaml#

properties:
  compatible:
    const: nokia,n900-battery

  io-channels:
    items:
      - description: ADC channel for temperature reading
      - description: ADC channel for battery size identification
      - description: ADC channel to measure the battery voltage

  io-channel-names:
    items:
      - const: temp
      - const: bsi
      - const: vbat

required:
  - compatible
  - io-channels
  - io-channel-names

additionalProperties: false

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