Skip to content

Commit 05f71f3

Browse files
joelguittetnashif
authored andcommitted
drivers: counter: fix counter node in esp32 timers
Fix counter device tree node of the esp32 timers in the counter sample and test app. Signed-off-by: Joel Guittet <joelguittet@gmail.com>
1 parent 2c2b226 commit 05f71f3

File tree

14 files changed

+46
-1
lines changed

14 files changed

+46
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
&timer0 {
2+
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
6+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};

samples/drivers/counter/alarm/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct counter_alarm_cfg alarm_cfg;
3636
#elif defined(CONFIG_COUNTER_XLNX_AXI_TIMER)
3737
#define TIMER DT_INST(0, xlnx_xps_timer_1_00_a)
3838
#elif defined(CONFIG_COUNTER_TMR_ESP32)
39-
#define TIMER DT_NODELABEL(timer0)
39+
#define TIMER DT_INST(0, espressif_esp32_counter)
4040
#elif defined(CONFIG_COUNTER_MCUX_CTIMER)
4141
#define TIMER DT_NODELABEL(ctimer0)
4242
#elif defined(CONFIG_COUNTER_NXP_S32_SYS_TIMER)

tests/drivers/counter/counter_basic_api/socs/esp32_procpu.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
47

58
&clock {

tests/drivers/counter/counter_basic_api/socs/esp32c2.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
47

58
&rtc_timer {

tests/drivers/counter/counter_basic_api/socs/esp32c3.overlay

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
&timer0 {
22
status = "okay";
3+
counter {
4+
status = "okay";
5+
};
36
};
47

58
&clock {

0 commit comments

Comments
 (0)