<?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: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1957618#M228644</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your input.&lt;/P&gt;&lt;P&gt;I have tried your suggestion. I removed my entries of MRAM and added default entry as below.&lt;/P&gt;&lt;DIV&gt;&amp;amp;ecspi2 {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2 &amp;amp;pinctrl_ecspi2_cs&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cs-gpios = &amp;lt;&amp;amp;gpio5 13 GPIO_ACTIVE_LOW&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;status = "okay";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;spidev1: spi@0 {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;reg = &amp;lt;0&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;compatible = "rohm,dh2228fv";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;spi-max-frequency = &amp;lt;500000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;spidev test application log:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;root@fusion:~/spidev-test# ./spidev -D /dev/spidev1.0 -s 30000000&lt;BR /&gt;spi mode: 0x0&lt;BR /&gt;bits per word: 8&lt;BR /&gt;max speed: 30000000 Hz (30000 KHz)&lt;BR /&gt;RX | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................................&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have enabled kernel logs for your reference.&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Kernel Logs:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;Jul 30 13:28:57 fusion kernel: [ 901.210267] spidev spi1.0: spi_imx_setup: mode 0, 8 bpw, 30000000 hz&lt;BR /&gt;Jul 30 13:28:57 fusion kernel: [ 901.210274] spidev spi1.0: setup mode 0, 8 bits/w, 30000000 Hz max --&amp;gt; 0&lt;BR /&gt;Jul 30 13:28:57 fusion kernel: [ 901.210486] spi_imx 30830000.spi: mx51_ecspi_clkdiv: fin: 80000000, fspi: 30000000, post: 0, pre: 2&lt;BR /&gt;Jul 30 13:28:57 fusion kernel: [ 901.210491] spi_imx 30830000.spi: mx51_ecspi_clkdiv: result frequency: &lt;STRONG&gt;26666666 =&amp;gt;26.6MHz&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Maulik&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Sep 2024 10:31:53 GMT</pubDate>
    <dc:creator>Maulik_Manvar</dc:creator>
    <dc:date>2024-09-19T10:31:53Z</dc:date>
    <item>
      <title>Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1954207#M228425</link>
      <description>&lt;P&gt;Hi NXP Community,&lt;/P&gt;&lt;P&gt;I’m currently working with an i.MX8MP processor on a custom-designed board and am encountering an issue with the SPI frequency. Specifically, I’ve configured the SPI bus with a spi-max-frequency of 25MHz, as specified by the datasheet for my MRAM device. MRAM is compatible with 0 to 40MHz frequency range. However, when I measure the actual SPI clock frequency using an oscilloscope, I observe a frequency of approximately 19.6MHz.&lt;/P&gt;&lt;P&gt;Here are the details of my setup:&lt;/P&gt;&lt;P&gt;Processor: i.MX8MP&lt;BR /&gt;SPI Clock Configuration: Set spi-max-frequency to 25MHz&lt;BR /&gt;Measured Frequency: 19.6MHz&lt;BR /&gt;Measurement Tool: Digital Storage Oscilloscope (DSO)&lt;BR /&gt;I have verified the following:&lt;/P&gt;&lt;P&gt;The MRAM datasheet confirms that it supports up to 40MHz.&lt;BR /&gt;The SPI configuration in the device tree seems correct. This is how I configured MRAM in my dts file.&lt;BR /&gt;mr25h40: mram@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 = "mr25h40", "jedec,spi-nor";&lt;BR /&gt;reg = &amp;lt;0 0x00000000 0x00080000&amp;gt;;&lt;BR /&gt;spi-max-frequency = &amp;lt;30000000&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;BR /&gt;Could anyone provide insights into why there might be a discrepancy between the configured and measured SPI frequencies? Are there additional configuration parameters or settings I should check to ensure that the SPI clock is running at the desired frequency? Any advice or troubleshooting steps would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you in advance for your assistance!&lt;/P&gt;&lt;P&gt;Maulik&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 10:57:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1954207#M228425</guid>
      <dc:creator>Maulik_Manvar</dc:creator>
      <dc:date>2024-09-13T10:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1954249#M228428</link>
      <description>&lt;P&gt;Please consider below typo in above provided dts configuration.&lt;BR /&gt;&lt;SPAN&gt;spi-max-frequency = &amp;lt;&lt;STRONG&gt;25000000&lt;/STRONG&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 11:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1954249#M228428</guid>
      <dc:creator>Maulik_Manvar</dc:creator>
      <dc:date>2024-09-13T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1956865#M228597</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198224"&gt;@Maulik_Manvar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try following the example of the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts#L282" target="_self"&gt;imx8mp-evk.dts&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;Change the frequency to 25 MHz as you need, and test it with spidev to see if frequency is ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:51:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1956865#M228597</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-09-18T17:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1956870#M228598</link>
      <description>&lt;P&gt;Also, it appears the mr25h40 is a non-JEDEC as you can see on the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/mtd/spi-nor/core.c#L3762" target="_self"&gt;spi-nor core driver&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alejandro_Salas_0-1726682360786.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/299778i1485E613FA687040/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejandro_Salas_0-1726682360786.png" alt="Alejandro_Salas_0-1726682360786.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But first, please try with the above test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1956870#M228598</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-09-18T17:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1957618#M228644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your input.&lt;/P&gt;&lt;P&gt;I have tried your suggestion. I removed my entries of MRAM and added default entry as below.&lt;/P&gt;&lt;DIV&gt;&amp;amp;ecspi2 {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2 &amp;amp;pinctrl_ecspi2_cs&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;cs-gpios = &amp;lt;&amp;amp;gpio5 13 GPIO_ACTIVE_LOW&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;status = "okay";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;spidev1: spi@0 {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;reg = &amp;lt;0&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;compatible = "rohm,dh2228fv";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;spi-max-frequency = &amp;lt;500000&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;spidev test application log:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;root@fusion:~/spidev-test# ./spidev -D /dev/spidev1.0 -s 30000000&lt;BR /&gt;spi mode: 0x0&lt;BR /&gt;bits per word: 8&lt;BR /&gt;max speed: 30000000 Hz (30000 KHz)&lt;BR /&gt;RX | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................................&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have enabled kernel logs for your reference.&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Kernel Logs:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;Jul 30 13:28:57 fusion kernel: [ 901.210267] spidev spi1.0: spi_imx_setup: mode 0, 8 bpw, 30000000 hz&lt;BR /&gt;Jul 30 13:28:57 fusion kernel: [ 901.210274] spidev spi1.0: setup mode 0, 8 bits/w, 30000000 Hz max --&amp;gt; 0&lt;BR /&gt;Jul 30 13:28:57 fusion kernel: [ 901.210486] spi_imx 30830000.spi: mx51_ecspi_clkdiv: fin: 80000000, fspi: 30000000, post: 0, pre: 2&lt;BR /&gt;Jul 30 13:28:57 fusion kernel: [ 901.210491] spi_imx 30830000.spi: mx51_ecspi_clkdiv: result frequency: &lt;STRONG&gt;26666666 =&amp;gt;26.6MHz&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Maulik&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1957618#M228644</guid>
      <dc:creator>Maulik_Manvar</dc:creator>
      <dc:date>2024-09-19T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1960088#M228785</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198224"&gt;@Maulik_Manvar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I test it by my side without any issue.&lt;/P&gt;
