Skip to content

Commit edac886

Browse files
kbidanidkalowsk
authored andcommitted
dts: arm: st: u3: add adc node in dtsi file
all stm32u3 boards have only one and same adc peripheral. Signed-off-by: Khaoula Bidani <[email protected]>
1 parent 6d9feca commit edac886

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

dts/arm/st/u3/stm32u3.dtsi

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66

77
#include <arm/armv8-m.dtsi>
8+
#include <zephyr/dt-bindings/adc/adc.h>
9+
#include <zephyr/dt-bindings/adc/stm32u5_adc.h>
810
#include <zephyr/dt-bindings/clock/stm32u3_clock.h>
911
#include <zephyr/dt-bindings/gpio/gpio.h>
1012
#include <zephyr/dt-bindings/reset/stm32u3_reset.h>
@@ -232,6 +234,38 @@
232234
status = "disabled";
233235
};
234236

237+
adc1: adc@42028000 {
238+
compatible = "st,stm32n6-adc", "st,stm32-adc";
239+
reg = <0x42028000 0x400>;
240+
clocks = <&rcc STM32_CLOCK(AHB2, 10)>;
241+
interrupts = <37 0>;
242+
#io-channel-cells = <1>;
243+
resolutions = <STM32_ADC_RES(12, 0x00)
244+
STM32_ADC_RES(10, 0x01)
245+
STM32_ADC_RES(8, 0x02)
246+
STM32_ADC_RES(6, 0x03)>;
247+
sampling-times = <2 3 7 12 24 47 247 1500>;
248+
st,adc-sequencer = "FULLY_CONFIGURABLE";
249+
st,adc-oversampler = "OVERSAMPLER_EXTENDED";
250+
status = "disabled";
251+
};
252+
253+
adc2: adc@42028100 {
254+
compatible = "st,stm32n6-adc", "st,stm32-adc";
255+
reg = <0x42028100 0x400>;
256+
clocks = <&rcc STM32_CLOCK(AHB2, 10)>;
257+
interrupts = <113 0>;
258+
#io-channel-cells = <1>;
259+
resolutions = <STM32_ADC_RES(12, 0x00)
260+
STM32_ADC_RES(10, 0x01)
261+
STM32_ADC_RES(8, 0x02)
262+
STM32_ADC_RES(6, 0x03)>;
263+
sampling-times = <2 3 7 12 24 47 247 1500>;
264+
st,adc-sequencer = "FULLY_CONFIGURABLE";
265+
st,adc-oversampler = "OVERSAMPLER_EXTENDED";
266+
status = "disabled";
267+
};
268+
235269
dac1: dac@42028400 {
236270
compatible = "st,stm32-dac";
237271
reg = <0x42028400 0x400>;

0 commit comments

Comments
 (0)