Skip to content

Commit 95ee314

Browse files
Olivier MoysanAlexandre Torgue
authored andcommitted
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>
1 parent 5988bd5 commit 95ee314

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arm/boot/dts/stm32mp151.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,8 @@
11131113
interrupts = <1>;
11141114
dmas = <&dmamux1 10 0x400 0x01>;
11151115
dma-names = "rx";
1116+
nvmem-cells = <&vrefint>;
1117+
nvmem-cell-names = "vrefint";
11161118
status = "disabled";
11171119
channel@13 {
11181120
reg = <13>;

0 commit comments

Comments
 (0)