Re: [PATCH v2 3/3] hwmon: ina238: Add support for INA228
From: Guenter Roeck
Date: Sat Jul 19 2025 - 18:01:17 EST
On Fri, Jul 18, 2025 at 04:12:50PM +0200, Jonas Rebmann wrote:
> Add support for the Texas Instruments INA228 Ultra-Precise
> Power/Energy/Charge Monitor.
>
> The INA228 is very similar to the INA238 but offers four bits of extra
> precision in the temperature, voltage and current measurement fields.
> It also supports energy and charge monitoring, the latter of which is
> not supported through this patch.
>
> While it seems in the datasheet that some constants such as LSB values
> differ between the 228 and the 238, they differ only for those registers
> where four bits of precision have been added and they differ by a factor
> of 16 (VBUS, VSHUNT, DIETEMP, CURRENT).
>
> Therefore, the INA238 constants are still applicable with regard
> to the bit of the same significance.
>
> Signed-off-by: Jonas Rebmann <jre@xxxxxxxxxxxxxx>
Applied.
Thanks,
Guenter