<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PMIC1300 turn BUCK1 on/off in firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117986/pmic1300-turn-buck1-on-off-in-firmware</link><description>I have a device with 3 major components: 
 
 Fanstel nrf52840 
 PMIC1300 
 spi display (Waveshare 2.13inch E-Ink Display) 
 
 PMIC: 
 
 BUCK1: power Fanstel 
 BUCK2: power display 
 I&amp;#39;m not using the LDO&amp;#39;s 
 
 I would like to control power to the display</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jan 2025 12:27:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117986/pmic1300-turn-buck1-on-off-in-firmware" /><item><title>RE: PMIC1300 turn BUCK1 on/off in firmware</title><link>https://devzone.nordicsemi.com/thread/518144?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 12:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c21dab-f372-424d-b5a2-227c67b52904</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;No problem, happy to help&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PMIC1300 turn BUCK1 on/off in firmware</title><link>https://devzone.nordicsemi.com/thread/518117?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 10:22:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e27b525-5b91-41b4-9dc3-6730bc769015</guid><dc:creator>mej7000</dc:creator><description>&lt;p&gt;Perfect! Thanks!!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;		if(regulator_is_enabled(buck1)){
			regulator_disable(buck1);
		}
		else{
			regulator_enable(buck1);
		}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PMIC1300 turn BUCK1 on/off in firmware</title><link>https://devzone.nordicsemi.com/thread/518091?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 07:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cee554f-b026-42c8-b3d8-38db5d15fbe6</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can use the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/regulator/regulator_npm1300.c"&gt;regulator api&lt;/a&gt; for this &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/regulator/regulator_common.c"&gt;zephyr api&amp;nbsp;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And then you can do something like this&lt;/p&gt;
&lt;p&gt;&lt;code&gt;static const struct device *buck1 = DEVICE_DT_GET(DT_NODELABEL(npm1300_ek_buck1));&lt;/code&gt;&lt;br /&gt;&lt;code&gt;...&lt;/code&gt;&lt;br /&gt;&lt;code&gt;regulator_enable(buck1);&lt;/code&gt;&lt;br /&gt;&lt;code&gt;regulator_disable(buck1);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Regards&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Runar&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>