From 71810a5306737fb8c3d4884d053e1b24b2be7d10 Mon Sep 17 00:00:00 2001 From: Marcin Wierzbicki Date: Thu, 22 Aug 2024 13:34:04 +0200 Subject: [PATCH] drivers: adc: adc_mcux_adc12: 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: Marcin Wierzbicki --- dts/bindings/adc/nxp,kinetis-adc12.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dts/bindings/adc/nxp,kinetis-adc12.yaml b/dts/bindings/adc/nxp,kinetis-adc12.yaml index e3c9b9024cf9..31f7ce3ac117 100644 --- a/dts/bindings/adc/nxp,kinetis-adc12.yaml +++ b/dts/bindings/adc/nxp,kinetis-adc12.yaml @@ -33,6 +33,11 @@ properties: required: true description: sample time in clock cycles + vref-mv: + type: int + required: true + description: Indicates the reference voltage of the ADC in mV. + "#io-channel-cells": const: 1