Commit Graph

433 Commits

Author SHA1 Message Date
Youssef Zini
8bfb08fbda boards: add gpio, button and led support
Add gpio support for STM32MP257F-EV1 board.
Add the orange (&led0) LED to the device tree and enable GPIOJ.
Add the user button USER2 to the device tree and enable GPIOG.
This step allows building and debugging the blinky and button sample
applications.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-17 08:20:33 +02:00
Youssef Zini
7f23ce2967 dts: clock_control: add mp2 rcc binding
Introduce DeviceTree binding for the STM32MP2 RCC clock controller,
enabling support for STM32MP2-specific clock configuration in Zephyr.
Update Kconfig.stm32 to add a dependency on STM32MP2 configuration,
allowing the use of STM32 LL RCC features when targeting STM32MP2
devices.
Add header for STM32MP2 per peripheral clock definitions.

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-17 08:20:33 +02:00
Youssef Zini
fb4f0f8d18 boards: st: add support for stm32mp257f_ev1 board
Introduce initial board support for the STM32MP257F-EV1. This includes:
- Board metadata (board.yml, stm32mp257f_ev1.yaml)
- Base software configuration (Kconfig.stm32mp257f_ev1)
- CMake build integration (board.cmake)
- Default configuration (stm32mp257f_ev1_stm32mp257fxx_m33_defconfig)
- Minimal device tree (stm32mp257f_ev1_stm32mp257fxx_m33.dts)
- Initial documentation and image for the stm32mp257f_ev1 board.
- OpenOCD configuration files for debugging support.

This enables the STM32MP257F-EV1 board to build and debug a hello world
sample.

Note that other necessary openocd configuration files are added to the
zephyr sdk directory and can be found in the stm-openocd repository[1].
[1]:https://github.com/STMicroelectronics/device-stm-openocd/tree/main

Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
2025-06-17 08:20:33 +02:00
Mathias Markussen
813fd26716 board: st: stm32u5g9j-dk2: Add HSPI external flash
Add external HSPI flash on STM32U5G9J-DK2
Use external loader to flash it with STM32CubeProgrammer

Signed-off-by: Mathias Markussen <mathias.markussen@st.com>
2025-06-16 14:03:42 -04:00
Mathias Markussen
c9ba87f47e board: st: stm32u5g9j-dk2: Add touchscreen driver
Use GT911 touchscreen driver on STM32U5G9J-DK2

Signed-off-by: Mathias Markussen <mathias.markussen@st.com>
2025-06-16 14:03:42 -04:00
Khaoula Bidani
6e7b5bbdf1 boards: st: add nucleo_u385rg_q board support
add board support for nucleo_u385rg_q

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-06-16 13:59:38 -04:00
Mathieu CHOPLAIN
72e6955f30 boards: stm32: stm32n6570_dk: fix DTS errors for Ethernet
The DTS for this board contained a few mistakes:
* The PHY address was incorrect
	* This did not impair functionality because the RTL8211F
	  treats address 0 as "broadcast" and accepts commands
	  sent to it by default
* An incorrect PHY driver was used
	* The generic "phy_mii" driver is not the most appropriate
	  for this PHY - use the HW-specific RTL8211F driver instead
	* Also remove the PHY IRQ pin configuration from Ethernet
	  pinctrl to allow RTL8211F driver to receive IRQ via GPIO
	  instead
* The RGMII GTX CLK pinctrl must be configured at "medium-speed"
	* This is a temporary solution. The proper solution would use
	  very-high-speed combined with a GPIO delay, but delays are
	  not supported yet in Zephyr.

Signed-off-by: Mathieu CHOPLAIN <mathieu.choplain@st.com>
2025-06-13 10:11:03 -07:00
Ali Hozhabri
ecf795f0f1 drivers: bluetooth: hci: Use TRNG peripheral for BLE purpose on WB0x
Call entropy APIs to use TRNG peripheral on STM32WB0x devices for BLE
purposes.

Enable RNG node on Nucleo-WB0x boards.

Remove RNG initialization as it's done in the entropy driver.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
2025-06-12 09:32:41 -07:00
Pieter De Gendt
b76e68ee9f boards: st: stm32h573i_dk: Add Arduino serial node
Specify the Arduino serial node for a Discovery kit with STM32H573II MCU.
Add supported features to board yaml file.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-12 13:41:19 +02:00
Romain Jayles
a114b3961b dts: stm32wba: add die_temp node to the nucleo_wba65ri
The die_temp node and die-temp0 alias was missing to the nucleo_wba65ri

Signed-off-by: Romain Jayles <romain.jayles@st.com>
2025-06-10 13:29:47 +02:00
Fabrice DJIATSA
905e3032a0 boards: stm32n6570_dk: add irq-gpios property
There was a missing irq-gpios property that cause
building failure on lvgl and display samples.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-10 12:09:25 +02:00
Harris Tomy
d280d89214 dts/kconfig: stm32u5: add f9 and clean up dts node locations
Adds skeleton dtsi for u5f9 for u5g9 to inherit from

Moves the peripheral nodes into dtsi's that actually has the peripheral
and includes them for SoC's higher in the series where applicable.

