ARM: dts: stm32: Configure Buck3 voltage per PMIC NVM on Avenger96
authorMarek Vasut <marex@denx.de>
Wed, 11 May 2022 21:09:33 +0000 (23:09 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 19 May 2022 16:48:50 +0000 (18:48 +0200)
commit0adf10a87b1500c4d0970085ab102330721eb449
tree35b2cdeb7bd78cdb662bb397ff8b86513ee763be
parentf83bd23e2a0e9861969c9d43395299a14f25ddda
ARM: dts: stm32: Configure Buck3 voltage per PMIC NVM on Avenger96

The Avenger96 board comes in multiple regulator configurations.
 - rev.100 or rev.200 have Buck3 preconfigured to 3V3 operation on
   boot and contains extra Enpirion EP53A8LQI DCDC converter which
   supplies the IO. Reduce Buck3 voltage to 2V9 to not waste power.
 - rev.200L have Buck3 preconfigured to 1V8 operation and have no
   Enpirion EP53A8LQI DCDC anymore, the IO is supplied from Buck3.

Configure the Buck3 voltage on this board per PMIC NVM settings and
update buck3 voltage limits in DT passed to OS before booting OS to
prevent potential hardware damage.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/dts/stm32mp15xx-dhcor-io1v8.dtsi
board/dhelectronics/dh_stm32mp1/board.c