Re: [RFC] iio: accel: st_accel: Add lis3l02dq support

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

 



On Mon, May 23, 2016 at 6:29 PM, Jonathan Cameron
<jic23@xxxxxxxxxxxxxxxxxxxxx> wrote:

> I forgot this part also has gain and offset trim registers.  Will add them before
>  applying as that is easy enough and reduces the differences further.
>
> These exist on some other parts but we can add them any time.

LIS3LV02DL also has x,y,z offset and gain trim registers, but when
I read up on it, I understood that these are just factory-programmed
registers. I.e. they are undocumented in the register list, but a table
states them as "calibration" and "loaded at boot".

So I always understood them as something the sensor loads at
boot to calibrate itself, so you can ignore the contents, and they
probably exist on the other sensors too, albeit undocumented as
they have no use.

I toyed with the idea of reading them and pusing the values to the
entropy pool with add_device_randomness() as they are device-unique
data.

But if you have proper docs on them I guess maybe they are used
differently on your sensor...

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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