hw/gpio/aspeed: Add gpiodev support
authorNikita Shubin <n.shubin@yadro.com>
Fri, 7 Mar 2025 10:22:13 +0000 (13:22 +0300)
committerNikita Shubin <n.shubin@yadro.com>
Wed, 12 Mar 2025 09:21:05 +0000 (12:21 +0300)
commit6834ba6833687229f62b8875472f5eb02379d232
treee1a147219e7e4b7f498116679956a16e82e68249
parenta45c015b2795024265605eca1870a6fde696b91c
hw/gpio/aspeed: Add gpiodev support

Add gpiodev support for:

- getting line info
- getting/setting lines
- monitoring line events
- monitoting config events

Binding is done via id, i.e.:

... -gpiodev chardev,id=aspeed-gpio0

Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
hw/gpio/aspeed_gpio.c
include/hw/gpio/aspeed_gpio.h