[PATCH v6 0/2] Add minimal support for the B-L475E-IOT01A board

Inès Varhol posted 2 patches 10 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240108135849.351719-1-ines.varhol@telecom-paris.fr
Maintainers: Alexandre Iooss <erdnaxe@crans.org>, Peter Maydell <peter.maydell@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Arnaud Minier <arnaud.minier@telecom-paris.fr>, "Inès Varhol" <ines.varhol@telecom-paris.fr>, Alistair Francis <alistair@alistair23.me>
MAINTAINERS                             |  15 ++
configs/devices/arm-softmmu/default.mak |   1 +
docs/system/arm/b-l475e-iot01a.rst      |  46 ++++
docs/system/arm/stm32.rst               |   6 +-
docs/system/target-arm.rst              |   1 +
hw/arm/Kconfig                          |  11 +
hw/arm/b-l475e-iot01a.c                 |  72 +++++++
hw/arm/meson.build                      |   2 +
hw/arm/stm32l4x5_soc.c                  | 265 ++++++++++++++++++++++++
include/hw/arm/stm32l4x5_soc.h          |  57 +++++
10 files changed, 474 insertions(+), 2 deletions(-)
create mode 100644 docs/system/arm/b-l475e-iot01a.rst
create mode 100644 hw/arm/b-l475e-iot01a.c
create mode 100644 hw/arm/stm32l4x5_soc.c
create mode 100644 include/hw/arm/stm32l4x5_soc.h
[PATCH v6 0/2] Add minimal support for the B-L475E-IOT01A board
Posted by Inès Varhol 10 months, 3 weeks ago
This patch adds a new STM32L4x5 SoC, it is necessary to add support for
the B-L475E-IOT01A board.
The implementation is derived from the STM32F405 SoC and NetduinoPlus2
board.
The implementation contains no peripherals, only memory regions are
implemented.

Changes from v5 to v6:
- in `stm32l4x5_soc.c`: use boolean returned by `memory_region_init_rom()`
and `memory_region_init_ram()` instead of checking `errp`

Changes from v4 to v5:
- in `b-l475e-iot01a.c`: adding missing machine/SoC parentship relation
- in `b-l475e-iot01a.c`: renaming `SYSCLK_FRQ` macro
to `MAIN_SYSCLK_FREQ_HZ`
- in `b-l475e-iot01a.c`: fixing coding style issue
- in `stm32l4x5_soc.h`: removing unused imports

Changes from v3 to v4:
- adding a documentation file for the B-L475E-IOT01A board

Changes from v1 to v3:
- changing the MIT license to GPL.

Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Arnaud Minier <arnaud.minier@telecom-paris.fr>
Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>

Inès Varhol (2):
  hw/arm: Add minimal support for the STM32L4x5 SoC
  hw/arm: Add minimal support for the B-L475E-IOT01A board

 MAINTAINERS                             |  15 ++
 configs/devices/arm-softmmu/default.mak |   1 +
 docs/system/arm/b-l475e-iot01a.rst      |  46 ++++
 docs/system/arm/stm32.rst               |   6 +-
 docs/system/target-arm.rst              |   1 +
 hw/arm/Kconfig                          |  11 +
 hw/arm/b-l475e-iot01a.c                 |  72 +++++++
 hw/arm/meson.build                      |   2 +
 hw/arm/stm32l4x5_soc.c                  | 265 ++++++++++++++++++++++++
 include/hw/arm/stm32l4x5_soc.h          |  57 +++++
 10 files changed, 474 insertions(+), 2 deletions(-)
 create mode 100644 docs/system/arm/b-l475e-iot01a.rst
 create mode 100644 hw/arm/b-l475e-iot01a.c
 create mode 100644 hw/arm/stm32l4x5_soc.c
 create mode 100644 include/hw/arm/stm32l4x5_soc.h

-- 
2.43.0
Re: [PATCH v6 0/2] Add minimal support for the B-L475E-IOT01A board
Posted by Peter Maydell 10 months, 3 weeks ago
On Mon, 8 Jan 2024 at 14:00, Inès Varhol <ines.varhol@telecom-paris.fr> wrote:
>
> This patch adds a new STM32L4x5 SoC, it is necessary to add support for
> the B-L475E-IOT01A board.
> The implementation is derived from the STM32F405 SoC and NetduinoPlus2
> board.
> The implementation contains no peripherals, only memory regions are
> implemented.
>
> Changes from v5 to v6:
> - in `stm32l4x5_soc.c`: use boolean returned by `memory_region_init_rom()`
> and `memory_region_init_ram()` instead of checking `errp`
>
> Changes from v4 to v5:
> - in `b-l475e-iot01a.c`: adding missing machine/SoC parentship relation
> - in `b-l475e-iot01a.c`: renaming `SYSCLK_FRQ` macro
> to `MAIN_SYSCLK_FREQ_HZ`
> - in `b-l475e-iot01a.c`: fixing coding style issue
> - in `stm32l4x5_soc.h`: removing unused imports
>
> Changes from v3 to v4:
> - adding a documentation file for the B-L475E-IOT01A board
>
> Changes from v1 to v3:
> - changing the MIT license to GPL.
>
> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Acked-by: Alistair Francis <alistair.francis@wdc.com>
> Signed-off-by: Arnaud Minier <arnaud.minier@telecom-paris.fr>
> Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>

Applied to target-arm.next. Thanks for this contribution
and for your work iterating through the code review process!

-- PMM