<?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: UBOOT SPI configuration and usage</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/UBOOT-SPI-configuration-and-usage/m-p/756103#M117603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nemanja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what uboot used in the case, seems uboot definitions like:&lt;/P&gt;&lt;P&gt;CONFIG_CMD_SPI,CONFIG_DEFAULT_SPI_BUS were used for&lt;/P&gt;&lt;P&gt;older i.mx parts like i.MX51,53 but not for i.MX6 products.&lt;/P&gt;&lt;P&gt;In general this may be posted on uboot mail list&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lists.denx.de/listinfo/u-boot" title="https://lists.denx.de/listinfo/u-boot"&gt;U-Boot Info Page&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NXP uboot, link below&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2015.04_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2015.04_4.1.15_1.0.0_ga"&gt;uboot-imx.git - Freescale i.MX u-boot Tree&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uses standard spi-nor commands like: sf probe, sf write/read&lt;/P&gt;&lt;P&gt;spi related "define"s can be found in uboot/include/configs/mx6_common.h&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx6_common.h?h=imx_v2015.04_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx6_common.h?h=imx_v2015.04_4.1.15_1.0.0_ga"&gt;uboot-imx.git - Freescale i.MX u-boot Tree&lt;/A&gt;&amp;nbsp;&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>Mon, 11 Jun 2018 01:37:45 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-06-11T01:37:45Z</dc:date>
    <item>
      <title>UBOOT SPI configuration and usage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UBOOT-SPI-configuration-and-usage/m-p/756102#M117602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use SPI in uboot, and only from command line for reading certain peripherals during the boot. So, I do not use any SPI flash or so, I just need raw SPI access to the bus. We have a similar board to the sabreauto based on i.MX6Q. I have the following pin configuration:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;iomux_v3_cfg_t const ecspi1_pads[] = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6_PAD_EIM_D16__ECSPI1_SCLK | MUX_PAD_CTRL(SPI_PAD_CTRL),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6_PAD_EIM_D17__ECSPI1_MISO | MUX_PAD_CTRL(SPI_PAD_CTRL),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6_PAD_EIM_D18__ECSPI1_MOSI | MUX_PAD_CTRL(SPI_PAD_CTRL),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6_PAD_DISP0_DAT23__ECSPI1_SS0&amp;nbsp; | MUX_PAD_CTRL(SPI_PAD_CTRL),&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;void setup_spi(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;imx_iomux_v3_setup_multiple_pads(ecspi1_pads,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ARRAY_SIZE(ecspi1_pads));&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In sabresd board file, they introduce GPIO as a SS. My question is, what is the proper way in my case. My slave is connected to the SS0 pin.&lt;/P&gt;&lt;P&gt;In configuration, UI have the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* SPI Configs */&lt;BR /&gt;#define CONFIG_CMD_SPI&lt;BR /&gt;#define CONFIG_MXC_SPI&lt;BR /&gt;#define CONFIG_DEFAULT_SPI_BUS&amp;nbsp;&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;#define CONFIG_DEFAULT_SPI_MODE&amp;nbsp;&amp;nbsp; &amp;nbsp;(SPI_MODE_0 | SPI_CS_HIGH)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I could also not find the proper example within the existing source code. When I run sspi 0:0 ... I get only zeros as a response. When run sspi 1:0 the timeout is returned. In the first case I do not see any activity on the SPI bus. Do I have to use GPIO for SS or not an what would be the proper way. I use uboot 2015.04.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UBOOT-SPI-configuration-and-usage/m-p/756102#M117602</guid>
      <dc:creator>nexy_sm</dc:creator>
      <dc:date>2018-06-06T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: UBOOT SPI configuration and usage</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UBOOT-SPI-configuration-and-usage/m-p/756103#M117603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nemanja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what uboot used in the case, seems uboot definitions like:&lt;/P&gt;&lt;P&gt;CONFIG_CMD_SPI,CONFIG_DEFAULT_SPI_BUS were used for&lt;/P&gt;&lt;P&gt;older i.mx parts like i.MX51,53 but not for i.MX6 products.&lt;/P&gt;&lt;P&gt;In general this may be posted on uboot mail list&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lists.denx.de/listinfo/u-boot" title="https://lists.denx.de/listinfo/u-boot"&gt;U-Boot Info Page&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NXP uboot, link below&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2015.04_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/?h=imx_v2015.04_4.1.15_1.0.0_ga"&gt;uboot-imx.git - Freescale i.MX u-boot Tree&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uses standard spi-nor commands like: sf probe, sf write/read&lt;/P&gt;&lt;P&gt;spi related "define"s can be found in uboot/include/configs/mx6_common.h&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx6_common.h?h=imx_v2015.04_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/include/configs/mx6_common.h?h=imx_v2015.04_4.1.15_1.0.0_ga"&gt;uboot-imx.git - Freescale i.MX u-boot Tree&lt;/A&gt;&amp;nbsp;&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>Mon, 11 Jun 2018 01:37:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UBOOT-SPI-configuration-and-usage/m-p/756103#M117603</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-11T01:37:45Z</dc:date>
    </item>
  </channel>
</rss>

