cancel
Showing results for 
Search instead for 
Did you mean: 

Enable charging from VBAT pin in Linux

CErik.1
Associate II

Hello,

I would like to enable battery/capacitor charging from the VBAT pin on an STM32MP1 and also change the charging resistor.

That would be VBE and VBRS of PWR_CR3.

What would be the proper way to enable/disable the charging together with the resistor value from Linux and/or U-boot?

The regulator driver managing PWR_CR3 does not mention VBE or VBRS.

Thanks

5 REPLIES 5
PatrickF
ST Employee

Hi,

I think for the moment, these bits are not managed by Device Tree, you could probably modify TF-A for that specific purpose.

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Bernard PUEL
ST Employee

Hello,

A change request is under discussion in ST to implement it in Device tree. For ST this would be required only in TF-A but would you really need to enable the register settings in u-boot or Linux (or TF-a is enough for your need) ?

CErik.1
Associate II

I missed the reply button. See above.

(Unable to delete)

Great thanks!

Currently I enable the setting in U-Boot, but any stage is fine (TF-A, U-Boot or Linux) . TF-A would work perfectly fine.

Again thanks!

Bernard PUEL
ST Employee

Ok thanks for the quick answer.

fyi, in tf-a and optee the function "raw_allowed_access_request()" allows to set these bits.