Adding support of ARM board B-L475E-IOT01A using STM32L475 SoC

2023-11-06 Thread Inès Varhol
, if there are other pertinent issues we should consider, we are eager to learn and adapt our approach accordingly. Thank you for your time and consideration. Best regards, Inès Varhol

[PATCH v2 3/3] tests/qtest: Add STM32L4x5 GPIO QTest testcase

2024-01-22 Thread Inès Varhol
the desired result in ODR. Acked-by: Thomas Huth Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_gpio-test.c | 520 ++ 2 files changed, 522 insertions(+), 1 deletion(-) create mode 100644 tests

[PATCH v2 0/3] Add device STM32L4x5 GPIO

2024-01-22 Thread Inès Varhol
`get_gpio_pins_to_disconnect()`, correct `stm32l4x5_gpio_init()` and initialize the clock, add a realize function - update MAINAINERS Based-on: 20240118091107.87831-1-arnaud.min...@telecom-paris.fr ([PATCH v2 0/7] Add device STM32L4x5 RCC) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès

[PATCH v2 1/3] hw/gpio: Implement STM32L4x5 GPIO

2024-01-22 Thread Inès Varhol
ns instead of 2 pins - writing to registers LCKR, AFRL, AFRH and ASCR is ineffective Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/gpio/Kconfig| 3 + hw/gpio/m

[PATCH v2 2/3] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

2024-01-22 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 3 +- hw/arm/stm32l4x5_soc.c | 79 -- include/hw/arm/stm32l4x5_soc.h | 2 + 3 files changed, 69 insertions(+), 15 deletions(-) diff --git a/hw/arm/Kconfig b/hw

