From 1b2f27365528abeb48198d88f4e461c4b41fe2ff Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Thu, 17 Mar 2022 09:11:03 +0100 Subject: [PATCH] dts: binding: stm32adc set the VREf as a property Add the Vref reference voltage in the DTS, so that the adc driver can retrieve the value for conversion. Signed-off-by: Francois Ramu --- dts/bindings/adc/st,stm32-adc.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dts/bindings/adc/st,stm32-adc.yaml b/dts/bindings/adc/st,stm32-adc.yaml index a8a42486fda..48af5c0e4db 100644 --- a/dts/bindings/adc/st,stm32-adc.yaml +++ b/dts/bindings/adc/st,stm32-adc.yaml @@ -27,6 +27,12 @@ properties: pinctrl-names: required: true + vref_mv: + type: int + required: false + default: 3300 + description: Indicates the reference voltage of the ADC in mV. + has-temp-channel: type: boolean description: Indicates if the ADC has a dedicated internal temperature sensor channel.