[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADVatmMnsV2u6an0ORQWsqsjw=josHeHzMTcw-j6CphLPi3ZGQ@mail.gmail.com>
Date: Wed, 21 Sep 2022 14:02:45 +0100
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Eliav Farber <farbere@...zon.com>
Cc: Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
linux-hwmon@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>,
andriy.shevchenko@...el.com, hhhawa@...zon.com, jonnyc@...zon.com,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH v6 1/2] hwmon: (mr75203) modify the temperature equation
according to series 5 datasheet
On Wed, Sep 21, 2022 at 1:18 PM Eliav Farber <farbere@...zon.com> wrote:
>
> Modify the equation and coefficients used to convert the digital output
> to temperature according to series 5 of the Moortec Embedded Temperature
> Sensor (METS) datasheet:
> T = G + H * (n / cal5 - 0.5) + J * F
>
> Where:
> *) G = 60, H = 200, cal5 = 4094, J = -0.1.
> *) F = frequency clock in MHz.
> *) n is the digital output.
>
> In code, the G, H and J coefficients are multiplied by a factor of 1000
> to get the temperature in milli-Celsius.
> Final result is clamped in case it exceeds min/max thresholds.
>
> Change is done since it is unclear where the current equation and
> coefficients came from.
>
> Signed-off-by: Eliav Farber <farbere@...zon.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> Reported-by: kernel test robot <lkp@...el.com>
Only build tested on top of next-20220921 after reverting v5 patches.
Tested-by: Sudip Mukherjee <sudipm.mukherjee@...il.com>
--
Regards
Sudip
Powered by blists - more mailing lists