<?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 SPI common code does not support use of CS signals discontinuously in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1656284#M206406</link>
    <description>&lt;P&gt;Hello i.MX7/8 community,&lt;/P&gt;&lt;P&gt;I found very confusing explanation about SPI slave usage of the i.MX7/8 SPI controllers.&lt;/P&gt;&lt;P&gt;In the kroot/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.txt&lt;/P&gt;&lt;P&gt;It says:&lt;/P&gt;&lt;P&gt;- fsl,spi-only-use-cs1-sel : &lt;EM&gt;&lt;STRONG&gt;spi common code does not support use of CS signals&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;discontinuously.&lt;/STRONG&gt;&lt;/EM&gt; i.MX8DXL-EVK board only uses CS1&lt;BR /&gt;without using CS0. Therefore, add this property to&lt;BR /&gt;re-config the chip select value in the LPSPI driver.&lt;/P&gt;&lt;P&gt;What does such a statement mean (bolded)?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://wiki.t-firefly.com/en/Firefly-RK3128/_images/SPI_work_en.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Does it mean that SPI Slave mode supports SS per 8 bits received, so each 8 bits received must have distinct SS (falling edge begin of read, rising edge end of read)? As shown on the first two figures?&lt;/P&gt;&lt;P&gt;Or it does mean that there is a burst of octets, back to back, for example 23 octets, 184 bits, all the time SS active low? And if SPI Slave Mode does support bursts of octets, do we need to use SPI0 CS1 (- fsl,spi-only-use-cs1-sel as a DTSI property to be mandatory given)?&lt;/P&gt;&lt;P&gt;In other words, for the SPI Slave Mode, does CS0 support only octet by octet xfer, and does CS1 only support burst of octets?&lt;/P&gt;&lt;P&gt;Thank you for the answers!&lt;/P&gt;&lt;P&gt;Zee&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 07:32:58 GMT</pubDate>
    <dc:creator>zee_z</dc:creator>
    <dc:date>2023-05-24T07:32:58Z</dc:date>
    <item>
      <title>SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1656284#M206406</link>
      <description>&lt;P&gt;Hello i.MX7/8 community,&lt;/P&gt;&lt;P&gt;I found very confusing explanation about SPI slave usage of the i.MX7/8 SPI controllers.&lt;/P&gt;&lt;P&gt;In the kroot/Documentation/devicetree/bindings/spi/spi-fsl-lpspi.txt&lt;/P&gt;&lt;P&gt;It says:&lt;/P&gt;&lt;P&gt;- fsl,spi-only-use-cs1-sel : &lt;EM&gt;&lt;STRONG&gt;spi common code does not support use of CS signals&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;discontinuously.&lt;/STRONG&gt;&lt;/EM&gt; i.MX8DXL-EVK board only uses CS1&lt;BR /&gt;without using CS0. Therefore, add this property to&lt;BR /&gt;re-config the chip select value in the LPSPI driver.&lt;/P&gt;&lt;P&gt;What does such a statement mean (bolded)?&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://wiki.t-firefly.com/en/Firefly-RK3128/_images/SPI_work_en.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Does it mean that SPI Slave mode supports SS per 8 bits received, so each 8 bits received must have distinct SS (falling edge begin of read, rising edge end of read)? As shown on the first two figures?&lt;/P&gt;&lt;P&gt;Or it does mean that there is a burst of octets, back to back, for example 23 octets, 184 bits, all the time SS active low? And if SPI Slave Mode does support bursts of octets, do we need to use SPI0 CS1 (- fsl,spi-only-use-cs1-sel as a DTSI property to be mandatory given)?&lt;/P&gt;&lt;P&gt;In other words, for the SPI Slave Mode, does CS0 support only octet by octet xfer, and does CS1 only support burst of octets?&lt;/P&gt;&lt;P&gt;Thank you for the answers!&lt;/P&gt;&lt;P&gt;Zee&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 07:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1656284#M206406</guid>
      <dc:creator>zee_z</dc:creator>
      <dc:date>2023-05-24T07:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1656770#M206488</link>
      <description>&lt;P&gt;Please, forget all of these garbage I wrote above. I was/am a complete idiot... Since I think exactly as designated NXP designers. I apologize to play as a complete idiot... As &lt;A href="mailto:N@P" target="_blank" rel="noopener"&gt;N@P&lt;/A&gt; designers.&lt;/P&gt;&lt;P&gt;I did deeper analysis of the vendor/variscite/kernel_imx/drivers/spi-fsl-lpspi.c, and found garbage in&amp;nbsp;spi-fsl-lpspi.c code.&lt;/P&gt;&lt;P&gt;This code does NOT work for the SPI Slave mode at all. It is buggy, and it has disaster while setting the SPI Slave mode registers...&lt;/P&gt;&lt;P&gt;It does the following!&lt;/P&gt;&lt;P&gt;17.7.3.1.9&lt;BR /&gt;Configuration Register 1 (CFGR1)&lt;/P&gt;&lt;P&gt;Pins 25-24&lt;/P&gt;&lt;P&gt;Pin Configuration PINCFG&lt;BR /&gt;Configures which pins are used for input and output data during serial transfers.&lt;BR /&gt;00b - SDI is used for input data and SDO is used for output data&lt;BR /&gt;01b - SDI is used for both input and output data, only half-duplex serial transfers are supported&lt;BR /&gt;10b - SDO is used for both input and output data, only half-duplex serial transfers are supported&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;11b - SDO is used for input data and SDI is used for output data&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Uses the swap, which drives two output pins against each other!&lt;/P&gt;&lt;P&gt;Wow!&lt;/P&gt;&lt;P&gt;Zee&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 12:22:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1656770#M206488</guid>
      <dc:creator>zee_z</dc:creator>
      <dc:date>2023-05-27T12:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1657369#M206533</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/74954"&gt;@zee_z&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you are doing well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you have found the solution, if the issue is solved, can I close the thread?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sanket Parekh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 06:54:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1657369#M206533</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-05-25T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1658708#M206676</link>
      <description>&lt;P&gt;I am doing well.&lt;/P&gt;&lt;P&gt;I hope (in vain) U, NXP, you do well. Aren't you? I doubt...&lt;/P&gt;&lt;P&gt;What about NXP, writing its own driver, to understand what NXP did as catastrophic mistakes???&lt;/P&gt;&lt;P&gt;What about NXP's analysis of this problem?&lt;/P&gt;&lt;P&gt;Are you, NXP, completely in the control of your own actions... Owning an i.MX8 silicon?&lt;/P&gt;&lt;P&gt;What about the politically correct spi slave documentation?&lt;/P&gt;&lt;P&gt;What are the patches, NXP should apply to fix this and other problems?&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;&lt;P&gt;Waiting for the answers!&lt;/P&gt;&lt;P&gt;Zee&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 12:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1658708#M206676</guid>
      <dc:creator>zee_z</dc:creator>
      <dc:date>2023-05-27T12:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1660765#M206866</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/74954"&gt;@zee_z&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;Please accept my apologies for the inconvenience.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Could you please share more details about the exact issue faced while using lpspi?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;PINCFG[25:24] in the CFGR1 register is used to set the direction for SDO/SDI pins.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;In slave mode,&lt;/DIV&gt;
