boards: st: configure STM32 RTC

Configure STM32 RTC for a large selction of boards.

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
This commit is contained in:
Abderrahmane Jarmouni 2024-04-25 15:24:41 +02:00 committed by Carles Cufí
commit d4c0fda714
64 changed files with 162 additions and 4 deletions

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021 Linaro Limited
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -246,6 +247,12 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00200000>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&iwdg {
status = "okay";
};

View file

@ -23,4 +23,5 @@ supported:
- pwm
- counter
- i2c
- rtc
vendor: st

View file

@ -197,6 +197,8 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
+-----------+------------+-------------------------------------+
| RADIO | STM32WB5MMG| Bluetooth Low Energy (BLE) |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:
:zephyr_file:`boards/st/b_u585i_iot02a/b_u585i_iot02a_defconfig`

View file

@ -25,6 +25,7 @@ supported:
- dac
- qspi
- dma
- rtc
ram: 96
flash: 1024
vendor: st

View file

@ -131,6 +131,8 @@ The Zephyr Disco L475 IoT board configuration supports the following hardware fe
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -90,6 +90,8 @@ The Zephyr nucleo_c031c6 board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -14,6 +14,7 @@ supported:
- adc
- i2c
- dma
- rtc
ram: 12
flash: 32
vendor: st

View file

@ -94,6 +94,8 @@ The Zephyr nucleo_f070rb board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| SPI | on-chip | SPI controller |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2018 qianfan Zhao
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -48,6 +49,10 @@
};
};
&clk_lse {
status = "okay";
};
&clk_hse {
hse-bypass;
clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */
@ -121,6 +126,12 @@
status = "okay";
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&die_temp {
status = "okay";
};

View file

@ -18,6 +18,7 @@ supported:
- i2c
- spi
- watchdog
- rtc
testing:
ignore_tags:
- net

View file

@ -108,6 +108,8 @@ The Zephyr nucleo_f091rc board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -23,6 +23,7 @@ supported:
- dma
- pwm
- can
- rtc
testing:
ignore_tags:
- net

View file

@ -108,6 +108,8 @@ The Zephyr nucleo_207zg board configuration supports the following hardware feat
+-------------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-------------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -24,4 +24,5 @@ supported:
- pwm
- rng
- dma
- rtc
vendor: st

View file

@ -87,6 +87,8 @@ The Zephyr nucleo_401re board configuration supports the following hardware feat
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.

View file

@ -17,6 +17,7 @@ supported:
- spi
- adc
- watchdog
- rtc
ram: 96
flash: 512
vendor: st

View file

@ -111,6 +111,8 @@ The Zephyr nucleo_f429zi board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -24,4 +24,5 @@ supported:
- dac
- dma
- nvs
- rtc
vendor: st

View file

@ -115,6 +115,8 @@ Supported Features
+---------------+------------+-------------------------------+
| WWDG | on-chip | watchdog |
+---------------+------------+-------------------------------+
| RTC | on-chip | rtc |
+---------------+------------+-------------------------------+
Connections and IOs
===================

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2023 Evan Perry Grove
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -69,6 +70,10 @@
status = "disabled";
};
&clk_lsi {
status = "okay";
};
&pll {
div-m = <4>;
mul-n = <216>;

View file

@ -20,6 +20,7 @@ supported:
- quadspi
- spi
- usb_device
- rtc
ram: 256
flash: 512
vendor: st

View file

@ -122,6 +122,8 @@ features:
+-------------+------------+-------------------------------------+
| Backup SRAM | on-chip | Backup SRAM |
+-------------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -26,4 +26,5 @@ supported:
- dac
- dma
- backup_sram
- rtc
vendor: st

View file

@ -122,6 +122,8 @@ features:
+-----------+------------+-------------------------------------+
| DAC | on-chip | DAC Controller |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
(*) nucleo_f767zi with soc cut-A (Device marking A) has some ethernet

View file

@ -25,4 +25,5 @@ supported:
- counter
- can
- dac
- rtc
vendor: st

View file

@ -112,6 +112,8 @@ The Zephyr nucleo_g071rb board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -25,4 +25,5 @@ supported:
- dma
- lptim
- nvs
- rtc
vendor: st

View file

@ -129,6 +129,8 @@ The Zephyr nucleo_g474re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| FDCAN1 | on-chip | CAN controller |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -24,4 +24,5 @@ supported:
- dac
- dma
- can
- rtc
vendor: st

View file

@ -115,6 +115,8 @@ features:
+-------------+------------+-------------------------------------+
| Backup SRAM | on-chip | Backup SRAM |
+-------------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -21,4 +21,5 @@ supported:
- netif:eth
- backup_sram
- usb_device
- rtc
vendor: st

View file

@ -129,6 +129,8 @@ features:
+-------------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-------------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -25,4 +25,5 @@ supported:
- can
- dac
- dma
- rtc
vendor: st

View file

@ -104,6 +104,8 @@ The Zephyr nucleo_l073rz board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2018 Ilya Tagunov <tagunil@gmail.com>
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -165,6 +166,12 @@ stm32_lp_tick_source: &lptim1 {
};
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>,
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};
&rng {
status = "okay";
};

View file

@ -22,4 +22,5 @@ supported:
- counter
- rng
- eeprom
- rtc
vendor: st

View file

@ -100,6 +100,8 @@ The Zephyr nucleo_l152re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -23,4 +23,5 @@ supported:
- pwm
- dma
- nvs
- rtc
vendor: st

View file

@ -141,6 +141,8 @@ hardware features:
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -18,6 +18,7 @@ supported:
- nvs
- counter
- adc
- rtc
ram: 640
flash: 2048
vendor: st

View file

@ -173,6 +173,8 @@ The Zephyr nucleo_u575zi_q board configuration supports the following hardware f
+-----------+------------+-------------------------------------+
| RNG | on-chip | True Random number generator |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -1,5 +1,6 @@
/*
* Copyright (c) 2021 Linaro Limited
* Copyright (c) 2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -187,6 +188,12 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00200000>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&vref1 {
status = "okay";
};

View file

@ -20,6 +20,7 @@ supported:
- watchdog
- backup_sram
- dma
- rtc
ram: 786
flash: 2048
vendor: st

View file

@ -205,6 +205,8 @@ The Zephyr nucleo_u5a5zj_q board configuration supports the following hardware f
+-----------+------------+-------------------------------------+
| RNG | on-chip | True Random number generator |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 STMicroelectronics
* Copyright (c) 2023-2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -180,6 +180,12 @@
status = "okay";
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00200000>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&vref1 {
status = "okay";
};

View file

@ -20,5 +20,6 @@ supported:
- watchdog
- backup_sram
- dma
- rtc
ram: 2450
flash: 4096

View file

@ -173,6 +173,8 @@ The Zephyr nucleo_wb55rg board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -22,4 +22,5 @@ supported:
- arduino_spi
- usb_device
- nvs
- rtc
vendor: st

View file

@ -177,6 +177,8 @@ The Zephyr nucleo_wba55cg board configuration supports the following hardware fe
+-----------+------------+-------------------------------------+
| RADIO | on-chip | Bluetooth Low Energy |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -16,6 +16,7 @@ supported:
- arduino_i2c
- arduino_spi
- counter
- rtc
ram: 128
flash: 1024
vendor: st

View file

@ -208,6 +208,8 @@ features:
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 STMicroelectronics
* Copyright (c) 2020-2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -85,6 +85,10 @@ stm32_lp_tick_source: &lptim1 {
status = "okay";
};
&clk_lse {
status = "okay";
};
&pll {
div-m = <1>;
mul-n = <6>;
@ -216,6 +220,12 @@ stm32_lp_tick_source: &lptim1 {
};
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00000400>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -23,4 +23,5 @@ supported:
- watchdog
- nvs
- lora
- rtc
vendor: st

View file

@ -109,6 +109,8 @@ features:
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.

View file

@ -21,4 +21,5 @@ supported:
- adc
- dac
- dma
- rtc
vendor: st

View file

@ -20,4 +20,5 @@ supported:
- pwm
- adc
- dac
- rtc
vendor: st

View file

@ -197,6 +197,8 @@ hardware features:
+-----------+------------+-------------------------------------+
| USB | on-chip | USB full-speed host/device bus |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -25,4 +25,5 @@ supported:
- usb
- i2c
- sdhc
- rtc
vendor: st

View file

@ -55,6 +55,10 @@ The current Zephyr stm32h750b_dk board configuration supports the following hard
+-----------+------------+-------------------------------------+
| GPIO | on-chip | gpio |
+-----------+------------+-------------------------------------+
| QSPI NOR | on-chip | off-chip flash |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 STMicroelectronics
* Copyright (c) 2023-2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -64,6 +64,10 @@
status = "okay";
};
&clk_lse {
status = "okay";
};
&pll {
div-m = <5>;
mul-n = <192>;
@ -163,3 +167,9 @@
};
};
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB4 0x00010000>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};

View file

@ -12,4 +12,6 @@ supported:
- arduino_gpio
- gpio
- dma
- flash
- rtc
vendor: st

View file

@ -85,6 +85,8 @@ hardware features:
+-----------+------------+-------------------------------------+
| TIMER | on-chip | counter |
+-----------+------------+-------------------------------------+
| RTC | on-chip | rtc |
+-----------+------------+-------------------------------------+
Other hardware features have not been enabled yet for this board.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 STMicroelectronics
* Copyright (c) 2023-2024 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -89,6 +89,10 @@
msi-pll-mode;
};
&clk_lse {
status = "okay";
};
&pll1 {
div-m = <1>;
mul-n = <80>;
@ -271,6 +275,12 @@ uart0: &usart3 {
};
};
&rtc {
clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00200000>,
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&iwdg {
status = "okay";
};

View file

@ -20,6 +20,7 @@ supported:
- sdmmc
- timer
- rng
- rtc
ram: 2496
flash: 4096
vendor: st