hw/arm: Add minimal support for the B-L475E-IOT01A board
Subsystems (2)
v2 cover hw/arm: Add minimal support for the B-L475E-IOT01A board
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 v1 to v2:
Thank you Alistair and Alex for your comments on the license. Just to be safe I changed the MIT license to GPL.
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 + hw/arm/Kconfig | 11 + hw/arm/b-l475e-iot01a.c | 79 +++++++ hw/arm/meson.build | 2 + hw/arm/stm32l4x5_soc.c | 277 ++++++++++++++++++++++++ include/hw/arm/stm32l4x5_soc.h | 68 ++++++ 7 files changed, 453 insertions(+) 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
Signature · 1 line
2.38.5
PATCH v2 1/2 hw/arm: Add minimal support for the STM32L4x5 SoC
From: Inès Varhol <[email protected]>
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.
The implementation contains no peripherals, only memory regions are implemented.
--- MAINTAINERS | 8 + hw/arm/Kconfig | 5 + hw/arm/meson.build | 1 + hw/arm/stm32l4x5_soc.c | 277 +++++++++++++++++++++++++++++++++ include/hw/arm/stm32l4x5_soc.h | 68 ++++++++ 5 files changed, 359 insertions(+) create mode 100644 hw/arm/stm32l4x5_soc.c create mode 100644 include/hw/arm/stm32l4x5_soc.h
MAINTAINERS +8 -0
@@ -1122,6 +1122,14 @@ L: [email protected] S: Maintained F: hw/arm/olimex-stm32-h405.c +STM32L4x5 SoC Family +M: Arnaud Minier <[email protected]> +M: Inès Varhol <[email protected]> +L: [email protected] +S: Maintained +F: hw/arm/stm32l4x5_soc.c +F: include/hw/arm/stm32l4x5_soc.h + SmartFusion2 M: Subbaraya Sundeep <[email protected]> M: Peter Maydell <[email protected]>
hw/arm/Kconfig +5 -0
@@ -448,6 +448,11 @@ config STM32F405_SOC select STM32F4XX_SYSCFG select STM32F4XX_EXTI +config STM32L4X5_SOC + bool + select ARM_V7M + select OR_IRQ + config XLNX_ZYNQMP_ARM bool default y if PIXMAN
hw/arm/meson.build +1 -0
@@ -42,6 +42,7 @@ arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2836.c', 'raspi.c')) arm_ss.add(when: 'CONFIG_STM32F100_SOC', if_true: files('stm32f100_soc.c')) arm_ss.add(when: 'CONFIG_STM32F205_SOC', if_true: files('stm32f205_soc.c')) arm_ss.add(when: 'CONFIG_STM32F405_SOC', if_true: files('stm32f405_soc.c')) +arm_ss.add(when: 'CONFIG_STM32L4X5_SOC', if_true: files('stm32l4x5_soc.c')) arm_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c')) arm_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal.c', 'xlnx-versal-virt.c')) arm_ss.add(when: 'CONFIG_FSL_IMX25', if_true: files('fsl-imx25.c', 'imx25_pdk.c'))
hw/arm/stm32l4x5_soc.c new file +277 -0
277 lines not on this page · raw message
include/hw/arm/stm32l4x5_soc.h new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.38.5
PATCH v2 2/2 hw/arm: Add minimal support for the B-L475E-IOT01A board
In reply to ~inesvarholFrom: Inès Varhol <[email protected]>
This commit adds a new B-L475E-IOT01A board using the STM32L475VG SoC. The implementation is derived from the Netduino Plus 2 machine. There are no peripherals implemented yet, only memory regions.
--- MAINTAINERS | 7 +++ configs/devices/arm-softmmu/default.mak | 1 + hw/arm/Kconfig | 6 ++ hw/arm/b-l475e-iot01a.c | 79 +++++++++++++++++++++++++ hw/arm/meson.build | 1 + 5 files changed, 94 insertions(+) create mode 100644 hw/arm/b-l475e-iot01a.c
MAINTAINERS +7 -0
@@ -1130,6 +1130,13 @@ S: Maintained F: hw/arm/stm32l4x5_soc.c F: include/hw/arm/stm32l4x5_soc.h +B-L475E-IOT01A IoT Node +M: Arnaud Minier <[email protected]> +M: Inès Varhol <[email protected]> +L: [email protected] +S: Maintained +F: hw/arm/b-l475e-iot01a.c + SmartFusion2 M: Subbaraya Sundeep <[email protected]> M: Peter Maydell <[email protected]>
configs/devices/arm-softmmu/default.mak +1 -0
@@ -19,6 +19,7 @@ CONFIG_ARM_VIRT=y # CONFIG_NSERIES=n # CONFIG_STELLARIS=n # CONFIG_STM32VLDISCOVERY=n +# CONFIG_B_L475E_IOT01A=n # CONFIG_REALVIEW=n # CONFIG_VERSATILE=n # CONFIG_VEXPRESS=n
hw/arm/Kconfig +6 -0
@@ -448,6 +448,12 @@ config STM32F405_SOC select STM32F4XX_SYSCFG select STM32F4XX_EXTI +config B_L475E_IOT01A + bool + default y + depends on TCG && ARM + select STM32L4X5_SOC + config STM32L4X5_SOC bool select ARM_V7M
hw/arm/b-l475e-iot01a.c new file +79 -0
79 lines not on this page · raw message
hw/arm/meson.build +1 -0
@@ -42,6 +42,7 @@ arm_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2836.c', 'raspi.c')) arm_ss.add(when: 'CONFIG_STM32F100_SOC', if_true: files('stm32f100_soc.c')) arm_ss.add(when: 'CONFIG_STM32F205_SOC', if_true: files('stm32f205_soc.c')) arm_ss.add(when: 'CONFIG_STM32F405_SOC', if_true: files('stm32f405_soc.c')) +arm_ss.add(when: 'CONFIG_B_L475E_IOT01A', if_true: files('b-l475e-iot01a.c')) arm_ss.add(when: 'CONFIG_STM32L4X5_SOC', if_true: files('stm32l4x5_soc.c')) arm_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp.c', 'xlnx-zcu102.c')) arm_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal.c', 'xlnx-versal-virt.c'))
Signature · 1 line
2.38.5
Quoted 11 lines · ~inesvarhol
From: Inès Varhol <[email protected]>
This commit adds a new B-L475E-IOT01A board using the STM32L475VG SoC. The implementation is derived from the Netduino Plus 2 machine. There are no peripherals implemented yet, only memory regions.
Reviewed-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Arnaud Minier <[email protected]>Signed-off-by Inès Varhol <[email protected]>
Hi; thanks for this patch.
hw/arm/b-l475e-iot01a.c line 5
Quoted 7 lines
+++
b/hw/arm/b-l475e-iot01a.chw/arm/b-l475e-iot01a.c new file +5
-0@@ -0,0 +1,79 @@ +/* +* B-L475E-IOT01A Discovery Kit machine +* (B-L475E-IOT01A IoT Node) +* +* SPDX-License-Identifier: GPL-2.0-or-later
This line says "this is under the GPL"...
Quoted 11 lines
hw/arm/b-l475e-iot01a.c new file +11
-0+* +* Copyright (c) 2023 Arnaud Minier <[email protected]> +* Copyright (c) 2023 Ines Varhol <[email protected]> +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +*
hw/arm/b-l475e-iot01a.c line 26
Quoted 10 lines
hw/arm/b-l475e-iot01a.c new file +10
-0+* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +* THE SOFTWARE.
...but this text is not the GPL, it is the MIT license.
hw/arm/b-l475e-iot01a.c line 33
Quoted 7 lines
hw/arm/b-l475e-iot01a.c new file +7
-0+* +* Heavily inspired by the netduinoplus2 by Alistair Francis. +* The reference used is the STMicroElectronics UM2153 User manual +* Discovery kit for IoT node, multi-channel communication with STM32L4. +* https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html#documentation +*/ +
Can you clarify which license you want to use, please? We can't take code that's confused about what license it's under.
thanks
-- PMM