Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: stm32: describe the STM32H7 temperature sensor calibration
@ 2026-11-24 20:22 Gerard Marull-Paretas
  2026-11-24 20:22 ` [PATCH 1/2] dt-bindings: iio: adc: st,stm32-adc: add temperature sensor calibration cells Gerard Marull-Paretas
  0 siblings, 1 reply; 2+ messages in thread
From: Gerard Marull-Paretas @ 2026-11-24 20:22 UTC (permalink / raw)
  To: jic23, robh, krzk+dt, conor+dt, mcoquelin.stm32, alexandre.torgue
  Cc: fabrice.gasnier, dlechner, nuno.sa, andy, linux-iio, devicetree,
	linux-stm32, linux-arm-kernel

The STM32 ADC binding lets an ADC take the factory calibration of its
internal voltage reference (VREFINT_CAL) as an nvmem cell, but not the
two calibration points of the internal temperature sensor (TS_CAL1 and
TS_CAL2), although the STM32F4 and STM32MP1 device trees already
describe those cells.

This series adds the two temperature sensor calibration cells to the
binding, and describes the factory calibration area of the STM32H7 in
system memory, passing its cells to ADC3, which the temperature sensor
and VREFINT are connected to.

PebbleOS uses these bindings, including the new cells, to describe the
STM32H747 and read its temperature sensor.

Gerard Marull-Paretas (2):
  dt-bindings: iio: adc: st,stm32-adc: add temperature sensor
    calibration cells
  ARM: dts: stm32: add the factory calibration data to stm32h743

 .../bindings/iio/adc/st,stm32-adc.yaml        | 10 +++++++++
 arch/arm/boot/dts/st/stm32h743.dtsi           | 21 +++++++++++++++++++
 2 files changed, 31 insertions(+)


base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
-- 
2.45.2



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-24 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 20:22 [PATCH 0/2] iio: adc: stm32: describe the STM32H7 temperature sensor calibration Gerard Marull-Paretas
2026-11-24 20:22 ` [PATCH 1/2] dt-bindings: iio: adc: st,stm32-adc: add temperature sensor calibration cells Gerard Marull-Paretas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox