Skip to content

Commit 82d26da

Browse files
duda-patrykstephanosio
authored andcommitted
boards: arm: Enable RTC backup RAM on some boards
This patch enables STM32 RTC BBRAM in DTS on some STM32 boards for testing purposes. Signed-off-by: Patryk Duda <[email protected]>
1 parent fbf5ded commit 82d26da

File tree

8 files changed

+62
-0
lines changed

8 files changed

+62
-0
lines changed

boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@
150150
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000400>,
151151
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
152152
status = "okay";
153+
154+
backup_regs {
155+
status = "okay";
156+
};
153157
};
154158

155159
&spi1 {

boards/arm/stm32f0_disco/stm32f0_disco.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
};
4949
};
5050

51+
&clk_lsi {
52+
status = "okay";
53+
};
54+
5155
&clk_hse {
5256
clock-frequency = <DT_FREQ_M(8)>;
5357
status = "okay";
@@ -120,3 +124,13 @@
120124
&iwdg {
121125
status = "okay";
122126
};
127+
128+
&rtc {
129+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
130+
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
131+
status = "okay";
132+
133+
backup_regs {
134+
status = "okay";
135+
};
136+
};

boards/arm/stm32f3_disco/stm32f3_disco.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ zephyr_udc0: &usb {
170170
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
171171
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
172172
status = "okay";
173+
174+
backup_regs {
175+
status = "okay";
176+
};
173177
};
174178

175179
&can1 {

boards/arm/stm32f4_disco/stm32f4_disco.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@
112112
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
113113
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
114114
status = "okay";
115+
116+
backup_regs {
117+
status = "okay";
118+
};
115119
};
116120

117121
zephyr_udc0: &usbotg_fs {

boards/arm/stm32f746g_disco/stm32f746g_disco.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ zephyr_udc0: &usbotg_fs {
143143
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
144144
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
145145
status = "okay";
146+
147+
backup_regs {
148+
status = "okay";
149+
};
146150
};
147151

148152
&sdmmc1 {

boards/arm/stm32h735g_disco/stm32h735g_disco.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
status = "okay";
5656
};
5757

58+
&clk_lsi {
59+
status = "okay";
60+
};
61+
5862
&pll {
5963
div-m = <5>;
6064
mul-n = <110>;
@@ -150,3 +154,13 @@
150154
};
151155
};
152156
};
157+
158+
&rtc {
159+
clocks = <&rcc STM32_CLOCK_BUS_APB4 0x00010000>,
160+
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
161+
status = "okay";
162+
163+
backup_regs {
164+
status = "okay";
165+
};
166+
};

boards/arm/stm32l1_disco/stm32l1_disco.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
};
4747
};
4848

49+
&clk_lsi {
50+
status = "okay";
51+
};
52+
4953
&clk_hsi {
5054
status = "okay";
5155
};
@@ -114,3 +118,13 @@
114118
pinctrl-names = "default";
115119
status = "okay";
116120
};
121+
122+
&rtc {
123+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
124+
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
125+
status = "okay";
126+
127+
backup_regs {
128+
status = "okay";
129+
};
130+
};

boards/arm/stm32l476g_disco/stm32l476g_disco.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@
102102
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
103103
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
104104
status = "okay";
105+
106+
backup_regs {
107+
status = "okay";
108+
};
105109
};

0 commit comments

Comments
 (0)