<?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>nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109835/npm1300-one-button-example-on-custom-board</link><description>Hi. 
 I&amp;#39;m testing the &amp;quot;nPM1300 One Button&amp;quot; example, but I&amp;#39;m having some problems. 
 When setting up the npm1300_ek.overlay file, I specify that pin P0.15 is the interrupt pin on my custom board (nRF52840) and GPIO3 is the interrupt initiator pin on the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 07 Apr 2024 18:06:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109835/npm1300-one-button-example-on-custom-board" /><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477428?ContentTypeID=1</link><pubDate>Sun, 07 Apr 2024 18:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1526d9a-e483-42ea-8d12-19d962954ce9</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;I got it. Thank you very much for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477402?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2024 16:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e8f39f-4b97-433f-9eb1-4c0e1d52d0e6</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;So I heard back from the developers. They will make a expectation for the specific property to avoid the warning. You can also safely ignore this warning as it has nothing to do with the pin.&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477336?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 13:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c18f2e-fdf6-42f6-b3fa-368faa811c71</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Thank you, Runar.&lt;/p&gt;
&lt;p&gt;I will wait for news from you on solving this problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because if don&amp;#39;t solve this problem, you can&amp;#39;t use GPIO0 and GPIO1 on EK as interrupt pin, because they (P0.00 and P0.01) are allocated for quartz. And when using GPIO2, 3, 4 it is necessary to make sure that they are not used on nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477254?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 08:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba26276-3964-4bbd-ad4f-2dde8b6ef2a6</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I will report the issue internally&lt;/p&gt;
&lt;p&gt;Good to hear the rest is working,&amp;nbsp;&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: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477201?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 18:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d856d4cc-cc55-4455-b6d8-f79fccebdbb3</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Runar.&lt;/p&gt;
[quote userid="122502" url="~/f/nordic-q-a/109835/npm1300-one-button-example-on-custom-board/477039"]I do wonder if it is a intellisense error, I can replicate the same warning on a DK by switching the pin number[/quote]
&lt;p&gt;Could you please ask the developers what this bug is related to and if there is any way to fix it (or if it will be fixed in the future)?&lt;/p&gt;
&lt;p&gt;I solved the interrupt problem, everything works fine now. The only thing left is to solve the problem with the pmic-int-pin property.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477153?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 13:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70ca17e9-faa1-4e86-a393-04aa3bf635bd</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;I think you are correct.&lt;br /&gt;It can&amp;#39;t possibly affect anything else as that parameter is only used in a single place in the Zephyr codebase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477039?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 09:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62fd378f-6a0b-4043-886e-1cee6814a0dc</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I do wonder if it is a intellisense error, I can replicate the same warning on a DK by switching the pin number&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: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477028?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 08:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e62275-adbc-4619-b7a6-03c74cbbec24</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi, Andy.&amp;nbsp;Thanks for answering.&lt;/p&gt;
&lt;p&gt;I will check the status of P0.15 and give an answer shortly.&lt;/p&gt;
&lt;p&gt;Do you happen to know why the pmic-int-pin property affects not only the pmic pin, but also the nRF52 pin?&amp;nbsp;&amp;nbsp;The &lt;a href="https://docs.zephyrproject.org/latest/build/dts/api/bindings/mfd/nordic,npm1300.html"&gt;zephyr website&lt;/a&gt; says this property only applies to pmic.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/477017?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 07:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e66ebded-d218-4c23-86d1-e5b84ebc4193</guid><dc:creator>Andy Sinclair</dc:creator><description>&lt;p&gt;Hi, from your logic analyser trace the rising edge on GPIO3 shows that the interrupt from the PMIC is being generated as expected by the falling edge on SHIPHOLD (NPM1300_EVENT_SHIPHOLD_PRESS).&lt;br /&gt;&lt;br /&gt;The interrupt will&amp;nbsp;only&amp;nbsp;be cleared once it is detected by the host and the event registers are cleared by I2C.&lt;br /&gt;&lt;br /&gt;Do you see the event detected on the console?&lt;br /&gt;&lt;br /&gt;If not, can you&amp;nbsp;check the state of P0.15 when the interrupt is active?&lt;br /&gt;You should be able to so this by reading the pin state with code or a shell command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/476970?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 18:09:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1161dfd7-5327-4b16-867b-7a374f372361</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the part of the code associated with PMIC in the zephyr.dts file in the build folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;zephyr.dts --&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;i2c1: i2c@40004000 {
			compatible = &amp;quot;nordic,nrf-twi&amp;quot;;
			#address-cells = &amp;lt; 0x1 &amp;gt;;
			#size-cells = &amp;lt; 0x0 &amp;gt;;
			reg = &amp;lt; 0x40004000 0x1000 &amp;gt;;
			clock-frequency = &amp;lt; 0x186a0 &amp;gt;;
			interrupts = &amp;lt; 0x4 0x1 &amp;gt;;
			easydma-maxcnt-bits = &amp;lt; 0x10 &amp;gt;;
			status = &amp;quot;okay&amp;quot;;
			pinctrl-0 = &amp;lt; &amp;amp;i2c1_default &amp;gt;;
			pinctrl-1 = &amp;lt; &amp;amp;i2c1_sleep &amp;gt;;
			pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
			npm1300_ek_pmic: pmic@6b {
				compatible = &amp;quot;nordic,npm1300&amp;quot;;
				reg = &amp;lt; 0x6b &amp;gt;;
				host-int-gpios = &amp;lt; &amp;amp;gpio0 0xf 0x0 &amp;gt;;
				pmic-int-pin = &amp;lt; 0x3 &amp;gt;;
				npm1300_ek_gpio: gpio-controller {
					compatible = &amp;quot;nordic,npm1300-gpio&amp;quot;;
					gpio-controller;
					#gpio-cells = &amp;lt; 0x2 &amp;gt;;
					ngpios = &amp;lt; 0x5 &amp;gt;;
					phandle = &amp;lt; 0xb &amp;gt;;
				};
				npm1300_ek_regulators: regulators {
					compatible = &amp;quot;nordic,npm1300-regulator&amp;quot;;
					npm1300_ek_buck1: BUCK1 {
						regulator-min-microvolt = &amp;lt; 0x1b7740 &amp;gt;;
						regulator-max-microvolt = &amp;lt; 0x325aa0 &amp;gt;;
					};
					npm1300_ek_buck2: BUCK2 {
						regulator-min-microvolt = &amp;lt; 0xf4240 &amp;gt;;
						regulator-max-microvolt = &amp;lt; 0x325aa0 &amp;gt;;
						regulator-init-microvolt = &amp;lt; 0x325aa0 &amp;gt;;
						retention-microvolt = &amp;lt; 0x2625a0 &amp;gt;;
						enable-gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0x1 0x1 &amp;gt;;
						retention-gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0x2 0x0 &amp;gt;;
						pwm-gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0x2 0x1 &amp;gt;;
					};
					npm1300_ek_ldo1: LDO1 {
						regulator-min-microvolt = &amp;lt; 0xf4240 &amp;gt;;
						regulator-max-microvolt = &amp;lt; 0x325aa0 &amp;gt;;
						regulator-initial-mode = &amp;lt; 0x3 &amp;gt;;
						enable-gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0x2 0x1 &amp;gt;;
					};
					npm1300_ek_ldo2: LDO2 {
						regulator-min-microvolt = &amp;lt; 0xf4240 &amp;gt;;
						regulator-max-microvolt = &amp;lt; 0x325aa0 &amp;gt;;
						regulator-initial-mode = &amp;lt; 0x3 &amp;gt;;
						enable-gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0x2 0x1 &amp;gt;;
					};
				};
				npm1300_ek_charger: charger {
					compatible = &amp;quot;nordic,npm1300-charger&amp;quot;;
					term-microvolt = &amp;lt; 0x401640 &amp;gt;;
					current-microamp = &amp;lt; 0x1d4c0 &amp;gt;;
					dischg-limit-microamp = &amp;lt; 0x927c0 &amp;gt;;
					vbus-limit-microamp = &amp;lt; 0x7a120 &amp;gt;;
					thermistor-ohms = &amp;lt; 0x2710 &amp;gt;;
					thermistor-beta = &amp;lt; 0xd34 &amp;gt;;
					charging-enable;
				};
				npm1300_ek_buttons: buttons {
					compatible = &amp;quot;gpio-keys&amp;quot;;
					pmic_button0: pmic_button_0 {
						gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0x0 0x0 &amp;gt;;
						label = &amp;quot;Pmic button switch 0&amp;quot;;
						zephyr,code = &amp;lt; 0xb &amp;gt;;
					};
				};
				npm1300_ek_leds: leds {
					compatible = &amp;quot;nordic,npm1300-led&amp;quot;;
					nordic,led0-mode = &amp;quot;error&amp;quot;;
					nordic,led1-mode = &amp;quot;charging&amp;quot;;
					nordic,led2-mode = &amp;quot;host&amp;quot;;
				};
			};
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Interruptions still don&amp;#39;t work. Here is a screenshot from the logic analyzer (GPIO3 and SHPHLD button behavior). It might be of some help to you.&lt;/p&gt;
&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/Logic_5F00_Level.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/476870?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 12:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49fc00f2-a4e3-42d8-9314-d901b00d179c</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;When I look at the samples it looks like the npm1300 is defined in the overlay to the board. Not the npm1300. If you look at the zephyr dts in the build folder. Is the PMIC config included there? I will hopefully have an EK tomorrow and test myself&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: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/476622?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6e96ab6-3362-4646-aba0-43facd36d72e</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;&lt;span&gt;Here&amp;#39;s these files:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;custom_board_nrf52840.dts --&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;nordic/nrf52840_qiaa.dtsi&amp;gt;
#include &amp;quot;custom_board_nrf52840-pinctrl.dtsi&amp;quot;

/ {
	model = &amp;quot;custom board nRF52840&amp;quot;;
	compatible = &amp;quot;nordic-semiconductor,custom-board-nrf52840&amp;quot;;

	chosen {
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
	};

	nrf_radio_fem: nrf21540_fem_node {
		compatible  = &amp;quot;nordic,nrf21540-fem&amp;quot;;
		tx-en-gpios = &amp;lt;&amp;amp;gpio1 15 GPIO_ACTIVE_HIGH&amp;gt;;
		rx-en-gpios = &amp;lt;&amp;amp;gpio0 2 GPIO_ACTIVE_HIGH&amp;gt;;
		pdn-gpios   = &amp;lt;&amp;amp;gpio1 10 GPIO_ACTIVE_HIGH&amp;gt;;
		spi-if = &amp;lt;&amp;amp;nrf_radio_fem_spi&amp;gt;;
		supply-voltage-mv = &amp;lt;3300&amp;gt;;
    };

    leds {
        compatible = &amp;quot;gpio-leds&amp;quot;;

		led0: led_0 {
            gpios = &amp;lt;&amp;amp;gpio0 3 GPIO_ACTIVE_LOW&amp;gt;;
            label = &amp;quot;BT_LED_GREEN&amp;quot;;
        };

		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_LOW&amp;gt;;
            label = &amp;quot;LED_WHITE&amp;quot;;
        };

		led2: led_2 {
            gpios = &amp;lt;&amp;amp;gpio1 8 (GPIO_ACTIVE_LOW)&amp;gt;;
            label = &amp;quot;LED_RED&amp;quot;;
        };

		led3: led_3 {
            gpios = &amp;lt;&amp;amp;gpio0 27 (GPIO_ACTIVE_LOW)&amp;gt;;
            label = &amp;quot;LED_BLUE&amp;quot;;
        };

		led4: led_4 {
            gpios = &amp;lt;&amp;amp;gpio0 21 (GPIO_ACTIVE_LOW)&amp;gt;;
            label = &amp;quot;LED_GREEN&amp;quot;;
        };

		led5: led_5 {
            gpios = &amp;lt;&amp;amp;gpio0 22 (GPIO_ACTIVE_LOW)&amp;gt;;
            label = &amp;quot;LED_YELLOW&amp;quot;;
        };

		led6: led_6 {
            gpios = &amp;lt;&amp;amp;gpio0 23 (GPIO_ACTIVE_LOW)&amp;gt;;
            label = &amp;quot;LED_RED&amp;quot;;
        };

		speakeren: speaker_enable {
            gpios = &amp;lt;&amp;amp;gpio0 12 (GPIO_ACTIVE_HIGH)&amp;gt;;
            label = &amp;quot;SPEAKER_EN&amp;quot;;
		};
    };

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwmspeaker: pwm_speaker {
			pwms = &amp;lt;&amp;amp;pwm0 0 PWM_HZ(800) PWM_POLARITY_NORMAL&amp;gt;;
		};
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Button 1&amp;quot;;
		};
	};

	/* These aliases are provided for compatibility with samples */
	aliases {
		led0 = &amp;amp;led0;
		led1 = &amp;amp;led1;
		led2 = &amp;amp;led2;
		led3 = &amp;amp;led3;
		led4 = &amp;amp;led4;
		led5 = &amp;amp;led5;
		led6 = &amp;amp;led6;
		speakeren = &amp;amp;speakeren;
		pwmspeaker = &amp;amp;pwmspeaker;
	};
};

