Debian Codegraph @

Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: AXP20x Battery power-supply
8
9 description: |
10 The supported devices can read the battery voltage, charge and discharge
11 currents of the battery by reading ADC channels from the ADC.
12
13 maintainers:
14 - Chen-Yu Tsai <[email protected]>
15 - Sebastian Reichel <[email protected]>
16
17 properties:
18 compatible:
19 oneOf:
20 - const: x-powers,axp202-battery-power-supply
21 - const: x-powers,axp209-battery-power-supply
22 - const: x-powers,axp221-battery-power-supply
23 - const: x-powers,axp717-battery-power-supply
24 - items:
25 - const: x-powers,axp803-battery-power-supply
26 - const: x-powers,axp813-battery-power-supply
27 - const: x-powers,axp813-battery-power-supply
28
29 monitored-battery: true
30
31 x-powers,no-thermistor:
32 type: boolean
33 description: Indicates that no thermistor is connected to the TS pin
34
35 required:
36 - compatible
37
38 allOf:
39 - $ref: power-supply.yaml#
40 - if:
41 not:
42 properties:
43 compatible:
44 contains:
45 enum:
46 - x-powers,axp717-battery-power-supply
47 then:
48 properties:
49 x-powers,no-thermistor: false
50
51 additionalProperties: false