xref: /freebsd/sys/contrib/device-tree/Bindings/power/supply/lltc,lt3651-charger.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
22eb4d8dcSEmmanuel Vadot%YAML 1.2
32eb4d8dcSEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/power/supply/lltc,lt3651-charger.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62eb4d8dcSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Analog Devices LT3651 Charger Power Supply
82eb4d8dcSEmmanuel Vadot
92eb4d8dcSEmmanuel Vadotmaintainers:
102eb4d8dcSEmmanuel Vadot  - Sebastian Reichel <sre@kernel.org>
112eb4d8dcSEmmanuel Vadot
122eb4d8dcSEmmanuel VadotallOf:
132eb4d8dcSEmmanuel Vadot  - $ref: power-supply.yaml#
142eb4d8dcSEmmanuel Vadot
152eb4d8dcSEmmanuel Vadotproperties:
162eb4d8dcSEmmanuel Vadot  compatible:
172eb4d8dcSEmmanuel Vadot    enum:
182eb4d8dcSEmmanuel Vadot      - lltc,lt3651-charger
192eb4d8dcSEmmanuel Vadot      - lltc,ltc3651-charger  # deprecated, use lltc,lt3651-charger
202eb4d8dcSEmmanuel Vadot
212eb4d8dcSEmmanuel Vadot  lltc,acpr-gpios:
222eb4d8dcSEmmanuel Vadot    maxItems: 1
232eb4d8dcSEmmanuel Vadot
242eb4d8dcSEmmanuel Vadot  lltc,fault-gpios:
252eb4d8dcSEmmanuel Vadot    maxItems: 1
262eb4d8dcSEmmanuel Vadot
272eb4d8dcSEmmanuel Vadot  lltc,chrg-gpios:
282eb4d8dcSEmmanuel Vadot    maxItems: 1
292eb4d8dcSEmmanuel Vadot
302eb4d8dcSEmmanuel Vadotrequired:
312eb4d8dcSEmmanuel Vadot  - compatible
322eb4d8dcSEmmanuel Vadot  - lltc,acpr-gpios
332eb4d8dcSEmmanuel Vadot
342eb4d8dcSEmmanuel VadotadditionalProperties: false
352eb4d8dcSEmmanuel Vadot
362eb4d8dcSEmmanuel Vadotexamples:
372eb4d8dcSEmmanuel Vadot  - |
382eb4d8dcSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
392eb4d8dcSEmmanuel Vadot    charger {
402eb4d8dcSEmmanuel Vadot      compatible = "lltc,lt3651-charger";
412eb4d8dcSEmmanuel Vadot      lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
422eb4d8dcSEmmanuel Vadot      lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
432eb4d8dcSEmmanuel Vadot      lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
442eb4d8dcSEmmanuel Vadot    };
45