[PATCH 0/4] Check clock connection between STM32L4x5 RCC and peripherals

Inès Varhol posted 4 patches 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240505140556.373711-1-ines.varhol@telecom-paris.fr
Maintainers: Arnaud Minier <arnaud.minier@telecom-paris.fr>, "Inès Varhol" <ines.varhol@telecom-paris.fr>, Peter Maydell <peter.maydell@linaro.org>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Alistair Francis <alistair@alistair23.me>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>
There is a newer version of this series
include/hw/misc/stm32l4x5_syscfg.h  |  1 +
hw/arm/stm32l4x5_soc.c              |  2 ++
hw/char/stm32l4x5_usart.c           | 12 ++++++++
hw/gpio/stm32l4x5_gpio.c            |  2 ++
hw/misc/stm32l4x5_syscfg.c          | 26 ++++++++++++++++
tests/qtest/stm32l4x5_gpio-test.c   | 39 +++++++++++++++++++++++
tests/qtest/stm32l4x5_syscfg-test.c | 38 +++++++++++++++++++++--
tests/qtest/stm32l4x5_usart-test.c  | 48 +++++++++++++++++++++++++++++
8 files changed, 166 insertions(+), 2 deletions(-)
[PATCH 0/4] Check clock connection between STM32L4x5 RCC and peripherals
Posted by Inès Varhol 2 weeks ago
Among implemented STM32L4x5 devices, USART, GPIO and SYSCFG
have a clock source, but none has a corresponding test in QEMU.

This patch makes sure that all 3 devices create a clock,
have a QOM property to access the clock frequency,
and adds QTests checking that clock enable in RCC has the
expected results.

Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>

Inès Varhol (4):
  hw/misc: Create STM32L4x5 SYSCFG clock
  hw/gpio: Handle clock migration in STM32L4x5 gpios
  hw/char: Add QOM property for STM32L4x5 USART clock frequency
  tests/qtest: Check STM32L4x5 clock connections

 include/hw/misc/stm32l4x5_syscfg.h  |  1 +
 hw/arm/stm32l4x5_soc.c              |  2 ++
 hw/char/stm32l4x5_usart.c           | 12 ++++++++
 hw/gpio/stm32l4x5_gpio.c            |  2 ++
 hw/misc/stm32l4x5_syscfg.c          | 26 ++++++++++++++++
 tests/qtest/stm32l4x5_gpio-test.c   | 39 +++++++++++++++++++++++
 tests/qtest/stm32l4x5_syscfg-test.c | 38 +++++++++++++++++++++--
 tests/qtest/stm32l4x5_usart-test.c  | 48 +++++++++++++++++++++++++++++
 8 files changed, 166 insertions(+), 2 deletions(-)

-- 
2.43.2