Skip to content

Commit 452e001

Browse files
cyliangtwnashif
authored andcommitted
dts: arm: nuvoton: add adc node of numaker m333x
Update m333x.dtsi, to add adc node for adc driver support. Signed-off-by: cyliang tw <[email protected]>
1 parent 366f337 commit 452e001

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dts/arm/nuvoton/m333x.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <zephyr/dt-bindings/reset/numaker_m333x_reset.h>
1212
#include <zephyr/dt-bindings/gpio/gpio.h>
1313
#include <zephyr/dt-bindings/i2c/i2c.h>
14+
#include <zephyr/dt-bindings/adc/adc.h>
1415

1516
/ {
1617
chosen {
@@ -325,6 +326,19 @@
325326
#size-cells = <0>;
326327
status = "disabled";
327328
};
329+
330+
eadc0: eadc@40043000 {
331+
compatible = "nuvoton,numaker-adc";
332+
reg = <0x40043000 0x1000>;
333+
interrupts = <42 0>;
334+
resets = <&rst NUMAKER_EADC0_RST>;
335+
clocks = <&pcc NUMAKER_EADC0_MODULE
336+
NUMAKER_CLK_CLKSEL0_EADC0SEL_HCLK
337+
NUMAKER_CLK_CLKDIV0_EADC0(12)>;
338+
channels = <19>;
339+
status = "disabled";
340+
#io-channel-cells = <1>;
341+
};
328342
};
329343
};
330344

0 commit comments

Comments
 (0)