1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated
5 $id: "http://devicetree.org/schemas/power/supply/bq2515x.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: TI bq2515x 500-mA Linear charger family
11 - Dan Murphy <dmurphy@ti.com>
12 - Ricardo Rivera-Matos <r-rivera-matos@ti.com>
15 The BQ2515x family is a highly integrated battery charge management IC that
16 integrates the most common functions for wearable devices, namely a charger,
17 an output voltage rail, ADC for battery and system monitoring, and
18 push-button controller.
20 Specifications about the charger can be found at:
21 http://www.ti.com/lit/ds/symlink/bq25150.pdf
22 http://www.ti.com/lit/ds/symlink/bq25155.pdf
32 description: I2C address of the charger.
36 GPIO used for connecting the bq2515x device PG (AC Detect)
41 description: GPIO used for hardware reset.
45 description: GPIO used for low power mode of IC.
49 description: GPIO used to turn on and off charging.
52 input-current-limit-microamp:
53 description: Maximum input current in micro Amps.
58 $ref: /schemas/types.yaml#/definitions/phandle
59 description: phandle to the battery node being monitored
66 additionalProperties: false
71 compatible = "simple-battery";
72 constant-charge-current-max-microamp = <50000>;
73 precharge-current-microamp = <2500>;
74 constant-charge-voltage-max-microvolt = <4000000>;
76 #include <dt-bindings/gpio/gpio.h>
82 compatible = "ti,bq25150";
84 monitored-battery = <&bat>;
85 input-current-limit-microamp = <100000>;
87 ac-detect-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
88 reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
89 powerdown-gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
90 charge-enable-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;