&lt;P&gt;I used the device tree as same as you:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;amp;ecspi2 {
	#address-cells = &amp;lt;1&amp;gt;;
	#size-cells = &amp;lt;0&amp;gt;;
	fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2 &amp;amp;pinctrl_ecspi2_cs&amp;gt;;
	cs-gpios = &amp;lt;&amp;amp;gpio5 13 GPIO_ACTIVE_LOW&amp;gt;;
	status = "okay";

	spidev1: spi@0 {
		reg = &amp;lt;0&amp;gt;;
		compatible = "rohm,dh2228fv";
		spi-max-frequency = &amp;lt;500000&amp;gt;;
	};
};

pinctrl_ecspi2: ecspi2grp {
		fsl,pins = &amp;lt;
			MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK		0x82
			MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI		0x82
			MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO		0x82
		&amp;gt;;
	};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;root@imx8mpevk:~# spidev_test -D /dev/spidev1.0 -s 80000000 -v&lt;/LI-CODE&gt;
&lt;P&gt;And my spi output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alejandro_Salas_0-1727115113273.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300748i58A600566E4E9D72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejandro_Salas_0-1727115113273.png" alt="Alejandro_Salas_0-1727115113273.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;root@imx8mpevk:~# spidev_test -D /dev/spidev1.0 -s 30000000 -v&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alejandro_Salas_1-1727115178228.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300749i2795D85113D6BAB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejandro_Salas_1-1727115178228.png" alt="Alejandro_Salas_1-1727115178228.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SPI has the expected behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 18:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1960088#M228785</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-09-23T18:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1960392#M228808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you so much for experiment the same.&lt;/P&gt;&lt;P&gt;So, Now I can see that, If you set 30MHz using&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;spidev_test -D /dev/spidev1.0 -s 30000000 -v&lt;/STRONG&gt;&lt;BR /&gt;and You are getting 26.6MHz as an output frequency can see in DSO snap.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;If you set 80MHz using&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;spidev_test -D /dev/spidev1.0 -s 80000000 -v&lt;/STRONG&gt;&lt;BR /&gt;You are getting 80MHz full as an output frequency can see in DSO snap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;imx8mp default&amp;nbsp; base clock: ECSPI2 module uses a base clock frequency of 80 MHz, derived from the SYSTEM_PLL1_CLK (800 MHz).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I set the frequencies to 1MHz, 2MHz, 4MHz, 5MHz, 10MHz, 16MHz, 20MHz, or 40MHz, I observe the full frequency on the DSO without any discrepancies. However, when setting the frequencies to 25 or 30MHz, I get 19.6 and 26.6MHz, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain if there is any impact on the SPI device when the frequency is not exactly 30MHz?&amp;nbsp;I would like to hear your thoughts on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Maulik&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 05:16:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1960392#M228808</guid>
      <dc:creator>Maulik_Manvar</dc:creator>
      <dc:date>2024-09-24T05:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SPI Frequency Measurement on i.MX8MP based Custom Board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1960937#M228848</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198224"&gt;@Maulik_Manvar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears this is expected, because the SPI subsystem just can divide the clock in integers.&lt;/P&gt;
&lt;P&gt;For example, in this case the clock used by SPI is 80MHz, so, dividing by:&lt;/P&gt;
&lt;P&gt;80/1 = 80MHz&lt;/P&gt;
&lt;P&gt;80/2 = 40MHz&lt;/P&gt;
&lt;P&gt;80/3 = &lt;STRONG&gt;26.66MHz&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;80/4 = 20MHz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The driver proximate the configured clock on the command with its divider.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are not issue if&amp;nbsp;&lt;SPAN&gt;the frequency is not exactly 30MHz because your device is UP to 40MHz.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Salas.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 16:37:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-with-SPI-Frequency-Measurement-on-i-MX8MP-based-Custom/m-p/1960937#M228848</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-09-24T16:37:03Z</dc:date>
    </item>
  </channel>
</rss>

