Skip to content

Commit 082a3a0

Browse files
cyliangtwkartben
authored andcommitted
dts: arm: nuvoton: add adc node of numaker m55m1x
Update m55m1x.dtsi, to add adc node for adc driver support. Signed-off-by: cyliang tw <[email protected]>
1 parent 25a2196 commit 082a3a0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dts/arm/nuvoton/m55m1x.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_m55m1x_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 {
@@ -394,6 +395,19 @@
394395
#address-cells = <1>;
395396
#size-cells = <0>;
396397
};
398+
399+
eadc0: eadc@40241000 {
400+
compatible = "nuvoton,numaker-adc";
401+
reg = <0x40241000 0x280>;
402+
interrupts = <126 0>;
403+
resets = <&rst NUMAKER_SYS_EADC0RST>;
404+
clocks = <&pcc NUMAKER_EADC0_MODULE
405+
NUMAKER_CLK_EADCSEL_EADC0SEL_PCLK0
406+
NUMAKER_CLK_EADCDIV_EADC0DIV(10)>;
407+
channels = <28>;
408+
status = "disabled";
409+
#io-channel-cells = <1>;
410+
};
397411
};
398412
};
399413

0 commit comments

Comments
 (0)