On Thu, Sep 12, 2019 at 03:09:47PM -0700, Guenter Roeck wrote: > On Thu, Sep 12, 2019 at 02:09:58PM -0700, Nicolin Chen wrote: > > Hello Guenter, > > > > On Thu, Sep 12, 2019 at 11:32:18AM -0700, Guenter Roeck wrote: > > > On Wed, Sep 11, 2019 at 05:28:14PM -0700, Nicolin Chen wrote: > > > > Hello Guenter, > > > > > > > > Datasheet: http://www.ti.com/lit/ds/symlink/ina3221.pdf > > > > (At page 32, chapter 188.8.131.52 and 184.108.40.206) > > > > > > > > I have two registers that I need to expose to user space: > > > > Shunt-Voltage-Sum and Shunt-Voltage-Limit registers > > > > > > > > Right now in_input of INA3221 are for voltage channels > > > > while in_input are for Shunt voltage channels. > > > > > > > > So can I just use in7_input and in7_crit for them? > > > > > > > Doesn't Shunt-Voltage-Limit apply to in_input ? > > > If so, the limit should be attached to those. > > > > The initial patch of ina3221 driver applied Shunt-Voltage-Limits, > > being named as "Critical Alert Limit Registers" in the datasheet, > > to curr_crit, corresponding to curr and in_input. > > > > And this Shunt-Voltage-Limit-Sum is more related to the reading > > from Shunt-Voltage-Sum, which we just agreed it to be in7_input. > > > You didn't say Shunt-Voltage-Limit-Sum earlier. You said
Ah....right...it's my fault. Sorry. > Shunt-Voltage-Limit. I would agree that Shunt-Voltage-Limit-Sum is > associated with Shunt-Voltage-Sum, but, again, that is not what you > said earlier. Confused :-( So, those two should be in7_input and in7_crit? Thanks!