From 189d0211280d7ca3622c41d8092a2fbf4e208b2e Mon Sep 17 00:00:00 2001 From: Mathieu Choplain Date: Mon, 21 Oct 2024 15:24:52 +0200 Subject: [PATCH] dts: bindings: adc: add STM32WB0 ADC Add DT binding for STM32WB0 series ADC. Signed-off-by: Mathieu Choplain --- dts/bindings/adc/st,stm32wb0-adc.yaml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dts/bindings/adc/st,stm32wb0-adc.yaml diff --git a/dts/bindings/adc/st,stm32wb0-adc.yaml b/dts/bindings/adc/st,stm32wb0-adc.yaml new file mode 100644 index 00000000000..b2b6599c834 --- /dev/null +++ b/dts/bindings/adc/st,stm32wb0-adc.yaml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: Apache-2.0 + +description: STM32WB0 series Analog-to-Digital Converter + +compatible: "st,stm32wb0-adc" + +include: [adc-controller.yaml, pinctrl-device.yaml] + +properties: + reg: + required: true + + clocks: + required: true + + interrupts: + required: true + + "#io-channel-cells": + const: 1 + + io-booster: + type: boolean + description: | + When set, the I/O Booster block is enabled during ADC usage. Otherwise, the + I/O Booster block is always disabled. This property MUST be set if VBAT voltage + may reach a value below 2.7V to guarantee that the ADC behavior remains correct. + +io-channel-cells: + - input