Does STM32MP15x support VBAT battery charging?
I could not find any information relates to vbat battery charging in user manual or datasheet.
Is this feature supported in STM32MP15x?
Thanks,
I could not find any information relates to vbat battery charging in user manual or datasheet.
Is this feature supported in STM32MP15x?
Thanks,
Hi Dat Tran (Community Member)
In OSTL (DV4.1) The optee driver enables it.
arch/arm/plat-stm32mp1/drivers/stm32mp1_pwr.c
..
if (fdt_getprop(fdt, node, "st,enable-vbat-charge", NULL)) {
uintptr_t cr3 = stm32_pwr_base() + PWR_CR3_OFF;
io_setbits32(cr3, PWR_CR3_VBE);
if (fdt_getprop(fdt, node, "st,vbat-charge-1K5", NULL))
io_setbits32(cr3, PWR_CR3_VBRS);
}
Configurable in the DT
Add VBAT charge static configuration from the pwr regulator
device-tree node.
- st,enable-vbat-charge is used to enable charge
- st,vbat-charge-1K5 is used to enable fast charge with 1500 Ohms.
You may try to set it at optee board level in the "&pwr_regulators" node
Regards,
Olivier
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.