Skip to content

Commit 27c2c62

Browse files
Mathieu Choplainhenrikbrixandersen
authored andcommitted
dts: arm: st: wb0: add ADC node
Add Device Tree node corresponding to STM32WB0 series ADC. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent c86f0ac commit 27c2c62

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dts/arm/st/wb0/stm32wb0.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,22 @@
218218
status = "disabled";
219219
};
220220

221+
adc1: adc@41006000 {
222+
compatible = "st,stm32wb0-adc";
223+
reg = <0x41006000 256>;
224+
/* On STM32WB0, the two ADC clock domains (ANALOG / DIGITAL)
225+
* can be controlled independently. Expose this feature to
226+
* the driver by having two `clocks` property entries:
227+
* - first entry is digital part of ADC block (always-on)
228+
* - second entry is analog part of ADC block (on-demand)
229+
*/
230+
clocks = <&rcc STM32_CLOCK(APB1, 4)>,
231+
<&rcc STM32_CLOCK(APB1, 5)>;
232+
interrupts = <12 0>;
233+
#io-channel-cells = <1>;
234+
status = "disabled";
235+
};
236+
221237
dma1: dma@48700000 {
222238
compatible = "st,stm32-dma-v2bis";
223239
#dma-cells = <2>;

0 commit comments

Comments
 (0)