Skip to content

Commit 299f9a5

Browse files
Raffael Rostagnokartben
authored andcommitted
soc: esp32c6: Add GP timers support
Add device tree configuration for GP timers peripheral. Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
1 parent a4e3148 commit 299f9a5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dts/riscv/espressif/esp32c6/esp32c6_common.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,28 @@
9797
status = "okay";
9898
};
9999

100+
timer0: counter@60008000 {
101+
compatible = "espressif,esp32-timer";
102+
reg = <0x60008000 DT_SIZE_K(4)>;
103+
clocks = <&rtc ESP32_TIMG0_MODULE>;
104+
group = <0>;
105+
index = <0>;
106+
interrupts = <TG0_T0_LEVEL_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>;
107+
interrupt-parent = <&intc>;
108+
status = "disabled";
109+
};
110+
111+
timer1: counter@60009000 {
112+
compatible = "espressif,esp32-timer";
113+
reg = <0x60009000 DT_SIZE_K(4)>;
114+
clocks = <&rtc ESP32_TIMG1_MODULE>;
115+
group = <1>;
116+
index = <0>;
117+
interrupts = <TG1_T0_LEVEL_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>;
118+
interrupt-parent = <&intc>;
119+
status = "disabled";
120+
};
121+
100122
rtc: rtc@600b0000 {
101123
compatible = "espressif,esp32-rtc";
102124
reg = <0x600B0000 DT_SIZE_K(1)>;

0 commit comments

Comments
 (0)