Re: [PATCH] hwmon: Add support for the INA260 chip to the INA219 and compatibles driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, Aug 20, 2023 at 02:47:25PM +0200, Loic Guegan wrote:
> This patch allows to retrieve current, bus voltage and power
> measurements from the INA260 using its default configuration.
> 
> As the INA260 provides integrated shunt, the "ishunt" configuration
> parameter is introduced. As such, proper attributes can be attached
> with hwmon and shunt calibration related routnies can be ignored. In
> addition, the actual INA2XX current register address differ from the
> INA260 as it does not provide a shunt register. Thus, a specific
> register address INA2XX_CURRENT_ISHUNT for chips with integrated
> shunts is proposed.
> 
> Signed-off-by: Loic Guegan <loic.guegan@xxxxxxxxxxx>

This patch will no longer apply after the series at
https://lore.kernel.org/linux-hwmon/20240830010554.1462861-1-linux@xxxxxxxxxxxx/T/#t
is accepted and applied. It is also less than perfect since it does not 
support current limits. Adjusting the driver to support ina260 should be
much more straightforward after the above patches are applied. I'll send a
follow-up series of patches after I was able to test it with a real chip
(I am currently waiting for an evaluation board to arrive).

In case anyone is curious, the (untested) patches necessary to support
INA260 are available in the hwmon-staging and testing branches of
git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git

Guenter




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux