xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
22eb4d8dcSEmmanuel Vadot%YAML 1.2
32eb4d8dcSEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
72eb4d8dcSEmmanuel Vadottitle: AXP20x USB power-supply
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadotdescription: |
102eb4d8dcSEmmanuel Vadot  The AXP223 PMIC shares most of its behaviour with the AXP221 but has slight
112eb4d8dcSEmmanuel Vadot  variations such as the former being able to set the VBUS power supply max
122eb4d8dcSEmmanuel Vadot  current to 100mA, unlike the latter.
132eb4d8dcSEmmanuel Vadot
142eb4d8dcSEmmanuel Vadotmaintainers:
152eb4d8dcSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
162eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
172eb4d8dcSEmmanuel Vadot
182eb4d8dcSEmmanuel Vadotproperties:
192eb4d8dcSEmmanuel Vadot  compatible:
20354d7675SEmmanuel Vadot    oneOf:
21354d7675SEmmanuel Vadot      - enum:
22f126890aSEmmanuel Vadot          - x-powers,axp192-usb-power-supply
232eb4d8dcSEmmanuel Vadot          - x-powers,axp202-usb-power-supply
242eb4d8dcSEmmanuel Vadot          - x-powers,axp221-usb-power-supply
252eb4d8dcSEmmanuel Vadot          - x-powers,axp223-usb-power-supply
26*b2d2a78aSEmmanuel Vadot          - x-powers,axp717-usb-power-supply
272eb4d8dcSEmmanuel Vadot          - x-powers,axp813-usb-power-supply
28354d7675SEmmanuel Vadot      - items:
29354d7675SEmmanuel Vadot          - const: x-powers,axp803-usb-power-supply
30354d7675SEmmanuel Vadot          - const: x-powers,axp813-usb-power-supply
312eb4d8dcSEmmanuel Vadot
32*b2d2a78aSEmmanuel Vadot  input-current-limit-microamp:
33*b2d2a78aSEmmanuel Vadot    description:
34*b2d2a78aSEmmanuel Vadot      Optional value to clamp the maximum input current limit to for
35*b2d2a78aSEmmanuel Vadot      the device. If omitted, the programmed value from the EFUSE will
36*b2d2a78aSEmmanuel Vadot      be used.
37*b2d2a78aSEmmanuel Vadot    minimum: 100000
38*b2d2a78aSEmmanuel Vadot    maximum: 4000000
392eb4d8dcSEmmanuel Vadot
402eb4d8dcSEmmanuel Vadotrequired:
412eb4d8dcSEmmanuel Vadot  - compatible
422eb4d8dcSEmmanuel Vadot
43*b2d2a78aSEmmanuel VadotallOf:
44*b2d2a78aSEmmanuel Vadot  - $ref: power-supply.yaml#
45*b2d2a78aSEmmanuel Vadot  - if:
46*b2d2a78aSEmmanuel Vadot      properties:
47*b2d2a78aSEmmanuel Vadot        compatible:
48*b2d2a78aSEmmanuel Vadot          contains:
49*b2d2a78aSEmmanuel Vadot            enum:
50*b2d2a78aSEmmanuel Vadot              - x-powers,axp192-usb-power-supply
51*b2d2a78aSEmmanuel Vadot    then:
52*b2d2a78aSEmmanuel Vadot      properties:
53*b2d2a78aSEmmanuel Vadot        input-current-limit-microamp:
54*b2d2a78aSEmmanuel Vadot          enum: [100000, 500000]
55*b2d2a78aSEmmanuel Vadot
56*b2d2a78aSEmmanuel Vadot  - if:
57*b2d2a78aSEmmanuel Vadot      properties:
58*b2d2a78aSEmmanuel Vadot        compatible:
59*b2d2a78aSEmmanuel Vadot          contains:
60*b2d2a78aSEmmanuel Vadot            enum:
61*b2d2a78aSEmmanuel Vadot              - x-powers,axp202-usb-power-supply
62*b2d2a78aSEmmanuel Vadot              - x-powers,axp223-usb-power-supply
63*b2d2a78aSEmmanuel Vadot    then:
64*b2d2a78aSEmmanuel Vadot      properties:
65*b2d2a78aSEmmanuel Vadot        input-current-limit-microamp:
66*b2d2a78aSEmmanuel Vadot          enum: [100000, 500000, 900000]
67*b2d2a78aSEmmanuel Vadot
68*b2d2a78aSEmmanuel Vadot  - if:
69*b2d2a78aSEmmanuel Vadot      properties:
70*b2d2a78aSEmmanuel Vadot        compatible:
71*b2d2a78aSEmmanuel Vadot          contains:
72*b2d2a78aSEmmanuel Vadot            enum:
73*b2d2a78aSEmmanuel Vadot              - x-powers,axp221-usb-power-supply
74*b2d2a78aSEmmanuel Vadot    then:
75*b2d2a78aSEmmanuel Vadot      properties:
76*b2d2a78aSEmmanuel Vadot        input-current-limit-microamp:
77*b2d2a78aSEmmanuel Vadot          enum: [500000, 900000]
78*b2d2a78aSEmmanuel Vadot
79*b2d2a78aSEmmanuel Vadot  - if:
80*b2d2a78aSEmmanuel Vadot      properties:
81*b2d2a78aSEmmanuel Vadot        compatible:
82*b2d2a78aSEmmanuel Vadot          contains:
83*b2d2a78aSEmmanuel Vadot            enum:
84*b2d2a78aSEmmanuel Vadot              - x-powers,axp717-usb-power-supply
85*b2d2a78aSEmmanuel Vadot    then:
86*b2d2a78aSEmmanuel Vadot      properties:
87*b2d2a78aSEmmanuel Vadot        input-current-limit-microamp:
88*b2d2a78aSEmmanuel Vadot          description: Maximum input current in increments of 50000 uA.
89*b2d2a78aSEmmanuel Vadot          minimum: 100000
90*b2d2a78aSEmmanuel Vadot          maximum: 3250000
91*b2d2a78aSEmmanuel Vadot
92*b2d2a78aSEmmanuel Vadot  - if:
93*b2d2a78aSEmmanuel Vadot      properties:
94*b2d2a78aSEmmanuel Vadot        compatible:
95*b2d2a78aSEmmanuel Vadot          contains:
96*b2d2a78aSEmmanuel Vadot            enum:
97*b2d2a78aSEmmanuel Vadot              - x-powers,axp813-usb-power-supply
98*b2d2a78aSEmmanuel Vadot    then:
99*b2d2a78aSEmmanuel Vadot      properties:
100*b2d2a78aSEmmanuel Vadot        input-current-limit-microamp:
101*b2d2a78aSEmmanuel Vadot          enum: [100000, 500000, 900000, 1500000, 2000000, 2500000,
102*b2d2a78aSEmmanuel Vadot                 3000000, 3500000, 4000000]
103*b2d2a78aSEmmanuel Vadot
1042eb4d8dcSEmmanuel VadotadditionalProperties: false
105