Merge tag 'docs-5.15' of git://git.lwn.net/linux
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / power / supply / dlg,da9150-charger.yaml
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: "http://devicetree.org/schemas/power/supply/dlg,da9150-charger.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7 title: Dialog Semiconductor DA9150 Charger Power Supply bindings
8
9 maintainers:
10   - Sebastian Reichel <sre@kernel.org>
11
12 allOf:
13   - $ref: power-supply.yaml#
14
15 properties:
16   compatible:
17     const: dlg,da9150-charger
18
19   io-channels:
20     items:
21       - description: ADC channel for current
22       - description: ADC channel for bus voltage
23       - description: ADC channel for junction temperature
24       - description: ADC channel for battery voltage
25
26   io-channel-names:
27     items:
28       - const: CHAN_IBUS
29       - const: CHAN_VBUS
30       - const: CHAN_TJUNC
31       - const: CHAN_VBAT
32
33 required:
34   - compatible
35
36 additionalProperties: false
37
38 examples:
39   - |
40     pmic {
41       charger {
42         compatible = "dlg,da9150-charger";
43         io-channels = <&gpadc 0>,
44                       <&gpadc 2>,
45                       <&gpadc 8>,
46                       <&gpadc 5>;
47         io-channel-names = "CHAN_IBUS",
48                            "CHAN_VBUS",
49                            "CHAN_TJUNC",
50                            "CHAN_VBAT";
51       };
52     };