1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2021 Sebastian Reichel
5 $id: http://devicetree.org/schemas/power/supply/bq24190.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Binding for TI BQ2419x Li-Ion Battery Charger
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
31 $ref: /schemas/regulator/regulator.yaml#
33 Regulator that is used to control the VBUS voltage direction for
34 either USB host mode or for charging on the OTG port
36 ti,system-minimum-microvolt:
38 when power is connected and the battery is below minimum system voltage,
39 the system will be regulated above this setting.
44 If this property is set, the operating system does not try to create a
48 $ref: /schemas/types.yaml#/definitions/phandle
50 phandle to a "simple-battery" compatible node.
52 This property must be a phandle to a node using the format described
53 in battery.yaml, with the following properties being required:
54 - precharge-current-microamp: maximum charge current during precharge phase
55 (typically 20% of battery capacity).
56 - charge-term-current-microamp: a charge cycle terminates when the battery voltage is
57 above recharge threshold, and the current is below this
58 setting (typically 10% of battery capacity).
65 additionalProperties: false
69 #include <dt-bindings/gpio/gpio.h>
70 #include <dt-bindings/interrupt-controller/irq.h>
73 compatible = "simple-battery";
74 precharge-current-microamp = <256000>;
75 charge-term-current-microamp = <128000>;
83 compatible = "ti,bq24190";
85 interrupt-parent = <&gpiochip>;
86 interrupts = <10 IRQ_TYPE_EDGE_FALLING>;
87 monitored-battery = <&bat>;
88 ti,system-minimum-microvolt = <3200000>;
90 usb_otg_vbus: usb-otg-vbus { };