<?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: imx8mm SPI driver</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1797684#M219371</link>
    <description>&lt;P&gt;Hi Chavira,&lt;/P&gt;&lt;P&gt;the time slice looks verry good and I would like to have the same result. Is it possible to say which slice is CS, MOSI, MISO and CLK?&lt;/P&gt;&lt;P&gt;I changed a little in the device tree and I'm relative sure that the behaviour is the same, but the result not. Here are the tree settings.&lt;/P&gt;&lt;P&gt;gpio5:gpio@30240000 {&lt;BR /&gt;compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";&lt;BR /&gt;reg = &amp;lt;0x30240000 0x10000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;0x00 0x48 0x04 0x00 0x49 0x04&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;0x02 0xe3&amp;gt;;&lt;BR /&gt;gpio-controller;&lt;BR /&gt;#gpio-cells = &amp;lt;0x02&amp;gt;;&lt;BR /&gt;interrupt-controller;&lt;BR /&gt;#interrupt-cells = &amp;lt;0x02&amp;gt;;&lt;BR /&gt;gpio-ranges = &amp;lt;0x14 0x00 0x77 0x1e&amp;gt;;&lt;BR /&gt;phandle = &amp;lt;0x24&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ecspi2grp {&lt;BR /&gt;fsl,pins = &amp;lt;0x204 0x46c 0x00 0x00 0x00 0x82 0x208 0x470 0x00 0x00 0x00 0x82 0x20c 0x474 0x00 0x00 0x00 0x82&amp;gt;;&lt;BR /&gt;phandle = &amp;lt;0x28&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ecspi2_cs:ecspi2csgrp {&lt;BR /&gt;fsl,pins = &amp;lt;0x210 0x478 0x000 0x5 0x0 0x40000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;spi@30830000 {&lt;BR /&gt;compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";&lt;BR /&gt;/*compatible = "fsl,imx8mm-ecspi\0fsl,imx51-ecspi";*/&lt;BR /&gt;#address-cells = &amp;lt;0x01&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0x00&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x30830000 0x10000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;0x00 0x20 0x04&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;0x02 0xa0 0x02 0xa0&amp;gt;;&lt;BR /&gt;clock-names = "ipg", "per";&lt;BR /&gt;dmas = &amp;lt;0x21 0x02 0x07 0x01 0x21 0x03 0x07 0x02&amp;gt;;&lt;BR /&gt;dma-names = "rx\0tx";&lt;BR /&gt;status = "okay";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;pinctrl-0 = &amp;lt;0x28 &amp;amp;ecspi2_cs 0x2a&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;gpio5 0x0d 0x01&amp;gt;;&lt;BR /&gt;/*num-cs = &amp;lt;0x01&amp;gt;;*/&lt;/P&gt;&lt;P&gt;lan9253@0 {&lt;BR /&gt;compatible = "lan9253";&lt;BR /&gt;spi-max-frequency = &amp;lt;0x1312d00&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x00&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 09:57:04 GMT</pubDate>
    <dc:creator>Alex22</dc:creator>
    <dc:date>2024-01-30T09:57:04Z</dc:date>
    <item>
      <title>imx8mm SPI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1790869#M218857</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I’m using the SPI interface in master mode from the imx8mm. I’m not so familiar how the Kernel driver will handle a transmission to an SPI slave. The Chip-Select (CS) signal to set or reset the pin takes verry long. Maybe it’s normal, but I not able to explain it. Her is what I see.&lt;/P&gt;&lt;P&gt;&lt;IMG src="C:\Users\a.vanderydt\Desktop" border="0" alt="spt_write_than_read" /&gt;&lt;/P&gt;&lt;P&gt;When the driver is entered and he start the transmission the function spi_write_then_read() (spi.c) will been called and this function will call function in spi-imx.c. Ok, understood, my question is.&lt;/P&gt;&lt;P&gt;Why dose the CS takes so long to set and reset? I’m not able to explain it or how I can fix this issue. I will send 4 Byte and read 4 Byte via the function.&lt;/P&gt;&lt;P&gt;Device-tree properties and anything else will not help. The 4 CPU’s do nothing else than this test code.&lt;/P&gt;&lt;P&gt;Thanks, for any explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 08:24:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1790869#M218857</guid>
      <dc:creator>Alex22</dc:creator>
      <dc:date>2024-01-18T08:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm SPI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1790874#M218858</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="SPI.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/258756iB6D1A915221C1E60/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI.png" alt="SPI.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 08:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1790874#M218858</guid>
      <dc:creator>Alex22</dc:creator>
      <dc:date>2024-01-18T08:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm SPI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1792013#M218936</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228356"&gt;@Alex22&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;How are you implementing your device tree and drivers?&lt;BR /&gt;&lt;BR /&gt;What BSP are you using?&lt;BR /&gt;&lt;BR /&gt;I will try to use Spidev to have an SPI signals and compare it with your results.&lt;BR /&gt;&lt;BR /&gt;You can consult our driver documentation in chapter 4.3 of our Linux Reference Manual.&lt;BR /&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1792013#M218936</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-01-19T15:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm SPI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1795437#M219209</link>
      <description>&lt;P&gt;Linux imx8mm 5.10.72-spi_dbg+ #26 SMP PREEMPT_RT Thu Jan 25 12:36:32 CET 2024 aarch64 aarch64 aarch64 GNU/Linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spi@30830000 {&lt;BR /&gt;compatible = "fsl,imx8mm-ecspi\0fsl,imx51-ecspi";&lt;BR /&gt;/*#address-cells = &amp;lt;0x01&amp;gt;;*/&lt;BR /&gt;/*#size-cells = &amp;lt;0x00&amp;gt;;*/&lt;BR /&gt;reg = &amp;lt;0x30830000 0x10000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;0x00 0x20 0x04&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;0x02 0xa0 0x02 0xa0&amp;gt;;&lt;BR /&gt;clock-names = "ipg\0per";&lt;BR /&gt;dmas = &amp;lt;0x21 0x02 0x07 0x01 0x21 0x03 0x07 0x02&amp;gt;;&lt;BR /&gt;dma-names = "rx\0tx";&lt;BR /&gt;status = "okay";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;0x28 0x29 0x2a&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;0x24 0x0d 0x01&amp;gt;;&lt;BR /&gt;num-cs = &amp;lt;0x01&amp;gt;;&lt;/P&gt;&lt;P&gt;lan9253@0 {&lt;BR /&gt;compatible = "microchip,lan9253";&lt;BR /&gt;spi-max-frequency = &amp;lt;0x2625A00&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x00&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 13:11:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1795437#M219209</guid>
      <dc:creator>Alex22</dc:creator>
      <dc:date>2024-01-25T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm SPI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1797130#M219326</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228356"&gt;@Alex22&lt;/a&gt;!&lt;BR /&gt;Thank you for contacting NXP Support!&lt;BR /&gt;&lt;BR /&gt;I made the test using Spidev and those are the results:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chavira_0-1706560715948.png" style="width: 392px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/260632iC8FA64840D58C046/image-dimensions/392x105?v=v2" width="392" height="105" role="button" title="Chavira_0-1706560715948.png" alt="Chavira_0-1706560715948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Please check our device tree configurations for ecspi2 on the next links:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx8mm.dtsi" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx8mm.dtsi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 20:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1797130#M219326</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-01-29T20:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mm SPI driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1797684#M219371</link>
      <description>&lt;P&gt;Hi Chavira,&lt;/P&gt;&lt;P&gt;the time slice looks verry good and I would like to have the same result. Is it possible to say which slice is CS, MOSI, MISO and CLK?&lt;/P&gt;&lt;P&gt;I changed a little in the device tree and I'm relative sure that the behaviour is the same, but the result not. Here are the tree settings.&lt;/P&gt;&lt;P&gt;gpio5:gpio@30240000 {&lt;BR /&gt;compatible = "fsl,imx8mm-gpio", "fsl,imx35-gpio";&lt;BR /&gt;reg = &amp;lt;0x30240000 0x10000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;0x00 0x48 0x04 0x00 0x49 0x04&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;0x02 0xe3&amp;gt;;&lt;BR /&gt;gpio-controller;&lt;BR /&gt;#gpio-cells = &amp;lt;0x02&amp;gt;;&lt;BR /&gt;interrupt-controller;&lt;BR /&gt;#interrupt-cells = &amp;lt;0x02&amp;gt;;&lt;BR /&gt;gpio-ranges = &amp;lt;0x14 0x00 0x77 0x1e&amp;gt;;&lt;BR /&gt;phandle = &amp;lt;0x24&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ecspi2grp {&lt;BR /&gt;fsl,pins = &amp;lt;0x204 0x46c 0x00 0x00 0x00 0x82 0x208 0x470 0x00 0x00 0x00 0x82 0x20c 0x474 0x00 0x00 0x00 0x82&amp;gt;;&lt;BR /&gt;phandle = &amp;lt;0x28&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;ecspi2_cs:ecspi2csgrp {&lt;BR /&gt;fsl,pins = &amp;lt;0x210 0x478 0x000 0x5 0x0 0x40000&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;spi@30830000 {&lt;BR /&gt;compatible = "fsl,imx8mm-ecspi", "fsl,imx51-ecspi";&lt;BR /&gt;/*compatible = "fsl,imx8mm-ecspi\0fsl,imx51-ecspi";*/&lt;BR /&gt;#address-cells = &amp;lt;0x01&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0x00&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x30830000 0x10000&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;0x00 0x20 0x04&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;0x02 0xa0 0x02 0xa0&amp;gt;;&lt;BR /&gt;clock-names = "ipg", "per";&lt;BR /&gt;dmas = &amp;lt;0x21 0x02 0x07 0x01 0x21 0x03 0x07 0x02&amp;gt;;&lt;BR /&gt;dma-names = "rx\0tx";&lt;BR /&gt;status = "okay";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;pinctrl-0 = &amp;lt;0x28 &amp;amp;ecspi2_cs 0x2a&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;gpio5 0x0d 0x01&amp;gt;;&lt;BR /&gt;/*num-cs = &amp;lt;0x01&amp;gt;;*/&lt;/P&gt;&lt;P&gt;lan9253@0 {&lt;BR /&gt;compatible = "lan9253";&lt;BR /&gt;spi-max-frequency = &amp;lt;0x1312d00&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x00&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 09:57:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mm-SPI-driver/m-p/1797684#M219371</guid>
      <dc:creator>Alex22</dc:creator>
      <dc:date>2024-01-30T09:57:04Z</dc:date>
    </item>
  </channel>
</rss>

