<?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中的主题 Mainstream kernel and poweroff on imx6ull board</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882187#M133747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are currently&amp;nbsp;working with an official nxp&amp;nbsp;bsp&amp;nbsp;(rel_imx_4.1.15_2.1.0_ga) on our custom imx6ull&amp;nbsp;&lt;/P&gt;&lt;P&gt;board. We are trying to move to mainstream kernel. For now the work is done on 4.19.X release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to make work my audio codec, wifi, bluetooth, etc.. correctly. I have one last issue... The power&lt;/P&gt;&lt;P&gt;off feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By just running poweroff&amp;nbsp;command in the shell on my board, the log seems good :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# poweroff&lt;/P&gt;&lt;P&gt;imx2-wdt 20bc000.wdog: Device shutdown: Expect reboot!&lt;BR /&gt;reboot: System halted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the led are always on and I am not able to boot anymore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The custom board uses a pfuze3000 pmic. Eveything&amp;nbsp;is working perfectly on the officiel&amp;nbsp;nxp release&lt;/P&gt;&lt;P&gt;of course but not on the mainstream kernel.&amp;nbsp; It is like the pmic&amp;nbsp;is not doing his work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There&amp;nbsp;are thousands of patch on nxp&amp;nbsp;bsp. Any clue about a patch to make work the poweroff&amp;nbsp;&lt;/P&gt;&lt;P&gt;feature on the mainstream kernel with a pmic&amp;nbsp; on imx6 board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to align the pfuze100_regulator sources, all the device tree sources, and it is always&amp;nbsp;&lt;/P&gt;&lt;P&gt;not working properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arthur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2019 14:56:41 GMT</pubDate>
    <dc:creator>arthur_rythm</dc:creator>
    <dc:date>2019-01-18T14:56:41Z</dc:date>
    <item>
      <title>Mainstream kernel and poweroff on imx6ull board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882187#M133747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are currently&amp;nbsp;working with an official nxp&amp;nbsp;bsp&amp;nbsp;(rel_imx_4.1.15_2.1.0_ga) on our custom imx6ull&amp;nbsp;&lt;/P&gt;&lt;P&gt;board. We are trying to move to mainstream kernel. For now the work is done on 4.19.X release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to make work my audio codec, wifi, bluetooth, etc.. correctly. I have one last issue... The power&lt;/P&gt;&lt;P&gt;off feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By just running poweroff&amp;nbsp;command in the shell on my board, the log seems good :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# poweroff&lt;/P&gt;&lt;P&gt;imx2-wdt 20bc000.wdog: Device shutdown: Expect reboot!&lt;BR /&gt;reboot: System halted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the led are always on and I am not able to boot anymore.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The custom board uses a pfuze3000 pmic. Eveything&amp;nbsp;is working perfectly on the officiel&amp;nbsp;nxp release&lt;/P&gt;&lt;P&gt;of course but not on the mainstream kernel.&amp;nbsp; It is like the pmic&amp;nbsp;is not doing his work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There&amp;nbsp;are thousands of patch on nxp&amp;nbsp;bsp. Any clue about a patch to make work the poweroff&amp;nbsp;&lt;/P&gt;&lt;P&gt;feature on the mainstream kernel with a pmic&amp;nbsp; on imx6 board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to align the pfuze100_regulator sources, all the device tree sources, and it is always&amp;nbsp;&lt;/P&gt;&lt;P&gt;not working properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arthur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 14:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882187#M133747</guid>
      <dc:creator>arthur_rythm</dc:creator>
      <dc:date>2019-01-18T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mainstream kernel and poweroff on imx6ull board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882188#M133748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mainstream kernel is not supported so we do not have much information that may be of help to get it running on the i.MX6ULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some threads on the communities of a similar behavior although in NXP’s BSPs and not in mainstream kernel. Maybe they may provide some hints:&lt;BR /&gt; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/359508"&gt;https://community.nxp.com/thread/359508&lt;/A&gt;&lt;BR /&gt; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/385097"&gt;https://community.nxp.com/thread/385097&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a new 4.14.78_1.0.0 BSP Release, perhaps you could look at how the PMIC is handled there although you would need to look among the number of patches included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be contacting NXP Professional Services to ask for help implementing this feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies for the inconvenience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 21:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882188#M133748</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2019-01-21T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mainstream kernel and poweroff on imx6ull board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882189#M133749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think this is implemented in the Linux kernel since version 4.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fstable%2Flinux.git%2Fcommit%2Farch%2Farm%2Fmach-imx%2Fpm-imx6.c%3Fh%3Dv4.20.3%26id%3D8148d2136002da2e2887caf6a07bbd9c033f14f3" rel="nofollow" target="_blank"&gt;https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm/mach-imx/pm-imx6.c?h=v4.20.3&amp;amp;id=8148d2136002da2e2887caf6a07bbd9c033f14f3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 22:53:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882189#M133749</guid>
      <dc:creator>Sasamy</dc:creator>
      <dc:date>2019-01-21T22:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mainstream kernel and poweroff on imx6ull board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882190#M133750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer. I tried to add this to my kernel and this is not working.&lt;/P&gt;&lt;P&gt;I have the log a the end "&lt;STRONG&gt;Unable to poweroff&amp;nbsp;system"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably because the pmic power off sequence is not running correctly after this code :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;imx6_set_lpm(STOP_POWER_OFF);&lt;/DIV&gt;&lt;DIV&gt;imx6q_suspend_finish(0);&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to test directly the 4.20 kernel on my board. Same failure on the power off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to find this very useful commit in my kernel log in on the nxp&amp;nbsp;bsp:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lkml.org/lkml/2018/9/12/105" title="https://lkml.org/lkml/2018/9/12/105"&gt;https://lkml.org/lkml/2018/9/12/105&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact my board uses PMIC_ON_REQ and not the&amp;nbsp;PMIC_STBY_REQ signal. So I must no used&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&amp;nbsp;fsl&lt;STRONG&gt;,&lt;/STRONG&gt;pmic&lt;STRONG&gt;-&lt;/STRONG&gt;stby&lt;STRONG&gt;-&lt;/STRONG&gt;poweroff&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;system in the device tree but the&amp;nbsp;syscon&lt;STRONG&gt;-&lt;/STRONG&gt;poweroff instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a working kernel the code to handle the poweroff is in drivers/power/reset/syscon-poweroff. The probe&lt;/P&gt;&lt;P&gt;and the syscon_poweroff function seems to be not trigger on mainstream kernel. There is probably&lt;/P&gt;&lt;P&gt;something missing in the imx6ull.dtsi or imx6ul.dtsi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to pointing me the good&amp;nbsp;direction :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 10:53:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882190#M133750</guid>
      <dc:creator>arthur_rythm</dc:creator>
      <dc:date>2019-01-23T10:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mainstream kernel and poweroff on imx6ull board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882191#M133751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;snvs_poweroff is disabled by default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/imx6ul.dtsi?h=v4.20.4#n637" rel="nofollow noopener noreferrer" target="_blank"&gt;imx6ul.dtsi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think because there are several poweroff drivers (at least there is still gpio-poweroff), but only one can be used. Therefore, you just need to enable it in your DTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi?h=v4.20.4#n194" rel="nofollow noopener noreferrer" target="_blank"&gt;imx6ul-14x14-evk.dtsi&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;&lt;PRE&gt;&lt;PRE&gt;&amp;amp;snvs_poweroff {
&amp;nbsp;&amp;nbsp;&amp;nbsp;status = "okay"; 
};&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 12:10:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882191#M133751</guid>
      <dc:creator>Sasamy</dc:creator>
      <dc:date>2019-01-23T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mainstream kernel and poweroff on imx6ull board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882192#M133752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that's it... There&amp;nbsp; is no "disabled" in the original device tree in nxp&amp;nbsp;official bsp.&lt;/P&gt;&lt;P&gt;Juste a "disabled" line to remove in the imx6ul.dtsi or a status okay to add to my&lt;/P&gt;&lt;P&gt;custom board device tree to trigger the driver and now everything is working like a charm...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 13:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Mainstream-kernel-and-poweroff-on-imx6ull-board/m-p/882192#M133752</guid>
      <dc:creator>arthur_rythm</dc:creator>
      <dc:date>2019-01-23T13:31:28Z</dc:date>
    </item>
  </channel>
</rss>

