<?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>LayerscapeのトピックRe: how to enable SPI in LS1043a</title>
    <link>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750186#M3247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yiping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your email.&lt;/P&gt;&lt;P&gt;Now I compiled SPI as module and I have changed CONFIG_SPI_SPIDEV=m in&lt;/P&gt;&lt;P&gt;.config file, I can create /dev/spidev0.0. But according to the booting&lt;/P&gt;&lt;P&gt;log, it seems there are some errors. And the SCK signal of LS1043a is&lt;/P&gt;&lt;P&gt;always at high even I used the command: echo 1 &amp;gt; /dev/spidev0.0. I send you&lt;/P&gt;&lt;P&gt;in attachment the booting log, could you please help me to verify it?&lt;/P&gt;&lt;P&gt;Otherwise, I don't understand why I set CONFIG_SPI_SPIDEV=y not as a&lt;/P&gt;&lt;P&gt;module, it does not work?&lt;/P&gt;&lt;P&gt;Once again thank you very much for all your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yang GAO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018-03-21 9:29 GMT+01:00 Yiping Wang &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;You have been mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by Yiping Wang&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/yipingwang?et=notification.mention&amp;gt; *in&lt;/P&gt;&lt;P&gt;Re: how to enable SPI in LS1043a in NXP Community* - View Yiping Wang's&lt;/P&gt;&lt;P&gt;reference to you&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/997731?commentID=997731&amp;amp;et=notification.mention#comment-997731&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2018 09:26:47 GMT</pubDate>
    <dc:creator>yanggao</dc:creator>
    <dc:date>2018-03-21T09:26:47Z</dc:date>
    <item>
      <title>how to enable SPI in LS1043a</title>
      <link>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750184#M3245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I'm working with LS1043A and yocto poky, and &lt;SPAN&gt;I am trying to communicate over the&amp;nbsp;SPI. In the menuconfig, I have enabled all these options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;#&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# Other I2C/SMBus bus drivers&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;#&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_DEBUG=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_MASTER=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;#&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# SPI Master Controller Drivers&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;#&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_ALTERA is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_BITBANG is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_CADENCE is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_GPIO is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_FSL_LIB=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_FSL_SPI=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_FSL_DSPI=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_OC_TINY is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_PL022=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_PXA2XX is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_PXA2XX_PCI is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_ROCKCHIP is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_QUP is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_S3C64XX is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_SC18IS602 is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_TEGRA20_SFLASH is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_XCOMM is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_XILINX is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_DESIGNWARE is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;#&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# SPI Protocol Masters&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;#&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;CONFIG_SPI_SPIDEV=y&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPI_TLE62X0 is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_SPMI is not set&lt;/SPAN&gt;&lt;BR style="color: #222222; background-color: #ffffff; font-size: 12.8px;" /&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;# CONFIG_HSI is not set&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the fsl-ls1043a.dtsi, I added as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dspi0: dspi@2100000 {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;reg = &amp;lt;0x0 0x2100000 0x0 0x10000&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;interrupts = &amp;lt;0 64 0x4&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;clock-names = "dspi";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;clocks = &amp;lt;&amp;amp;clockgen 4 0&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;spi-num-chipselects = &amp;lt;5&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;big-endian;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;status = "ok";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;bus-num = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;spidev:spi@0 {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;compatible = "spidev";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;spi-max-frequency = &amp;lt;108000000&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the compilation, there is not /dev/spidev. I would like to know how to enable SPI in LS1043a?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 16:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750184#M3245</guid>
      <dc:creator>yanggao</dc:creator>
      <dc:date>2018-03-12T16:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable SPI in LS1043a</title>
      <link>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750185#M3246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="303445" data-username="yanggao" href="https://community.nxp.com/people/yanggao"&gt;yang gao&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified your configuration on LS1043ARDB board, /dev/spidev0.0 can be created in Linux User Space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check whether there is hardware problem on your target board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under u-boot prompt, please run the following command to check whether the SPI device can be detected.&lt;/P&gt;&lt;P&gt;=&amp;gt; sf probe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please provide you Linux Kernel booting up log?&lt;/P&gt;&lt;P&gt;Under Linux, please run the following command to check whether the SPI device has been registered.&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@ls1043ardb:~"&gt;root@ls1043ardb:~#&lt;/A&gt; dmesg | grep spi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 21 Mar 2018 08:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750185#M3246</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-03-21T08:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable SPI in LS1043a</title>
      <link>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750186#M3247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yiping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your email.&lt;/P&gt;&lt;P&gt;Now I compiled SPI as module and I have changed CONFIG_SPI_SPIDEV=m in&lt;/P&gt;&lt;P&gt;.config file, I can create /dev/spidev0.0. But according to the booting&lt;/P&gt;&lt;P&gt;log, it seems there are some errors. And the SCK signal of LS1043a is&lt;/P&gt;&lt;P&gt;always at high even I used the command: echo 1 &amp;gt; /dev/spidev0.0. I send you&lt;/P&gt;&lt;P&gt;in attachment the booting log, could you please help me to verify it?&lt;/P&gt;&lt;P&gt;Otherwise, I don't understand why I set CONFIG_SPI_SPIDEV=y not as a&lt;/P&gt;&lt;P&gt;module, it does not work?&lt;/P&gt;&lt;P&gt;Once again thank you very much for all your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yang GAO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018-03-21 9:29 GMT+01:00 Yiping Wang &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;You have been mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by Yiping Wang&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/yipingwang?et=notification.mention&amp;gt; *in&lt;/P&gt;&lt;P&gt;Re: how to enable SPI in LS1043a in NXP Community* - View Yiping Wang's&lt;/P&gt;&lt;P&gt;reference to you&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/997731?commentID=997731&amp;amp;et=notification.mention#comment-997731&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 09:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750186#M3247</guid>
      <dc:creator>yanggao</dc:creator>
      <dc:date>2018-03-21T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to enable SPI in LS1043a</title>
      <link>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750187#M3248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yiping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's hardware problem.&amp;nbsp;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 10:11:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/how-to-enable-SPI-in-LS1043a/m-p/750187#M3248</guid>
      <dc:creator>yanggao</dc:creator>
      <dc:date>2018-03-22T10:11:23Z</dc:date>
    </item>
  </channel>
</rss>

