Re: [PATCH v2 2/2] regulator: Add support for TI TPS6287x regulators

From: Mårten Lindahl
Date: Mon May 08 2023 - 02:52:01 EST


On 5/5/23 13:52, Mark Brown wrote:
On Fri, May 05, 2023 at 08:46:06AM +0200, Mårten Lindahl wrote:

2. Dynamically set the range when a new voltage is set. This way any
voltage from
0.4V to 3.35V could be set if the DT node has:
regulator-min-microvolt = <400000>;
regulator-max-microvolt = <3350000>;
You can probably use one of the linear range mappings with a custom
set/get which munges the range selection and voltage selection into a
single value.

Hi Mark!

I found the *sel_pickable_regmap helpers which seems to do what I need for this.

Thanks!

Kind regards

Mårten