<?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: IMX6UL: SPI failures are seen with Zeus migration</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1166000#M163308</link>
    <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thanks for the pointers!&lt;/P&gt;&lt;P&gt;Below are my IOMUX settings for eCSPI1 and eCSPI3. The device which is connected to eCSPI1 works fine in Zeus.&lt;/P&gt;&lt;P&gt;pinctrl_spi1: spi1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x70a1&lt;BR /&gt;MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x70a1&lt;BR /&gt;// MX6UL_PAD_CSI_DATA05__ECSPI1_SS0 0x70a1&lt;BR /&gt;MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x80000000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;pinctrl_spi3: spi3grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_NAND_CLE__ECSPI3_MISO 0x70a1&lt;BR /&gt;MX6UL_PAD_NAND_CE1_B__ECSPI3_MOSI 0x70a1&lt;BR /&gt;MX6UL_PAD_NAND_CE0_B__ECSPI3_SCLK 0x80000000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;The spi device connected to eCSPI3 works fine with the same IOMUX settings in Jethro (4.14 kernel). So, we can rule out any HW issue here.&lt;/P&gt;&lt;P&gt;Also, I noticed that I am able to read version number from the device. But, only firmware download is failing.&lt;/P&gt;&lt;P&gt;Do I need to look at from DMA perspective?&lt;/P&gt;&lt;P&gt;Could you also help me to understand why spi-imx.c probe function is printing only spi (2010000.spi) instead ecspi (2010000.ecspi)?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 10:24:43 GMT</pubDate>
    <dc:creator>sikumar3</dc:creator>
    <dc:date>2020-10-12T10:24:43Z</dc:date>
    <item>
      <title>IMX6UL: SPI failures are seen with Zeus migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1164468#M163115</link>
      <description>&lt;P&gt;We are migrating from Jethro to Zeus version.&lt;/P&gt;&lt;P&gt;One of our SPI device is failing to come up with the Zeus kernel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The failure happens during FW download the SPI device.&lt;/P&gt;&lt;P&gt;SPI probe log shows only "&lt;STRONG&gt;2008000.spi"&lt;/STRONG&gt;&amp;nbsp;in zeus where as it shows "&lt;STRONG&gt;2008000.&lt;/STRONG&gt;&lt;STRONG&gt;ecspi"&amp;nbsp;&lt;/STRONG&gt;for jethro&lt;STRONG&gt;. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can someone help me to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Zeus dmesg log:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Linux version 5.4.3-2.0.0+gfd263a3edd95 (oe-user@oe-host) (gcc version 9.2.0 (GCC))&lt;/P&gt;&lt;P&gt;at25 spi0.0: 64 KByte at25 eeprom, pagesize 128&lt;BR /&gt;&lt;STRONG&gt;spi_imx 2008000.spi&lt;/STRONG&gt;: probed&lt;BR /&gt;random: fast init done&lt;BR /&gt;&lt;STRONG&gt;spi_imx 2010000.spi:&lt;/STRONG&gt; probed&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Jethro dmesg log:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Linux version 4.1.15-1.2.0&lt;/P&gt;&lt;P&gt;at25 spi0.0: 64 KByte at25 eeprom, pagesize 128&lt;BR /&gt;&lt;STRONG&gt;spi_imx 2008000.ecspi&lt;/STRONG&gt;: probed&lt;BR /&gt;&lt;STRONG&gt;spi_imx 2010000.ecspi&lt;/STRONG&gt;: probed&lt;/P&gt;&lt;P&gt;Device tree:&lt;/P&gt;&lt;P&gt;#include "imx6ul.dtsi"&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;3&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_spi1&amp;gt;;&lt;BR /&gt;// cs-gpios = &amp;lt;&amp;amp;gpio4 26 0&amp;gt;, &amp;lt;&amp;amp;gpio5 3 0&amp;gt;, &amp;lt;&amp;amp;gpio5 2 0&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;gpio4 26 0&amp;gt;, &amp;lt;&amp;amp;gpio1 24 0&amp;gt;, &amp;lt;&amp;amp;gpio1 18 0&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;num-cs = &amp;lt;3&amp;gt;;&lt;/P&gt;&lt;P&gt;// eeprom (chip select is gpio4.26, EEPROM_SPI1_CS)&lt;BR /&gt;eeprom_cust: at25@0 {&lt;BR /&gt;compatible = "atmel,at25";&lt;BR /&gt;address-width = &amp;lt;16&amp;gt;;&lt;BR /&gt;spi-max-frequency = &amp;lt;10000000&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;size = &amp;lt;0x10000&amp;gt;;&lt;BR /&gt;pagesize = &amp;lt;128&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi3 {&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;6&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_spi3&amp;gt;;&lt;BR /&gt;// cs-gpios = &amp;lt;&amp;amp;pca9535u20 6 0&amp;gt;, &amp;lt;&amp;amp;pca9535u79 4 0&amp;gt;, &amp;lt;&amp;amp;pca9535u20 14 0&amp;gt;, &amp;lt;&amp;amp;pca9535u20 13 0&amp;gt;, &amp;lt;&amp;amp;pca9535u19 1 0&amp;gt;, &amp;lt;&amp;amp;pca9535u79 3 0&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;pca9535u20 3 0&amp;gt;, &amp;lt;&amp;amp;pca9535u20 8 0&amp;gt;, &amp;lt;&amp;amp;pca9535u20 9 0&amp;gt;, &amp;lt;&amp;amp;pca9535u19 2 0&amp;gt;, &amp;lt;&amp;amp;pca9535u19 3 0&amp;gt;, &amp;lt;&amp;amp;pca9535u19 11 0&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;num-cs = &amp;lt;6&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// mxl277 (U53)&lt;BR /&gt;mxl277: mxl@5 {&lt;BR /&gt;compatible = "rohm,dh2228fv";&lt;BR /&gt;reg = &amp;lt;0x5&amp;gt;;&lt;BR /&gt;spi-cpha;&lt;BR /&gt;spi-max-frequency = &amp;lt;10000000&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 11:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1164468#M163115</guid>
      <dc:creator>sikumar3</dc:creator>
      <dc:date>2020-10-08T11:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL: SPI failures are seen with Zeus migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1164809#M163159</link>
      <description>&lt;P&gt;HI sikumar3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can try to tweak drive strength ecspi signals in dts : "&amp;amp;iomuxc { pinctrl_ecspi** " :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-14x14-evk-ecspi.dts?h=imx_5.4.47_2.2.0" target="_blank" rel="noopener"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-14x14-evk-ecspi.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;DSE field (drive strength) is described in IOMUX Chapter of&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX6ULRM" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;i.MX 6UltraLite Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also if this one spi device it may be hardware issue, bad contact or cable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 00:40:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1164809#M163159</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-10-09T00:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL: SPI failures are seen with Zeus migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1166000#M163308</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thanks for the pointers!&lt;/P&gt;&lt;P&gt;Below are my IOMUX settings for eCSPI1 and eCSPI3. The device which is connected to eCSPI1 works fine in Zeus.&lt;/P&gt;&lt;P&gt;pinctrl_spi1: spi1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_CSI_DATA07__ECSPI1_MISO 0x70a1&lt;BR /&gt;MX6UL_PAD_CSI_DATA06__ECSPI1_MOSI 0x70a1&lt;BR /&gt;// MX6UL_PAD_CSI_DATA05__ECSPI1_SS0 0x70a1&lt;BR /&gt;MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x80000000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;pinctrl_spi3: spi3grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_NAND_CLE__ECSPI3_MISO 0x70a1&lt;BR /&gt;MX6UL_PAD_NAND_CE1_B__ECSPI3_MOSI 0x70a1&lt;BR /&gt;MX6UL_PAD_NAND_CE0_B__ECSPI3_SCLK 0x80000000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;The spi device connected to eCSPI3 works fine with the same IOMUX settings in Jethro (4.14 kernel). So, we can rule out any HW issue here.&lt;/P&gt;&lt;P&gt;Also, I noticed that I am able to read version number from the device. But, only firmware download is failing.&lt;/P&gt;&lt;P&gt;Do I need to look at from DMA perspective?&lt;/P&gt;&lt;P&gt;Could you also help me to understand why spi-imx.c probe function is printing only spi (2010000.spi) instead ecspi (2010000.ecspi)?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 10:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1166000#M163308</guid>
      <dc:creator>sikumar3</dc:creator>
      <dc:date>2020-10-12T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL: SPI failures are seen with Zeus migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1166081#M163321</link>
      <description>&lt;DIV id="bodyDisplay_0" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;HI sikumar3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&amp;gt;The spi device connected to eCSPI3 works fine with the same IOMUX settings&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;&amp;gt;in Jethro (4.14 kernel). So, we can rule out any HW issue here.&lt;/DIV&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;still it may be hardware issue, is if signal quality is marginal, small power consumption/noise&lt;/P&gt;
