<?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: ecspi2 on the i.MX8 not functioning?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823534#M126676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this board was developed and supported by variscite, so it may be posted on its tech support&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.variscite.com/support/" title="https://www.variscite.com/support/"&gt;Variscite Support Center - Variscite&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Maybe a device tree entry could fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is possible, please try suggested imx8mq-nitrogen8m.dts example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2018 03:28:59 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-12-21T03:28:59Z</dc:date>
    <item>
      <title>ecspi2 on the i.MX8 not functioning?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823531#M126673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the spi-imx.c driver but it doesn't seem like the registers are responding.&amp;nbsp; Is there an enable or voltage regulator required to use the ecspi?&amp;nbsp; For example I try to write to the ecspi control register and it does not stick in the register.&amp;nbsp; I used devmem2 that comes with the yocto build for the Compulabs cl-som-imx8.&amp;nbsp; The driver doesn't seem to be able to write to this register either.&amp;nbsp; See below.&amp;nbsp; It tries to write&amp;nbsp;&lt;STRONG style="color: #ff6600;"&gt;0xf091f5 &lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;but it stays at&lt;/SPAN&gt;&lt;STRONG style="color: #ff6600;"&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;0x&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: 400;"&gt;F&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-weight: 400;"&gt;091F1.&amp;nbsp; FYI, I am not using dma.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@cl-som-imx8:~# devmem2 0x30830008 w &lt;STRONG&gt;0x0000010000F091F5&lt;/STRONG&gt;&lt;BR /&gt;/dev/mem opened.&lt;BR /&gt;Memory mapped at address 0xffff84016000.&lt;BR /&gt;Read at address 0x30830008 (0xffff84016008): 0x0000010000F091F1&lt;BR /&gt;Write at address 0x30830008 (0xffff84016008): &lt;STRONG&gt;0x0000010000F091F5&lt;/STRONG&gt;, readback 0x0000010000F091F5&lt;BR /&gt;root@cl-som-imx8:~# devmem2 0x30830008 w &lt;BR /&gt;/dev/mem opened.&lt;BR /&gt;Memory mapped at address 0xffff91e4e000.&lt;BR /&gt;Read at address 0x30830008 (0xffff91e4e008): &lt;STRONG&gt;0x0000010000F091F1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Below is some debug output from the spi-imx.c driver also tries to write a value to this register.&amp;nbsp; But it does not stick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.886816] spidev spi32766.0: spi_imx_setup: mode 0, 16 bpw, 10000000 hz&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.886830] spidev spi32766.0: 16 bits per word&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887069] spidev spi32766.0: xfer len 4 tx 16bits 0 usec 10000000Hz&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887076] spidev spi32766.0: xfer len 4 rx 16bits 0 usec 10000000Hz&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887103] spidev spi32766.0: spi_imx_setupxfer: NEW mode 0, 16 bpw, 10000000 hz, conf&lt;BR /&gt;ig.bpw 16, config.speed_hz 10000000, spi_imx-&amp;gt;usedma 0&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887111] spi_imx 30830000.ecspi: mx51_ecspi_clkdiv: fin: 200000000, fspi: 10000000, &lt;BR /&gt;post: 1, pre: 9&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887119] spi_imx 30830000.ecspi: spi_imx_push: count 4, txfifo 0, txfifosize 64&lt;BR /&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887125] spi_imx 30830000.ecspi: mx51_ecspi_trigger: trigger value 0xf091f5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887132] spi_imx 30830000.ecspi: mx51_ecspi_intctrl: enable 0x1, val 0x1&lt;BR /&gt;Dec 20 20:11:32 cl-som-imx8 user.debug kernel: [ 575.887139] spidev spi32766.0: spi_imx_pio_transfer: count 0, timeout 500&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2018 21:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823531#M126673</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2018-12-20T21:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: ecspi2 on the i.MX8 not functioning?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823532#M126674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as described in cl-som-imx8 manual there are only ecspi1,3 ports on board:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.compulab.com/wp-content/uploads/2018/01/cl-som-imx8_reference-guide_2018-01-09.pdf" title="https://www.compulab.com/wp-content/uploads/2018/01/cl-som-imx8_reference-guide_2018-01-09.pdf"&gt;https://www.compulab.com/wp-content/uploads/2018/01/cl-som-imx8_reference-guide_2018-01-09.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for ecspi2 example one can look on imx8mq-nitrogen8m.dts&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_4.9.x_2.0.0_ga/arch/arm64/boot/dts/freescale/imx8mq-nitrogen8m.dts" title="https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_4.9.x_2.0.0_ga/arch/arm64/boot/dts/freescale/imx8mq-nitrogen8m.dts"&gt;linux-imx6/imx8mq-nitrogen8m.dts at boundary-imx_4.9.x_2.0.0_ga · boundarydevices/linux-imx6 · GitHub&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>Fri, 21 Dec 2018 00:07:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823532#M126674</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-21T00:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: ecspi2 on the i.MX8 not functioning?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823533#M126675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were told that the version 1.0 of the Compulab cl-som-imx8 that we are using has the ecspi2 connected.&amp;nbsp; We have been able to use the same lines as gpio and do our own bit bang and it works.&amp;nbsp; We just wanted to be able to use the ecspi controller to make sure we had good timing and could take advantage of a spidev driver in Linux.&amp;nbsp; Is it possible the&amp;nbsp; ecspi2 controller is not activated or powered even though the lines are connected out of the SOM?&amp;nbsp; Maybe a device tree entry could fix it?&amp;nbsp; I do have an ongoing issue with Compulab on this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 02:06:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823533#M126675</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2018-12-21T02:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: ecspi2 on the i.MX8 not functioning?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823534#M126676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this board was developed and supported by variscite, so it may be posted on its tech support&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.variscite.com/support/" title="https://www.variscite.com/support/"&gt;Variscite Support Center - Variscite&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Maybe a device tree entry could fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is possible, please try suggested imx8mq-nitrogen8m.dts example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 03:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823534#M126676</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-21T03:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: ecspi2 on the i.MX8 not functioning?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823535#M126677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Igor!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This resolved my problem.&amp;nbsp; The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;imx8mq-nitrogen8m.dts example showed&lt;/SPAN&gt; I had the wrong irq number in my device tree.&amp;nbsp; It is now getting the read interrupts.&amp;nbsp; The data doesn't look correct but at least the driver seems to be functioning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 13:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823535#M126677</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2018-12-21T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: ecspi2 on the i.MX8 not functioning?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823536#M126678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All is working now.&amp;nbsp; To fix the data problem I had to change the phase of the spi controller so input is sampled on trailing clock edge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2018 12:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ecspi2-on-the-i-MX8-not-functioning/m-p/823536#M126678</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2018-12-28T12:35:32Z</dc:date>
    </item>
  </channel>
</rss>

