xref: /linux/Documentation/devicetree/bindings/power/supply/google,goldfish-battery.yaml (revision 3e9e952bb3139ad1e08f3e1960239c2988ab90c9)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/power/supply/google,goldfish-battery.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Android Goldfish Battery
8
9maintainers:
10  - Kuan-Wei Chiu <visitorckw@gmail.com>
11
12allOf:
13  - $ref: power-supply.yaml#
14
15description:
16  Android goldfish battery device generated by Android emulator.
17
18properties:
19  compatible:
20    const: google,goldfish-battery
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28required:
29  - compatible
30  - reg
31  - interrupts
32
33unevaluatedProperties: false
34
35examples:
36  - |
37    battery@9020000 {
38        compatible = "google,goldfish-battery";
39        reg = <0x9020000 0x1000>;
40        interrupts = <3>;
41    };
42