Re: [PATCH v2 9/9] hwmon: adm1275: Support ROHM BD12790

From: Guenter Roeck

Date: Tue Jun 30 2026 - 11:01:11 EST


On 6/29/26 22:04, Matti Vaittinen wrote:
June 30, 2026 at 12:08 AM, "Guenter Roeck" <linux@xxxxxxxxxxxx mailto:linux@xxxxxxxxxxxx?to=%22Guenter%20Roeck%22%20%3Clinux%40roeck-us.net%3E > wrote:



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 for going the extra mile and fixing while applying. I am glad I didn't need to re-spin for this! :)

And it seems gmail is getting more and more useless :( This (and couple of other replies) never emerged in my gmail inbox. So, just as a heads-up - gmail may silently drop some messages when reveiving. :(


That is Google / gmail deciding that my e-mails are spam. Happens a lot lately.
They actually send me a note about it when they do it, but AFAICS there is nothing
I can do to prevent it.

Guenter