summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/stm32mp151.dtsi
diff options
context:
space:
mode:
authorOlivier Moysan <olivier.moysan@foss.st.com>2023-05-30 15:45:31 +0300
committerAlexandre Torgue <alexandre.torgue@foss.st.com>2023-06-02 13:24:41 +0300
commit95ee314b387d1eb30cb75022f6098845ae59a5b0 (patch)
tree50d5f2bb5ebda1bbbb0a47bdc25f09427ffad59e /arch/arm/boot/dts/stm32mp151.dtsi
parent5988bd535975486a0a550fa8fe8a4ca2fd9231c9 (diff)
downloadlinux-95ee314b387d1eb30cb75022f6098845ae59a5b0.tar.xz
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>
Diffstat (limited to 'arch/arm/boot/dts/stm32mp151.dtsi')
-rw-r--r--arch/arm/boot/dts/stm32mp151.dtsi2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi
index 3d0c39d847b5..61508917521c 100644
--- a/arch/arm/boot/dts/stm32mp151.dtsi
+++ b/arch/arm/boot/dts/stm32mp151.dtsi
@@ -1113,6 +1113,8 @@
interrupts = <1>;
dmas = <&dmamux1 10 0x400 0x01>;
dma-names = "rx";
+ nvmem-cells = <&vrefint>;
+ nvmem-cell-names = "vrefint";
status = "disabled";
channel@13 {
reg = <13>;