18c2ecf20Sopenharmony_ciTI BQ24190 Li-Ion Battery Charger 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible: contains one of the following: 58c2ecf20Sopenharmony_ci * "ti,bq24190" 68c2ecf20Sopenharmony_ci * "ti,bq24192" 78c2ecf20Sopenharmony_ci * "ti,bq24192i" 88c2ecf20Sopenharmony_ci * "ti,bq24196" 98c2ecf20Sopenharmony_ci- reg: integer, I2C address of the charger. 108c2ecf20Sopenharmony_ci- interrupts[-extended]: configuration for charger INT pin. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciOptional properties: 138c2ecf20Sopenharmony_ci- monitored-battery: phandle of battery characteristics devicetree node 148c2ecf20Sopenharmony_ci The charger uses the following battery properties: 158c2ecf20Sopenharmony_ci + precharge-current-microamp: maximum charge current during precharge 168c2ecf20Sopenharmony_ci phase (typically 20% of battery capacity). 178c2ecf20Sopenharmony_ci + charge-term-current-microamp: a charge cycle terminates when the 188c2ecf20Sopenharmony_ci battery voltage is above recharge threshold, and the current is below 198c2ecf20Sopenharmony_ci this setting (typically 10% of battery capacity). 208c2ecf20Sopenharmony_ci See also Documentation/devicetree/bindings/power/supply/battery.txt 218c2ecf20Sopenharmony_ci- ti,system-minimum-microvolt: when power is connected and the battery is below 228c2ecf20Sopenharmony_ci minimum system voltage, the system will be regulated above this setting. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_cichild nodes: 258c2ecf20Sopenharmony_ci- usb-otg-vbus: 268c2ecf20Sopenharmony_ci Usage: optional 278c2ecf20Sopenharmony_ci Description: Regulator that is used to control the VBUS voltage direction for 288c2ecf20Sopenharmony_ci either USB host mode or for charging on the OTG port. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ciNotes: 318c2ecf20Sopenharmony_ci- Some circuit boards wire the chip's "OTG" pin high (enabling 500mA default 328c2ecf20Sopenharmony_ci charge current on USB SDP ports, among other features). To simulate this on 338c2ecf20Sopenharmony_ci boards that wire the pin to a GPIO, set a gpio-hog. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciExample: 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci bat: battery { 388c2ecf20Sopenharmony_ci compatible = "simple-battery"; 398c2ecf20Sopenharmony_ci precharge-current-microamp = <256000>; 408c2ecf20Sopenharmony_ci charge-term-current-microamp = <128000>; 418c2ecf20Sopenharmony_ci // etc. 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci bq24190: charger@6a { 458c2ecf20Sopenharmony_ci compatible = "ti,bq24190"; 468c2ecf20Sopenharmony_ci reg = <0x6a>; 478c2ecf20Sopenharmony_ci interrupts-extended = <&gpiochip 10 IRQ_TYPE_EDGE_FALLING>; 488c2ecf20Sopenharmony_ci monitored-battery = <&bat>; 498c2ecf20Sopenharmony_ci ti,system-minimum-microvolt = <3200000>; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci usb_otg_vbus: usb-otg-vbus { }; 528c2ecf20Sopenharmony_ci }; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci &twl_gpio { 558c2ecf20Sopenharmony_ci otg { 568c2ecf20Sopenharmony_ci gpio-hog; 578c2ecf20Sopenharmony_ci gpios = <6 0>; 588c2ecf20Sopenharmony_ci output-high; 598c2ecf20Sopenharmony_ci line-name = "otg-gpio"; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci }; 62