Merge tag 'dt-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / power / supply / stericsson,ab8500-chargalg.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
3 %YAML 1.2
4 ---
5 $id: "http://devicetree.org/schemas/power/supply/stericsson,ab8500-chargalg.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
7
8 title: AB8500 Charging Algorithm
9
10 maintainers:
11   - Sebastian Reichel <sre@kernel.org>
12
13 allOf:
14   - $ref: power-supply.yaml#
15
16 properties:
17   compatible:
18     const: stericsson,ab8500-chargalg
19
20   battery:
21     $ref: /schemas/types.yaml#/definitions/phandle
22     description: phandle to battery node
23
24 required:
25   - compatible
26   - battery
27
28 additionalProperties: false
29
30 examples:
31   - |
32     pmic {
33       charging-algorithm {
34         compatible = "stericsson,ab8500-chargalg";
35         battery = <&ab8500_battery>;
36       };
37     };