<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/regulator/helpers.c, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2019-03-03T23:45:27Z</updated>
<entry>
<title>regulator: core: Add set/get_current_limit helpers for regmap users</title>
<updated>2019-03-03T23:45:27Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2019-02-28T13:40:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a32e0c773b5f233b0589dbb621bb2b9681dbfec3'/>
<id>urn:sha1:a32e0c773b5f233b0589dbb621bb2b9681dbfec3</id>
<content type='text'>
By setting curr_table, n_current_limits, csel_reg and csel_mask, the
regmap users can use regulator_set_current_limit_regmap and
regulator_get_current_limit_regmap for set/get_current_limit callbacks.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: add regulator_desc_list_voltage_linear_range</title>
<updated>2019-02-14T15:12:26Z</updated>
<author>
<name>Matti Vaittinen</name>
<email>matti.vaittinen@fi.rohmeurope.com</email>
</author>
<published>2019-02-14T09:38:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6a47b4da551a762217215aeeda22e46469c5868a'/>
<id>urn:sha1:6a47b4da551a762217215aeeda22e46469c5868a</id>
<content type='text'>
Add regulator_desc_list_voltage_linear_range which can be used
by drivers for getting the voltages before regulator is registered.
This may be useful for drivers which need to fetch the voltage
selectors at device-tree parsing callback.

Signed-off-by: Matti Vaittinen &lt;matti.vaittinen@fi.rohmeurope.com&gt;
Acked-by: Mark Brown &lt;broonie@kernel.org&gt;
Tested-by: Angus Ainslie &lt;angus@akkea.ca&gt;
Reviewed-by: Angus Ainslie &lt;angus@akkea.ca&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'bd71847-support' into regulator-4.20</title>
<updated>2018-09-28T14:07:30Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@kernel.org</email>
</author>
<published>2018-09-28T14:07:30Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5451521409ce1c04d56c03854008fe8861893b05'/>
<id>urn:sha1:5451521409ce1c04d56c03854008fe8861893b05</id>
<content type='text'>
regulator/mfd: Support for the ROHM BD71847

This adds support for the BD71847 which touches both MFD and regulator.
There's a few other bits and pieces included as some dependency patches
had already been applied so would've required rebasing.
</content>
</entry>
<entry>
<title>regulator: Support regulators where voltage ranges are selectable</title>
<updated>2018-09-28T13:57:03Z</updated>
<author>
<name>Matti Vaittinen</name>
<email>matti.vaittinen@fi.rohmeurope.com</email>
</author>
<published>2018-09-14T08:31:36Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=18e4b55fbd2069cee51ef9660b35c65ec13bee6d'/>
<id>urn:sha1:18e4b55fbd2069cee51ef9660b35c65ec13bee6d</id>
<content type='text'>
For example ROHM BD71837 and ROHM BD71847 Power management ICs have
regulators which provide multiple linear ranges. Ranges can be
selected by individual non contagious bit in vsel register. Add
regmap helper functions for selecting ranges.

Signed-off-by: Matti Vaittinen &lt;matti.vaittinen@fi.rohmeurope.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: regmap helpers - support overlapping linear ranges</title>
<updated>2018-08-28T19:30:24Z</updated>
<author>
<name>Matti Vaittinen</name>
<email>matti.vaittinen@fi.rohmeurope.com</email>
</author>
<published>2018-08-22T09:53:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e7d80b6b848b4b5f83d3fbee9fd042d036ede9c6'/>
<id>urn:sha1:e7d80b6b848b4b5f83d3fbee9fd042d036ede9c6</id>
<content type='text'>
Don't give up voltage mapping if first range with suitable min/max uV
does not provide the wanted voltage.

Signed-off-by: Matti Vaittinen &lt;matti.vaittinen@fi.rohmeurope.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: helpers: Add regmap set_pull_down helper</title>
<updated>2017-04-06T18:29:37Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.wolfsonmicro.com</email>
</author>
<published>2017-03-28T14:14:41Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f7d37bc3cb20828ac43b22cbd40222877ee2c46a'/>
<id>urn:sha1:f7d37bc3cb20828ac43b22cbd40222877ee2c46a</id>
<content type='text'>
Add a helper function regulator_set_pull_down_regmap to allow regmap
based regulators to easily enable pull down.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: helpers: Add regmap set_soft_start helper</title>
<updated>2017-04-06T18:29:37Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.wolfsonmicro.com</email>
</author>
<published>2017-03-28T14:14:40Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a7a453f56a1a116027f84ac53b365eb045a0e279'/>
<id>urn:sha1:a7a453f56a1a116027f84ac53b365eb045a0e279</id>
<content type='text'>
Add a helper function regulator_set_soft_start_regmap to allow regmap
based regulators to easily enable soft start.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulators: helpers: Fix handling of bypass_val_on in get_bypass_regmap</title>
<updated>2016-11-10T17:28:32Z</updated>
<author>
<name>Charles Keepax</name>
<email>ckeepax@opensource.wolfsonmicro.com</email>
</author>
<published>2016-11-10T10:45:18Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=85b037442e3f0e84296ab1010fd6b057eee18496'/>
<id>urn:sha1:85b037442e3f0e84296ab1010fd6b057eee18496</id>
<content type='text'>
The handling of bypass_val_on that was added in
regulator_get_bypass_regmap is done unconditionally however
several drivers don't define a value for bypass_val_on. This
results in those drivers reporting bypass being enabled when
it is not. In regulator_set_bypass_regmap we use bypass_mask
if bypass_val_on is zero. This patch adds similar handling in
regulator_get_bypass_regmap.

Fixes: commit dd1a571daee7 ("regulator: helpers: Ensure bypass register field matches ON value")
Signed-off-by: Charles Keepax &lt;ckeepax@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: helpers: Ensure bypass register field matches ON value</title>
<updated>2016-04-22T10:49:03Z</updated>
<author>
<name>Jon Hunter</name>
<email>jonathanh@nvidia.com</email>
</author>
<published>2016-04-21T16:12:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=dd1a571daee7cdd6504a5771721e34f9b118f17a'/>
<id>urn:sha1:dd1a571daee7cdd6504a5771721e34f9b118f17a</id>
<content type='text'>
When checking bypass state for a regulator, we check to see if any bits
in the bypass mask are set. For most cases this is fine because there is
typically, only a single bit used to determine if the regulator is in
bypass. However, for some regulators, such as LDO6 on AS3722, the bypass
state is indicate by a value rather than a single bit. Therefore, when
checking the bypass state, check that the bypass field matches the ON
value.

Signed-off-by: Jon Hunter &lt;jonathanh@nvidia.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
<entry>
<title>regulator: helper: Add helper to configure active-discharge using regmap</title>
<updated>2016-03-02T14:13:05Z</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2016-03-02T10:54:47Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=354794dacc213da7596cefea4dbcd8c094368807'/>
<id>urn:sha1:354794dacc213da7596cefea4dbcd8c094368807</id>
<content type='text'>
Add helper function to set the state of active-discharge of
regulator using regmap. The HW regulator driver can directly
use this by providing the necessary information in the regulator
descriptor.

Signed-off-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</content>
</entry>
</feed>
