i2c: virtio: add a virtio i2c frontend driver
authorJie Deng <jie.deng@intel.com>
Fri, 23 Jul 2021 05:44:35 +0000 (13:44 +0800)
committerWolfram Sang <wsa@kernel.org>
Thu, 19 Aug 2021 19:21:19 +0000 (21:21 +0200)
commit3cfc88380413d20f777dc6648a38f683962e52bf
tree20e9c63d3c65ab88f0b2b77329f9914013395115
parentf9b459c2ba5edfe247e86b45ad5dea8da542f3ea
i2c: virtio: add a virtio i2c frontend driver

Add an I2C bus driver for virtio para-virtualization.

The controller can be emulated by the backend driver in
any device model software by following the virtio protocol.

The device specification can be found on
https://lists.oasis-open.org/archives/virtio-comment/202101/msg00008.html.

By following the specification, people may implement different
backend drivers to emulate different controllers according to
their needs.

Co-developed-by: Conghui Chen <conghui.chen@intel.com>
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
Signed-off-by: Jie Deng <jie.deng@intel.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
MAINTAINERS
drivers/i2c/busses/Kconfig
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-virtio.c [new file with mode: 0644]
include/uapi/linux/virtio_i2c.h [new file with mode: 0644]
include/uapi/linux/virtio_ids.h