<?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>Can&amp;#39;t get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115549/can-t-get-events-from-npm1300-mfd</link><description>I would like to get the events offered by the mfd driver for VBUS detect but for some reason my callback is never triggered. I&amp;#39;m doing this atm: 
 
 Devicetree: 
 
 Loosely following the EK sample. Removing and attaching VBUS does not trigger my callback</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Oct 2024 15:50:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115549/can-t-get-events-from-npm1300-mfd" /><item><title>RE: Can't get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/thread/506768?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 15:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce229bda-9a4c-46cb-9cde-b67b36ebc35c</guid><dc:creator>timonsku</dc:creator><description>&lt;p&gt;The snippet I posted in the previous reply was part of the npm1300_pmic node. Identical setup to how the overlay for the EK shield looks.&lt;br /&gt;When deleting this npm1300_gpio node it started working, no other changes were made.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/thread/506630?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 07:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01db15aa-f74d-4a82-9f97-36375f952be2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It is not clear to me what you originally added and what you have removed now. Did you change any of the NCS devicetree files, or did you just remove something from your overlay file? If so, what did it look like before when it was not working, and what does it look like now?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/thread/506552?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 13:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d6bd014-7b55-48f0-ad9d-e075fd95c737</guid><dc:creator>timonsku</dc:creator><description>&lt;p&gt;I found the issue but not quite sure what exactly the cause is. In a hunch I removed the GPIO device definition that I had copied from the EK shield overlay. Without that it starts to work.&lt;br /&gt;&lt;br /&gt; npm1300_gpio: gpio-controller {&lt;br /&gt; compatible = &amp;quot;nordic,npm1300-gpio&amp;quot;;&lt;br /&gt; gpio-controller;&lt;br /&gt; #gpio-cells = &amp;lt;2&amp;gt;;&lt;br /&gt; ngpios = &amp;lt;5&amp;gt;;&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;Is the GPIO driver mutually exclusive to getting event interrupts or is it clashing in other ways with the mfd driver?&lt;br /&gt;I don&amp;#39;t need the GPIO controller in this application so its fine but I would like to understand what went wrong here in the future. I don&amp;#39;t quite understand what the gpio-cells and ngpios property tell the driver in the context of the nPM1300.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/thread/506541?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 13:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08814962-7ca0-4cbe-9f19-d4aa5c174c99</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Does the npm1300_one_button sample work on your custom board? Just to check if there are any SW issues with your test.&lt;/p&gt;
&lt;p&gt;Also, what other pins did you connect? Did you connect the rest of the I2C pins between the EK and your custom board?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/thread/506535?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 13:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3339f2e-e829-4b1f-b9f7-e9fbc1fb8a3f</guid><dc:creator>timonsku</dc:creator><description>&lt;p&gt;Hi, this is on a custom board. P1.09 on an nRF5340 is connected to GPIO0 on the nPM1300&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get events from nPM1300 MFD</title><link>https://devzone.nordicsemi.com/thread/506526?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2024 13:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67ef1623-942b-4169-812f-8b4964ec2ab2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What device are you running your application on? A DK? Which one?&lt;/p&gt;
&lt;p&gt;If it is a DK, then depending on which one, Pin P0.0 is usually used for the LFXTAL, so unless you have modified the DK, this GPIO is not routed out to where it says P0.0 on the DK. Try using another pin. Check the back of the DK to see which pins that are used by what by default.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>