<?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>topic Limit SD clock speed IMX6 - YOCTO - Linux - uboot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1234482#M169826</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have custom board based on the&amp;nbsp; imx6q-sabre&amp;nbsp; board, on our tests at high temperature we got the board running, but the libraries for graphic display are not loaded correctly and we can't ssh the board. (the xserver and some other libraries are located on the sd), we want to try limit the speed of the SD card to 25MHz instead the high speed that is auto detected (50Mhz)...&amp;nbsp; &amp;nbsp;Our BSP is build using yocto&lt;/P&gt;&lt;P&gt;I already tried to edit the&amp;nbsp; dtsi file editing max-frequency and was not successful:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;amp;usdhc4 {&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;pinctrl-names = "default";&lt;/DIV&gt;&lt;DIV&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc4&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;bus-width = &amp;lt;8&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;non-removable;&lt;/DIV&gt;&lt;DIV&gt;clock-frequency = &amp;lt;25000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;max-frequency = &amp;lt;25000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "disabled";&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Editing the&amp;nbsp;/drivers/mmc/fsl_esdhc.c/drivers/mmc/fsl_esdhc.c to force the cfg.f_max to be 25000000. Also no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The only way I had set the speed to 25Mhz is setting the&amp;nbsp;&amp;nbsp;clock on linux like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;echo 25000000 &amp;gt; /sys/kernel/debug/mmc3/clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but we need to set the max speed before xserver and other libraries are loaded from the sd card.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How could I ensure to limit the speed of the sd card to test is this is our problem at high temperatures...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards!&lt;/SPAN&gt;&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>Mon, 22 Feb 2021 16:41:15 GMT</pubDate>
    <dc:creator>juanalbertogonz</dc:creator>
    <dc:date>2021-02-22T16:41:15Z</dc:date>
    <item>
      <title>Limit SD clock speed IMX6 - YOCTO - Linux - uboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1234482#M169826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have custom board based on the&amp;nbsp; imx6q-sabre&amp;nbsp; board, on our tests at high temperature we got the board running, but the libraries for graphic display are not loaded correctly and we can't ssh the board. (the xserver and some other libraries are located on the sd), we want to try limit the speed of the SD card to 25MHz instead the high speed that is auto detected (50Mhz)...&amp;nbsp; &amp;nbsp;Our BSP is build using yocto&lt;/P&gt;&lt;P&gt;I already tried to edit the&amp;nbsp; dtsi file editing max-frequency and was not successful:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;amp;usdhc4 {&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;pinctrl-names = "default";&lt;/DIV&gt;&lt;DIV&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc4&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;bus-width = &amp;lt;8&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;non-removable;&lt;/DIV&gt;&lt;DIV&gt;clock-frequency = &amp;lt;25000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;max-frequency = &amp;lt;25000000&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "disabled";&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Editing the&amp;nbsp;/drivers/mmc/fsl_esdhc.c/drivers/mmc/fsl_esdhc.c to force the cfg.f_max to be 25000000. Also no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The only way I had set the speed to 25Mhz is setting the&amp;nbsp;&amp;nbsp;clock on linux like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;echo 25000000 &amp;gt; /sys/kernel/debug/mmc3/clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but we need to set the max speed before xserver and other libraries are loaded from the sd card.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How could I ensure to limit the speed of the sd card to test is this is our problem at high temperatures...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards!&lt;/SPAN&gt;&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>Mon, 22 Feb 2021 16:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1234482#M169826</guid>
      <dc:creator>juanalbertogonz</dc:creator>
      <dc:date>2021-02-22T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Limit SD clock speed IMX6 - YOCTO - Linux - uboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1234724#M169843</link>
      <description>&lt;P&gt;Hi juanalbertogonz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;issue may be related to signal integrity (it may depend on SD clock speed) and one&lt;/P&gt;
&lt;P&gt;can try solutions provided on&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/eMMC-8GB-to-4GB-crash-on-linux-yocto-boot/m-p/373231" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/eMMC-8GB-to-4GB-crash-on-linux-yocto-boot/m-p/373231&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regarding limit SD clock speed, I am afraid there is no simple way except already mentioned&lt;/P&gt;
&lt;P&gt;with " echo 25000000 &amp;gt; /sys/kernel/debug/mmc3/clock", so one will have to modify driver.&lt;/P&gt;
&lt;P&gt;For that one can use sect.3.3 MMC/SD/SDIO Host &amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener"&gt;i.MX Linux Reference Manual​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4553.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN4553.pdf&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;</description>
      <pubDate>Tue, 23 Feb 2021 04:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1234724#M169843</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-02-23T04:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Limit SD clock speed IMX6 - YOCTO - Linux - uboot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1235119#M169884</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will look into the solution from the referenced post, at first sight we have a slightly different definition...&amp;nbsp; since we don't have&amp;nbsp;&lt;SPAN&gt;PAD_CTL_PKE | PAD_CTL_PUE, following the advice&amp;nbsp;I will build a version changing this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define USDHC_PAD_CTRL (PAD_CTL_PUS_47K_UP | \&lt;BR /&gt;PAD_CTL_SPEED_LOW | PAD_CTL_DSE_80ohm | \&lt;BR /&gt;PAD_CTL_SRE_FAST | PAD_CTL_HYS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to this:&lt;BR /&gt;#define USDHC_PAD_CTRL (PAD_CTL_PUS_22K_UP | \&lt;BR /&gt;PAD_CTL_SPEED_LOW | PAD_CTL_DSE_120ohm | \&lt;BR /&gt;PAD_CTL_SRE_FAST | PAD_CTL_HYS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;will test if it work a regular temperatures and then try to look to high temperatures.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your answer..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 16:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Limit-SD-clock-speed-IMX6-YOCTO-Linux-uboot/m-p/1235119#M169884</guid>
      <dc:creator>juanalbertogonz</dc:creator>
      <dc:date>2021-02-23T16:57:09Z</dc:date>
    </item>
  </channel>
</rss>

