<?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: KSZ8795 SPI setup in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618997#M93780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by definition of spi protocol signal SS is toggling on every burst&lt;BR /&gt;according to sect.21.4.4.1 Typical Master Mode i.MX6DQ Reference Manual &lt;BR /&gt;and setting ECSPIx_CONREG[BURST_LENGTH]&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6DQRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;&lt;BR /&gt;If permanent ss low is needed, one can configure it as gpio setting low&lt;BR /&gt;level in spi probe function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 03:19:47 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-11-01T03:19:47Z</dc:date>
    <item>
      <title>KSZ8795 SPI setup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618996#M93779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working on custom board with the imx6dqscm and we are trying to communicate with a ksz8795 switch through SPI. We have worked with a couple of drivers listed below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.microchip.com/wwwproducts/en/KSZ8795" title="http://www.microchip.com/wwwproducts/en/KSZ8795"&gt;KSZ8795 - Ethernet Switches&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Flxr.free-electrons.com%2Fsource%2Fdrivers%2Fnet%2Fphy%2Fspi_ks8995.c" rel="nofollow" style="color: #5e89c1; background-color: #ffffff; border: 0px; text-decoration: underline; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://lxr.free-electrons.com/source/drivers/net/phy/spi_ks8995.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything seems to be configured correctly because we can see the correct clock signals and MOSI data going into the ksz8795. The only issue is that we are noticing that the chip select line is toggling between packets. We are thinking that this is terminating communication between the imx6 and the switch. I've looked in the RM and saw that there might be a potential wait state creating that delay, but I've checked that register and found 0 wait states. I am not sure what is causing the chip select to go high between packets. My questions are, what is causing this delay and how can I modify the driver to keep the SS low? I am just a little skeptical because these drivers are specific for this device, therefore, I must be missing something trivial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20161031_181558.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6384i3DD098B738041FE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="20161031_181558.jpg" alt="20161031_181558.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 00:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618996#M93779</guid>
      <dc:creator>aliismail</dc:creator>
      <dc:date>2016-11-01T00:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: KSZ8795 SPI setup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618997#M93780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by definition of spi protocol signal SS is toggling on every burst&lt;BR /&gt;according to sect.21.4.4.1 Typical Master Mode i.MX6DQ Reference Manual &lt;BR /&gt;and setting ECSPIx_CONREG[BURST_LENGTH]&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2F32bit%2Fdoc%2Fref_manual%2FIMX6DQRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;&lt;BR /&gt;If permanent ss low is needed, one can configure it as gpio setting low&lt;BR /&gt;level in spi probe function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 03:19:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618997#M93780</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-11-01T03:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: KSZ8795 SPI setup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618998#M93781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take a look at section 21.4.4.1.3, figure 21-8 is really what I need. The SS line is low between sending bursts and the burst length in that case is 8. I do not have any wait states so I am not sure why the SS line is going high between those two bursts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:18:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618998#M93781</guid>
      <dc:creator>aliismail</dc:creator>
      <dc:date>2016-11-01T15:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: KSZ8795 SPI setup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618999#M93782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turns out that using ECSPI3_SS0 to drive the chip select line generates the wait state between bursts. Instead, we define cs-gpios to an I/O pin and the driver kept the slave select low between bursts. Also, we used the driver provided by microchip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.microchip.com%2Fwwwproducts%2Fen%2FKSZ8795" rel="nofollow" style="color: #5e89c1; background-color: #ffffff; border: 0px; text-decoration: underline; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;KSZ8795 - Ethernet Switches&lt;/A&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 20:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/KSZ8795-SPI-setup/m-p/618999#M93782</guid>
      <dc:creator>aliismail</dc:creator>
      <dc:date>2016-11-01T20:26:43Z</dc:date>
    </item>
  </channel>
</rss>

