Skip to main content
removed incorrect tags
Link
Marcus Müller
  • 51.5k
  • 4
  • 79
  • 121
Source Link

When dynamically adding I2C device through sysfs. Is it possible to also define the GPIO pins that comes with the I2C device?

I have two I2C devices I want to connect to my Linux device. A temperature sensor, TMP117, worked fine by writing it to the /sys/bus/i2c/devices/i2c-x/new_device. In addition, I want to add an accelerometer, ADXL343. However, when using the same method as with the TMP117, I receive an error in dmesg that the GPIO for the interrupt is not found. This also affects a GPIO extender, which requires the interrupt signal for my application.

Is it possible to dynamically add I2C devices with additional signals, such as interrupts?