diff options
| -rw-r--r-- | Documentation/devicetree/bindings/power/max8903-charger.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/max8903-charger.txt b/Documentation/devicetree/bindings/power/max8903-charger.txt new file mode 100644 index 000000000000..f0f4e12b076e --- /dev/null +++ b/Documentation/devicetree/bindings/power/max8903-charger.txt | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Maxim Semiconductor MAX8903 Battery Charger bindings | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: "maxim,max8903" for MAX8903 Battery Charger | ||
| 5 | - dok-gpios: Valid DC power has been detected (active low, input), optional if uok-gpios is provided | ||
| 6 | - uok-gpios: Valid USB power has been detected (active low, input), optional if dok-gpios is provided | ||
| 7 | |||
| 8 | Optional properties: | ||
| 9 | - cen-gpios: Charge enable pin (active low, output) | ||
| 10 | - chg-gpios: Charger status pin (active low, input) | ||
| 11 | - flt-gpios: Fault pin (active low, output) | ||
| 12 | - dcm-gpios: Current limit mode setting (DC=1 or USB=0, output) | ||
| 13 | - usus-gpios: USB suspend pin (active high, output) | ||
| 14 | |||
| 15 | |||
| 16 | Example: | ||
| 17 | |||
| 18 | max8903-charger { | ||
| 19 | compatible = "maxim,max8903"; | ||
| 20 | dok-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | ||
| 21 | flt-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; | ||
| 22 | chg-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; | ||
| 23 | cen-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; | ||
| 24 | status = "okay"; | ||
| 25 | }; | ||
