[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ab469af7-22e1-c3cb-6374-26c99f30a900@axis.com>
Date: Mon, 8 May 2023 08:51:47 +0200
From: Mårten Lindahl <martenli@...s.com>
To: Mark Brown <broonie@...nel.org>
CC: Liam Girdwood <lgirdwood@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<kernel@...s.com>
Subject: Re: [PATCH v2 2/2] regulator: Add support for TI TPS6287x regulators
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
Powered by blists - more mailing lists