On Wed, Sep 21, 2022 at 1:19 PM Eliav Farber <farbere@xxxxxxxxxx> wrote: > > The current equation used in code is aligned to series 5: > T = G + H * (n / cal5 - 0.5) + J * F > Where: > G = 60, H = 200, cal5 = 4094, J = -0.1, F = frequency clock in MHz > > Series 6 has a slightly different equation: > T = G + H * (n / cal5 - 0.5) > and a different set of coefficients: > G = 57.4, H = 249.4, cal5 = 4096 > > This change supports equation and coefficients for both series. > (for series 6, J is set to 0). > > The series is determined according to “moortec,ts-series” property in > the device tree. > If absent, series 5 is assumed to be the default. > > Signed-off-by: Eliav Farber <farbere@xxxxxxxxxx> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> > Reported-by: kernel test robot <lkp@xxxxxxxxx> Only build tested on top of next-20220921 after reverting v5 patches. Tested-by: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx> -- Regards Sudip