Skip to content

drivers: counter: fix counter node in esp32 timers #90819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/socs/esp32_procpu.overlay
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/socs/esp32c3.overlay
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/socs/esp32c3_usb.overlay
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};
6 changes: 6 additions & 0 deletions samples/drivers/counter/alarm/socs/esp32c6_hpcore.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/socs/esp32s2.overlay
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};
3 changes: 3 additions & 0 deletions samples/drivers/counter/alarm/socs/esp32s3_procpu.overlay
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};
2 changes: 1 addition & 1 deletion samples/drivers/counter/alarm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct counter_alarm_cfg alarm_cfg;
#elif defined(CONFIG_COUNTER_XLNX_AXI_TIMER)
#define TIMER DT_INST(0, xlnx_xps_timer_1_00_a)
#elif defined(CONFIG_COUNTER_TMR_ESP32)
#define TIMER DT_NODELABEL(timer0)
#define TIMER DT_INST(0, espressif_esp32_counter)
#elif defined(CONFIG_COUNTER_MCUX_CTIMER)
#define TIMER DT_NODELABEL(ctimer0)
#elif defined(CONFIG_COUNTER_NXP_S32_SYS_TIMER)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};

&rtc {
Expand Down
3 changes: 3 additions & 0 deletions tests/drivers/counter/counter_basic_api/socs/esp32c2.overlay
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};

&rtc_timer {
Expand Down
3 changes: 3 additions & 0 deletions tests/drivers/counter/counter_basic_api/socs/esp32c3.overlay
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};

&rtc {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};

&rtc {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};

&timer1 {
status = "okay";
counter {
status = "okay";
};
};
3 changes: 3 additions & 0 deletions tests/drivers/counter/counter_basic_api/socs/esp32s2.overlay
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
&timer0 {
status = "okay";
counter {
status = "okay";
};
};

&rtc {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
&timer3 {
status = "okay";
counter {
status = "okay";
};
};

&rtc_timer {
Expand Down