<?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のトピックSPI don't work on iMX6 - Linux</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033680#M152562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem with SPI on iMX6. I'm using a Congatec Module. The module mount a iMX6 Solo.&lt;/P&gt;&lt;P&gt;I want to configure ECSPI1 as a "spidev" device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially the congatec dtsi was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt; fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt; cs-gpios = &amp;lt;&amp;amp;gpio3 19 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;BR /&gt; dmas = &amp;lt;&amp;amp;sdma 3 7 1&amp;gt;, &amp;lt;&amp;amp;sdma 4 7 2&amp;gt;;&lt;BR /&gt; dma-names = "rx", "tx";&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P&gt;flash: m25p80@0 {&lt;BR /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; compatible = "st,sst25vf032b";&lt;BR /&gt; spi-max-frequency = &amp;lt;20000000&amp;gt;;&lt;BR /&gt; reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;partition@0 {&lt;BR /&gt; label = "bootloader";&lt;BR /&gt; reg = &amp;lt;0x0000000 0x100000&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;partition@100000 {&lt;BR /&gt; label = "user";&lt;BR /&gt; reg = &amp;lt;0x0100000 0x2fc000&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;partition@3fc000 {&lt;BR /&gt; label = "reserved";&lt;BR /&gt; reg = &amp;lt;0x03fc000 0x4000&amp;gt;;&lt;BR /&gt; read-only;&lt;BR /&gt; };&lt;BR /&gt; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And into&amp;nbsp;&amp;nbsp;&amp;amp;iomuxc:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;pinctrl_ecspi1: ecspi1grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1&lt;BR /&gt; MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1&lt;BR /&gt; MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I CHANGED THE DTSI SETTINGS:&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;gpio3 19 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spidev@0x00 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; compatible = "rohm,dh2228fv";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; spi-max-frequency = &amp;lt;20000000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i changed also &amp;amp;iomuxc:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;pinctrl_ecspi1: ecspi1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1&lt;BR /&gt;MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1&lt;BR /&gt;MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_EIM_D19__GPIO3_IO19&amp;nbsp; 0X80000000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified the pin conflicts and was ok.&lt;/P&gt;&lt;P&gt;I have enabled the SPI support and &lt;STRONG&gt;i see spidev0.0 in linux.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For test the SPI port i used &lt;STRONG&gt;echo "hello" &amp;gt; /dev/spidev0.0&lt;/STRONG&gt; and &lt;STRONG&gt;spidevtest -v&lt;/STRONG&gt;, and in both example not function.&lt;/P&gt;&lt;P&gt;The MISO, MOSI, CLK and CS was always at logic level 1. No signal change detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2019 13:43:04 GMT</pubDate>
    <dc:creator>marco_padovani</dc:creator>
    <dc:date>2019-12-11T13:43:04Z</dc:date>
    <item>
      <title>SPI don't work on iMX6 - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033680#M152562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem with SPI on iMX6. I'm using a Congatec Module. The module mount a iMX6 Solo.&lt;/P&gt;&lt;P&gt;I want to configure ECSPI1 as a "spidev" device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially the congatec dtsi was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt; fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt; cs-gpios = &amp;lt;&amp;amp;gpio3 19 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;BR /&gt; dmas = &amp;lt;&amp;amp;sdma 3 7 1&amp;gt;, &amp;lt;&amp;amp;sdma 4 7 2&amp;gt;;&lt;BR /&gt; dma-names = "rx", "tx";&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P&gt;flash: m25p80@0 {&lt;BR /&gt; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; compatible = "st,sst25vf032b";&lt;BR /&gt; spi-max-frequency = &amp;lt;20000000&amp;gt;;&lt;BR /&gt; reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;partition@0 {&lt;BR /&gt; label = "bootloader";&lt;BR /&gt; reg = &amp;lt;0x0000000 0x100000&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;partition@100000 {&lt;BR /&gt; label = "user";&lt;BR /&gt; reg = &amp;lt;0x0100000 0x2fc000&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;partition@3fc000 {&lt;BR /&gt; label = "reserved";&lt;BR /&gt; reg = &amp;lt;0x03fc000 0x4000&amp;gt;;&lt;BR /&gt; read-only;&lt;BR /&gt; };&lt;BR /&gt; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And into&amp;nbsp;&amp;nbsp;&amp;amp;iomuxc:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;pinctrl_ecspi1: ecspi1grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1&lt;BR /&gt; MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1&lt;BR /&gt; MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I CHANGED THE DTSI SETTINGS:&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;gpio3 19 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spidev@0x00 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; compatible = "rohm,dh2228fv";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; spi-max-frequency = &amp;lt;20000000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reg = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i changed also &amp;amp;iomuxc:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;pinctrl_ecspi1: ecspi1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1&lt;BR /&gt;MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1&lt;BR /&gt;MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_EIM_D19__GPIO3_IO19&amp;nbsp; 0X80000000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified the pin conflicts and was ok.&lt;/P&gt;&lt;P&gt;I have enabled the SPI support and &lt;STRONG&gt;i see spidev0.0 in linux.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For test the SPI port i used &lt;STRONG&gt;echo "hello" &amp;gt; /dev/spidev0.0&lt;/STRONG&gt; and &lt;STRONG&gt;spidevtest -v&lt;/STRONG&gt;, and in both example not function.&lt;/P&gt;&lt;P&gt;The MISO, MOSI, CLK and CS was always at logic level 1. No signal change detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033680#M152562</guid>
      <dc:creator>marco_padovani</dc:creator>
      <dc:date>2019-12-11T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPI don't work on iMX6 - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033681#M152563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for spidev description one can look at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://variwiki.com/index.php?title=VAR-SOM-MX6_SPI" title="http://variwiki.com/index.php?title=VAR-SOM-MX6_SPI"&gt;VAR-SOM-MX6 SPI - Variscite Wiki&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://forum.variscite.com/viewtopic.php?t=358" title="http://forum.variscite.com/viewtopic.php?t=358"&gt;Enabling SPI on DART-MX6 [SOLVED] - Variscite Forums&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also one can try to remove sdma and check if ecspi1 clock is&lt;/P&gt;&lt;P&gt;enabled in CCM_CCGR1 register.&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>Wed, 11 Dec 2019 23:37:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033681#M152563</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-11T23:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: SPI don't work on iMX6 - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033682#M152564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use this configuration:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #f9f9f9; font-size: 12.6667px; padding: 15px 20px;"&gt;pinctrl_ecspi1_1: ecspi1grp {  fsl,pins = &amp;lt;   MX6QDL_PAD_KEY_COL1__ECSPI1_MISO 0x100b1   MX6QDL_PAD_KEY_ROW0__ECSPI1_MOSI 0x100b1   MX6QDL_PAD_KEY_COL0__ECSPI1_SCLK 0x100b1   MX6QDL_PAD_KEY_ROW1__GPIO4_IO09      0x80000000  &amp;gt;; };&lt;/PRE&gt;&lt;P&gt;Because i have a conflicts with a uart5 for Row1 and Col1:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #f9f9f9; font-size: 12.6667px; padding: 15px 20px;"&gt;pinctrl_ecspi1_1: ecspi1grp {  fsl,pins = &amp;lt;   MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1   MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1  &amp;gt;; };&lt;/PRE&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I removed sdma from ecspi. But, how can i check CCM_CCGR1 register?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The congatec board using iMx6 Solo, but the pins name is "MX6QDL" (Stand for Dual Lite and Quad?).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;For the Solo iMX6 processor is the same as Dual Lite and Quad?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The others peripherals function correctly.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:05:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033682#M152564</guid>
      <dc:creator>marco_padovani</dc:creator>
      <dc:date>2019-12-12T08:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPI don't work on iMX6 - Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033683#M152565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a wrong pinctrl for Uart in previous message, this is correct:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #f9f9f9; border: 0px; font-size: 12.6667px; padding: 15px 20px;"&gt;pinctrl_uart5: uart5grp{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fsl,pins = &amp;lt; MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0x1b0b1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                                           MX6QDL_PAD_KEY_COL1__UART5_TX_DATA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0x1b0b1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;gt;; };&lt;/PRE&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-don-t-work-on-iMX6-Linux/m-p/1033683#M152565</guid>
      <dc:creator>marco_padovani</dc:creator>
      <dc:date>2019-12-12T08:08:28Z</dc:date>
    </item>
  </channel>
</rss>

