[PATCH v2 3/3] hw/arm/aspeed: g220a: Add a latching switch device

2022-09-20 Thread Jian Zhang
: Up/On ~# ipmitool power status Chassis Power is on ~# ipmitool power off Chassis Power Control: Down/Off ~# ipmitool power status Chassis Power is off Signed-off-by: Jian Zhang --- hw/arm/Kconfig | 1 + hw/arm/aspeed.c | 20 2 files changed, 21 insertions(+) diff --git

[PATCH v2 2/3] hw/gpio/aspeed_gpio: Add gpios in/out init

2022-09-20 Thread Jian Zhang
to wire up the GPIO lines; usually the return value * will be passed to qdev_connect_gpio_out() or a similar function to * connect another device's output GPIO line to this input. ``` Signed-off-by: Jian Zhang --- hw/gpio/aspeed_gpio.c | 17 + 1 file changed, 17 insertions(+)

[PATCH v2 1/3] hw/misc/latching_switch: Add a simple latching_switch device

2022-09-20 Thread Jian Zhang
` and `output`. The `state` property is the initial state of the switch, and the `trigger-edge` property is the edge that will trigger the switch state to be toggled, the value can be `rising`, `falling` or `both`. Signed-off-by: Jian Zhang --- MAINTAINERS | 2 + hw/misc/Kconfig

[PATCH v2 0/3] Add a simple latching_switch

2022-09-20 Thread Jian Zhang
` to `latching-switch` - Add `trigger-edge` property - Add `state` property - Using anonymous gpio - Rename power button to input, and power good to output - Reorder the patchset - Rebase to latest master Jian Zhang (3): hw/misc/latching_switch: Add a simple latching_switch device hw/gpio/aspeed_gpio

[PATCH 3/3] hw/arm/aspeed: g220a: Add host-power device

2022-09-19 Thread Jian Zhang
Power Control: Down/Off ~# ipmitool power status Chassis Power is off Signed-off-by: Jian Zhang --- hw/arm/aspeed.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 952fa11ca2..80a98b8d74 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm

[PATCH 2/3] hw/misc/host_power: Add a simple host power device

2022-09-19 Thread Jian Zhang
r-good" gpio. Signed-off-by: Jian Zhang --- MAINTAINERS | 2 + hw/arm/Kconfig | 1 + hw/misc/Kconfig | 3 + hw/misc/host_power.c | 105 +++ hw/misc/meson.build | 1 + include/hw/misc/host_power.h

[PATCH 1/3] hw/gpio/aspeed_gpio: Add gpios in/out init

2022-09-19 Thread Jian Zhang
to wire up the GPIO lines; usually the return value * will be passed to qdev_connect_gpio_out() or a similar function to * connect another device's output GPIO line to this input. ``` Signed-off-by: Jian Zhang --- hw/gpio/aspeed_gpio.c | 17 + 1 file changed, 17 insertions(+)

[PATCH 0/3] Add a host power device

2022-09-19 Thread Jian Zhang
of the host. The host power device is a generic device to simulate the host power, accept the power control command from the BMC and report the power status. Test on the g220a machine, the host power control command can be simply work. Jian Zhang (3): hw/gpio/aspeed_gpio: Add gpios in/out init

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-29 Thread Bamvor Jian Zhang
Hi, Li Guang lig.f...@cn.fujitsu.com wrote: Andreas Färber wrote: Am 29.11.2013 01:46, schrieb Li Guang: Andreas Färber wrote: Am 27.11.2013 10:22, schrieb Andreas Färber: Hi, Am 26.11.2013 10:22, schrieb Peter Crosthwaite: On

Re: [Qemu-devel] [PATCH v4 3/4] hw/arm: add sunxi machine type

2013-11-29 Thread Bamvor Jian Zhang
Hi, Peter Maydell peter.mayd...@linaro.org wrote: On 29 November 2013 08:06, Li Guang lig.f...@cn.fujitsu.com wrote: what I design is: we have a sunxi series as a machine, then for sunx4i, we specify -M sunxi -cpu cortex-a8 -device x1 ... for sunx5i, we specify -M sunxi -cpu