Re: [PATCH v3 2/2] hwmon: (pmbus/lm25066) add current limit configuration support
From: Guenter Roeck
Date: Tue Jun 16 2026 - 12:21:45 EST
On Mon, Jun 15, 2026 at 05:49:17PM +0800, Potin Lai wrote:
> Add support for the 'ti,current-range' devicetree property to configure
> the current limit via the DEVICE_SETUP (0xD9) register, overriding the
> physical CL pin setting.
>
> This configuration is supported on all chips in this driver (LM25066,
> LM5064, LM5066, LM5066i) except LM25056.
>
> The property values "low" and "high" map to:
> - LM25066: low = 25 mV, high = 46 mV
> - LM5064, LM5066, LM5066i: low = 26 mV, high = 50 mV
>
> The Bit 4 mapping to High/Low current limit is handled dynamically on
> probe because it is swapped for LM25066 compared to the other supported
> chips.
>
> Signed-off-by: Potin Lai <potin.lai.pt@xxxxxxxxx>
Applied to hwmon-next.
Thanks,
Guenter