All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH qemu v2 0/7] hw/arm: Add STM32L496G-DISCO QuadSPI support
@ 2026-12-01 16:16 ~mohammadodeh
  2026-09-27  7:08 ` [PATCH qemu v2 1/7] hw/block: Add Macronix MX25R6435F flash ~mohammadodeh
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: ~mohammadodeh @ 2026-12-01 16:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alistair Francis, Alexandre Iooss, Fabiano Rosas, Hanna Reitz,
	Kevin Wolf, Laurent Vivier, Paolo Bonzini, Peter Maydell,
	Pierrick Bouvier, Samuel Tardieu, Mohammad Odeh, Ramzi Qaabar,
	Sara Touqan, Sarah Younis, qemu-arm, qemu-block

Resending v2 to correct the CC list. No changes have been made to the
patches since the previous submission.

Add initial QEMU support for the STM32L496G-DISCO Discovery kit and its
MX25R6435F QuadSPI flash.

The series adds the flash model, the shared STM32L4x5 QuadSPI
controller, and the STM32L496xG SoC and board definitions.

The controller supports indirect reads and writes with a 16-byte FIFO,
abort handling, address bounds checks, undefined-length transfers,
partial register accesses, and migration state restoration.

Changes since v1 :
- Use the full mx25r6435f device name and attach the flash to the
B-L475E-IOT01A as well
- Add the STM32L496 SRAM2 alias at 0x20040000, immediately after SRAM1
- Add GPIOI and its RCC and SYSCFG wiring. Expose EXTI line 40 on the
L496 and route it to NVIC IRQ 83
- Split the board qtests into a separate patch and add tests for 1-4-4
page programming, the SRAM2 alias, GPIOI, and EXTI40
- Link to v1: https://lore.kernel.org/qemu-
devel/179449578952.8382.2790865629085512841-0@git.sr.ht/

Testing:
- Built each commit independently and checked that the machines
available at each step initialized
- Passed six STM32 qtest suites, including 25 STM32L496G-DISCO cases
- Passed the Zephyr SPI flash sample under Twister

Transfer timing, automatic polling, memory-mapped mode, DMA, DDR, SIOO,
and dual-flash operation are not implemented.

Mohammad Odeh (7):
  hw/block: Add Macronix MX25R6435F flash
  hw/ssi: Add STM32L4x5 QuadSPI controller
  hw/arm: Add STM32L496G-DISCO machine
  hw/arm: Attach QuadSPI flash to B-L475E-IOT01A
  hw/arm: Add GPIOI to the STM32L496 SoC
  hw/arm: Configure STM32L4 EXTI lines per SoC
  tests/qtest: Cover STM32L496G-DISCO hardware

 MAINTAINERS                               |   9 +
 docs/system/arm/b-l475e-iot01a.rst        |   1 +
 docs/system/arm/stm32.rst                 |   1 +
 docs/system/arm/stm32l496g-disco.rst      |  44 ++
 docs/system/target-arm.rst                |   1 +
 hw/arm/Kconfig                            |   9 +
 hw/arm/b-l475e-iot01a.c                   |  21 +
 hw/arm/meson.build                        |   1 +
 hw/arm/stm32l496g-disco.c                 |  95 +++
 hw/arm/stm32l4x5_soc.c                    |  87 ++-
 hw/block/m25p80.c                         |   5 +
 hw/block/m25p80_sfdp.c                    |  20 +
 hw/block/m25p80_sfdp.h                    |   1 +
 hw/misc/stm32l4x5_exti.c                  |  68 +-
 hw/misc/stm32l4x5_rcc.c                   |  40 +-
 hw/misc/stm32l4x5_syscfg.c                |  19 +-
 hw/ssi/Kconfig                            |   4 +
 hw/ssi/meson.build                        |   1 +
 hw/ssi/stm32l4x5_quadspi.c                | 680 ++++++++++++++++++
 include/hw/arm/stm32l4x5_soc.h            |  13 +-
 include/hw/gpio/stm32l4x5_gpio.h          |   3 +-
 include/hw/misc/stm32l4x5_exti.h          |   6 +-
 include/hw/misc/stm32l4x5_rcc.h           |   4 +
 include/hw/misc/stm32l4x5_rcc_internals.h |   9 +-
 include/hw/misc/stm32l4x5_syscfg.h        |   1 +
 include/hw/ssi/stm32l4x5_quadspi.h        |  51 ++
 tests/qtest/meson.build                   |   1 +
 tests/qtest/stm32l496g-disco-test.c       | 814 ++++++++++++++++++++++
 28 files changed, 1944 insertions(+), 65 deletions(-)
 create mode 100644 docs/system/arm/stm32l496g-disco.rst
 create mode 100644 hw/arm/stm32l496g-disco.c
 create mode 100644 hw/ssi/stm32l4x5_quadspi.c
 create mode 100644 include/hw/ssi/stm32l4x5_quadspi.h
 create mode 100644 tests/qtest/stm32l496g-disco-test.c

-- 
2.49.1


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH qemu v2 0/7] hw/arm: Add STM32L496G-DISCO QuadSPI support
@ 2026-12-01 15:31 ~mohammadodeh
  2026-09-27  7:32 ` [PATCH qemu v2 5/7] hw/arm: Add GPIOI to the STM32L496 SoC ~mohammadodeh
  0 siblings, 1 reply; 13+ messages in thread
