MAINTAINERS | 16 ++ hw/arm/Kconfig | 13 ++ hw/arm/meson.build | 2 + hw/arm/stm32f407_soc.c | 154 +++++++++++++++++++ hw/arm/stm32f4spark.c | 48 ++++++ hw/char/Kconfig | 3 + hw/char/meson.build | 1 + hw/char/stm32f4xx_usart.c | 236 ++++++++++++++++++++++++++++++ include/hw/arm/stm32f407_soc.h | 47 ++++++ include/hw/char/stm32f4xx_usart.h | 60 ++++++++ 10 files changed, 580 insertions(+) create mode 100644 hw/arm/stm32f407_soc.c create mode 100644 hw/arm/stm32f4spark.c create mode 100644 hw/char/stm32f4xx_usart.c create mode 100644 include/hw/arm/stm32f407_soc.h create mode 100644 include/hw/char/stm32f4xx_usart.h
From: Yihao Fan <fanyihao@rt-thread.org> This patch series introduces basic support for the STM32F407 SoC and a new STM32F4spark machine in QEMU, along with a USART device model. This series includes: - A new SoC model (STM32F407) with initial integration. - A board model called STM32F4spark to instantiate and test the SoC. - A USART device implementation for STM32F4xx family. Signed-off-by: Yihao Fan <fanyihao@rt-thread.org> Yihao Fan (3): Add-the-stm32f407-SoC Add the STM32F4spark Machine Add STM32F4xx USART device model MAINTAINERS | 16 ++ hw/arm/Kconfig | 13 ++ hw/arm/meson.build | 2 + hw/arm/stm32f407_soc.c | 154 +++++++++++++++++++ hw/arm/stm32f4spark.c | 48 ++++++ hw/char/Kconfig | 3 + hw/char/meson.build | 1 + hw/char/stm32f4xx_usart.c | 236 ++++++++++++++++++++++++++++++ include/hw/arm/stm32f407_soc.h | 47 ++++++ include/hw/char/stm32f4xx_usart.h | 60 ++++++++ 10 files changed, 580 insertions(+) create mode 100644 hw/arm/stm32f407_soc.c create mode 100644 hw/arm/stm32f4spark.c create mode 100644 hw/char/stm32f4xx_usart.c create mode 100644 include/hw/arm/stm32f407_soc.h create mode 100644 include/hw/char/stm32f4xx_usart.h -- 2.43.0
On Mon, 21 Jul 2025 at 21:11, <fanyihao@rt-thread.org> wrote: > > From: Yihao Fan <fanyihao@rt-thread.org> > > This patch series introduces basic support for the STM32F407 SoC and > a new STM32F4spark machine in QEMU, along with a USART device model. > > This series includes: > - A new SoC model (STM32F407) with initial integration. > - A board model called STM32F4spark to instantiate and test the SoC. > - A USART device implementation for STM32F4xx family. > > Signed-off-by: Yihao Fan <fanyihao@rt-thread.org> > > Yihao Fan (3): > Add-the-stm32f407-SoC > Add the STM32F4spark Machine > Add STM32F4xx USART device model > > MAINTAINERS | 16 ++ > hw/arm/Kconfig | 13 ++ > hw/arm/meson.build | 2 + > hw/arm/stm32f407_soc.c | 154 +++++++++++++++++++ > hw/arm/stm32f4spark.c | 48 ++++++ > hw/char/Kconfig | 3 + > hw/char/meson.build | 1 + > hw/char/stm32f4xx_usart.c | 236 ++++++++++++++++++++++++++++++ > include/hw/arm/stm32f407_soc.h | 47 ++++++ > include/hw/char/stm32f4xx_usart.h | 60 ++++++++ For a new board model there are a couple of things we'd like to see that aren't in this patchset: (1) Documentation. This lives in docs/system/arm/. For this board you want to add it to stm32.rst. (2) A test case in tests/functional/ -- generally this is something that downloads an image file from a public stable URL, runs it in QEMU and checks for some output from the guest on the UART indicating success. Lots of examples in this directory to see how to do it. thanks -- PMM
Hi , Thanks for the review and helpful suggestions. I will update the board documentation and provide a functional test case in the next version. Best wishes, Yihao Fan 范艺豪 fanyihao@rt-thread.org Original: From:Peter Maydell <peter.maydell@linaro.org>Date:2025-08-16 01:49:37(中国 (GMT+08:00))To:fanyihao<fanyihao@rt-thread.org>Cc:qemu-devel<qemu-devel@nongnu.org>Subject:Re: [PATCH v2 0/3] Add STM32F4 support and USART device modelOn Mon, 21 Jul 2025 at 21:11, <fanyihao@rt-thread.org> wrote: > > From: Yihao Fan <fanyihao@rt-thread.org> > > This patch series introduces basic support for the STM32F407 SoC and > a new STM32F4spark machine in QEMU, along with a USART device model. > > This series includes: > - A new SoC model (STM32F407) with initial integration. > - A board model called STM32F4spark to instantiate and test the SoC. > - A USART device implementation for STM32F4xx family. > > Signed-off-by: Yihao Fan <fanyihao@rt-thread.org> > > Yihao Fan (3): > Add-the-stm32f407-SoC > Add the STM32F4spark Machine > Add STM32F4xx USART device model > > MAINTAINERS | 16 ++ > hw/arm/Kconfig | 13 ++ > hw/arm/meson.build | 2 + > hw/arm/stm32f407_soc.c | 154 +++++++++++++++++++ > hw/arm/stm32f4spark.c | 48 ++++++ > hw/char/Kconfig | 3 + > hw/char/meson.build | 1 + > hw/char/stm32f4xx_usart.c | 236 ++++++++++++++++++++++++++++++ > include/hw/arm/stm32f407_soc.h | 47 ++++++ > include/hw/char/stm32f4xx_usart.h | 60 ++++++++ For a new board model there are a couple of things we'd like to see that aren't in this patchset: (1) Documentation. This lives in docs/system/arm/. For this board you want to add it to stm32.rst. (2) A test case in tests/functional/ -- generally this is something that downloads an image file from a public stable URL, runs it in QEMU and checks for some output from the guest on the UART indicating success. Lots of examples in this directory to see how to do it. thanks -- PMM
Hi, Just a gentle ping on this patch series: [PATCH v2 0/3] Add STM32F4 support and USART device model https://patchew.org/QEMU/20250721201134.13270-1-fanyihao@rt-thread.org/ This patch adds support for the STM32F407 SoC, a new STM32F4spark board, and a USART device model. Feedback would be greatly appreciated. This patch will be applied in the /hw/arm directory. Let me know if any changes are needed or if I should rebase it on a newer tree. Best regards, Yihao Fan fanyihao@rt-thread.org Original: From:Yihao Fan <fanyihao@rt-thread.org>Date:2025-07-22 04:11:31(中国 (GMT+08:00))To:qemu-devel<qemu-devel@nongnu.org>Cc:Peter Maydell <peter.maydell@linaro.org> , Yihao Fan <fanyihao@rt-thread.org>Subject:[PATCH v2 0/3] Add STM32F4 support and USART device modelFrom: Yihao Fan <fanyihao@rt-thread.org> This patch series introduces basic support for the STM32F407 SoC and a new STM32F4spark machine in QEMU, along with a USART device model. This series includes: - A new SoC model (STM32F407) with initial integration. - A board model called STM32F4spark to instantiate and test the SoC. - A USART device implementation for STM32F4xx family. Signed-off-by: Yihao Fan <fanyihao@rt-thread.org> Yihao Fan (3): Add-the-stm32f407-SoC Add the STM32F4spark Machine Add STM32F4xx USART device model MAINTAINERS | 16 ++ hw/arm/Kconfig | 13 ++ hw/arm/meson.build | 2 + hw/arm/stm32f407_soc.c | 154 +++++++++++++++++++ hw/arm/stm32f4spark.c | 48 ++++++ hw/char/Kconfig | 3 + hw/char/meson.build | 1 + hw/char/stm32f4xx_usart.c | 236 ++++++++++++++++++++++++++++++ include/hw/arm/stm32f407_soc.h | 47 ++++++ include/hw/char/stm32f4xx_usart.h | 60 ++++++++ 10 files changed, 580 insertions(+) create mode 100644 hw/arm/stm32f407_soc.c create mode 100644 hw/arm/stm32f4spark.c create mode 100644 hw/char/stm32f4xx_usart.c create mode 100644 include/hw/arm/stm32f407_soc.h create mode 100644 include/hw/char/stm32f4xx_usart.h -- 2.43.0
On Sat, 2 Aug 2025 at 07:12, 范艺豪 <fanyihao@rt-thread.org> wrote: > > Hi, > Just a gentle ping on this patch series: > [PATCH v2 0/3] Add STM32F4 support and USART device model > https://patchew.org/QEMU/20250721201134.13270-1-fanyihao@rt-thread.org/ > > This patch adds support for the STM32F407 SoC, a new STM32F4spark board, > and a USART device model. Feedback would be greatly appreciated Hi; thanks for the ping. This series is on my list to review, but right now we are in the freeze period for the 10.1 release, so I've been concentrating on bug fix patches which are going into the release. It may be a little while before I can get to it. (Other people are of course welcome to review it instead!) thanks -- PMM
Hi, Thanks for the info. No problem at all. Happy to wait. Best wishes, — Fanyihao 在 2025-08-02 19:17:11,Peter Maydell <peter.maydell@linaro.org> 写道: On Sat, 2 Aug 2025 at 07:12, 范艺豪 <fanyihao@rt-thread.org> wrote: > > Hi, > Just a gentle ping on this patch series: > [PATCH v2 0/3] Add STM32F4 support and USART device model > https://patchew.org/QEMU/20250721201134.13270-1-fanyihao@rt-thread.org/ > > This patch adds support for the STM32F407 SoC, a new STM32F4spark board, > and a USART device model. Feedback would be greatly appreciated Hi; thanks for the ping. This series is on my list to review, but right now we are in the freeze period for the 10.1 release, so I've been concentrating on bug fix patches which are going into the release. It may be a little while before I can get to it. (Other people are of course welcome to review it instead!) thanks -- PMM
© 2016 - 2025 Red Hat, Inc.