[PATCH 1/2] dt-bindings: iio: adc: st,stm32-adc: add temperature sensor calibration cells

Fabrice Gasnier fabrice.gasnier at foss.st.com
Mon Nov 30 01:01:50 PST 2026


On 11/24/26 21:22, Gerard Marull-Paretas wrote:
> The internal temperature sensor of STM32 ADCs is calibrated in the
> factory at two temperatures, and its calibration data (TS_CAL1 and
> TS_CAL2) is stored in a read-only area, along with the internal voltage
> reference calibration (VREFINT_CAL). On STM32H7, the temperature sensor
> is connected to ADC3.

Hi Gerard,

Nitpicking: could rather mention this is present on stm32h7, stm32mp13 and stm32mp15.
ADC3 connection on STM32H7 doesn't really matter talking about the calibration cells.

> 
> Only the vrefint calibration can be passed to an ADC today. Allow the
> two temperature sensor calibration points to be passed as nvmem cells as
> well, so the ADC the temperature sensor is connected to can convert its
> readings.
> 
> Signed-off-by: Gerard Marull-Paretas <gerard at teslabs.com>
> ---

As suggested by Jonathan on the cover-letter, could add some background information, for DT maintainers.

Thanks,
Best Regards,
Fabrice

>  .../devicetree/bindings/iio/adc/st,stm32-adc.yaml      | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
> index c4c4575d3fa9..9fe41b89982e 100644
> --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
> @@ -337,12 +337,22 @@ patternProperties:
>          deprecated: true
>  
>        nvmem-cells:
> +        minItems: 1
>          items:
>            - description: Phandle to the calibration vrefint data provided by otp
> +          - description:
> +              Temperature sensor calibration data at the first calibration
> +              temperature (TS_CAL1)
> +          - description:
> +              Temperature sensor calibration data at the second calibration
> +              temperature (TS_CAL2)
>  
>        nvmem-cell-names:
> +        minItems: 1
>          items:
>            - const: vrefint
> +          - const: ts-cal1
> +          - const: ts-cal2
>  
>      patternProperties:
>        "^channel@([0-9]|1[0-9])$":




More information about the linux-arm-kernel mailing list