Skip to content

Commit bbf0708

Browse files
mathieuchopstmkartben
authored andcommitted
boards: st: nucleo_wb07cc: enable RTC
Enable the RTC on Nucleo-WB07CC and update documentation accordingly. Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
1 parent dbbdc2d commit bbf0708

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

boards/st/nucleo_wb07cc/nucleo_wb07cc.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
};
6767

6868
aliases {
69+
rtc = &rtc;
6970
led0 = &blue_led_1;
7071
led1 = &green_led_1;
7172
led2 = &red_led_1;
@@ -104,6 +105,16 @@
104105
slow-clock = <&clk_lse>;
105106
};
106107

108+
&rtc {
109+
/**
110+
* STM32_SRC_LSE reflects the "slow-clock" selected on RCC node.
111+
* NO_SEL reflects STM32WB0's lack of RTC clock mux to configure.
112+
*/
113+
clocks = <&rcc STM32_CLOCK(APB0, 12)>,
114+
<&rcc STM32_SRC_LSE NO_SEL>;
115+
status = "okay";
116+
};
117+
107118
&bt_hci_wb0 {
108119
status = "okay";
109120
};

boards/st/nucleo_wb07cc/nucleo_wb07cc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ supported:
1616
- gpio
1717
- i2c
1818
- pwm
19+
- rtc
1920
- spi
2021
- bluetooth
2122
vendor: st

0 commit comments

Comments
 (0)