<?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>How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114099/how-to-set-an-interrupt-on-ldsw-via-gpio-in-the-npm1300-using-the-nrf-connect-sdk</link><description>I am using NCS v2.5.1 and working on a project where I need to turn off the system using a button that triggers an interrupt on a GPIO. I want this GPIO to control a load switch to turn it on and off. Where both the GPIO and the load switch are part of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Nov 2024 14:55:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114099/how-to-set-an-interrupt-on-ldsw-via-gpio-in-the-npm1300-using-the-nrf-connect-sdk" /><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/510923?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 14:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf07d64-b56f-4c95-86f0-73c984eb5783</guid><dc:creator>helsing</dc:creator><description>[quote user="Sigurd Hellesvik"]The pin can be configured in the app. That should fix it:[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int err = gpio_pin_configure(pmic_gpio, 1, GPIO_INPUT | GPIO_ACTIVE_HIGH | GPIO_PULL_UP);
if (err) {
  printk(&amp;quot;gpio_pin_configure=%d\n&amp;quot;, err);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Priyesh Shahi"]We&amp;#39;ve tried configuring the pin as suggested, but unfortunately, it&amp;#39;s not working.[/quote]
&lt;p&gt;Here is the code Sigurd supposedly used when he tested the fix he suggested. I verified that the project builds for nrf52840dk_nrf52840. I commented out this line in &lt;code&gt;src/main.c:&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;printf(&amp;quot;Hello World! %s\n&amp;quot;, CONFIG_BOARD_TARGET);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;EDIT&lt;/strong&gt;: Adding attachement.&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pmic_5F00_gpio_5F00_ldo.zip"&gt;devzone.nordicsemi.com/.../pmic_5F00_gpio_5F00_ldo.zip&lt;/a&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/510151?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 14:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0be472e0-499b-4b43-aee2-7d72cc78239f</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Priesh,&lt;/p&gt;
&lt;p&gt;I have taken over this ticket as Sigurd has been assigned to another task. I will check for updates and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/509840?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 10:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c0ef87-6adf-4bb3-bc62-873a03a56f34</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;We&amp;#39;ve tried configuring the pin as suggested, but unfortunately, it&amp;#39;s not working. We also attempted to set it up directly via I2C, but I couldn&amp;#39;t find a solution that way either. Do you have any updates or additional suggestions on how to proceed with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/502035?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 07:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7637b976-d552-44c4-b7f0-de05a1f4f063</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;The pin can be configured in the app. That should fix it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int err = gpio_pin_configure(pmic_gpio, 1, GPIO_INPUT | GPIO_ACTIVE_HIGH | GPIO_PULL_UP);
if (err) {
  printk(&amp;quot;gpio_pin_configure=%d\n&amp;quot;, err);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/502031?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 06:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f3c75d9-2ccb-4be0-885a-0b05de600b0f</guid><dc:creator>Parth Parekh</dc:creator><description>&lt;p&gt;Hello, any update on this bug on the nPM1300 LDSW triggering.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/501339?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 11:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c67b4b9c-95c2-4809-ba6a-b456a808a603</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I have been able to reproduce the issue you have an have reported it to our devs as a potential bug.&lt;br /&gt;I will let you know as soon as they got some way to fix this (either by correcting our mistake or by finding the bug).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/501127?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 10:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c8ad371-776b-457d-ad8c-f24572d82ee5</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;Yes, Earlier in my project, I set the nPM regulator in AUTO mode using the following lines:&lt;/p&gt;
&lt;div&gt;
&lt;div class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&lt;span&gt;&lt;/span&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;regulator-allowed-modes = &amp;lt;NPM1300_BUCK_MODE_AUTO&amp;gt;;
&lt;/code&gt;&lt;/div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;regulator-initial-mode = &amp;lt;NPM1300_BUCK_MODE_AUTO&amp;gt;;
&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I also deleted the PWM properties from Buck 2 using the following lines:&lt;/p&gt;
&lt;div&gt;
&lt;div class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&lt;span&gt;&lt;/span&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;/delete-property/ retention-gpios;
&lt;/code&gt;&lt;/div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;/delete-property/ pwm-gpios;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I also set the Buck 1 voltage to 3.3V using this line:&lt;/p&gt;
&lt;div&gt;
&lt;div class="flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="overflow-y-auto p-4" dir="ltr"&gt;&lt;code class="!whitespace-pre hljs language-c"&gt;regulator-init-microvolt = &amp;lt;&lt;span class="hljs-number"&gt;3300000&lt;/span&gt;&amp;gt;;
&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Additionally, I made other changes in the charger device, such as setting the charging current and maximum voltage, and those configurations are working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;Here is the config file I used in my project:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*
 * Copyright (C) 2023 Nordic Semiconductor ASA
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;dt-bindings/regulator/npm1300.h&amp;gt;
#include &amp;lt;zephyr/dt-bindings/input/input-event-codes.h&amp;gt;
#define NPM1300_BUCK_MODE_PFM 0x04U

&amp;amp;arduino_i2c {
	npm1300_ek_pmic: pmic@6b {
		compatible = &amp;quot;nordic,npm1300&amp;quot;;
		reg = &amp;lt;0x6b&amp;gt;;

		npm1300_ek_gpio: gpio-controller {
			compatible = &amp;quot;nordic,npm1300-gpio&amp;quot;;
			gpio-controller;
			#gpio-cells = &amp;lt;2&amp;gt;;
			ngpios = &amp;lt;5&amp;gt;;
		};

		npm1300_ek_regulators: regulators {
			compatible = &amp;quot;nordic,npm1300-regulator&amp;quot;;

			npm1300_ek_buck1: BUCK1 {
				regulator-min-microvolt = &amp;lt;1000000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-init-microvolt = &amp;lt;3300000&amp;gt;;
				retention-microvolt = &amp;lt;2500000&amp;gt;;
				regulator-allowed-modes = &amp;lt;NPM1300_BUCK_MODE_AUTO&amp;gt;;
				regulator-initial-mode = &amp;lt;NPM1300_BUCK_MODE_AUTO&amp;gt;;
			};



			npm1300_ek_buck2: BUCK2 {
				regulator-min-microvolt = &amp;lt;1000000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				/delete-property/ regulator-init-microvolt;
				retention-microvolt = &amp;lt;2500000&amp;gt;;
				regulator-allowed-modes = &amp;lt;NPM1300_BUCK_MODE_AUTO&amp;gt;;
				regulator-initial-mode = &amp;lt;NPM1300_BUCK_MODE_AUTO&amp;gt;;
				enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH&amp;gt;;
				/delete-property/ retention-gpios;
				/delete-property/ pwm-gpios;
			};



			npm1300_ek_ldo1: LDO1 {
				regulator-min-microvolt = &amp;lt;1000000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-init-microvolt = &amp;lt;2500000&amp;gt;;
				regulator-initial-mode = &amp;lt;NPM1300_LDSW_MODE_LDSW&amp;gt;;
				// soft-start-microamp = &amp;lt;10000&amp;gt;;
				enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 2 GPIO_ACTIVE_HIGH&amp;gt;;

			};



			npm1300_ek_ldo2: LDO2 {
				regulator-min-microvolt = &amp;lt;1000000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-init-microvolt = &amp;lt;2500000&amp;gt;;
				regulator-initial-mode = &amp;lt;NPM1300_LDSW_MODE_LDO&amp;gt;;
				// soft-start-microamp = &amp;lt;10000&amp;gt;;
				enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 1 GPIO_ACTIVE_HIGH&amp;gt;;
			};
		};


		npm1300_ek_charger: charger {
			compatible = &amp;quot;nordic,npm1300-charger&amp;quot;;
			term-microvolt = &amp;lt;4200000&amp;gt;;
			term-warm-microvolt = &amp;lt;3600000&amp;gt;;
			// term-current-percent = &amp;lt;20&amp;gt;;
			current-microamp = &amp;lt;800000&amp;gt;;
			// trickle-microvolt = &amp;lt;2900000&amp;gt;;
			dischg-limit-microamp = &amp;lt;1000000&amp;gt;;
			vbus-limit-microamp = &amp;lt;1500000&amp;gt;;
			thermistor-ohms = &amp;lt;10000&amp;gt;;
			thermistor-beta = &amp;lt;3380&amp;gt;;
		};

		npm1300_ek_leds: leds {
			compatible = &amp;quot;nordic,npm1300-led&amp;quot;;
			nordic,led0-mode = &amp;quot;charging&amp;quot;;
			nordic,led1-mode = &amp;quot;charging&amp;quot;;
			nordic,led2-mode = &amp;quot;charging&amp;quot;;
		};

	};
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/501111?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 09:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b95c1e3-4cc6-4119-ab80-5bcfc4667f74</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Priyesh Shahi"]However, when I export the configuration and add it to my project, it doesn&amp;#39;t seem to work. Could you provide me with a sample or some guidance on how to make it work in my project? That would be really helpful.[/quote]
&lt;p&gt;Have you been able to apply any other configurations from the nPM Power Up application to a DK successfully?&lt;br /&gt;It would be good to know if it is an issue with this specific feature, or with your nPM config in general.&lt;/p&gt;
&lt;p&gt;After we find out this, I can try to reproduce it at my end&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/501074?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 06:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4077d21f-5ae2-489c-86e4-825e0d7bffd8</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;Yes, this is exactly what I want to do. I tried this with the nPM PowerUp application and the nPM1300EK board, and everything you suggested is working perfectly on that.&lt;/p&gt;
&lt;p&gt;However, when I export the configuration and add it to my project, it doesn&amp;#39;t seem to work. Could you provide me with a sample or some guidance on how to make it work in my project? That would be really helpful.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/500788?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 13:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbe0ad35-6574-46ea-a7c6-472489a97fb8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Priyesh,&lt;/p&gt;
&lt;p&gt;I will make a new conversation thread here, to start anew.&lt;br /&gt;First, I recommend that you test with the nPM PowerUp application to get the functionality you need.&lt;/p&gt;
&lt;p&gt;I tried this now, and think I got what you want.&lt;br /&gt;Can you watch the video below, and confirm if this is what you need?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/load_5F00_switch_5F00_gpio2.mp4"&gt;devzone.nordicsemi.com/.../load_5F00_switch_5F00_gpio2.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you can use the &amp;quot;export&amp;quot; feature in nPM PowerUp to get the DTS configuration you need.&lt;/p&gt;
&lt;p&gt;Here are the options I used:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1725282542675v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1725282552512v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/500650?ContentTypeID=1</link><pubDate>Sat, 31 Aug 2024 12:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:675c8182-b964-45e2-8b54-29dbc13af25a</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;I2C communication is working correctly in my application because I am able to see the voltage and other data coming from the PMIC.&lt;/p&gt;
&lt;p&gt;In the NPM1300 product specification page, I found information about the load switch mode, which I previously asked for help in configuring via the overlay file.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/114099/how-to-set-an-interrupt-on-ldsw-via-gpio-in-the-npm1300-using-the-nrf-connect-sdk/499374"]&lt;p&gt;From &lt;a href="https://infocenter.nordicsemi.com/topic/ps_npm1300/chapters/core_components/loadsw/doc/frontpage.html?cp=7_1_0_5_3#loadsw"&gt;Product specification Load switches/LDO regulators&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&amp;quot;The load switches are OFF by default and can be controlled through a control register or GPIO pin using the following bits.&amp;quot;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ldsw.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/500371?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 08:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea8b2cb2-5a83-4ed0-a933-985a3d5987de</guid><dc:creator>Robin M Saltnes</dc:creator><description>&lt;p&gt;Is I2C communcation working correctly in your appliaction? If there is no communication any settings from overlays will not be applied to the nPM1300 on startup...&amp;nbsp; &amp;nbsp;It is also important that the &amp;quot;nPM Controller&amp;quot; USB is NOT connected when you&amp;#39;re using the EK with a DK, as that will interfere the I2C communications.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: telling you how to do something you asked for how to do is not the same as advising you to do it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/500322?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 04:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43f64cb2-e253-47f9-b243-68016f29697d</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;We are using the buck converter&amp;#39;s output at the LSIN* input, and in this ticket, I was advised to use LDSW mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="92585" url="~/f/nordic-q-a/114099/how-to-set-an-interrupt-on-ldsw-via-gpio-in-the-npm1300-using-the-nrf-connect-sdk/499496"]&lt;p&gt;You have to add&lt;br /&gt;enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH&amp;gt;;&amp;nbsp;&lt;br /&gt;to the load swtich/LDO settings portion of your overlay.&lt;/p&gt;
&lt;p&gt;You also have to add the gpio controller in the i2c configuration portion of the overlay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;example:&lt;/p&gt;[/quote]
&lt;p&gt;look into the code snippet provided in the conversation above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/500232?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 13:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efd2f9ca-f4bf-4a7d-b5e6-136cddbe88f7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Parth,&lt;/p&gt;
&lt;p&gt;I am not able to create on-demand samples.&lt;br /&gt;I suggest that you try to make your own sample following our documentation or webinar on the nPM1300 and create a ticket here on DevZone if you get any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/500227?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2024 13:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b208a33f-4204-4141-bbfe-aeb678a881d8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I am talking with our experts here, and they ask:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;br /&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Can you confirm customer has connected something at LSIN* inputs? Also it seems they want to use the LDO mode, but they are configuring it as LDSW ( &lt;span style="font-size:inherit;"&gt;&lt;i&gt;regulator-initial-mode&amp;nbsp;=&amp;nbsp;&amp;lt;NPM1300_LDSW_MODE_&lt;strong&gt;LDSW&lt;/strong&gt;&amp;gt;;&lt;/i&gt; ).&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499876?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2024 05:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ccbf6e0-8b2a-4641-aa70-2411957e23c9</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;The code snippet I provided earlier is actually from that same sample, but unfortunately, it&amp;#39;s not working as expected in my case.&lt;/p&gt;
&lt;p&gt;I want to configure one of the nPM1300 GPIOs to trigger the load switch.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499781?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 13:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f96cac1-9012-4a87-81e7-1c4bf4a2d2de</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I see that the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/pmic/native/npm1300_one_button/README.html"&gt;nPM1300 One Button sample&lt;/a&gt; has not been mentioned in this ticket yet.&lt;/p&gt;
&lt;p&gt;Maybe this sample does what you need?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499636?ContentTypeID=1</link><pubDate>Sat, 24 Aug 2024 10:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a23b5867-e96c-4b24-95bc-dd85e4731bae</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;div class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;div&gt;
&lt;div class="pt-0"&gt;
&lt;div class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;
&lt;div class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;Hi,&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;div class="flex-col gap-1 md:gap-3"&gt;
&lt;div class="flex max-w-full flex-col flex-grow"&gt;
&lt;div dir="auto" data-message-author-role="assistant" data-message-id="55859d4a-f86d-4814-8d2f-f1b9924946ae"&gt;
&lt;div&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;p&gt;I tried the approach you suggested by adding &lt;code&gt;enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/code&gt; to the load switch/LDO settings portion of my overlay. I also included the GPIO controller in the I2C configuration section as you advised.&lt;/p&gt;
&lt;p&gt;However, it didn&amp;#39;t work as expected. Below is the code I tried:&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;i2c0_default {
	group1 {
		bias-pull-up;
	};
};

&amp;amp;arduino_i2c {
    npm1300_ek_pmic: pmic@6b {
        compatible = &amp;quot;nordic,npm1300&amp;quot;;
        reg = &amp;lt;0x6b&amp;gt;;
 
        npm1300_ek_gpio: gpio-controller {
            compatible = &amp;quot;nordic,npm1300-gpio&amp;quot;;
            gpio-controller;
            #gpio-cells = &amp;lt;2&amp;gt;;
            ngpios = &amp;lt;5&amp;gt;;
        };


		npm1300_ek_regulators: regulators {
			compatible = &amp;quot;nordic,npm1300-regulator&amp;quot;;

            npm1300_ek_ldo1: LDO1 {
				regulator-init-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-allowed-modes = &amp;lt;NPM1300_LDSW_MODE_LDSW&amp;gt;;
                regulator-initial-mode = &amp;lt;NPM1300_LDSW_MODE_LDSW&amp;gt;;
                // soft-start-microamp = &amp;lt;20000&amp;gt;;
                enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;             
            };
		};
         
    };    
 };
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additionally, I found in one of the DT binding files that to make the &lt;code&gt;enable-gpios&lt;/code&gt; property work, we might need to set the DVS (Dynamic Voltage Scaling) mode first.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/dvs_5F00_mode.png" /&gt;&lt;/p&gt;
&lt;p&gt;Could you please advise on the next steps? Should we configure the DVS mode before enabling the GPIO, or is there something else that might be missing?&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499496?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 08:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aafdc54-5cb7-4cc1-be77-aaace77eec2a</guid><dc:creator>Robin M Saltnes</dc:creator><description>&lt;p&gt;Hi, yes this is possible.&lt;/p&gt;
&lt;p&gt;You have to add&lt;br /&gt;enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH&amp;gt;;&amp;nbsp;&lt;br /&gt;to the load swtich/LDO settings portion of your overlay.&lt;/p&gt;
&lt;p&gt;You also have to add the gpio controller in the i2c configuration portion of the overlay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;arduino_i2c {
   npm1300_ek_pmic: pmic@6b {
       compatible = &amp;quot;nordic,npm1300&amp;quot;;
       reg = &amp;lt;0x6b&amp;gt;;

       npm1300_ek_gpio: gpio-controller {
           compatible = &amp;quot;nordic,npm1300-gpio&amp;quot;;
           gpio-controller;
           #gpio-cells = &amp;lt;2&amp;gt;;
           ngpios = &amp;lt;5&amp;gt;;
       };

};

npm1300_ek_ldo1: LDO1 {
    regulator-initial-mode = &amp;lt;NPM1300_LDSW_MODE_LDSW&amp;gt;;
    // soft-start-microamp = &amp;lt;20000&amp;gt;;
    enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH&amp;gt;;
    
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499383?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 13:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b905d517-67e6-45f3-b350-b618cb488096</guid><dc:creator>Parth Parekh</dc:creator><description>&lt;p&gt;also can you please provide a simple example code based on zephyr on how to trigger the load switches with GPIO HIGH/LOW ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499375?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 12:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff89d528-2871-4fd8-8d27-6e2b128e4e7d</guid><dc:creator>Priyesh Shahi</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you for the information regarding the control of load switches/LDO regulators through a control register or GPIO pin.&lt;/p&gt;
&lt;p&gt;I was wondering if it&amp;rsquo;s possible to implement these changes (controlling the load switches) directly via the overlay file in NCS, without modifying the source code. Specifically, I&amp;#39;m looking to set the control through a GPIO pin using the overlay file configuration.&lt;/p&gt;
&lt;p&gt;Any guidance on this would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyesh shahi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set an interrupt on LDSW via GPIO in the NPM1300 using the nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/499374?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 12:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9377a7e6-c387-45e8-b128-c00810ab6c20</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From &lt;a href="https://infocenter.nordicsemi.com/topic/ps_npm1300/chapters/core_components/loadsw/doc/frontpage.html?cp=7_1_0_5_3#loadsw"&gt;Product specification Load switches/LDO regulators&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&amp;quot;The load switches are OFF by default and can be controlled through a control register or GPIO pin using the following bits.&amp;quot;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>