[PATCH 2/2] ARM: dts: stm32: add the factory calibration data to stm32h743
Gerard Marull-Paretas
gerard at teslabs.com
Tue Nov 24 12:22:20 PST 2026
The temperature sensor and internal voltage reference calibration data
of the STM32H7 are stored in system memory, at 0x1ff1e820 (TS_CAL1),
0x1ff1e840 (TS_CAL2) and 0x1ff1e860 (VREFINT_CAL).
Describe this area as STM32 factory-programmed data, and pass the
calibration cells to ADC3, which the temperature sensor and VREFINT are
connected to.
Signed-off-by: Gerard Marull-Paretas <gerard at teslabs.com>
---
arch/arm/boot/dts/st/stm32h743.dtsi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/st/stm32h743.dtsi b/arch/arm/boot/dts/st/stm32h743.dtsi
index 2f19cfbc57ad..ecb6aba3b0db 100644
--- a/arch/arm/boot/dts/st/stm32h743.dtsi
+++ b/arch/arm/boot/dts/st/stm32h743.dtsi
@@ -70,6 +70,25 @@ clk_i2s: i2s_ckin {
};
soc {
+ romem: efuse at 1ff1e800 {
+ compatible = "st,stm32f4-otp";
+ reg = <0x1ff1e800 0x100>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ ts_cal1: calib at 20 {
+ reg = <0x20 0x2>;
+ };
+
+ ts_cal2: calib at 40 {
+ reg = <0x40 0x2>;
+ };
+
+ vrefint: calib at 60 {
+ reg = <0x60 0x2>;
+ };
+ };
+
timer5: timer at 40000c00 {
compatible = "st,stm32-timer";
reg = <0x40000c00 0x400>;
@@ -572,6 +591,8 @@ adc3: adc at 0 {
reg = <0x0>;
interrupt-parent = <&adc_3>;
interrupts = <0>;
+ nvmem-cells = <&vrefint>, <&ts_cal1>, <&ts_cal2>;
+ nvmem-cell-names = "vrefint", "ts-cal1", "ts-cal2";
status = "disabled";
};
};
--
2.45.2
More information about the linux-arm-kernel
mailing list