Skip to content

Commit 6f5cdb7

Browse files
macromorgansre
authored andcommitted
dt-bindings: power: supply: axp20x: Add input-current-limit-microamp
Allow specifying a hard limit of the maximum input current. Some PMICs such as the AXP717 can pull up to 3.25A, so allow a value to be specified that clamps this in the event the hardware is not designed for it. Signed-off-by: Chris Morgan <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent ae640fc commit 6f5cdb7

File tree

1 file changed

+55
-3
lines changed

1 file changed

+55
-3
lines changed

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

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ maintainers:
1515
- Chen-Yu Tsai <[email protected]>
1616
- Sebastian Reichel <[email protected]>
1717

18-
allOf:
19-
- $ref: power-supply.yaml#
20-
2118
properties:
2219
compatible:
2320
oneOf:
@@ -31,8 +28,63 @@ properties:
3128
- const: x-powers,axp803-usb-power-supply
3229
- const: x-powers,axp813-usb-power-supply
3330

31+
input-current-limit-microamp:
32+
description:
33+
Optional value to clamp the maximum input current limit to for
34+
the device. If omitted, the programmed value from the EFUSE will
35+
be used.
36+
minimum: 100000
37+
maximum: 4000000
3438

3539
required:
3640
- compatible
3741

42+
allOf:
43+
- $ref: power-supply.yaml#
44+
- if:
45+
properties:
46+
compatible:
47+
contains:
48+
enum:
49+
- x-powers,axp192-usb-power-supply
50+
then:
51+
properties:
52+
input-current-limit-microamp:
53+
enum: [100000, 500000]
54+
55+
- if:
56+
properties:
57+
compatible:
58+
contains:
59+
enum:
60+
- x-powers,axp202-usb-power-supply
61+
- x-powers,axp223-usb-power-supply
62+
then:
63+
properties:
64+
input-current-limit-microamp:
65+
enum: [100000, 500000, 900000]
66+
67+
- if:
68+
properties:
69+
compatible:
70+
contains:
71+
enum:
72+
- x-powers,axp221-usb-power-supply
73+
then:
74+
properties:
75+
input-current-limit-microamp:
76+
enum: [500000, 900000]
77+
78+
- if:
79+
properties:
80+
compatible:
81+
contains:
82+
enum:
83+
- x-powers,axp813-usb-power-supply
84+
then:
85+
properties:
86+
input-current-limit-microamp:
87+
enum: [100000, 500000, 900000, 1500000, 2000000, 2500000,
88+
3000000, 3500000, 4000000]
89+
3890
additionalProperties: false

0 commit comments

Comments
 (0)