Hello, I am currently trying to use Seeed Stdio’s Axis Digital Accelerometer(https://goo.gl/trxNGK) which uses ADXL345 accelerometer. And I am writing this mail to get some advices for writing a device tree node.
All of the examples I found on the Internet are to write ‘user level’ application that controls this chip via I2C bus.
But instead of controlling it in the user level, I want to use the Linux Kernel’s ADXL34x device driver (https://goo.gl/wxGzDC) because the purpose of this project is to get an experience of using existing device driver.
So firstly, I am investing this driver’s init and probe functions to add an device tree node to describe this device.
But the problem is that whereas user level examples doesn’t use interrupts, I need to describe interrupt pins according to folliwing articles: