Skip to content

Commit dc1aaa6

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

boards/st/nucleo_wb05kz/nucleo_wb05kz.dts

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

6969
aliases {
70+
rtc = &rtc;
7071
led0 = &blue_led_1;
7172
led1 = &green_led_1;
7273
led2 = &red_led_1;
@@ -105,6 +106,16 @@
105106
slow-clock = <&clk_lse>;
106107
};
107108

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

boards/st/nucleo_wb05kz/nucleo_wb05kz.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)