From: ~mohammadodeh @ 2026-12-01 15:31 UTC (permalink / raw)
  To: qemu-devel
  Cc: "Alistair Francis alistair", "Kevin Wolf kwolf",
	"Hanna Reitz hreitz", "Paolo Bonzini pbonzini",
	"Peter Maydell peter.maydell",
	"Samuel Tardieu sam", "Alexandre Iooss erdnaxe",
	"Pierrick Bouvier pierrick.bouvier",
	"Mohammad Odeh mohammad.odeh",
	"Fabiano Rosas farosas", "Laurent Vivier lvivier",
	"Ramzi Qaabar qemu-arm", qemu-block

Add initial QEMU support for the STM32L496G-DISCO Discovery kit and its
MX25R6435F QuadSPI flash.

The series adds the flash model, the shared STM32L4x5 QuadSPI
controller, and the STM32L496xG SoC and board definitions.

The controller supports indirect reads and writes with a 16-byte FIFO,
abort handling, address bounds checks, undefined-length transfers,
partial register accesses, and migration state restoration.

Changes since v1 :
- Use the full mx25r6435f device name and attach the flash to the
B-L475E-IOT01A as well
- Add the STM32L496 SRAM2 alias at 0x20040000, immediately after SRAM1
- Add GPIOI and its RCC and SYSCFG wiring. Expose EXTI line 40 on the
L496 and route it to NVIC IRQ 83
- Split the board qtests into a separate patch and add tests for 1-4-4
page programming, the SRAM2 alias, GPIOI, and EXTI40
- Link to v1: https://lore.kernel.org/qemu-
devel/179449578952.8382.2790865629085512841-0@git.sr.ht/

Testing:
- Built each commit independently and checked that the machines
available at each step initialized
- Passed six STM32 qtest suites, including 25 STM32L496G-DISCO cases
- Passed the Zephyr SPI flash sample under Twister

Transfer timing, automatic polling, memory-mapped mode, DMA, DDR, SIOO,
and dual-flash operation are not implemented.