&amp;amp;flash0 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x0 0xc000&amp;gt;;
		};
		slot0_partition: partition@c000 {
			label = &amp;quot;image-0&amp;quot;;
			reg = &amp;lt;0xc000 0x72000&amp;gt;;
		};
		slot1_partition: partition@7e000 {
			label = &amp;quot;image-1&amp;quot;;
			reg = &amp;lt;0x7e000 0x72000&amp;gt;;
		};
		scratch_partition: partition@f0000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0xf0000 0xa000&amp;gt;;
		};
		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0xfa000 0x6000&amp;gt;;
		};
	};
};


&amp;amp;gpio0 {
    status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio1 {
    status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
    status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;9600&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;i2c1 {
	compatible = &amp;quot;nordic,nrf-twi&amp;quot;;
	/* Cannot be used together with spi1. */
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;radio {
	fem = &amp;lt;&amp;amp;nrf_radio_fem&amp;gt;;
};

&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;npm1300_ek.overlay --&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;dt-bindings/regulator/npm1300.h&amp;gt;
#include &amp;lt;zephyr/dt-bindings/input/input-event-codes.h&amp;gt;

&amp;amp;i2c1 {
	npm1300_ek_pmic: pmic@6b {
		compatible = &amp;quot;nordic,npm1300&amp;quot;;
		reg = &amp;lt;0x6b&amp;gt;;
		host-int-gpios = &amp;lt;&amp;amp;gpio0 15 0&amp;gt;;
		pmic-int-pin = &amp;lt;3&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;;

			/* limits are set to min/max allowed values */
			npm1300_ek_buck1: BUCK1 {
				regulator-min-microvolt = &amp;lt;1800000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
			};

			npm1300_ek_buck2: BUCK2 {
				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;;
				enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 1 GPIO_ACTIVE_LOW&amp;gt;;
				retention-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 2 GPIO_ACTIVE_HIGH&amp;gt;;
				pwm-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 2 GPIO_ACTIVE_LOW&amp;gt;;
			};

			npm1300_ek_ldo1: LDO1 {
				regulator-min-microvolt = &amp;lt;1000000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-initial-mode = &amp;lt;NPM1300_LDSW_MODE_LDSW&amp;gt;;
				enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 2 GPIO_ACTIVE_LOW&amp;gt;;
			};

			npm1300_ek_ldo2: LDO2 {
				regulator-min-microvolt = &amp;lt;1000000&amp;gt;;
				regulator-max-microvolt = &amp;lt;3300000&amp;gt;;
				regulator-initial-mode = &amp;lt;NPM1300_LDSW_MODE_LDSW&amp;gt;;
				enable-gpios = &amp;lt;&amp;amp;npm1300_ek_gpio 2 GPIO_ACTIVE_LOW&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;4200000&amp;gt;;
			current-microamp = &amp;lt;120000&amp;gt;;
			dischg-limit-microamp = &amp;lt;600000&amp;gt;;
			vbus-limit-microamp = &amp;lt;500000&amp;gt;;
			thermistor-ohms = &amp;lt;10000&amp;gt;;
			thermistor-beta = &amp;lt;3380&amp;gt;;
			charging-enable;
		};

		npm1300_ek_buttons: buttons {
			compatible = &amp;quot;gpio-keys&amp;quot;;
			pmic_button0: pmic_button_0 {
				gpios = &amp;lt; &amp;amp;npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH&amp;gt;;
				label = &amp;quot;Pmic button switch 0&amp;quot;;
			zephyr,code = &amp;lt;INPUT_KEY_0&amp;gt;;
			};
		};

		npm1300_ek_leds: leds {
			compatible = &amp;quot;nordic,npm1300-led&amp;quot;;
			nordic,led0-mode = &amp;quot;error&amp;quot;;
			nordic,led1-mode = &amp;quot;charging&amp;quot;;
			nordic,led2-mode = &amp;quot;host&amp;quot;;
		};
	};
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/476610?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 13:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5868f8f7-d13d-403d-b7fc-fffc4186cda5</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I agree, if that is the case I would not disable the leds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you post your overlay so I can have a look at it?&amp;nbsp;&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: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/476450?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468dd18f-61eb-4f7a-b3a0-5e43ea84a4e5</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Runar.&amp;nbsp;Thank you for your response.&lt;/p&gt;
&lt;p&gt;My board is based on the nRF52840 (it&amp;#39;s not a DK).&amp;nbsp;If I understand you correctly, if I disable the leds node, I can no longer use LEDs in my application? I don&amp;#39;t want to do that because the LEDs on my board play an important role.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We need to find another solution to this problem.&lt;/p&gt;
&lt;p&gt;Why does the pmic-int-pin = &amp;lt;3&amp;gt; property configure the pin to nRF52840 and not nPM1300?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nPM1300 one button example on custom board</title><link>https://devzone.nordicsemi.com/thread/476439?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10672154-3f44-4233-a552-ffcd4a6d0e89</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I presume your custom board is based on the 52840dk?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can do the following in your overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/{
    leds {
        status = &amp;quot;disabled&amp;quot;;
    };
}
You can remove the &amp;#39;leds&amp;#39; node altogether by using /delete-node/. The LED nodes are being referenced by the aliases, so those need to be removed as well.



/ {
    aliases {
        /delete-property/ led0;
        /delete-property/ mcuboot-led0;
        /delete-property/ bootloader-led0;
    };

    /delete-node/ leds;

};&lt;/pre&gt;&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></channel></rss>