xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/dlg,da9150-charger.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
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
7title: Dialog Semiconductor DA9150 Charger Power Supply
8
9maintainers:
10  - Sebastian Reichel <sre@kernel.org>
11
12allOf:
13  - $ref: power-supply.yaml#
14
15properties:
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
33required:
34  - compatible
35
36additionalProperties: false
37
38examples:
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    };
53