<?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>Using 2 devices on the same SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123394/using-2-devices-on-the-same-spi</link><description>Hello, I am currently working with NRF5340-DK dev kit and I want to use 2 SPI devices connected on the same SPI bus OR use 2 different SPI instances, however none of these 2 approaches is working. This is my overlay file when trying to use the same SPI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Aug 2025 16:51:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123394/using-2-devices-on-the-same-spi" /><item><title>RE: Using 2 devices on the same SPI</title><link>https://devzone.nordicsemi.com/thread/544510?ContentTypeID=1</link><pubDate>Mon, 04 Aug 2025 16:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a69a0355-afd6-4eca-80d7-bd5408e98273</guid><dc:creator>Portilha</dc:creator><description>&lt;p&gt;Thanks, that was it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using 2 devices on the same SPI</title><link>https://devzone.nordicsemi.com/thread/544308?ContentTypeID=1</link><pubDate>Fri, 01 Aug 2025 11:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45744085-1af7-46d1-af3c-4c5487e67c3c</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suspect you are missing a group in pinctrl&amp;nbsp;&lt;/p&gt;
&lt;p&gt;try to add sleep group as below, and add the group to pinctrl-names so that it would be&amp;nbsp;&amp;nbsp; pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  spi3_sleep: spi3_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 27)&amp;gt;,
                    &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 10)&amp;gt;,
                    &amp;lt;NRF_PSEL(SPIM_MISO, 0, 2)&amp;gt;;
        };
    };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and delete the spi4 group that is not in use.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is for using 1 SPI peripheral&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>