<?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 Re: imx6ull: random crashes when setting REFTOP_SELFBIASOFF in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019991#M150837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Customers can use the bit REFTOP_SELFBIASOFF as they need.&lt;/P&gt;&lt;P&gt;General recommendation is that the bit should&amp;nbsp; be set in early uboot. And needs to be cleared&lt;/P&gt;&lt;P&gt;when the system is going into STOP mode and will be set again on resume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://git.congatec.com/android/qmx6_kernel/commit/516bf00a8ce530a269f6d2f1470f88e299584524" title="https://git.congatec.com/android/qmx6_kernel/commit/516bf00a8ce530a269f6d2f1470f88e299584524"&gt;ENGR00327364-2 ARM:imx6x: Ensure that the bandgap self-bias circuit is disabled after boot. (516bf00a) · Commits · Andro…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2020 08:25:02 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2020-03-27T08:25:02Z</dc:date>
    <item>
      <title>imx6ull: random crashes when setting REFTOP_SELFBIASOFF</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019988#M150834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On my custom board based on imx6ull,&amp;nbsp;which has the IMX_THERMAL driver enabled in U-Boot and Linux. We see on Linux boot random crashes (random means not on every boot, also not even the same crash dump/reason in linux). My first suggestion was instable RAM, but RAM seems stable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some investigations it turned out, that setting the REFTOP_SELFBIASOFF (misspelled in the code:&amp;nbsp;&lt;SPAN&gt;REFTOP_SELBIASOFF)&amp;nbsp;bit&amp;nbsp;&lt;/SPAN&gt;in the linux thermal driver seems the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that the kernel driver does not check first if REFTOP_VBGUP&lt;/P&gt;&lt;P&gt;is set and added this, but this did not helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;U-Boot does this check here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/mach-imx/mx6/soc.c?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/mach-imx/mx6/soc.c?h=imx_v2019.04_4.19.35_1.1.0"&gt;soc.c\mx6\mach-imx\arm\arch - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;Line 383&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More investigations into this problem and we found how U-Boot handles this bit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;U-Boot: Sets this bit in&amp;nbsp; arch_cpu_init()&lt;/P&gt;&lt;P&gt;U-Boot: Sets this bit in IMX_THERMAL driver&lt;/P&gt;&lt;P&gt;U-Boot: Clears this bit in IMX_THERMAL driver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we now remove the clearing of this bit in U-Boot in the thermal driver, we also see no crashes anymore in Linux (more than 12000 power on/off cycles)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Does anyone know more about this bit&amp;nbsp;&lt;SPAN&gt;REFTOP_SELFBIASOFF&amp;nbsp;&lt;/SPAN&gt;than is described in the RM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Or know somebody, who could know it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- What effect has this bit? May it leads in more power consumption?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Is the IMX_TERMAL driver in the U-Boot allowed to reset the bit in this way/context?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 11:07:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019988#M150834</guid>
      <dc:creator>cniedermaier</dc:creator>
      <dc:date>2020-01-30T11:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull: random crashes when setting REFTOP_SELFBIASOFF</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019989#M150835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; You may look at the i.MX6 Platform SDK (although it is not support i.MX 6UL&lt;/P&gt;&lt;P class=""&gt;directly):&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;field REFTOP_SELFBIASOFF[3]: &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; Control bit to disable the self-bias circuit in the analog bandgap. The self-bias circuit is used&lt;BR /&gt;&amp;nbsp; by the bandgap during startup. This bit should be set after the bandgap has stabilized and is&lt;BR /&gt;&amp;nbsp; necessary for best noise performance of analog blocks using the outputs of the bandgap. Not&lt;BR /&gt;&amp;nbsp; related to oscillator. Value should be returned to zero before removing vddhigh_in or asserting&lt;BR /&gt;&amp;nbsp; bit 0 of this register (REFTOP_PWD) to assure proper restart of the circuit.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;files:&lt;/P&gt;&lt;P class=""&gt;regsxtalosc24.h&lt;/P&gt;&lt;P class=""&gt;pmu_driver.cpp&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;A class="link-titled" href="https://github.com/flit/imx6_platform_sdk" title="https://github.com/flit/imx6_platform_sdk"&gt;GitHub - flit/imx6_platform_sdk: Bare metal SDK for i.MX6 Q/D/DL/S/SL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P class=""&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 08:37:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019989#M150835</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-02-14T08:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull: random crashes when setting REFTOP_SELFBIASOFF</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019990#M150836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the answer, but unfortunately it does not bring me any further insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it allowed to switch off the bit REFTOP_SELFBIASOFF during operation like the IMX_THERMAL driver does in U-Boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me the i.MX6ULL is a back box and I can't see what happens inside. But it is just that switching this bit off and on again often leads to instability of the CPU...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 10:31:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019990#M150836</guid>
      <dc:creator>cniedermaier</dc:creator>
      <dc:date>2020-02-18T10:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull: random crashes when setting REFTOP_SELFBIASOFF</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019991#M150837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Customers can use the bit REFTOP_SELFBIASOFF as they need.&lt;/P&gt;&lt;P&gt;General recommendation is that the bit should&amp;nbsp; be set in early uboot. And needs to be cleared&lt;/P&gt;&lt;P&gt;when the system is going into STOP mode and will be set again on resume.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://git.congatec.com/android/qmx6_kernel/commit/516bf00a8ce530a269f6d2f1470f88e299584524" title="https://git.congatec.com/android/qmx6_kernel/commit/516bf00a8ce530a269f6d2f1470f88e299584524"&gt;ENGR00327364-2 ARM:imx6x: Ensure that the bandgap self-bias circuit is disabled after boot. (516bf00a) · Commits · Andro…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 08:25:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-random-crashes-when-setting-REFTOP-SELFBIASOFF/m-p/1019991#M150837</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2020-03-27T08:25:02Z</dc:date>
    </item>
  </channel>
</rss>

