<?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: IMX6 Linux SPI Slave mode not running in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1163259#M162958</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally succeeded to read something from spi in slave mode, although there is still problem with the content of the data, I think for this topic the issue is solved.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thank you very much&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Best Regards.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Y.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 07:46:00 GMT</pubDate>
    <dc:creator>Yavuz</dc:creator>
    <dc:date>2020-10-06T07:46:00Z</dc:date>
    <item>
      <title>IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161156#M162736</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I have an IMX6 linux system which is compiled via yocto provided by nxp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use SPI Slave mode. My IMX6 is an SPI slave with CPHA=1, CPOL=0 and external system has a Clock of 15MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Device tree is as follows:&lt;/P&gt;&lt;P&gt;imx6qdl.dtsi:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ecspi3: spi@2010000 {&lt;BR /&gt;&amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";&lt;BR /&gt;&amp;nbsp;reg = &amp;lt;0x02010000 0x4000&amp;gt;;&lt;BR /&gt;&amp;nbsp;interrupts = &amp;lt;0 33 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt;&amp;nbsp;clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_ECSPI3&amp;gt;,&lt;BR /&gt;&amp;nbsp;&amp;lt;&amp;amp;clks IMX6QDL_CLK_ECSPI3&amp;gt;;&lt;BR /&gt;&amp;nbsp;clock-names = "ipg", "per";&lt;BR /&gt;&amp;nbsp;dmas = &amp;lt;&amp;amp;sdma 7 7 1&amp;gt;, &amp;lt;&amp;amp;sdma 8 7 2&amp;gt;;&lt;BR /&gt;&amp;nbsp;dma-names = "rx", "tx";&lt;BR /&gt;&amp;nbsp;status = "disabled";&lt;BR /&gt;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;imx6qdl-sabresd.dtsi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;amp;ecspi3 {&lt;BR /&gt;&amp;nbsp;/*fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;*/&lt;BR /&gt;&amp;nbsp;cs-gpios = &amp;lt;&amp;amp;gpio4 24 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi3&amp;gt;;&lt;BR /&gt;&amp;nbsp;spi-slave; /*empty attriute to mark spi as slave*/&lt;BR /&gt;&amp;nbsp;status = "okay";&lt;BR /&gt;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;I added spidev_test -&amp;gt; to yocto recipes&lt;/P&gt;&lt;P&gt;I added slave :&lt;/P&gt;&lt;P&gt;- echo spidev &amp;gt; /sys/class/spi_slave/spi2/slave&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the by using the spidev_test I tried to test:&lt;/P&gt;&lt;P&gt;- spidev_test -v -D /dev/spidev2.0 -s 15000000 -p abc&lt;/P&gt;&lt;P&gt;but the transfer is blocked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;spi mode: 0x1&lt;/P&gt;&lt;P&gt;bits per word: 8&lt;/P&gt;&lt;P&gt;max speed: 15000000 Hz (15000 KHz)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions ? ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:12:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161156#M162736</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2020-09-30T08:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161254#M162745</link>
      <description>&lt;P&gt;Hi Yavuz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what bsp used in the case, one can try latest as described on link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Which-imx-linux-version-shall-be-selected-for-porting-SPI-SLAVE/m-p/1161140#M162735" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Which-imx-linux-version-shall-be-selected-for-porting-SPI-SLAVE/m-p/1161140#M162735&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 10:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161254#M162745</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-30T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161285#M162751</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;uname -a gives&lt;/P&gt;&lt;P&gt;Linux imx6dlsabresd 5.4.3+gf8118585ee3c #9 SMP PREEMPT Wed Sep 30 04:23:27 PDT 2020 arm71 GNU/Linux&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161285#M162751</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2020-09-30T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161290#M162752</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;linux kernel 5.4.3,&lt;/P&gt;&lt;P&gt;i guess that is the correct version which supports linux spi slave mode support for imx6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you agree ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161290#M162752</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2020-09-30T11:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161311#M162755</link>
      <description>&lt;P&gt;it is not kernel 5.4.3 :&lt;/P&gt;
&lt;P&gt;L5.4.24&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_5.4.24_2.1.0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_5.4.24_2.1.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:11:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161311#M162755</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-30T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161649#M162781</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;The spi-imx.c content was exactly the same (linux diff result) but anyway i have followed the path you suggest to switch to kernel 5.4.24_2.1.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downloaded the the git repository :&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_5.4.24_2.1.0" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;https://source.codeaurora.org/external/imx/linux-imx&lt;/A&gt;&amp;nbsp;and checkout the branch "imx_5.4.24_2.1.0"&lt;/P&gt;&lt;P&gt;build the kernel, get the zImage then loaded that to my target&lt;/P&gt;&lt;P&gt;now "uname -a gives the following result" :&lt;/P&gt;&lt;P&gt;Linux imx6dlsabresd 5.4.24-00060-gbabac008e5cf #1 SMP&amp;nbsp; PREEMPT Wed Sep 30 23:12:33 PDT 2020 arm71 GNU/Linux&lt;/P&gt;&lt;P&gt;the only difference i see after using this new kernel is:&lt;/P&gt;&lt;P&gt;when i perform:&lt;/P&gt;&lt;P&gt;# echo spidev &amp;gt; /sys/class/spi_slave/spi2/slave&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;imx6q-pcie lffc00.pcie: could not get pcie-phy&lt;/P&gt;&lt;P&gt;imx_usb 2184200.usb: No overcurrent polarity is defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first line is new, second line was existent on previous kernel version also&lt;/P&gt;&lt;P&gt;So the problem seems to continue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Suggestions&lt;/P&gt;&lt;P&gt;Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 07:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161649#M162781</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2020-10-01T07:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161761#M162800</link>
      <description>&lt;P&gt;for ecspi slave one also can look at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/i-MX6-SPI-Slave-mode/m-p/289544" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/i-MX6-SPI-Slave-mode/m-p/289544&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.digi.com/resources/documentation/digidocs/90001547/reference/bsp/v4-1_6ul/r_spi_v4-1.htm?TocPath=Additional%20resources%7CLinux%20v4.1%20Board%20Support%20Package%7C_____19" target="_blank"&gt;https://www.digi.com/resources/documentation/digidocs/90001547/reference/bsp/v4-1_6ul/r_spi_v4-1.htm?TocPath=Additional%20resources%7CLinux%20v4.1%20Board%20Support%20Package%7C_____19&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://billauer.co.il/blog/2017/08/nxp-freescale-spi-slave/" target="_blank"&gt;http://billauer.co.il/blog/2017/08/nxp-freescale-spi-slave/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:05:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1161761#M162800</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-10-01T11:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 Linux SPI Slave mode not running</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1163259#M162958</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally succeeded to read something from spi in slave mode, although there is still problem with the content of the data, I think for this topic the issue is solved.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thank you very much&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37066"&gt;@igorpadykov&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Best Regards.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Y.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 07:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-Linux-SPI-Slave-mode-not-running/m-p/1163259#M162958</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2020-10-06T07:46:00Z</dc:date>
    </item>
  </channel>
</rss>

