From dba62cd8e5341eb0fa10f0e8f97c1f2e31975722 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Thu, 20 Apr 2023 17:09:07 +0200 Subject: [PATCH] dts: bindings: adc: add dt properties for stm32 adc sampling time Add properties for ADC sampling time for STM32. Signed-off-by: Guillaume Gautier --- dts/bindings/adc/st,stm32-adc.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dts/bindings/adc/st,stm32-adc.yaml b/dts/bindings/adc/st,stm32-adc.yaml index a922f26a288..dd02a45bbdf 100644 --- a/dts/bindings/adc/st,stm32-adc.yaml +++ b/dts/bindings/adc/st,stm32-adc.yaml @@ -58,5 +58,18 @@ properties: By design, these macros also contains all register information (address, field offset and field mask) necessary to properly set the resolution. + sampling-times: + type: array + required: true + description: | + List all the sampling times supported by the ADC instance. + Rounded up if needed. Order is important: their index matches their binary + value in the register. + + num-sampling-time-common-channels: + type: int + description: | + Number of sampling time common channels for this ADC instance, if any. + io-channel-cells: - input