Re: [PATCH v2 9/9] hwmon: adm1275: Support ROHM BD12790
From: Guenter Roeck
Date: Mon Jun 29 2026 - 17:09:16 EST
On Fri, Jun 26, 2026 at 10:26:02AM +0300, Matti Vaittinen wrote:
> From: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
>
> Add support for ROHM BD12790 hot-swap controller which is largely
> similar to Analog Devices adm1272.
>
> The BD12790 uses the same selectable 60V/100V voltage ranges and
> 15mV/30mV current-sense ranges as the ADM1272, and the same VRANGE
> (bit 5) and IRANGE (bit 0) layout in PMON_CONFIG. It therefore uses
> a dedicated coefficient table that mirrors adm1272_coefficients, with
> the following differences derived from BD12790 datasheet Table 1 (p.18):
> - power 60V/30mV: m=17560 (vs. 17561)
> - power 100V/30mV: m=10536 (vs. 10535)
> - temperature: b=31880 (vs. 31871, reflecting T[11:0] = 4.2*T + 3188)
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
> Assisted-by: GitHub Copilot:claude-sonnet-4.6
Applied, after fixing the comment about BD12790 coefficients as suggested.
Thanks,
Guenter