Skip to content

Additional NPCM7xx features, devices and tests

Havard Skinnemoen via qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 of 5 patches 1 replyIn review

Changes in v2 from the cover letter

- Dropped the timer test since it's already applied (thanks Peter).
- Watchdog reset signaling is now using GPIOs instead of a custom API (thanks Peter for suggesting, and Hao for implementing it).
- A few comment updates for the watchdog timer.
- VMState added to GPIO device.
- Missing VMstate terminator added to RNG device.
- Include order in RNG test fixed.

3 of 5 patches are in this archive. The cover letter announces 5.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Move npcm7xx_timer_reached_zero call out of npcm7xx_timer_pausehw/timer/npcm7xx_timer.c+3 -30 replies
3/5hw/misc: Add npcm7xx random number generatordocs/system/arm/nuvoton.rst hw/arm/npcm7xx.c hw/misc/meson.build +6 more+507 -21 reply
5/5hw/gpio: Add GPIO model for Nuvoton NPCM7xxdocs/system/arm/nuvoton.rst hw/arm/npcm7xx.c hw/gpio/meson.build +6 more+956 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTyrone TingPhilippe Mathieu-DaudéPeter MaydellGerd Hoffmann
SeriesR-b R-b R-b
1/5R-b
3/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] Additional NPCM7xx features, devices and tests

This is an update to the initial NPCM7xx patch series adding

- Watchdog timer support. This makes the reboot command work.
- Random Number Generator device.
- USB Host Controllers.
- GPIO Controllers.

The watchdog was implemented by my new teammate Hao Wu. Expect to see more patches from him in the near future.

This series has also been pushed to the npcm7xx-5.2-update branch of my github repository at

https://github.com/hskinnemoen/qemu

Changes since v1:

- Dropped the timer test since it's already applied (thanks Peter).
- Watchdog reset signaling is now using GPIOs instead of a custom API (thanks Peter for suggesting, and Hao for implementing it).
- A few comment updates for the watchdog timer.
- VMState added to GPIO device.
- Missing VMstate terminator added to RNG device.
- Include order in RNG test fixed.

Again, thanks a lot for reviewing!

Havard

Hao Wu (1):
hw/timer: Adding watchdog for NPCM7XX Timer.

Havard Skinnemoen (4):
Move npcm7xx_timer_reached_zero call out of npcm7xx_timer_pause hw/misc: Add npcm7xx random number generator hw/arm/npcm7xx: Add EHCI and OHCI controllers hw/gpio: Add GPIO model for Nuvoton NPCM7xx

 docs/system/arm/nuvoton.rst               |   6 +-
 hw/usb/hcd-ehci.h                         |   1 +
 include/hw/arm/npcm7xx.h                  |   8 +
 include/hw/gpio/npcm7xx_gpio.h            |  55 +++
 include/hw/misc/npcm7xx_clk.h             |   2 +
 include/hw/misc/npcm7xx_rng.h             |  34 ++
 include/hw/timer/npcm7xx_timer.h          |  48 ++-
 hw/arm/npcm7xx.c                          | 126 ++++++-
 hw/gpio/npcm7xx_gpio.c                    | 424 ++++++++++++++++++++++
 hw/misc/npcm7xx_clk.c                     |  28 ++
 hw/misc/npcm7xx_rng.c                     | 180 +++++++++
 hw/timer/npcm7xx_timer.c                  | 270 +++++++++++---
 hw/usb/hcd-ehci-sysbus.c                  |  19 +
 tests/qtest/npcm7xx_gpio-test.c           | 385 ++++++++++++++++++++
 tests/qtest/npcm7xx_rng-test.c            | 278 ++++++++++++++
 tests/qtest/npcm7xx_watchdog_timer-test.c | 313 ++++++++++++++++
 MAINTAINERS                               |   1 +
 hw/gpio/meson.build                       |   1 +
 hw/gpio/trace-events                      |   7 +
 hw/misc/meson.build                       |   1 +
 hw/misc/trace-events                      |   4 +
 tests/qtest/meson.build                   |   3 +
 22 files changed, 2133 insertions(+), 61 deletions(-)
 create mode 100644 include/hw/gpio/npcm7xx_gpio.h
 create mode 100644 include/hw/misc/npcm7xx_rng.h
 create mode 100644 hw/gpio/npcm7xx_gpio.c
 create mode 100644 hw/misc/npcm7xx_rng.c
 create mode 100644 tests/qtest/npcm7xx_gpio-test.c
 create mode 100644 tests/qtest/npcm7xx_rng-test.c
 create mode 100644 tests/qtest/npcm7xx_watchdog_timer-test.c
Signature · 1 line
2.29.0.rc1.297.gfa9743e501-goog