Mohammad Odeh (7):
  hw/block: Add Macronix MX25R6435F flash
  hw/ssi: Add STM32L4x5 QuadSPI controller
  hw/arm: Add STM32L496G-DISCO machine
  hw/arm: Attach QuadSPI flash to B-L475E-IOT01A
  hw/arm: Add GPIOI to the STM32L496 SoC
  hw/arm: Configure STM32L4 EXTI lines per SoC
  tests/qtest: Cover STM32L496G-DISCO hardware

 MAINTAINERS                               |   9 +
 docs/system/arm/b-l475e-iot01a.rst        |   1 +
 docs/system/arm/stm32.rst                 |   1 +
 docs/system/arm/stm32l496g-disco.rst      |  44 ++
 docs/system/target-arm.rst                |   1 +
 hw/arm/Kconfig                            |   9 +
 hw/arm/b-l475e-iot01a.c                   |  21 +
 hw/arm/meson.build                        |   1 +
 hw/arm/stm32l496g-disco.c                 |  95 +++
 hw/arm/stm32l4x5_soc.c                    |  87 ++-
 hw/block/m25p80.c                         |   5 +
 hw/block/m25p80_sfdp.c                    |  20 +
 hw/block/m25p80_sfdp.h                    |   1 +
 hw/misc/stm32l4x5_exti.c                  |  68 +-
 hw/misc/stm32l4x5_rcc.c                   |  40 +-
 hw/misc/stm32l4x5_syscfg.c                |  19 +-
 hw/ssi/Kconfig                            |   4 +
 hw/ssi/meson.build                        |   1 +
 hw/ssi/stm32l4x5_quadspi.c                | 680 ++++++++++++++++++
 include/hw/arm/stm32l4x5_soc.h            |  13 +-
 include/hw/gpio/stm32l4x5_gpio.h          |   3 +-
 include/hw/misc/stm32l4x5_exti.h          |   6 +-
 include/hw/misc/stm32l4x5_rcc.h           |   4 +
 include/hw/misc/stm32l4x5_rcc_internals.h |   9 +-
 include/hw/misc/stm32l4x5_syscfg.h        |   1 +
 include/hw/ssi/stm32l4x5_quadspi.h        |  51 ++
 tests/qtest/meson.build                   |   1 +
 tests/qtest/stm32l496g-disco-test.c       | 814 ++++++++++++++++++++++
 28 files changed, 1944 insertions(+), 65 deletions(-)
 create mode 100644 docs/system/arm/stm32l496g-disco.rst
 create mode 100644 hw/arm/stm32l496g-disco.c
 create mode 100644 hw/ssi/stm32l4x5_quadspi.c
 create mode 100644 include/hw/ssi/stm32l4x5_quadspi.h
 create mode 100644 tests/qtest/stm32l496g-disco-test.c

-- 
2.49.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-12-02 18:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 16:16 [PATCH qemu v2 0/7] hw/arm: Add STM32L496G-DISCO QuadSPI support ~mohammadodeh
2026-09-27  7:08 ` [PATCH qemu v2 1/7] hw/block: Add Macronix MX25R6435F flash ~mohammadodeh
2026-09-27  7:09 ` [PATCH qemu v2 2/7] hw/ssi: Add STM32L4x5 QuadSPI controller ~mohammadodeh
2026-09-27  7:32 ` [PATCH qemu v2 4/7] hw/arm: Attach QuadSPI flash to B-L475E-IOT01A ~mohammadodeh
2026-12-02  9:54   ` Samuel Tardieu
2026-09-27  7:32 ` [PATCH qemu v2 3/7] hw/arm: Add STM32L496G-DISCO machine ~mohammadodeh
2026-09-27  7:32 ` [PATCH qemu v2 5/7] hw/arm: Add GPIOI to the STM32L496 SoC ~mohammadodeh
2026-12-02 18:23   ` Samuel Tardieu
2026-12-02 18:34   ` Samuel Tardieu
2026-09-27  7:32 ` [PATCH qemu v2 6/7] hw/arm: Configure STM32L4 EXTI lines per SoC ~mohammadodeh
2026-12-02 18:28   ` Samuel Tardieu
2026-09-27  7:32 ` [PATCH qemu v2 7/7] tests/qtest: Cover STM32L496G-DISCO hardware ~mohammadodeh
  -- strict thread matches above, loose matches on Subject: below --
2026-12-01 15:31 [PATCH qemu v2 0/7] hw/arm: Add STM32L496G-DISCO QuadSPI support ~mohammadodeh
2026-09-27  7:32 ` [PATCH qemu v2 5/7] hw/arm: Add GPIOI to the STM32L496 SoC ~mohammadodeh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.