Re: [PATCH] iio: st_lsm6dsx: Fixed calibrated timestamp calculation
From: Jonathan Cameron
Date: Mon Oct 27 2025 - 09:36:07 EST
On Tue, 21 Oct 2025 13:35:44 +0200
Mario Tesi <martepisa@xxxxxxxxx> wrote:
> On Sat, Oct 18, 2025 at 08:23:01PM +0100, Jonathan Cameron wrote:
> > On Wed, 15 Oct 2025 19:50:16 +0200
> > Lorenzo Bianconi <lorenzo@xxxxxxxxxx> wrote:
> >
> > > > The calibrated timestamp is calculated from the nominal value using the
> > > > formula:
> > > > ts_gain[ns] ≈ ts_sensitivity - (ts_trim_coeff * val) / 1000.
> > > >
> > > > The values of ts_sensitivity and ts_trim_coeff are not the same for all
> > > > devices, so it is necessary to differentiate them based on the part name.
> > > > For the correct values please consult the relevant AN.
> > > >
> > > > Signed-off-by: Mario Tesi <mario.tesi@xxxxxx>
> > >
> > > Acked-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
> >
> > Fixes tag? Just reply to this thread with one and I'll pick it up from here.
> > No need for a new version.
> >
> > Otherwise seems fine to me.
> >
> > Thanks,
> >
> > Jonathan
> >
> Fixes: cb3b6b8e1bc0 ("iio: imu: st_lsm6dsx: add odr calibration feature")
>
Thanks. Applied to the fixes-togreg branch of iio.git.
I might hold this back if I get so far as doing a pull request today or
tomorrow just to give it a little time to soak in linux-next.
Thanks,
Jonathan
> Thanks,
> Mario
>