<?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>i.MX ProcessorsのトピックRe: IMX93 - LPSPI3 in slave mode - Linux</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105167#M237665</link>
    <description>Another question:&lt;BR /&gt;Is there the possibility to receive only data on imx93 without sending anything?</description>
    <pubDate>Tue, 27 May 2025 09:52:39 GMT</pubDate>
    <dc:creator>il_ciancio</dc:creator>
    <dc:date>2025-05-27T09:52:39Z</dc:date>
    <item>
      <title>IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2103293#M237524</link>
      <description>&lt;P&gt;Hello NXP experts!&lt;/P&gt;&lt;P&gt;I am configuring an IMX93 processor with Yocto (&lt;A href="https://github.com/nxp-imx/imx-manifest" target="_blank"&gt;https://github.com/nxp-imx/imx-manifest&lt;/A&gt; -b imx-linux-styhead -m imx-6.12.3-1.0.0.xml) for a custom board.&lt;/P&gt;&lt;P&gt;I have to configure the LPSPI3 peripheral in slave mode, based on kernel 6.12.3.&lt;/P&gt;&lt;P&gt;This is the DTS, I have followed this example &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.12.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk-i2c-spi-slave.dts" target="_blank"&gt;linux-imx/arch/arm64/boot/dts/freescale/imx93-11x11-evk-i2c-spi-slave.dts at lf-6.12.y · nxp-imx/linux-imx · GitHub&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;/*slave spi*/&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;lpspi3 {&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_lpspi3&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;status = "okay";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;spi-slave;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;slave {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;compatible = "lwn,bk4";:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;spi-max-frequency = &amp;lt;10000000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl_lpspi3: lpspi3grp {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fsl,pins = &amp;lt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;MX93_PAD_GPIO_IO08__LPSPI3_PCS0 0x3fe&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;MX93_PAD_GPIO_IO09__LPSPI3_SIN 0x3fe&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;MX93_PAD_GPIO_IO10__LPSPI3_SOUT 0x3fe&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;MX93_PAD_GPIO_IO11__LPSPI3_SCK 0x3fe&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;I am running this SPI example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;attached you can find the poc_spi_slave.c file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, the problem is that when I start the binary, I see a voltage drop on MOSI signal, with the same configuration there is not a drop on SCK signal.&lt;/P&gt;&lt;P&gt;In the image below you can see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Yellow, MOSI from master side;&lt;/LI&gt;&lt;LI&gt;Violet, SIN from slave side (on a test point);&lt;/LI&gt;&lt;LI&gt;Blue, SIN on the pin GPION_09 SPI3_SIN;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="il_ciancio_2-1747985586207.png" style="width: 629px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339383i7D7DBA894CE9FEE6/image-dimensions/629x472?v=v2" width="629" height="472" role="button" title="il_ciancio_2-1747985586207.png" alt="il_ciancio_2-1747985586207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the image below you can see:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Yellow, from master side;&lt;/LI&gt;&lt;LI&gt;Violet, SCK from slave side;&lt;/LI&gt;&lt;LI&gt;Blue, SCK on the pin GPION_09 SPI3_SIN;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="il_ciancio_3-1747985849771.png" style="width: 601px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339384iACC597F4AA6B5CE7/image-dimensions/601x451?v=v2" width="601" height="451" role="button" title="il_ciancio_3-1747985849771.png" alt="il_ciancio_3-1747985849771.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, there is a voltage drop on MOSI and there isn't a voltage drop on SCK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured the same pin, the same peripheral with M33 core and I don't see this voltage drop.&lt;/P&gt;&lt;P&gt;When I use the LPSPI 4 as master, instead, I have no issue.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ciancio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 07:41:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2103293#M237524</guid>
      <dc:creator>il_ciancio</dc:creator>
      <dc:date>2025-05-23T07:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2104748#M237637</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248332"&gt;@il_ciancio&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you run the spidev_test command test the spi master and slave device? Please run it see the test result.&lt;/P&gt;
&lt;P&gt;B.R&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 03:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2104748#M237637</guid>
      <dc:creator>pengyong_zhang</dc:creator>
      <dc:date>2025-05-27T03:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105150#M237664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202673"&gt;@pengyong_zhang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have runned spidev_test on my spi_slave peripheral.&lt;/P&gt;&lt;P&gt;This is the command:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;spidev_test -D /dev/spidev2.0 -I100 -S8 -v -s500000.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is the output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="il_ciancio_0-1748337477892.png" style="width: 635px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339904iD9374A88C910B6AE/image-dimensions/635x262?v=v2" width="635" height="262" role="button" title="il_ciancio_0-1748337477892.png" alt="il_ciancio_0-1748337477892.png" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;I am not receiving the data, below there is the Master (basically each seconds I am sendin in ASCII 1 to 9):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="il_ciancio_1-1748337530395.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339905i24CF2285B063BAF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="il_ciancio_1-1748337530395.png" alt="il_ciancio_1-1748337530395.png" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The strange things is that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The image below is the oscilloscope on the MOSI LINE. The yellow signal is MOSI from the MASTER, the blu line is the SIN from the slave.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image.jpg" style="width: 687px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339911i5EC81587322F4169/image-dimensions/687x515?v=v2" width="687" height="515" role="button" title="Image.jpg" alt="Image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It seems that spidev_test is sending data on the SIN line, while it should be sent on the SOUT line. When spidev_test is killed, there isn't overlapping.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Image (1).jpg" style="width: 676px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339913iC417422690D25994/image-dimensions/676x380?v=v2" width="676" height="380" role="button" title="Image (1).jpg" alt="Image (1).jpg" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;Some question:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Any Idea on this behaviour?&lt;/LI&gt;&lt;LI&gt;How can I specify to spidev_test to work as slave?&lt;/LI&gt;&lt;LI&gt;How can i specify to spidev_test to work in half-duplex mode?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ciancio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 09:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105150#M237664</guid>
      <dc:creator>il_ciancio</dc:creator>
      <dc:date>2025-05-27T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105167#M237665</link>
      <description>Another question:&lt;BR /&gt;Is there the possibility to receive only data on imx93 without sending anything?</description>
      <pubDate>Tue, 27 May 2025 09:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105167#M237665</guid>
      <dc:creator>il_ciancio</dc:creator>
      <dc:date>2025-05-27T09:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105711#M237709</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said when you use LPSPI4 as master, there is no problem, when use LPSPI3 as master, the problem occurred. right?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you check if your HW connect is no problem when you use LPSPI3 as master?&lt;/P&gt;
&lt;P&gt;B.R&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 02:42:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2105711#M237709</guid>
      <dc:creator>pengyong_zhang</dc:creator>
      <dc:date>2025-05-28T02:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2106424#M237734</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will update you about this. It is a little bit hard because on my board the LSPI3 SCK (GPIO_11) has only one direction (same for the SOUT from the master to the SIN of the LSPI3).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you check the other response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;B.R.,&lt;/P&gt;&lt;P&gt;Ciancio&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 16:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2106424#M237734</guid>
      <dc:creator>il_ciancio</dc:creator>
      <dc:date>2025-05-28T16:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMX93 - LPSPI3 in slave mode - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2108976#M237838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248332"&gt;@il_ciancio&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the test method about slave and master of LPSPI on imx93.&lt;/P&gt;
&lt;P&gt;1. Slave runs "spidev_test -D /dev/spidev0.0 -s 8000000 -v -p 12345678 &amp;amp;"&lt;BR /&gt;2. Master runs "spidev_test -D /dev/spidev1.0 -s 8000000 -v -p 12345678"&lt;BR /&gt;3. Check if the TX RX of the master and slave are equal&lt;/P&gt;
&lt;P&gt;B.R&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 01:29:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX93-LPSPI3-in-slave-mode-Linux/m-p/2108976#M237838</guid>
      <dc:creator>pengyong_zhang</dc:creator>
      <dc:date>2025-06-03T01:29:15Z</dc:date>
    </item>
  </channel>
</rss>

