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