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, 19 Mar 2025 07:06:47 +0000 (10:06 +0300)
commit288a3118ef3a12e8847623d51181a741e33817ec
tree7c2a9a3b1d08de82433d1036160cd2c9d364e2a5
parentc50ba6460e55c104b76a5e259f04915eaab6f303
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