<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Configuring eCSPI2 as SPI Slave on i.MX8MP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1842410#M222246</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228938"&gt;@yaen&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;I haven't found any documentation for iMX93 of how to do that like iMX8, but we have a device tree configuring the SPI bus in slave mode.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk-lpspi-slave.dts" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk-lpspi-slave.dts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry for the mistake!&lt;BR /&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Chavira&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 11:49:28 GMT</pubDate>
    <dc:creator>Chavira</dc:creator>
    <dc:date>2024-04-08T11:49:28Z</dc:date>
    <item>
      <title>Configuring eCSPI2 as SPI Slave on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1840637#M222120</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Dear NXP,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm working on a project that requires the use of the eCSPI2 interface on the &lt;LI-PRODUCT title="IMX8MPLUS" id="IMX8MPLUS"&gt;&lt;/LI-PRODUCT&gt; processor in SPI slave mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I've been able to successfully configure and test the eCSPI2 in SPI master mode using &lt;/SPAN&gt;&lt;SPAN class=""&gt;spidev_test&lt;/SPAN&gt;&lt;SPAN class=""&gt; but I'm facing some challenges getting it to work in SPI slave mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;When I try to communicate with the eCSPI2 in slave mode from another &lt;LI-PRODUCT title="IMX8MPLUS" id="IMX8MPLUS"&gt;&lt;/LI-PRODUCT&gt; acting as the SPI master, I'm not able to receive any data on the slave side&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Could you please provide a working example or guidance on how to correctly configure the eCSPI2 to operate in SPI slave mode? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'd also appreciate if you could share any tips on how to properly read the RX buffer of the eCSPI2 slave interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;DT snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;amp;ecspi2 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;pinctrl-names = "default", "sleep";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2 &amp;amp;pinctrl_ecspi2_cs&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;gpio5 13 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;fsl,spi-only-use-cs1-sel;&lt;BR /&gt;spi-slave;&lt;BR /&gt;spidev1: slave@0 {&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "rohm,dh2228fv";&lt;BR /&gt;spi-max-frequency = &amp;lt;500000&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;pinctrl_ecspi2: ecspi2grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x82&lt;BR /&gt;MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x82&lt;BR /&gt;MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x82&lt;BR /&gt;MX8MP_IOMUXC_ECSPI2_SS0__ECSPI2_SS0 0x82&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;pinctrl_ecspi2_cs: ecspi2cs {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x40000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Any assistance you can provide would be greatly appreciated. Please let me know if you need any additional information from me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank you,&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Yaakov&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:28:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1840637#M222120</guid>
      <dc:creator>yaen</dc:creator>
      <dc:date>2024-04-04T11:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring eCSPI2 as SPI Slave on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1840958#M222140</link>
      <description>&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228938"&gt;@yaen&lt;/a&gt;!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;I think the correct configuration for that is the next:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;amp;ecspi2 {


    #address-cells = &amp;lt;1&amp;gt;;


    #size-cells = &amp;lt;0&amp;gt;;


    pinctrl-names = "default", "sleep";


    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;


    pinctrl-1 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;


    spi-slave;




    spidev1: slave@0 {


        reg = &amp;lt;0&amp;gt;;


        compatible = "rohm,dh2228fv";


        spi-max-frequency = &amp;lt;500000&amp;gt;;


        status = "okay";


    };


};




pinctrl_ecspi2: ecspi2grp {


    fsl,pins = &amp;lt;


        MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x82


        MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x82


        MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x82


        MX8MP_IOMUXC_ECSPI2_SS0__ECSPI2_SS0 0x82


    &amp;gt;;


};&lt;/LI-CODE&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;If you have more inquiries about the usage of the epi in slave mode you can refer to our next application note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;A class="editor-rtfLink" style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt; ; color: #4a6ee0;" href="https://www.nxp.com/docs/en/application-note/AN13633.pdf" target="_blank" rel="noopener"&gt;&lt;SPAN data-preserver-spaces="true"&gt;https://www.nxp.com/docs/en/application-note/AN13633.pdf&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;Best Regards!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;Chavira&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;SPAN data-preserver-spaces="true"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 18:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1840958#M222140</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-04-04T18:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring eCSPI2 as SPI Slave on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1841761#M222207</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a very useful document.&lt;/P&gt;&lt;P&gt;Do you have one for iMX93 (lpspi)?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 09:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1841761#M222207</guid>
      <dc:creator>yaen</dc:creator>
      <dc:date>2024-04-07T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring eCSPI2 as SPI Slave on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1842410#M222246</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228938"&gt;@yaen&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;I haven't found any documentation for iMX93 of how to do that like iMX8, but we have a device tree configuring the SPI bus in slave mode.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk-lpspi-slave.dts" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk-lpspi-slave.dts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry for the mistake!&lt;BR /&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 11:49:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-eCSPI2-as-SPI-Slave-on-i-MX8MP/m-p/1842410#M222246</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-04-08T11:49:28Z</dc:date>
    </item>
  </channel>
</rss>

