Skip to content

Commit 9d87c59

Browse files
dts: arm: silabs: add IADC node for xg21 soc
This commit introduces a new ADC node for the Silabs Incremental ADC (IADC) in the device tree source file for the xg21 soc. Signed-off-by: Martin Hoff <[email protected]>
1 parent cc68568 commit 9d87c59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dts/arm/silabs/xg21/xg21.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <zephyr/dt-bindings/dma/silabs/xg21-dma.h>
1414
#include <zephyr/dt-bindings/gpio/gpio.h>
1515
#include <zephyr/dt-bindings/i2c/i2c.h>
16+
#include <zephyr/dt-bindings/adc/adc.h>
1617

1718
/ {
1819
chosen {
@@ -394,6 +395,16 @@
394395
};
395396
};
396397

398+
adc0: adc@5a004000 {
399+
compatible = "silabs,iadc";
400+
reg = <0x5a004000 0x4000>;
401+
interrupts = <50 2>;
402+
interrupt-names = "iadc0";
403+
clocks = <&cmu CLOCK_AUTO CLOCK_BRANCH_PCLK>;
404+
status = "disabled";
405+
#io-channel-cells = <1>;
406+
};
407+
397408
usart0: usart@50058000 {
398409
compatible = "silabs,usart-uart";
399410
reg = <0x50058000 0x4000>;

0 commit comments

Comments
 (0)