Skip to main content
Machilus
Associate III
June 16, 2020
Solved

How to set VSW domain for "stm32mp151c" custom board as openstlinux dts (for using RETRAM)

  • June 16, 2020
  • 2 replies
  • 2097 views

Hi All.

I want to use the battery to power the RETRAM so that the contents of the RETRAM can be preserved even if the board is not powered.

To do this, I connected the battery to the VBAT pin and set the "PWR_CR2_RREN" value to the "PWR_CR2" register of the M4 core firmware.

However, when booting from Linux, the value set in the "PWR_CR2" register disappears.

When booting in "Engineering Mode" and running only with the firmware of the M4 core, the setting value of the "PWR_CR2" register does not disappear even when the main power is turned off.

Is there anything I need to add when I create the "dts" file to enable that feature?

Please give me a lot of advice.

Thanks

Regards

Machilus

This topic has been closed for replies.
Best answer by mleo

Hi @Machilus​ ,

You are right - the value of "PWR_CR2_RREN" should preserve the reset.

But in this case it's not device tree responsible. You need to modify the appropriate section of TF-A.

Best regards,

Milan

2 replies

mleo
mleoBest answer
Visitor II
June 16, 2020

Hi @Machilus​ ,

You are right - the value of "PWR_CR2_RREN" should preserve the reset.

But in this case it's not device tree responsible. You need to modify the appropriate section of TF-A.

Best regards,

Milan

Machilus
MachilusAuthor
Associate III
June 17, 2020

Hi @mleo (ST Employee)

Thank you for your advice.

Can you give me detailed advice on which part of TF-A should be modified?

Or please send me a link to ST or wiki site that can be referred to for modification of TF-A.

I'll be waiting for your reply.

Thanks

Regards

Machilus

BBeck.1
Associate III
January 13, 2022

Was there a link sent? I'm interested in this information as well.

Thanks,

Ben

Machilus
MachilusAuthor
Associate III
June 17, 2020

0