&lt;DIV&gt;SDO is used for input data and SDI is used for output data&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;There are some limitations when using&amp;nbsp;spi-fsl-lpspi.c in slave mode.&lt;/DIV&gt;
&lt;DIV&gt;Please refer to the&amp;nbsp;below commit.&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/commit/bcd87317aae26b9ac497cbc1232783aaea1aeed4" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://github.com/nxp-imx/linux-imx/commit/bcd87317aae26b9ac497cbc1232783aaea1aeed4&amp;amp;source=gmail&amp;amp;ust=1685618458061000&amp;amp;usg=AOvVaw1viTFU41s0tpWp8jIDvcnS"&gt;spi: lpspi: Add slave mode support&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 May 2023 11:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1660765#M206866</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-05-31T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1662467#M206978</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/74954"&gt;@zee_z&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any updates from your side?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Sanket Parekh&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 07:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1662467#M206978</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-06-02T07:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1671219#M207734</link>
      <description>&lt;P&gt;Yes, There is, for the &lt;EM&gt;&lt;STRONG&gt;complete truth, new development (from complete desperation).&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; From HERE!&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ZoranStojsavljevic/spi_slave_spidev" target="_blank" rel="noopener"&gt;https://github.com/ZoranStojsavljevic/spi_slave_spidev(dot)c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is a Design Verification Testing (DVT). Works for us... But for others???&lt;/P&gt;&lt;P&gt;U and NXP still know and can do better, Sanket, don't you agree and also them?&lt;/P&gt;&lt;P&gt;Zee&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 06:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1671219#M207734</guid>
      <dc:creator>zee_z</dc:creator>
      <dc:date>2023-06-17T06:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1671221#M207735</link>
      <description>&lt;P&gt;Yes, There is, out from &lt;EM&gt;&lt;STRONG&gt;complete truth, new development (from complete desperation).&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; From HERE!&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ZoranStojsavljevic/spi_slave_spidev" target="_blank" rel="noopener"&gt;https://github.com/ZoranStojsavljevic/spi_slave_spidev.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is a Design Verification Testing (DVT). Works for us... But for others (do not think so)???&lt;/P&gt;&lt;P&gt;U and NXP still know and can do better, Sanket, don't you agree and also them, NXP crew?&lt;/P&gt;&lt;P&gt;Zee&lt;/P&gt;&lt;P&gt;_______&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 15:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1671221#M207735</guid>
      <dc:creator>zee_z</dc:creator>
      <dc:date>2023-06-16T15:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPI common code does not support use of CS signals discontinuously</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1671982#M207805</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/74954"&gt;@zee_z&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Please accept my apologies for the&amp;nbsp;inconvenience&amp;nbsp;caused.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I couldn't understand your query.&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp; I do not have access to the links shared by you.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Could you please elaborate&amp;nbsp;more on this?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards,&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 12:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-common-code-does-not-support-use-of-CS-signals/m-p/1671982#M207805</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-06-19T12:31:40Z</dc:date>
    </item>
  </channel>
</rss>

