Re: LSM9DS1 Accel/Gyro Support?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/3/19, Bobby Jones <rjones@xxxxxxxxxxxxx> wrote:
> Hi Martin and linux-iio,
>
> I have a device using the LSM9DS1 and saw that you added support for
> the magnetometer of the chip but I was unable to follow what was done
> for the accel and gyro of the same part. Was this still something
> you're working on or perhaps those components are compatible with
> another st device?
>

Hi Bobby,

I'm on vacation right now so I'll be able to reply only sporadically,
but I'll do my best.

Basically, the LSM9DS1 accelerometer and gyroscope share a FIFO, which
means they can't be controlled independently. This breaks the current
abstraction of having two separate drivers for accelerometer and
gyroscope. The correct but more difficult solution is to create a
combined driver that supports both functions and understands the FIFO
interaction. No one has done this work yet.

More details here, in which I submitted a patch for accelerometer
support, which was rejected for the above reasons:

https://patchwork.kernel.org/patch/10138321/

Hopefully this answers your question. Let me know if you need more information.

> Thanks,
> Bobby Jones
>



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux