dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property
authorEliav Farber <farbere@amazon.com>
Thu, 8 Sep 2022 15:24:44 +0000 (15:24 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 19 Sep 2022 13:17:48 +0000 (06:17 -0700)
commit34339c858ca1ed955cfe6f78a656882e66310920
tree79ed87497696f0c92faa9bff7e6bb5b4ab23d9f4
parent331ed050c11faf6a0beb065a79a1ac52e2fd0467
dt-bindings: hwmon: (mr75203) add "moortec,ts-series" property

Add optional "moortec,ts-series" property to define the temperature
equation and coefficients that shall be used to convert the digital
output to value in milli-Celsius.
Supported series: 5 (default) and 6.

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:
   T = G + H * (n / cal5 - 0.5)
Where: G = 57.4, H = 249.4, cal5 = 4096

Signed-off-by: Eliav Farber <farbere@amazon.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220908152449.35457-17-farbere@amazon.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml