[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220919131904.GA3547146@roeck-us.net>
Date: Mon, 19 Sep 2022 06:19:04 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Eliav Farber <farbere@...zon.com>
Cc: jdelvare@...e.com, robh+dt@...nel.org, p.zabel@...gutronix.de,
rtanwar@...linear.com, andriy.shevchenko@...el.com,
linux-hwmon@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, hhhawa@...zon.com, jonnyc@...zon.com,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: Re: [PATCH v5 17/21] hwmon: (mr75203) add support for series 6
temperature equation
On Thu, Sep 08, 2022 at 03:24:45PM +0000, Eliav Farber 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@...zon.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Applied to hwmon-next.
Thanks,
Guenter
Powered by blists - more mailing lists