18c2ecf20Sopenharmony_ciAnalog Devices LT3651 Charger Power Supply bindings: lt3651-charger
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: Should contain one of the following:
58c2ecf20Sopenharmony_ci * "lltc,ltc3651-charger", (DEPRECATED: Use "lltc,lt3651-charger")
68c2ecf20Sopenharmony_ci * "lltc,lt3651-charger"
78c2ecf20Sopenharmony_ci - lltc,acpr-gpios: Connect to ACPR output. See remark below.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciOptional properties:
108c2ecf20Sopenharmony_ci - lltc,fault-gpios: Connect to FAULT output. See remark below.
118c2ecf20Sopenharmony_ci - lltc,chrg-gpios: Connect to CHRG output. See remark below.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciThe lt3651 outputs are open-drain type and active low. The driver assumes the
148c2ecf20Sopenharmony_ciGPIO reports "active" when the output is asserted, so if the pins have been
158c2ecf20Sopenharmony_ciconnected directly, the GPIO flags should be set to active low also.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciThe driver will attempt to aquire interrupts for all GPIOs to detect changes in
188c2ecf20Sopenharmony_ciline state. If the system is not capabale of providing interrupts, the driver
198c2ecf20Sopenharmony_cicannot report changes and userspace will need to periodically read the sysfs
208c2ecf20Sopenharmony_ciattributes to detect changes.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciExample:
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci	charger: battery-charger {
258c2ecf20Sopenharmony_ci		compatible = "lltc,lt3651-charger";
268c2ecf20Sopenharmony_ci		lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>;
278c2ecf20Sopenharmony_ci		lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>;
288c2ecf20Sopenharmony_ci		lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>;
298c2ecf20Sopenharmony_ci	};
30