Skip to content

hw/misc/pca9552: Trace LED On/Off events

Philippe Mathieu-Daudé qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v21 patch 3 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/misc/pca9552: Replace magic value by PCA9552_LED_COUNT definitionhw/misc/pca9552.c include/hw/misc/pca9552.h+2 -10 replies
2/4hw/misc/pca9552: Add a PCA955X_LED_MAX definitionhw/misc/pca9552.c+14 -00 replies
3/4hw/misc/pca9552: Trace LED On/Off eventshw/misc/pca9552.c hw/misc/trace-events include/hw/misc/pca9552.h+33 -00 replies
4/4hw/misc/pca9552: Trace LED change eventshw/misc/pca9552.c hw/misc/trace-events+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] hw/misc/pca9552: Trace LED On/Off events

This series add trace events to better display LEDs changes. This helps me to work on a generic LED device, see:
https://www.mail-archive.com/[email protected]/msg711917.html

Example when booting an obmc-phosphor-image, we can see the LED #14 (front-power LED) starting to blink.

- ASCII LED bar view:

  $ qemu-system-arm -M witherspoon-bmc -trace pca9552_leds_status
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [*...............]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [**..............]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [***.............]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****............]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........*..]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........**.]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........***]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........*.*]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........***]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........*.*]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........***]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........*.*]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........***]
  [email protected]:pca9552_leds_status 0x55dde47807c0 LEDs 0-15 [****.........*.*]

- Only display LEDs which status changes:

  $ qemu-system-arm -M witherspoon-bmc -trace pca9552_led_change
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:0 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:1 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:2 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:3 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:13 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:14 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:15 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:14 status: 1 -> 0
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:14 status: 0 -> 1
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:14 status: 1 -> 0
  [email protected]:pca9552_led_change 0x557cb6896d80 LED id:14 status: 0 -> 1

For information about how to test the obmc-phosphor-image, see:
https://www.mail-archive.com/[email protected]/msg712911.html

Supersedes: <[email protected]>

Philippe Mathieu-Daudé (4):
hw/misc/pca9552: Replace magic value by PCA9552_LED_COUNT definition hw/misc/pca9552: Add a PCA955X_LED_MAX definition hw/misc/pca9552: Trace LED On/Off events
hw/misc/pca9552: Trace LED change events

 include/hw/misc/pca9552.h |  2 ++
 hw/misc/pca9552.c         | 60 ++++++++++++++++++++++++++++++++++++++-
 hw/misc/trace-events      |  4 +++
 3 files changed, 65 insertions(+), 1 deletion(-)
Signature · 1 line
2.21.3