Skip to content

Commit 26548fc

Browse files
Hieu Nguyenkartben
authored andcommitted
samples: drivers: counter: Add supprt for RZ/G3S-SMARC
Add support for RZ/G3S-SMARC to Counter driver sample Signed-off-by: Hieu Nguyen <[email protected]> Signed-off-by: Nhut Nguyen <[email protected]>
1 parent 2e76631 commit 26548fc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&gtm0 {
8+
counter {
9+
status = "okay";
10+
};
11+
};

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ struct counter_alarm_cfg alarm_cfg;
5959
#define TIMER DT_NODELABEL(counter0)
6060
#elif defined(CONFIG_COUNTER_RA_AGT)
6161
#define TIMER DT_NODELABEL(counter0)
62+
#elif defined(CONFIG_COUNTER_RENESAS_RZ_GTM)
63+
#define TIMER DT_INST(0, renesas_rz_gtm_counter)
6264
#else
6365
#error Unable to find a counter device node in devicetree
6466
#endif

0 commit comments

Comments
 (0)