Re: [PATCH v8 2/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2024-02-08 Thread Inès Varhol
Hi, > De: Philippe > Envoyé: mercredi 7 février 2024 23:02 CET >  > Hi Inès, >  > (this is now commit 52671f69f7). >  > On 9/1/24 17:06, Inès Varhol wrote: > > Tested-by: Philippe Mathieu-Daudé > > Reviewed-by: Philippe Mathieu-Daudé

[PATCH v4 3/3] tests/qtest: Add STM32L4x5 GPIO QTest testcase

2024-02-07 Thread Inès Varhol
the desired result in ODR. - `test_clock_enable()` : Checks that GPIO clock is at the right frequency after enabling it. Acked-by: Thomas Huth Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/stm32l4x5_gpio-test.c | 586 ++ tests/qtest/meson.build

[PATCH v4 0/3] Add device STM32L4x5 GPIO

2024-02-07 Thread Inès Varhol
function - update MAINAINERS Based-on: 20240130160656.113112-1-arnaud.min...@telecom-paris.fr ([PATCH v4 0/8] Add device STM32L4x5 RCC) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/gpio: Implement STM32L4x5 GPIO hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

[PATCH v4 1/3] hw/gpio: Implement STM32L4x5 GPIO

2024-02-07 Thread Inès Varhol
ns instead of 2 pins - writing to registers LCKR, AFRL, AFRH and ASCR is ineffective Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2 +- include/hw/gpio/stm32l4x5_gpio.h | 70 + hw/gpio/stm32l

[PATCH v4 2/3] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

2024-02-07 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- include/hw/arm/stm32l4x5_soc.h | 2 + hw/arm/stm32l4x5_soc.c | 78 -- hw/arm/Kconfig | 3 +- 3 files changed, 68 insertions(+), 15 deletions(-) diff --git a/include/hw/arm

[PATCH 0/2] hw/arm: Fix STM32L4x5 EXTI to CPU irq fan-in connections

2024-02-12 Thread Inès Varhol
even before the fix : when any fan-in input line is raised, the output is raised too. Fixes: 52671f69f7a4 ("[PATCH v8 0/3] Add device STM32L4x5 EXTI") Signed-off-by: Inès Varhol Inès Varhol (2): hw/arm: Use TYPE_OR_IRQ when connecting STM32L4x5 EXTI fan-in IRQs tests/qtest: Check tha

[PATCH 2/2] tests/qtest: Check that EXTI fan-in irqs are correctly connected

2024-02-12 Thread Inès Varhol
This commit adds a QTest that verifies each input line of a specific EXTI OR gate can influence the output line. Signed-off-by: Inès Varhol --- tests/qtest/stm32l4x5_exti-test.c | 97 +++ 1 file changed, 97 insertions(+) diff --git a/tests/qtest/stm32l4x5_exti

[PATCH 1/2] hw/arm: Use TYPE_OR_IRQ when connecting STM32L4x5 EXTI fan-in IRQs

2024-02-12 Thread Inès Varhol
Fixes: 52671f69f7a4 ("[PATCH v8 0/3] Add device STM32L4x5 EXTI") Signed-off-by: Inès Varhol --- hw/arm/stm32l4x5_soc.c | 69 -- 1 file changed, 59 insertions(+), 10 deletions(-) diff --git a/hw/arm/stm32l4x5_soc.c b/hw/arm/stm32l4x5_soc.c index

[PATCH v2 2/2] tests/qtest: Check that EXTI fan-in irqs are correctly connected

2024-02-20 Thread Inès Varhol
This commit adds a QTest that verifies each input line of a specific EXTI OR gate can influence the output line. Signed-off-by: Inès Varhol Reviewed-by: Peter Maydell --- Hello, I expected this test to fail after switching the two patch commits, but it didn't. I'm mentionning it in case

[PATCH v2 0/2] hw/arm: Fix STM32L4x5 EXTI to CPU irq fan-in connections

2024-02-20 Thread Inès Varhol
: 52671f69f7a4 ("[PATCH v8 0/3] Add device STM32L4x5 EXTI") Signed-off-by: Inès Varhol Inès Varhol (2): hw/arm: Use TYPE_OR_IRQ when connecting STM32L4x5 EXTI fan-in IRQs tests/qtest: Check that EXTI fan-in irqs are correctly connected include/hw/arm/stm32l4x5_soc.h| 4

[PATCH v2 1/2] hw/arm: Use TYPE_OR_IRQ when connecting STM32L4x5 EXTI fan-in IRQs

2024-02-20 Thread Inès Varhol
Fixes: 52671f69f7a4 ("[PATCH v8 0/3] Add device STM32L4x5 EXTI") Signed-off-by: Inès Varhol --- include/hw/arm/stm32l4x5_soc.h | 4 ++ hw/arm/stm32l4x5_soc.c | 80 +- 2 files changed, 74 insertions(+), 10 deletions(-) diff --git a/incl

Re: [PATCH 2/3] hw/arm : Connect DM163 to STM32L4x5

2024-02-07 Thread Inès Varhol
Hello ! > De: "Philippe Mathieu-Daudé" > Envoyé: Lundi 5 Février 2024 14:46:58 > > Hi Inès, > > On 26/1/24 20:31, Inès Varhol wrote: > > Signed-off-by: Arnaud Minier > > Signed-off-by: Inès Varhol > > --- > > hw/arm/Kconfig

Re: [PATCH 0/3] Add device DM163 (led driver, matrix colors shield & display)

2024-02-07 Thread Inès Varhol
Hello, > De: "Philippe Mathieu-Daudé" > Envoyé: Lundi 5 Février 2024 15:03:59 > > Hi Inès, > > On 26/1/24 20:31, Inès Varhol wrote: > > This device implements the IM120417002 colors shield v1.1 for Arduino > > (which relies on the DM163 8x3-channel led

[PATCH v5 0/3] Add device STM32L4x5 EXTI

2023-12-28 Thread Inès Varhol
the `impl` and `valid` field of the exti's `MemoryRegionOps` - fix invalid test caused by a last minute change Based-on: 20231221213838.54944-1-ines.var...@telecom-paris.fr ([PATCH v4 0/2] Add minimal support for the B-L475E-IOT01A board) Inès Varhol (3): hw/misc: Implement STM32L4x5 EXTI tests

[PATCH v5 3/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2023-12-28 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 56 -- include/hw/arm/stm32l4x5_soc.h | 3 ++ 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/hw/arm/Kconfig b/hw

[PATCH v5 2/3] tests/qtest: Add STM32L4x5 EXTI QTest testcase

2023-12-28 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 5 + tests/qtest/stm32l4x5_exti-test.c | 596 ++ 2 files changed, 601 insertions(+) create mode 100644 tests/qtest/stm32l4x5_exti-test.c diff --git a/tests/qtest

[PATCH v5 1/3] hw/misc: Implement STM32L4x5 EXTI

2023-12-28 Thread Inès Varhol
Although very similar to the STM32F4xx EXTI, STM32L4x5 EXTI generates more than 32 event/interrupt requests and thus uses more registers than STM32F4xx EXTI which generates 23 event/interrupt requests. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e

[PATCH v4 3/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2023-12-28 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 56 -- include/hw/arm/stm32l4x5_soc.h | 3 ++ 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/hw/arm/Kconfig b/hw

[PATCH v4 1/3] hw/misc: Implement STM32L4x5 EXTI

2023-12-28 Thread Inès Varhol
Although very similar to the STM32F4xx EXTI, STM32L4x5 EXTI generates more than 32 event/interrupt requests and thus uses more registers than STM32F4xx EXTI which generates 23 event/interrupt requests. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/misc/Kconfig

[PATCH v4 2/3] tests/qtest: Add STM32L4x5 EXTI QTest testcase

2023-12-28 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 5 + tests/qtest/stm32l4x5_exti-test.c | 596 ++ 2 files changed, 601 insertions(+) create mode 100644 tests/qtest/stm32l4x5_exti-test.c diff --git a/tests/qtest

[PATCH v4 0/3] Add device STM32L4x5 EXTI

2023-12-28 Thread Inès Varhol
([PATCH v4 0/2] Add minimal support for the B-L475E-IOT01A board) Inès Varhol (3): hw/misc: Implement STM32L4x5 EXTI tests/qtest: Add STM32L4x5 EXTI QTest testcase hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC hw/arm/Kconfig| 1 + hw/arm/stm32l4x5_soc.c| 56

[PATCH v4 1/2] hw/arm: Add minimal support for the STM32L4x5 SoC

2023-12-21 Thread Inès Varhol
Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 8 + hw/arm/Kconfig | 5 + hw/arm/meson.build | 1 + hw/arm/stm32l4x5_soc.c | 268 + include/hw/arm/stm32l4x5_soc.h | 59 5 files changed, 341

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

2023-12-21 Thread Inès Varhol
a documentation for the B-L475E-IOT01A board Changes from v1 to v3: - changing the MIT license to GPL. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (2): hw/arm: Add minimal support for the STM32L4x5 SoC hw/arm: Add minimal support

[PATCH v4 2/2] hw/arm: Add minimal support for the B-L475E-IOT01A board

2023-12-21 Thread Inès Varhol
-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS | 7 +++ 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

[PATCH v3 1/3] hw/misc: Implement STM32L4x5 SYSCFG

2023-12-29 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/misc/Kconfig| 3 + hw/misc/meson.build| 1 + hw/misc/stm32l4x5_syscfg.c | 265 + hw/misc/trace-events

[PATCH v3 2/3] tests/qtest: Add STM32L4x5 SYSCFG QTest testcase

2023-12-29 Thread Inès Varhol
Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_syscfg-test.c | 408 2 files changed, 410 insertions(+), 1 deletion(-) create mode 100644 tests/qtest

[PATCH v3 3/3] hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoC

2023-12-29 Thread Inès Varhol
The SYSCFG input GPIOs aren't connected yet. When the STM32L4x5 GPIO device will be implemented, its output GPIOs will be connected to the SYSCFG input GPIOs. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 23

[PATCH v3 0/3] Add device STM32L4x5 SYSCFG

2023-12-29 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/misc: Implement STM32L4x5 SYSCFG tests/qtest: Add STM32L4x5 SYSCFG QTest testcase hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoC docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/arm/Kconfig

[PATCH v5 2/2] hw/arm: Add minimal support for the B-L475E-IOT01A board

2024-01-06 Thread Inès Varhol
Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS | 7 +++ configs/devices/arm-softmmu/default.mak | 1 + docs/system/arm/b-l475e-iot01a.rst | 46 docs/system/arm/stm32.rst

[PATCH v5 1/2] hw/arm: Add minimal support for the STM32L4x5 SoC

2024-01-06 Thread Inès Varhol
-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 8 + hw/arm/Kconfig | 5 + hw/arm/meson.build | 1 + hw/arm/stm32l4x5_soc.c | 268 + include

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

2024-01-06 Thread Inès Varhol
-L475E-IOT01A board Changes from v1 to v3: - changing the MIT license to GPL. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (2): hw/arm: Add minimal support for the STM32L4x5

[PATCH v6 3/3] tests/qtest: Add STM32L4x5 EXTI QTest testcase

2024-01-08 Thread Inès Varhol
Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 5 + tests/qtest/stm32l4x5_exti-test.c | 590 ++ 2 files changed, 595 insertions(+) create mode 100644 tests/qtest/stm32l4x5_exti-test.c

[PATCH v6 2/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2024-01-08 Thread Inès Varhol
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 52 +- include/hw/arm

[PATCH v6 1/3] hw/misc: Implement STM32L4x5 EXTI

2024-01-08 Thread Inès Varhol
Although very similar to the STM32F4xx EXTI, STM32L4x5 EXTI generates more than 32 event/interrupt requests and thus uses more registers than STM32F4xx EXTI which generates 23 event/interrupt requests. Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol

[PATCH v6 0/3] Add device STM32L4x5 EXTI

2024-01-08 Thread Inès Varhol
` field of the exti's `MemoryRegionOps` - fix invalid test caused by a last minute change Based-on: 20240108135849.351719-1-ines.var...@telecom-paris.fr ([PATCH v6 0/2] Add minimal support for the B-L475E-IOT01A board) Inès Varhol (3): hw/misc: Implement STM32L4x5 EXTI hw/arm: Connect STM32L4x5

[RFC 3/3] tests/qtest: Add STM32L4x5 GPIO QTest testcase

2024-01-12 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_gpio-test.c | 319 ++ 2 files changed, 321 insertions(+), 1 deletion(-) create mode 100644 tests/qtest/stm32l4x5_gpio-test.c diff --git

[RFC 0/3] Add device STM32L4x5 GPIO

2024-01-12 Thread Inès Varhol
GPIO pin %zu short circuited\n", i); } ``` Based-on: 20240109194438.70934-1-ines.var...@telecom-paris.fr ([PATCH v4 0/3] Add device STM32L4x5 SYSCFG) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/gpio: Implement STM32L4x5 GPIO hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

[RFC 1/3] hw/gpio: Implement STM32L4x5 GPIO

2024-01-12 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/gpio/Kconfig| 3 + hw/gpio/meson.build| 1 + hw/gpio/stm32l4x5_gpio.c | 520 + hw/gpio/trace-events

[RFC 2/3] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

2024-01-12 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 3 +- hw/arm/stm32l4x5_soc.c | 62 +++--- include/hw/arm/stm32l4x5_soc.h | 9 + 3 files changed, 60 insertions(+), 14 deletions(-) diff --git a/hw/arm/Kconfig

[PATCH v7 1/3] hw/misc: Implement STM32L4x5 EXTI

2024-01-09 Thread Inès Varhol
Although very similar to the STM32F4xx EXTI, STM32L4x5 EXTI generates more than 32 event/interrupt requests and thus uses more registers than STM32F4xx EXTI which generates 23 event/interrupt requests. Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs

[PATCH v7 0/3] Add device STM32L4x5 EXTI

2024-01-09 Thread Inès Varhol
by a last minute change Based-on: 20231221213838.54944-1-ines.var...@telecom-paris.fr ([PATCH v4 0/2] Add minimal support for the B-L475E-IOT01A board) Inès Varhol (3): hw/misc: Implement STM32L4x5 EXTI hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC tests/qtest: Add STM32L4x5 EXTI QTest testcase

[PATCH v7 2/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2024-01-09 Thread Inès Varhol
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 52 +- include/hw/arm

[PATCH v7 3/3] tests/qtest: Add STM32L4x5 EXTI QTest testcase

2024-01-09 Thread Inès Varhol
Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 5 + tests/qtest/stm32l4x5_exti-test.c | 524 ++ 2 files changed, 529 insertions(+) create mode 100644

[PATCH v8 1/3] hw/misc: Implement STM32L4x5 EXTI

2024-01-09 Thread Inès Varhol
Although very similar to the STM32F4xx EXTI, STM32L4x5 EXTI generates more than 32 event/interrupt requests and thus uses more registers than STM32F4xx EXTI which generates 23 event/interrupt requests. Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs

[PATCH v8 3/3] tests/qtest: Add STM32L4x5 EXTI QTest testcase

2024-01-09 Thread Inès Varhol
Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 5 + tests/qtest/stm32l4x5_exti-test.c | 524 ++ 2 files changed, 529 insertions(+) create mode 100644

[PATCH v8 2/3] hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC

2024-01-09 Thread Inès Varhol
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 52 +- include/hw/arm

[PATCH v8 0/3] Add device STM32L4x5 EXTI

2024-01-09 Thread Inès Varhol
minute change Based-on: 20240108135849.351719-1-ines.var...@telecom-paris.fr ([PATCH v6 0/2] Add minimal support for the B-L475E-IOT01A board) Inès Varhol (3): hw/misc: Implement STM32L4x5 EXTI hw/arm: Connect STM32L4x5 EXTI to STM32L4x5 SoC tests/qtest: Add STM32L4x5 EXTI QTest testcase doc

[PATCH v4 2/3] hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoC

2024-01-09 Thread Inès Varhol
The SYSCFG input GPIOs aren't connected yet. When the STM32L4x5 GPIO device will be implemented, its output GPIOs will be connected to the SYSCFG input GPIOs. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw

[PATCH v4 3/3] tests/qtest: Add STM32L4x5 SYSCFG QTest testcase

2024-01-09 Thread Inès Varhol
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_syscfg-test.c | 331 2 files changed

[PATCH v4 0/3] Add device STM32L4x5 SYSCFG

2024-01-09 Thread Inès Varhol
Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/misc: Implement STM32L4x5 SYSCFG hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoC tests/qtest: Add STM32L4x5 SYSCFG QTest testcase docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/arm/Kconfig | 1 + hw/arm

[PATCH v4 1/3] hw/misc: Implement STM32L4x5 SYSCFG

2024-01-09 Thread Inès Varhol
Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/misc/Kconfig| 3 + hw/misc/meson.build| 1 + hw/misc/stm32l4x5_syscfg.c | 266 + hw

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

2024-01-08 Thread Inès Varhol
Mathieu-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS | 7 +++ configs/devices/arm-softmmu/default.mak | 1 + docs/system/arm/b-l475e-iot01a.rst | 46 docs/system/arm/stm32.rst

[PATCH v6 1/2] hw/arm: Add minimal support for the STM32L4x5 SoC

2024-01-08 Thread Inès Varhol
-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 8 + hw/arm/Kconfig | 5 + hw/arm/meson.build | 1 + hw/arm/stm32l4x5_soc.c | 265 + include

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

2024-01-08 Thread Inès Varhol
-Daudé Acked-by: Alistair Francis Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol 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

[PATCH 0/3] Add device DM163 (led driver, matrix colors shield & display)

2024-01-26 Thread Inès Varhol
4x5 GPIO) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/display : Add device DM163 hw/arm : Connect DM163 to STM32L4x5 tests/qtest : Add testcase for DM163 hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 55 +- hw/display/Kcon

[PATCH 2/3] hw/arm : Connect DM163 to STM32L4x5

2024-01-26 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 1 + hw/arm/stm32l4x5_soc.c | 55 +- include/hw/arm/stm32l4x5_soc.h | 3 ++ 3 files changed, 58 insertions(+), 1 deletion(-) diff --git a/hw/arm/Kconfig b/hw

[PATCH 3/3] tests/qtest : Add testcase for DM163

2024-01-26 Thread Inès Varhol
device. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/dm163-test.c | 192 +++ tests/qtest/meson.build | 1 + 2 files changed, 193 insertions(+) create mode 100644 tests/qtest/dm163-test.c diff --git a/tests/qtest/dm163-test.c b/test

[PATCH 1/3] hw/display : Add device DM163

2024-01-26 Thread Inès Varhol
Signed-off-by: Inès Varhol --- hw/display/Kconfig | 3 + hw/display/dm163.c | 307 + hw/display/meson.build | 1 + hw/display/trace-events| 13 ++ include/hw/display/dm163.h | 57 +++ 5 files changed, 381 insertions(+) create

[PATCH 0/3] Add device STM32L4x5 GPIO

2024-01-22 Thread Inès Varhol
-on: 20240118091107.87831-1-arnaud.min...@telecom-paris.fr ([PATCH v2 0/7] Add device STM32L4x5 RCC) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/gpio: Implement STM32L4x5 GPIO hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC tests/qtest: Add STM32L4x5 GPIO QTest

[PATCH 1/3] hw/gpio: Implement STM32L4x5 GPIO

2024-01-22 Thread Inès Varhol
ns instead of 2 pins - writing to registers LCKR, AFRL, AFRH and ASCR is ineffective Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/gpio/Kconfig| 3 + hw/gpio/m

[PATCH 2/3] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

2024-01-22 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 3 +- hw/arm/stm32l4x5_soc.c | 67 +++--- include/hw/arm/stm32l4x5_soc.h | 2 + 3 files changed, 58 insertions(+), 14 deletions(-) diff --git a/hw/arm/Kconfig b/hw

[PATCH 3/3] tests/qtest: Add STM32L4x5 GPIO QTest testcase

2024-01-22 Thread Inès Varhol
the desired result in ODR. Acked-by: Thomas Huth Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_gpio-test.c | 526 ++ 2 files changed, 528 insertions(+), 1 deletion(-) create mode 100644 tests

[PATCH v3 3/3] tests/qtest: Add STM32L4x5 GPIO QTest testcase

2024-01-23 Thread Inès Varhol
the desired result in ODR. - `test_clock_enable()` : Checks that GPIO clock is at the right frequency after enabling it. Acked-by: Thomas Huth Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/meson.build | 3 +- tests/qtest/stm32l4x5_gpio-test.c | 586

[PATCH v3 1/3] hw/gpio: Implement STM32L4x5 GPIO

2024-01-23 Thread Inès Varhol
ns instead of 2 pins - writing to registers LCKR, AFRL, AFRH and ASCR is ineffective Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/gpio/Kconfig| 3 + hw/gpio/m

[PATCH v3 0/3] Add device STM32L4x5 GPIO

2024-01-23 Thread Inès Varhol
Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/gpio: Implement STM32L4x5 GPIO hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC tests/qtest: Add STM32L4x5 GPIO QTest testcase MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2 +- hw/arm/Kconfig

[PATCH v3 2/3] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

2024-01-23 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/Kconfig | 3 +- hw/arm/stm32l4x5_soc.c | 78 -- include/hw/arm/stm32l4x5_soc.h | 2 + 3 files changed, 68 insertions(+), 15 deletions(-) diff --git a/hw/arm/Kconfig b/hw

[PATCH v5 0/3] Add device STM32L4x5 GPIO

2024-02-23 Thread Inès Varhol
-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (3): hw/gpio: Implement STM32L4x5 GPIO hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC tests/qtest: Add STM32L4x5 GPIO QTest testcase MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2

[PATCH v5 1/3] hw/gpio: Implement STM32L4x5 GPIO

2024-02-23 Thread Inès Varhol
ns instead of 2 pins - writing to registers LCKR, AFRL, AFRH and ASCR is ineffective Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- MAINTAINERS| 1 + docs/system/arm/b-l475e-iot01a.rst | 2 +- include/hw/gpio/stm32l

[PATCH v5 3/3] tests/qtest: Add STM32L4x5 GPIO QTest testcase

2024-02-23 Thread Inès Varhol
the desired result in ODR. - `test_clock_enable()` : Checks that GPIO clock is at the right frequency after enabling it. Acked-by: Thomas Huth Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/stm32l4x5_gpio-test.c | 586 ++ tests/qtest/meson.build

[PATCH v5 2/3] hw/arm: Connect STM32L4x5 GPIO to STM32L4x5 SoC

2024-02-23 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- include/hw/arm/stm32l4x5_soc.h | 2 + hw/arm/stm32l4x5_soc.c | 68 +++--- hw/arm/Kconfig | 3 +- 3 files changed, 58 insertions(+), 15 deletions

[PATCH] hw/misc : Correct 5 spaces indents in stm32l4x5_exti

2024-04-21 Thread Inès Varhol
Signed-off-by: Inès Varhol --- hw/misc/stm32l4x5_exti.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/misc/stm32l4x5_exti.c b/hw/misc/stm32l4x5_exti.c index 9fd859160d..5c55ee4268 100644 --- a/hw/misc/stm32l4x5_exti.c +++ b/hw/misc/stm32l4x5_exti.c @@ -59,22

[PATCH v5 4/5] hw/arm : Connect DM163 to B-L475E-IOT01A

2024-04-21 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/b-l475e-iot01a.c | 59 +++-- hw/arm/Kconfig | 1 + 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/hw/arm/b-l475e-iot01a.c b/hw

[PATCH v5 3/5] hw/arm : Create Bl475eMachineState

2024-04-21 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/b-l475e-iot01a.c | 46 - 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/hw/arm/b-l475e-iot01a.c b/hw/arm/b-l475e-iot01a.c index

[PATCH v5 2/5] hw/arm : Pass STM32L4x5 SYSCFG gpios to STM32L4x5 SoC

2024-04-21 Thread Inès Varhol
Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/stm32l4x5_soc.c | 6 -- tests/qtest/stm32l4x5_gpio-test.c | 13 - tests/qtest/stm32l4x5_syscfg-test.c | 17 ++--- 3 files changed, 22 insertions(+), 14 deletions(-) diff

[PATCH v5 0/5] Add device DM163 (led driver, matrix colors shield & display)

2024-04-21 Thread Inès Varhol
163 test to ARM & DM163 availability - using `object_class_by_name()` to check for DM163 presence at run-time - exporting SYSCFG inputs to the SoC (and adapting tests accordingly) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (5): hw/display : Add device DM163 hw/arm

[PATCH v5 1/5] hw/display : Add device DM163

2024-04-21 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e-iot01a.rst | 3 +- include/hw/display/dm163.h | 59 + hw/display/dm163.c | 334 + hw/display/Kconfig | 3 + hw/display/meson.build

[PATCH v5 5/5] tests/qtest : Add testcase for DM163

2024-04-21 Thread Inès Varhol
device. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Acked-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé --- tests/qtest/dm163-test.c | 194 +++ tests/qtest/meson.build | 2 + 2 files changed, 196 insertions(+) create mode 100644 tests/qtes

[PATCH v4 3/5] hw/arm : Create Bl475eMachineState

2024-04-14 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/b-l475e-iot01a.c | 44 + 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/hw/arm/b-l475e-iot01a.c b/hw/arm/b-l475e-iot01a.c index d862aa43fc..2b570b3e09 100644 --- a/hw/arm

[PATCH v4 1/5] hw/display : Add device DM163

2024-04-14 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- docs/system/arm/b-l475e-iot01a.rst | 3 +- include/hw/display/dm163.h | 58 + hw/display/dm163.c | 333 + hw/display/Kconfig | 3 + hw/display/meson.build

[PATCH v4 0/5] Add device DM163 (led driver, matrix colors shield & display)

2024-04-14 Thread Inès Varhol
; DM163 availability - using `object_class_by_name()` to check for DM163 presence at run-time - exporting SYSCFG inputs to the SoC (and adapting tests accordingly) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Inès Varhol (5): hw/display : Add device DM163 hw/arm : Pass STM32L4x5 SYSCF

[PATCH v4 4/5] hw/arm : Connect DM163 to B-L475E-IOT01A

2024-04-14 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- hw/arm/b-l475e-iot01a.c | 59 +++-- hw/arm/Kconfig | 1 + 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/hw/arm/b-l475e-iot01a.c b/hw/arm/b-l475e-iot01a.c index 2b570b3e09

[PATCH v4 5/5] tests/qtest : Add testcase for DM163

2024-04-14 Thread Inès Varhol
device. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol --- tests/qtest/dm163-test.c | 192 +++ tests/qtest/meson.build | 5 + 2 files changed, 197 insertions(+) create mode 100644 tests/qtest/dm163-test.c diff --git a/tests/qtest/dm163-test.c b/test

[PATCH v4 2/5] hw/arm : Pass STM32L4x5 SYSCFG gpios to STM32L4x5 SoC

2024-04-14 Thread Inès Varhol
Minier Signed-off-by: Inès Varhol --- hw/arm/stm32l4x5_soc.c | 6 -- tests/qtest/stm32l4x5_gpio-test.c | 12 +++- tests/qtest/stm32l4x5_syscfg-test.c | 16 +--- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/hw/arm/stm32l4x5_soc.c b/hw/arm

[PATCH] tests/qtest : Use `g_assert_cmphex` instead of `g_assert_cmpuint`

2024-04-14 Thread Inès Varhol
The messages for STM32L4x5 tests will be easier to understand with `g_assert_cmphex` since the comparisions were made with hexadecimal numbers. Signed-off-by: Inès Varhol --- tests/qtest/stm32l4x5_exti-test.c | 138 ++-- tests/qtest/stm32l4x5_syscfg-test.c | 74

Re: [PATCH] tests/qtest : Use `g_assert_cmphex` instead of `g_assert_cmpuint`

2024-04-14 Thread Inès Varhol
- Le 14 Avr 24, à 18:19, Philippe Mathieu-Daudé phi...@linaro.org a écrit : > Hi Inès, Hello Philippe ! > > On 14/4/24 15:24, Inès Varhol wrote: >> The messages for STM32L4x5 tests will be easier to understand with >> `g_assert_cmphex` since the comparisions were

[PATCH v2] tests/qtest : Use `g_assert_cmphex` instead of `g_assert_cmpuint`

2024-04-14 Thread Inès Varhol
The messages for assertions using hexadecimal numbers will be easier to understand with `g_assert_cmphex`. Cases changed : "cmpuint.*0x", "cmpuint.*<<" Signed-off-by: Inès Varhol --- tests/qtest/aspeed_fsi-test.c | 20 ++-- tests/qtest/cmsdk-apb-dualtimer-te

[PATCH v6 4/5] hw/arm : Connect DM163 to B-L475E-IOT01A

2024-04-24 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/b-l475e-iot01a.c | 59 +++-- hw/arm/Kconfig | 1 + 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/hw/arm/b-l475e-iot01a.c b/hw

[PATCH v6 0/5] Add device DM163 (led driver, matrix colors shield & display)

2024-04-24 Thread Inès Varhol
sts accordingly) - restricting DM163 test to ARM & DM163 availability - using `object_class_by_name()` to check for DM163 presence at run-time - exporting SYSCFG inputs to the SoC (and adapting tests accordingly) Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé

[PATCH v6 5/5] tests/qtest : Add testcase for DM163

2024-04-24 Thread Inès Varhol
device. Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Acked-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé --- tests/qtest/dm163-test.c | 194 +++ tests/qtest/meson.build | 2 + 2 files changed, 196 insertions(+) create mode 100644 tests/qtes

[PATCH v6 3/5] hw/arm : Create Bl475eMachineState

2024-04-24 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/b-l475e-iot01a.c | 46 - 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/hw/arm/b-l475e-iot01a.c b/hw/arm/b-l475e-iot01a.c index

[PATCH v6 1/5] hw/display : Add device DM163

2024-04-24 Thread Inès Varhol
Signed-off-by: Arnaud Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- docs/system/arm/b-l475e-iot01a.rst | 3 +- include/hw/display/dm163.h | 59 + hw/display/dm163.c | 349 + hw/display/Kconfig

[PATCH v6 2/5] hw/arm : Pass STM32L4x5 SYSCFG gpios to STM32L4x5 SoC

2024-04-24 Thread Inès Varhol
Minier Signed-off-by: Inès Varhol Reviewed-by: Philippe Mathieu-Daudé --- hw/arm/stm32l4x5_soc.c | 6 -- tests/qtest/stm32l4x5_gpio-test.c | 13 - tests/qtest/stm32l4x5_syscfg-test.c | 17 ++--- 3 files changed, 22 insertions(+), 14 deletions(-) diff

[PATCH 1/3] hw/misc: In STM32L4x5 EXTI, consolidate 2 constants

2024-05-12 Thread Inès Varhol
constants `EXTI_NUM_INTERRUPT_OUT_LINES` (40) and `EXTI_NUM_GPIO_EVENT_IN_LINES` (16) into `EXTI_NUM_LINES` (40). Signed-off-by: Inès Varhol --- include/hw/misc/stm32l4x5_exti.h | 4 ++-- hw/misc/stm32l4x5_exti.c | 6 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git

[PATCH 2/3] hw/misc: In STM32L4x5 EXTI, handle direct line interrupts

2024-05-12 Thread Inès Varhol
interrupts (interrupts without configurable edge), as well as a comment that will be useful to connect other devices to the EXTI. Signed-off-by: Inès Varhol --- hw/misc/stm32l4x5_exti.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/hw/misc/stm32l4x5_exti.c

[PATCH 3/3] hw/arm: In STM32L4x5 SOC, connect USART devices to EXTI

2024-05-12 Thread Inès Varhol
-test.c) checks that USART1_IRQ in the CPU is pending when expected so it confirms that the connection through the EXTI still works. Signed-off-by: Inès Varhol --- hw/arm/stm32l4x5_soc.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/hw/arm

  1   2   >