<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/power/regulator/regulator-uclass.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/power/regulator/regulator-uclass.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/power/regulator/regulator-uclass.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-07-12T08:18:32Z</updated>
<entry>
<title>power: regulator: Add helper to set voltage within an acceptable range</title>
<updated>2026-07-12T08:18:32Z</updated>
<author>
<name>Jonas Karlman</name>
<email>jonas@kwiboo.se</email>
</author>
<published>2026-07-09T23:02:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0663b4f553789f8d38220a543116563885693120'/>
<id>urn:sha1:0663b4f553789f8d38220a543116563885693120</id>
<content type='text'>
Add regulator_set_value_clamp() that clamps a requested target voltage
to both caller-provided limits and the regulator constraints before
setting the regulator voltage value.

Return -EINVAL when the caller limits cannot be satisfied by the
regulator constraints or when the requested range is invalid.

This helper will initially be used to set vqmmc-supply voltage within an
acceptable range according to SD Standards, i.e. 1.70V-1.95V and
2.7V-3.6V.

Signed-off-by: Jonas Karlman &lt;jonas@kwiboo.se&gt;
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
</content>
</entry>
<entry>
<title>dm: regulator: fix missing quote in error message</title>
<updated>2026-03-23T03:28:01Z</updated>
<author>
<name>David Lechner</name>
<email>dlechner@baylibre.com</email>
</author>
<published>2026-03-19T22:30:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9936e1083dd8c45cd10e7497bd83933b28096dcf'/>
<id>urn:sha1:9936e1083dd8c45cd10e7497bd83933b28096dcf</id>
<content type='text'>
Fix a missing closing quote in the error message when a regulator name
is not unique.

Signed-off-by: David Lechner &lt;dlechner@baylibre.com&gt;
Reviewed-by: Julien Stephan &lt;jstephan@baylibre.com&gt;
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
</content>
</entry>
<entry>
<title>power: regulator: Fix incorrect use of binary and</title>
<updated>2025-09-24T16:04:02Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-09-01T15:00:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6c98e6014b3a36933860d02cb757565ec2fc80a4'/>
<id>urn:sha1:6c98e6014b3a36933860d02cb757565ec2fc80a4</id>
<content type='text'>
In regulator_list_autoset there is a test for ret being non-zero and
error being zero but it uses the binary '&amp;' instead of the logical '&amp;&amp;'
which could well lead to unexpected results. Correct this to use the
logical '&amp;&amp;' instead.

This issue found by Smatch.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
Reviewed-by: Peng Fan &lt;peng.fan@nxp.com&gt;
Signed-off-by: Peng Fan &lt;peng.fan@nxp.com&gt;
</content>
</entry>
<entry>
<title>uclass: Cleanup uclass_find_next_device</title>
<updated>2025-07-24T17:49:18Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-07-16T09:58:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=70bf6e33e15e2ce56f6e3e9a3f725136c9c6f486'/>
<id>urn:sha1:70bf6e33e15e2ce56f6e3e9a3f725136c9c6f486</id>
<content type='text'>
uclass_find_next_device always returns 0, so instead make it a void and
update calling sites.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
</content>
</entry>
<entry>
<title>power: regulator: replace dev_dbg() by dev_err() in regulator_post_bind()</title>
<updated>2024-12-04T22:31:31Z</updated>
<author>
<name>Patrice Chotard</name>
<email>patrice.chotard@foss.st.com</email>
</author>
<published>2024-12-03T10:06:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=74cd1af1124fbe3cd16c58bc3ad9ff1f9c6ecf3e'/>
<id>urn:sha1:74cd1af1124fbe3cd16c58bc3ad9ff1f9c6ecf3e</id>
<content type='text'>
To ease debugging, use dev_err() instead of dev_dbg() for
alerting when regulator has nonunique value.

Signed-off-by: Patrice Chotard &lt;patrice.chotard@foss.st.com&gt;
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Reviewed-by: Jaehoon Chung &lt;jh80.chung@samsung.com&gt;
</content>
</entry>
<entry>
<title>power: regulator: replace some debug() by dev_dbg()</title>
<updated>2024-12-04T22:31:21Z</updated>
<author>
<name>Patrice Chotard</name>
<email>patrice.chotard@foss.st.com</email>
</author>
<published>2024-12-03T10:06:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ccddb0abec37f4628224ec20846b001a3e85e951'/>
<id>urn:sha1:ccddb0abec37f4628224ec20846b001a3e85e951</id>
<content type='text'>
Replace some debug() by dev_dbg() when dev variable
is available/valid.

Signed-off-by: Patrice Chotard &lt;patrice.chotard@foss.st.com&gt;
Reviewed-by: Quentin Schulz &lt;quentin.schulz@cherry.de&gt;
Reviewed-by: Jaehoon Chung &lt;jh80.chung@samsung.com&gt;
</content>
</entry>
<entry>
<title>power: regulator: Drop regulators_enable_boot_on/off()</title>
<updated>2024-10-01T01:19:07Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2024-09-26T23:14:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6f52feee2867f138af3d81a90a02a2b222e3366d'/>
<id>urn:sha1:6f52feee2867f138af3d81a90a02a2b222e3366d</id>
<content type='text'>
Both regulators_enable_boot_on/off() are unused and superseded by
regulator uclass regulator_post_probe(). Remove both functions.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>power: regulator: Drop regulator_unset()</title>
<updated>2024-10-01T01:19:07Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2024-09-26T23:14:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ba0faba52a3ffb86a59c6078053f2c9a10ef261b'/>
<id>urn:sha1:ba0faba52a3ffb86a59c6078053f2c9a10ef261b</id>
<content type='text'>
This function is never called, drop it.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>power: regulator: Convert regulators_enable_boot_on/off() to regulator_post_probe</title>
<updated>2024-10-01T01:19:07Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2024-09-26T23:14:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=332e0a0148915c994bda9128cb2bb0a0f14e6ec8'/>
<id>urn:sha1:332e0a0148915c994bda9128cb2bb0a0f14e6ec8</id>
<content type='text'>
Turn regulators_enable_boot_on() and regulators_enable_boot_off() into
empty functions. Implement matching functionality in regulator_post_probe()
instead. The regulator_post_probe() is called for all regulators after they
probe, and regulators that have regulator-always-on or regulator-boot-on DT
properties now always probe due to DM_FLAG_PROBE_AFTER_BIND being set on
such regulators in regulator_post_bind().

Finally, fold regulator_unset() functionality into regulator_autoset().

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>power: regulator: Trigger probe of regulators which are always-on or boot-on</title>
<updated>2024-10-01T01:19:07Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2024-09-26T23:14:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=51c4679d2f848e91b4a0cf867a426ffe5bb094b2'/>
<id>urn:sha1:51c4679d2f848e91b4a0cf867a426ffe5bb094b2</id>
<content type='text'>
In case a regulator DT node contains regulator-always-on or regulator-boot-on
property, make sure the regulator gets correctly configured by U-Boot on start
up. Unconditionally probe such regulator drivers. This is a preparatory patch
for introduction of .regulator_post_probe() which would trigger the regulator
configuration.

Parsing of regulator-always-on and regulator-boot-on DT property has been
moved to regulator_post_bind() as the information is required early, the
rest of the DT parsing has been kept in regulator_pre_probe() to avoid
slowing down the boot process.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
</feed>
