1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/bq24257.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Bq24250, bq24251 and bq24257 Li-Ion Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
29 ti,battery-regulation-voltage:
30 $ref: /schemas/types.yaml#/definitions/uint32
31 description: maximum charging voltage in uV
34 $ref: /schemas/types.yaml#/definitions/uint32
35 description: maximum charging current in uA
37 ti,termination-current:
38 $ref: /schemas/types.yaml#/definitions/uint32
40 charge will be terminated when current in constant-voltage phase
41 drops below this value (in uA)
45 GPIO used for connecting the bq2425x device PG (Power Good) pin.
46 This pin is not available on all devices however it should be used if
47 possible as this is the recommended way to obtain the charger's input PG
48 state. If this pin is not specified a software-based approach for PG
53 $ref: /schemas/types.yaml#/definitions/uint32
55 The maximum current to be drawn from the charger's input (in uA).
56 If this property is not specified, the input limit current is set
57 automatically using USB D+/D- signal based charger type detection.
58 If the hardware does not support the D+/D- based detection, a default
59 of 500,000 is used (=500mA) instead.
62 $ref: /schemas/types.yaml#/definitions/uint32
64 Configures the over voltage protection voltage (in uV).
65 If not specified a default of 6,5000,000 (=6.5V) is used.
68 $ref: /schemas/types.yaml#/definitions/uint32
70 Configures the threshold input voltage for the dynamic power path management (in uV).
71 If not specified a default of 4,360,000 (=4.36V) is used.
77 - ti,battery-regulation-voltage
79 - ti,termination-current
81 additionalProperties: false
85 #include <dt-bindings/gpio/gpio.h>
86 #include <dt-bindings/interrupt-controller/irq.h>
92 compatible = "ti,bq24257";
94 interrupt-parent = <&gpio1>;
95 interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
97 pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
99 ti,battery-regulation-voltage = <4200000>;
100 ti,charge-current = <1000000>;
101 ti,termination-current = <50000>;
105 #include <dt-bindings/gpio/gpio.h>
106 #include <dt-bindings/interrupt-controller/irq.h>
108 #address-cells = <1>;
112 compatible = "ti,bq24250";
114 interrupt-parent = <&gpio1>;
115 interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
117 ti,battery-regulation-voltage = <4200000>;
118 ti,charge-current = <500000>;
119 ti,termination-current = <50000>;
120 ti,current-limit = <900000>;
121 ti,ovp-voltage = <9500000>;
122 ti,in-dpm-voltage = <4440000>;