Debian Codegraph @

Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-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-usb-power-supply.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: AXP20x USB power-supply
8
9 description: |
10 The AXP223 PMIC shares most of its behaviour with the AXP221 but has slight
11 variations such as the former being able to set the VBUS power supply max
12 current to 100mA, unlike the latter.
13
14 maintainers:
15 - Chen-Yu Tsai <[email protected]>
16 - Sebastian Reichel <[email protected]>
17
18 properties:
19 compatible:
20 oneOf:
21 - enum:
22 - x-powers,axp192-usb-power-supply
23 - x-powers,axp202-usb-power-supply
24 - x-powers,axp221-usb-power-supply
25 - x-powers,axp223-usb-power-supply
26 - x-powers,axp717-usb-power-supply
27 - x-powers,axp813-usb-power-supply
28 - items:
29 - const: x-powers,axp803-usb-power-supply
30 - const: x-powers,axp813-usb-power-supply
31
32 input-current-limit-microamp:
33 description:
34 Optional value to clamp the maximum input current limit to for
35 the device. If omitted, the programmed value from the EFUSE will
36 be used.
37 minimum: 100000
38 maximum: 4000000
39
40 required:
41 - compatible
42
43 allOf:
44 - $ref: power-supply.yaml#
45 - if:
46 properties:
47 compatible:
48 contains:
49 enum:
50 - x-powers,axp192-usb-power-supply
51 then:
52 properties:
53 input-current-limit-microamp:
54 enum: [100000, 500000]
55
56 - if:
57 properties:
58 compatible:
59 contains:
60 enum:
61 - x-powers,axp202-usb-power-supply
62 - x-powers,axp223-usb-power-supply
63 then:
64 properties:
65 input-current-limit-microamp:
66 enum: [100000, 500000, 900000]
67
68 - if:
69 properties:
70 compatible:
71 contains:
72 enum:
73 - x-powers,axp221-usb-power-supply
74 then:
75 properties:
76 input-current-limit-microamp:
77 enum: [500000, 900000]
78
79 - if:
80 properties:
81 compatible:
82 contains:
83 enum:
84 - x-powers,axp717-usb-power-supply
85 then:
86 properties:
87 input-current-limit-microamp:
88 description: Maximum input current in increments of 50000 uA.
89 minimum: 100000
90 maximum: 3250000
91
92 - if:
93 properties:
94 compatible:
95 contains:
96 enum:
97 - x-powers,axp813-usb-power-supply
98 then:
99 properties:
100 input-current-limit-microamp:
101 enum: [100000, 500000, 900000, 1500000, 2000000, 2500000,
102 3000000, 3500000, 4000000]
103
104 additionalProperties: false