ARM: dts: stm32: add vrefint support to adc2 on stm32mp15
authorOlivier Moysan <olivier.moysan@foss.st.com>
Tue, 30 May 2023 12:45:31 +0000 (14:45 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 2 Jun 2023 10:24:41 +0000 (12:24 +0200)
commit95ee314b387d1eb30cb75022f6098845ae59a5b0
tree50d5f2bb5ebda1bbbb0a47bdc25f09427ffad59e
parent5988bd535975486a0a550fa8fe8a4ca2fd9231c9
ARM: dts: stm32: add vrefint support to adc2 on stm32mp15

Set STM32 ADC2 as a consumer of BSEC on STM32MP15, to retrieve
vrefint calibration data saved in OTP.

During the calibration process vrefp is set to 3.3V and the data
acquired is saved to the OTP. This data is used by the ADC driver
to calculated the actual value of vrefp according to the formula:
vrefp = 3.3 x vrefint_cal / vrefint_data

The vrefint channel provides the actual value of vrefp,
which can be used to correct ADC acquisition data.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp151.dtsi