You should be able to define this value in device tree. Or you can calculate scale factor and use it in entity manager.
From: openbmc <openbmc-bounces+vijaykhemka=fb.com@lists.ozlabs.org> on behalf of Alex Qiu <xqiu@google.com>
Date: Monday, January 6, 2020 at 1:18 PM
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Cc: Josh Lehan <krellan@google.com>, Kais Belgaied <belgaied@google.com>, Devjit Gopalpur <devjitg@google.com>, Peter Lundgren <peterlundgren@google.com>
Subject: Configuring shunt_resistor in hwmon
Hi OpenBMC folks,
Is there a way to configure the shunt_resistor value for a hwmon with entity-manager or other modules? We need to configure this value to make the INA230 report correct voltage, but for now I don't find anything in the code for it. Shall this be a feature to implement? Thanks!
- Alex Qiu