signed-off-by: Harris Tomy <harristomy@gmail.com>
2025-06-09 14:26:11 -07:00
Yishai Jaffe
8a26316f17 boards: st: nucleo_l433rc_p: add die_temp, vref, and vbat nodes
Added die_temp, vref, and vbat nodes and their aliases to the
nucleo_l433rc_p board.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-06-06 10:11:42 +02:00
Alain Volmat
e4f6be0e5d boards: st: stm32n6570_dk: csi_22pins connector related labels
Add csi_22pins_connector and related label in order to use
shields relying on csi_pins_connector.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-06-06 10:10:58 +02:00
Alain Volmat
9600fc523c boards: st: stm32n6570_dk: Add IC17/IC18 settings for DCMIPP/CSI
Add configuration of the IC17 and IC18 clock dividers, used
by the dcmipp and csi IPs in the stm32n6.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-06-06 10:10:58 +02:00
Alain Volmat
c535fa43f1 boards: st: stm32l4r9i_disco: add dcmi pinctrl and zephyr_camera
Add the dcmi interface pinctrl entry related to the stm32l4r9i-disco
board.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-06-04 15:50:24 -04:00
Alain Volmat
26cee81290 boards: correct dmci_camera_connector typo in stm32h7
The camera connector in stm32h7b3i_dk (and st_b_cams_omv_mb1683 shield)
are refering to the connector name as dmci_... instead of dcmi_...

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
2025-06-04 15:50:24 -04:00
Ajith Anandhan
c27570f537 samples: adc_dt: add dts overlay for STM32F4-DISCO
Add a board-specif dts overlay file for the adc_dt sample on the
STM32F4-DISCO board to enable for ADC channel support.

Signed-off-by: Ajith Anandhan <ajithanandhan0406@gmail.com>
2025-06-04 17:03:27 +02:00
Sudarsan N
8cf71d091e samples: adc_dt: add overlay for STM32F0-DISCO
Add board-specific overlay file for the adc_dt sample
on the STM32F0-DISCO board to enable ADC channel support.

Signed-off-by: Sudarsan N <sudarsansamy2002@gmail.com>
2025-05-27 15:46:19 +02:00
Etienne Carriere
74056a7aed boards: st: stm32f0_disco: fix partition inline comment
Fix end offset value in inline comment of the internal partition node.

Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
785c454207 boards: st: fix STM32WL5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
a8430ef296 boards: st: fix STM32WB boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
0e8069e7e3 boards: st: fix STM32WBA boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
84add0da76 boards: st: fix STM32WB0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
2418d03869 boards: st: fix STM3U5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

Also remove a few spurious space characters.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
d9354ad48c boards: st: fix STM3U0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
9777242353 boards: st: fix STM3N6 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
cb09d19d19 boards: st: fix STM3MP1* boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
0a3526b6de boards: st: fix STM32L5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
37d545a52f boards: st: fix STM32L4 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
ea0eacebd6 boards: st: fix STM32L1 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
af3f64fba2 boards: st: fix STM32L0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
39a9fe9f59 boards: st: fix STM32H7* boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
135e0dd7a3 boards: st: fix STM32H5 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
1aa8f51374 boards: st: fix STM32G4 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

By the way, also correct indentation in node stm32_lp_tick_source of
b_g474e_dpow1.dts.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
e8e3560ecf boards: st: fix STM32G0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
3782c24ad7 boards: st: fix STM32F7 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
721b3b8e39 boards: st: fix STM32F4 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
b6a3c0cf93 boards: st: fix STM32F3 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Indent with tabs.
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
41129ab7c7 boards: st: fix STM32F2 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
c217fc4c30 boards: st: fix STM32F1 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
c865aa5b39 boards: st: fix STM32F0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Etienne Carriere
8f02dc5633 boards: st: fix STM32C0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a	new
board is introduced and used this DTS as example start point.

Issues addressed from Zephyr devicetree style guidelines [1]:
- Don’t insert empty lines before a dedenting };.
- Insert a single empty line to separate nodes at the same hierarchy level.

No functional change.

Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1]
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
2025-05-26 09:20:08 +02:00
Erwan Gouriou
2e258205e1 boards: stm32n6570_dk: Add touch screen support
Configure touch screen on stm32n6570_dk.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2025-05-23 15:39:21 +02:00
Mirai SHINJO
438ed6d74a boards: nucleo_h753zi: add pyOCD support
This patch adds pyOCD runner configuration for
the nucleo_h753zi board.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
2025-05-22 11:32:02 +02:00
Francois Ramu
b926ba6abf boards: arm: stm32h7s78 disco kit supporting xspi instance
Add the XSPI 2 which is an octoSPI connection to a octo NOR flash
mx66uw1g45 on the stm32h7s78_dk disco kit

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-05-21 17:35:06 +02:00
Francois Ramu
78cc8ab1d8 boards: st: stm32h7s3l8 nucleo board supporting xspi instance
Add the XSPI 2 which is an octoSPI connection to a octo NOR flash
MX25UW25645GXDI00 (256 Mbits, 1.8 V, 200 MHz, DTR, rww)
on the nucleo_h7s3l8 board.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-05-21 17:35:06 +02:00
Fabrice DJIATSA
877b05ac5c boards: st: stm32u083c_dk: add spi3 node
- enable spi3 and usart3 nodes for  driver test purpose.
- delete usart1 node due to conflicting pins with i2c1
node
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-05-21 12:33:43 +02:00
Samuel Quiniou
13808aee26 boards: stm32h573i_dk: add touch panel support
- The stm32h573i_dk board uses a ft3267 i2c controller for the touchscreen
connected on i2c4.
  - The zephyr driver ft5336 can control it.
- Use the I2C STM32 V2 Timing calculation.

Signed-off-by: Samuel Quiniou <samuel.quiniou@rtone.fr>
2025-05-20 10:17:06 +02:00
Marek Metelski
595fa2b2be boards: openocd: Use STM32-specific configuration for ST boards
The OpenOCD STM32-specific configuration was included into the common
configuration, which was then used in board files. Follow nRF5
convention instead: use manufacturer-specific config in boards.

Also due to the fact that the include of STM32-specific config was
placed *after* board_finalize_runner_args() it didn't really work
anyways.

Signed-off-by: Marek Metelski <marek@metelski.dev>
2025-05-20 10:16:33 +02:00