[RFC PATCH 0/5] hw/misc: Add LED device

Philippe Mathieu-Daudé posted 5 patches 3 years, 10 months ago
Test docker-mingw@fedora passed
Test checkpatch passed
Test asan passed
Test docker-quick@centos7 passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200609123425.6921-1-f4bug@amsat.org
There is a newer version of this series
qapi/led.json         |  47 ++++++++++++++++++
qapi/qapi-schema.json |   1 +
include/hw/misc/led.h |  44 +++++++++++++++++
hw/arm/microbit.c     |   3 ++
hw/arm/tosa.c         |   7 ++-
hw/misc/led.c         | 108 ++++++++++++++++++++++++++++++++++++++++++
MAINTAINERS           |   7 +++
hw/arm/Kconfig        |   2 +
hw/misc/Kconfig       |   3 ++
hw/misc/Makefile.objs |   1 +
hw/misc/trace-events  |   3 ++
qapi/Makefile.objs    |   2 +-
12 files changed, 223 insertions(+), 5 deletions(-)
create mode 100644 qapi/led.json
create mode 100644 include/hw/misc/led.h
create mode 100644 hw/misc/led.c
[RFC PATCH 0/5] hw/misc: Add LED device
Posted by Philippe Mathieu-Daudé 3 years, 10 months ago
Hello,

These patches are part of the GSoC unselected 'QEMU visualizer'
project.  As the AVR port is not merged, I switched to microbit
to keep working on it.

This series presents a proof of concept of LED device that can
be easily connected to a GPIO.
The LED emit QMP events, so an external visualizer can display
the LED events.

If there is no negative opinion on this series, next step will
be add Zephyr test for the microbit, then we'll work on LED
array/matrix.

Regards,

Phil.

Philippe Mathieu-Daudé (5):
  hw/misc: Add a LED device
  hw/misc/led: Add LED_STATUS_CHANGED QAPI event
  hw/misc/led: Add create_led_by_gpio_id() helper
  hw/arm/microbit: Add a fake LED to use as proof-of-concept with Zephyr
  hw/arm/tosa: Use LED device for the Bluetooth led

 qapi/led.json         |  47 ++++++++++++++++++
 qapi/qapi-schema.json |   1 +
 include/hw/misc/led.h |  44 +++++++++++++++++
 hw/arm/microbit.c     |   3 ++
 hw/arm/tosa.c         |   7 ++-
 hw/misc/led.c         | 108 ++++++++++++++++++++++++++++++++++++++++++
 MAINTAINERS           |   7 +++
 hw/arm/Kconfig        |   2 +
 hw/misc/Kconfig       |   3 ++
 hw/misc/Makefile.objs |   1 +
 hw/misc/trace-events  |   3 ++
 qapi/Makefile.objs    |   2 +-
 12 files changed, 223 insertions(+), 5 deletions(-)
 create mode 100644 qapi/led.json
 create mode 100644 include/hw/misc/led.h
 create mode 100644 hw/misc/led.c

-- 
2.21.3