<?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 How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319872#M42604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;I’m designing a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;I know that Linux does not support only Master mode! So the application code starts with &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;spi_ioc_transfer&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt; ioctl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;But, the CPU (i.MX285) can support Slave function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;Is there anyone can help me or example?&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;1. &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;How to setup Slave mode to receive a data from Master side?&lt;BR /&gt; I think the SPI interrupt in Slave mode should be occur after settings (Slave settings).&lt;BR /&gt; I think SPI operation will start with SS (Slave Select) signal of Master side.&lt;BR /&gt; But I confuse how to setup because the BSP is only shows Master examples.&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;2. &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;If I receive a data from Master side in SPI handler, then what is next?&lt;BR /&gt; How to share or send a data copy from Data Register to user &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 04:38:26 GMT</pubDate>
    <dc:creator>yongkimin</dc:creator>
    <dc:date>2014-06-17T04:38:26Z</dc:date>
    <item>
      <title>How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319872#M42604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;I’m designing a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;I know that Linux does not support only Master mode! So the application code starts with &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;spi_ioc_transfer&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt; ioctl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;But, the CPU (i.MX285) can support Slave function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;Is there anyone can help me or example?&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;1. &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;How to setup Slave mode to receive a data from Master side?&lt;BR /&gt; I think the SPI interrupt in Slave mode should be occur after settings (Slave settings).&lt;BR /&gt; I think SPI operation will start with SS (Slave Select) signal of Master side.&lt;BR /&gt; But I confuse how to setup because the BSP is only shows Master examples.&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;2. &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;If I receive a data from Master side in SPI handler, then what is next?&lt;BR /&gt; How to share or send a data copy from Data Register to user &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; color: black;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 04:38:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319872#M42604</guid>
      <dc:creator>yongkimin</dc:creator>
      <dc:date>2014-06-17T04:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319873#M42605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yongki&lt;/P&gt;&lt;P&gt;please try attached patch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 02:21:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319873#M42605</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-06-18T02:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319874#M42606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That patch file have some help to me for understanding Slave settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I still have a question about a settings (settings are start User application area). In case Master driver, User area application open a device (ex spidev1.0) and then use ioctl (mode settings, bit settings) and finally ioctl message to exchange data on MISO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how to open a Slave driver of CPU in User application.&lt;/P&gt;&lt;P&gt;Sencond question is how to share or notify of Rx data to User applicatoin on MOSI pin at Slave driver side.&lt;/P&gt;&lt;P&gt;I think register the &lt;STRONG&gt;Rx FIFO hander&lt;/STRONG&gt; using a &lt;STRONG&gt;request_irq&lt;/STRONG&gt; at in probe function at boot time.&lt;/P&gt;&lt;P&gt;And then User application area will open a device (spidev1.0) to Slave driver. At this time I have a question how ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 06:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319874#M42606</guid>
      <dc:creator>yongkimin</dc:creator>
      <dc:date>2014-06-18T06:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319875#M42607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yongki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can start with&lt;/P&gt;&lt;P&gt;ltib/..linux/Documentation/spi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:29:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319875#M42607</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-06-18T11:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319876#M42608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;A href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt; would please tell me how to use the patch file ? What files and softwares must I have first.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 01:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-design-a-SPI-Slave-driver-of-Linux-kernel-2-6-35-on-i/m-p/319876#M42608</guid>
      <dc:creator>shengpingzhang</dc:creator>
      <dc:date>2015-08-31T01:37:41Z</dc:date>
    </item>
  </channel>
</rss>

