Hi there,
Our team want to emulate a multi-touchscreen device controller/device based on x86 arch, and encounter some problems.
We have created a virtual multi-touchscreen controller demo, and registered it on i2c bus, but it doesn't seem to work.
We register the controller on i2c bus, cause:
- We found lots of touchscreen drivers on Linux kernel are registered on i2c bus, such as egalax_ts.c driver.
- We create the multi-touchscreen controller by referring the virtual smbus_eeprom.c device controller/device.
But, it seems the virtual multi-touchsreen controller we created isn't probed by guest Linux which running on QEMU, and we have some douts:
- Creating a multi-touchscreen controller registered on i2c bus, is that ok?
- If that's ok, how to add an interrupt into the controller, cause the virtual smbus_eeprom.c controller we referring has not any interrupt.
- When QEMU is star up, we can find the multi-touchscreen controller registered on i2c bus through `info qtree` command, why can't we find the controller on guest Linux `/sys/bus/i2c/devices` derictory?
- Can the virtual controller probed by guest Linux through generating an interrupt?
- And is there any source code we can reference?
Thanks!