&lt;P&gt;difference may cause issue. Suggest to check signals with oscilloscope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;Could you also help me to understand why spi-imx.c probe function is&lt;/P&gt;
&lt;P&gt;&amp;gt;printing only spi (2010000.spi) instead ecspi (2010000.ecspi)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is just naming. In general you can debug it in driver sources:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_5.4.3_2.0.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/spi/spi-imx.c?h=imx_5.4.3_2.0.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Oct 2020 13:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1166081#M163321</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-10-12T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6UL: SPI failures are seen with Zeus migration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1168707#M163560</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPI chip select signal was not applied properly from NXP driver (spi-imx.c) to the Max Linear chip. This change was present in Jethro through a kernel patch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@@ -329,6 +329,12 @@ static int __maybe_unused mx51_ecspi_config(struct spi_imx_data *spi_imx,&lt;BR /&gt;u32 ctrl = MX51_ECSPI_CTRL_ENABLE, cfg = 0, dma = 0;&lt;BR /&gt;u32 clk = config-&amp;gt;speed_hz, delay;&lt;BR /&gt;&lt;BR /&gt;+// printk ("[[%d %d&amp;gt;&amp;gt;", config-&amp;gt;mode, config-&amp;gt;cs);&lt;BR /&gt;+&lt;BR /&gt;+ if (config-&amp;gt;cs &amp;gt; 3) {&lt;BR /&gt;+ config-&amp;gt;cs = 3;&lt;BR /&gt;+ }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since,&amp;nbsp;mx51_ecspi_config() function got removed in the latest spi-imx.c file, the patch was not applied properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SPI device started working (firmware download in particular) after adding the above changes in&lt;STRONG&gt;&amp;nbsp;mx51_ecspi_prepare_message&lt;/STRONG&gt;().&lt;/P&gt;&lt;P&gt;--- a/drivers/spi/spi-imx.c&lt;BR /&gt;+++ b/drivers/spi/spi-imx.c&lt;BR /&gt;@@ -511,6 +511,10 @@ static int mx51_ecspi_prepare_message(struct spi_imx_data *spi_imx,&lt;BR /&gt;u32 testreg;&lt;BR /&gt;u32 cfg = readl(spi_imx-&amp;gt;base + MX51_ECSPI_CONFIG);&lt;BR /&gt;&lt;BR /&gt;+ if (spi-&amp;gt;chip_select &amp;gt; 3) {&lt;BR /&gt;+ spi-&amp;gt;chip_select = 3;&lt;BR /&gt;+ }&lt;BR /&gt;+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Siva&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 07:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6UL-SPI-failures-are-seen-with-Zeus-migration/m-p/1168707#M163560</guid>
      <dc:creator>sikumar3</dc:creator>
      <dc:date>2020-10-16T07:52:46Z</dc:date>
    </item>
  </channel>
</rss>

