gpio: Add virtio-gpio driver
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 19 Aug 2021 04:30:22 +0000 (10:00 +0530)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 23 Aug 2021 07:55:44 +0000 (09:55 +0200)
commit3a29355a22c0275fe864100794fee58a73175d93
tree06f1f7fbf4c7394fc4277229c736ba76095b58dd
parentd0ef631d40baa2be1951d122ca59d0cf6e39cf46
gpio: Add virtio-gpio driver

This patch adds a new driver for Virtio based GPIO devices.

This allows a guest VM running Linux to access GPIO lines provided by
the host. It supports all basic operations, except interrupts for the
GPIO lines.

Based on the initial work posted by:
"Enrico Weigelt, metux IT consult" <lkml@metux.net>.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
MAINTAINERS
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-virtio.c [new file with mode: 0644]
include/uapi/linux/virtio_gpio.h [new file with mode: 0644]
include/uapi/linux/virtio_ids.h