Philippe Mathieu-Daudé
b989b89f67
hw/misc/pca9552: Trace GPIO High/Low events
Add a trivial representation of the PCA9552 GPIOs.
Example booting obmc-phosphor-image:
$ qemu-system-arm -M witherspoon-bmc -trace pca955x_gpio_status
1592689902.327837:pca955x_gpio_status pca-unspecified GPIOs 0-15 [*...............]
1592689902.329934:pca955x_gpio_status pca-unspecified GPIOs 0-15 [**..............]
1592689902.330717:pca955x_gpio_status pca-unspecified GPIOs 0-15 [***.............]
1592689902.331431:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****............]
1592689902.332163:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........*..]
1592689902.332888:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........**.]
1592689902.333629:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........***]
1592690032.793289:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........*.*]
1592690033.303163:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........***]
1592690033.812962:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........*.*]
1592690034.323234:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........***]
1592690034.832922:pca955x_gpio_status pca-unspecified GPIOs 0-15 [****.........*.*]
We notice the GPIO #14 (front-power LED) starts to blink.
This LED is described in the witherspoon device-tree [*]:
front-power {
retain-state-shutdown;
default-state = "keep";
gpios = <&pca0 14 GPIO_ACTIVE_LOW>;
};
[*] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts?id=b1f9be9392f0#n140
Suggested-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20200623072723.6324-7-f4bug@amsat.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2020-06-26 14:30:28 +01:00
..
2020-06-24 19:03:57 -04:00
2020-06-26 14:30:28 +01:00
2020-06-25 16:52:42 +01:00
2020-06-22 18:37:12 +02:00
2020-06-23 16:07:07 +02:00
2020-06-15 22:05:28 +02:00
2020-06-26 14:30:28 +01:00
2020-06-25 16:52:42 +01:00
2020-06-23 16:07:07 +02:00
2020-06-26 10:13:52 +01:00
2020-06-22 18:37:12 +02:00
2020-06-23 16:07:07 +02:00
2020-06-15 22:05:28 +02:00
2020-06-23 16:07:07 +02:00
2020-06-23 16:07:07 +02:00
2020-06-26 14:30:28 +01:00
2020-06-26 12:14:18 +01:00
2020-06-19 08:25:27 -07:00
2020-06-22 18:37:12 +02:00
2020-06-18 12:13:54 +02:00
2020-06-23 16:07:07 +02:00
2020-06-23 16:07:21 +02:00
2020-06-22 18:37:12 +02:00
2020-06-23 16:07:07 +02:00
2020-06-22 18:37:12 +02:00
2020-06-19 07:25:55 -04:00
2020-06-24 17:18:28 -04:00
2020-06-23 11:39:47 +01:00
2020-02-04 09:00:57 +01:00
2020-06-23 16:07:07 +02:00
2020-06-22 18:37:12 +02:00