qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Add remote I2C device to support external I2C device
@ 2021-07-22 19:01 Shengtan Mao
  2021-07-22 19:01 ` [PATCH 1/1] hw/i2c: add remote " Shengtan Mao
  0 siblings, 1 reply; 4+ messages in thread
From: Shengtan Mao @ 2021-07-22 19:01 UTC (permalink / raw)
  To: cminyard; +Cc: qemu-arm, qemu-devel, stmao, crauer, wuhaotsh, venture

This patch implements the remote I2C device.
The remote I2C device allows an external I2C device to communicate with the I2C controller in QEMU through the remote I2C protocol.
Users no longer have to directly modify QEMU to add new I2C devices and can instead implement the emulated device externally and connect it to the remote I2C device.

Previous work by Wolfram Sang (https://git.kernel.org/pub/scm/virt/qemu/wsa/qemu.git/commit/?h=i2c-passthrough) was referenced.
It shares the similar idea of redirecting the actual I2C device functionalities, but Sang focuses on physical devices, and we focus on emulated devices.
The work by Sang mainly utilizes file descriptors while ours utilizes character devices, which offers better support for emulated devices.
The work by Sang is not meant to offer full I2C device support; it only implements the receive functionality.
Our work implements full support for I2C devices: send, recv, and event (match_and_add is not applicable for external devices).

Shengtan Mao (1):
  hw/i2c: add remote I2C device

 hw/arm/Kconfig                |   1 +
 hw/i2c/Kconfig                |   4 +
 hw/i2c/meson.build            |   1 +
 hw/i2c/remote-i2c.c           | 117 ++++++++++++++++++
 tests/qtest/meson.build       |   1 +
 tests/qtest/remote-i2c-test.c | 216 ++++++++++++++++++++++++++++++++++
 6 files changed, 340 insertions(+)
 create mode 100644 hw/i2c/remote-i2c.c
 create mode 100644 tests/qtest/remote-i2c-test.c

-- 
2.32.0.402.g57bb445576-goog



^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH v2 0/1] Add remote I2C device to support external I2C device
@ 2021-08-02 23:03 Shengtan Mao
  2021-08-02 23:03 ` [PATCH 1/1] hw/i2c: add remote " Shengtan Mao
  0 siblings, 1 reply; 4+ messages in thread
From: Shengtan Mao @ 2021-08-02 23:03 UTC (permalink / raw)
  To: cminyard
  Cc: qemu-arm, qemu-devel, stmao, crauer, wuhaotsh, venture, maoshengtan2011

This patch implements the remote I2C device.
The remote I2C device allows an external I2C device to communicate with the I2C controller in QEMU through the remote I2C protocol.
Users no longer have to directly modify QEMU to add new I2C devices and can instead implement the emulated device externally and connect it to the remote I2C device.

Previous work by Wolfram Sang (https://git.kernel.org/pub/scm/virt/qemu/wsa/qemu.git/commit/?h=i2c-passthrough) was referenced.
It shares the similar idea of redirecting the actual I2C device functionalities, but Sang focuses on physical devices, and we focus on emulated devices.
The work by Sang mainly utilizes file descriptors while ours utilizes character devices, which offers better support for emulated devices.
The work by Sang is not meant to offer full I2C device support; it only implements the receive functionality.
Our work implements full support for I2C devices: send, recv, and event (match_and_add is not applicable for external devices).

Shengtan Mao (1):
  hw/i2c: add remote I2C device

 hw/arm/Kconfig                |   1 +
 hw/i2c/Kconfig                |   4 +
 hw/i2c/meson.build            |   1 +
 hw/i2c/remote-i2c.c           | 117 ++++++++++++++++++
 tests/qtest/meson.build       |   1 +
 tests/qtest/remote-i2c-test.c | 216 ++++++++++++++++++++++++++++++++++
 6 files changed, 340 insertions(+)
 create mode 100644 hw/i2c/remote-i2c.c
 create mode 100644 tests/qtest/remote-i2c-test.c

-- 
2.32.0.554.ge1b32706d8-goog



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-02 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 19:01 [PATCH 0/1] Add remote I2C device to support external I2C device Shengtan Mao
2021-07-22 19:01 ` [PATCH 1/1] hw/i2c: add remote " Shengtan Mao
2021-08-02 23:03 [PATCH v2 0/1] Add remote I2C device to support external " Shengtan Mao
2021-08-02 23:03 ` [PATCH 1/1] hw/i2c: add remote " Shengtan Mao
2021-08-02 23:48   ` Shengtan Mao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).