Skip to content
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
1 change: 1 addition & 0 deletions boards/arm/stm32h735g_disco/stm32h735g_disco.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ supported:
- netif:eth
- memc
- adc
- counter
50 changes: 50 additions & 0 deletions dts/arm/st/h7/stm32h7.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers3: timers@40000400 {
Expand All @@ -545,6 +550,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers4: timers@40000800 {
Expand All @@ -562,6 +572,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers5: timers@40000c00 {
Expand All @@ -579,6 +594,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers6: timers@40001000 {
Expand Down Expand Up @@ -635,6 +655,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers13: timers@40001c00 {
Expand All @@ -652,6 +677,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers14: timers@40002000 {
Expand All @@ -669,6 +699,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers15: timers@40014000 {
Expand All @@ -686,6 +721,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers16: timers@40014400 {
Expand All @@ -703,6 +743,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

timers17: timers@40014800 {
Expand All @@ -720,6 +765,11 @@
status = "disabled";
#pwm-cells = <3>;
};

counter {
compatible = "st,stm32-counter";
status = "disabled";
};
};

lptim1: timers@40002400 {
Expand Down
6 changes: 6 additions & 0 deletions samples/drivers/counter/alarm/boards/stm32h735g_disco.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
&timers2 {
st,prescaler = <83>;
counter {
status = "okay";
};
};
2 changes: 1 addition & 1 deletion samples/drivers/counter/alarm/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests:
bl5340_dvk_cpuapp gd32e103v_eval gd32e507z_eval
gd32f403z_eval gd32f450i_eval gd32f450z_eval
gd32e507v_start gd32f407v_start gd32f450v_start
gd32f470i_eval
gd32f470i_eval stm32h735g_disco
integration_platforms:
- nucleo_f746zg
harness_config:
Expand Down
2 changes: 2 additions & 0 deletions samples/drivers/counter/alarm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ struct counter_alarm_cfg alarm_cfg;
#define TIMER DT_NODELABEL(extrtc0)
#elif defined(CONFIG_COUNTER_RTC0)
#define TIMER DT_NODELABEL(rtc0)
#elif defined(CONFIG_COUNTER_TIMER_STM32)
#define TIMER DT_INST(0, st_stm32_counter)
#elif defined(CONFIG_COUNTER_RTC_STM32)
#define TIMER DT_INST(0, st_stm32_rtc)
#elif defined(CONFIG_COUNTER_NATIVE_POSIX)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
&timers2 {
st,prescaler = <83>;
counter {
status = "okay";
};
};

&rtc {
status = "disabled";
};