<?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>LayerscapeのトピックRe: GPIO modules not loading on LS1046AFRWY board</title>
    <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1781815#M13805</link>
    <description>&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;"CONFIG_GPIO_MPC8XXX" has been enabled. This is what I get if run:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;~# zcat /proc/config.gz | grep GPIO_MPC8XXX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CONFIG_GPIO_MPC8XXX=y&lt;/P&gt;&lt;P&gt;But I don't see the&lt;SPAN&gt;&amp;nbsp;/sys/class/gpio directory on the target and I can't run any GPIO commands that reference it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 19:56:08 GMT</pubDate>
    <dc:creator>acosara</dc:creator>
    <dc:date>2024-01-02T19:56:08Z</dc:date>
    <item>
      <title>GPIO modules not loading on LS1046AFRWY board</title>
      <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1772567#M13739</link>
      <description>&lt;P&gt;I'm trying to enable wake from GPIO on a LS1046AFRWY board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the config files to enable GPIO driver using make menuconfig:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="acosara_0-1702332767278.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253840iD328F9A28642AE3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="acosara_0-1702332767278.png" alt="acosara_0-1702332767278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I went to&amp;nbsp;/build_ls1046afrwy/tmp/work-shared/ls1046afrwy/kernel-source/drivers/gpio and modified&amp;nbsp;gpio-mpc8xxx.c to add these lines at the end of the&amp;nbsp;&lt;EM&gt;static int mpc8xxx_probe &lt;/EM&gt;function:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;device_init_wakeup(&amp;amp;pdev-&amp;gt;dev, true);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;enable_irq_wake(mpc8xxx_gc-&amp;gt;irqn);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then I modified arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi to this line to the end of&amp;nbsp;&lt;EM&gt;gpio3: gpio@2320000:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fsl,rcpm-wakeup = &amp;lt;&amp;amp;rcpm 0x40&amp;gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Then I ran:&lt;/P&gt;&lt;P&gt;$ make&lt;/P&gt;&lt;P&gt;$ make modules&lt;/P&gt;&lt;P&gt;$ make mrproper&lt;/P&gt;&lt;P&gt;I copied the generated images onto the boot folder of the SD card that already had the basic ls-image-main deployed and working on it. Then I copied the generated "modules" folder from the "module-ls1046afrwy.tgz" archive onto the "modules" folder on the SD card.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there are GPIO modules in there:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="acosara_2-1702333674500.png" style="width: 646px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/253841iBD2B93BA2DA6A790/image-dimensions/646x183?v=v2" width="646" height="183" role="button" title="acosara_2-1702333674500.png" alt="acosara_2-1702333674500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I booted the LS1046AFRWY board from the SD card. I get not errors and the board boots up, but I don't see the GPIO drivers being installed. The&amp;nbsp;/sys/class/gpio directory does not exist on the target and I can't run any GPIO commands that reference it.&lt;/P&gt;&lt;P&gt;Am I doing something wrong in the process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 22:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1772567#M13739</guid>
      <dc:creator>acosara</dc:creator>
      <dc:date>2023-12-11T22:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO modules not loading on LS1046AFRWY board</title>
      <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1775512#M13753</link>
      <description>&lt;P&gt;You have configured GPIO as built-in driver not module, please rebuild and update Linux Kernel "Image".&lt;/P&gt;
&lt;P&gt;Under Linux Kernel, please check whether "CONFIG_GPIO_MPC8XXX" has been enabled.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;~# zcat /proc/config.gz | grep GPIO_MPC8XXX&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could refer to&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Layerscape-Knowledge-Base/Sleep-and-Wake-up-by-GPIO-on-LS1028/ta-p/1498338?attachment-id=139303" target="_blank"&gt;https://community.nxp.com/t5/Layerscape-Knowledge-Base/Sleep-and-Wake-up-by-GPIO-on-LS1028/ta-p/1498338?attachment-id=139303&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 09:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1775512#M13753</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-12-15T09:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO modules not loading on LS1046AFRWY board</title>
      <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1781815#M13805</link>
      <description>&lt;P&gt;The&amp;nbsp;&lt;SPAN&gt;"CONFIG_GPIO_MPC8XXX" has been enabled. This is what I get if run:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;~# zcat /proc/config.gz | grep GPIO_MPC8XXX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;CONFIG_GPIO_MPC8XXX=y&lt;/P&gt;&lt;P&gt;But I don't see the&lt;SPAN&gt;&amp;nbsp;/sys/class/gpio directory on the target and I can't run any GPIO commands that reference it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1781815#M13805</guid>
      <dc:creator>acosara</dc:creator>
      <dc:date>2024-01-02T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO modules not loading on LS1046AFRWY board</title>
      <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1782059#M13809</link>
      <description>&lt;P&gt;Please configure RCW to enable GPIO.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 06:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1782059#M13809</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2024-01-03T06:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO modules not loading on LS1046AFRWY board</title>
      <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1782473#M13814</link>
      <description>&lt;P&gt;This is the RCW file that the build uses as far as I can tell:&lt;BR /&gt;&amp;gt;/build_ls1046afrwy/tmp/deploy/images/ls1046afrwy/rcw/ls1046afrwy/NN_NNQNNPNP_3040_0506/rcw_1600_sdboot.bin&lt;/P&gt;&lt;P&gt;Under Code Warrior, I see no option to enable/disable GPIO as a whole. The white paper you shared earlier about enabling wake from GPIO on LS1028 implies the same thing. The only relevant option is to select the correct pin muxing for the pin I plan to use. In my case that's pin EC1, which has to be muxed as GPIO3, which I did, in the RCW:&lt;/P&gt;&lt;P&gt;Reset Configuration Word &amp;gt; SoC Specific Configuration &amp;gt; EC1 [416-418]&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which was already set to:&lt;/P&gt;&lt;P&gt;0b001 - GPIO 3&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 20:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1782473#M13814</guid>
      <dc:creator>acosara</dc:creator>
      <dc:date>2024-01-03T20:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO modules not loading on LS1046AFRWY board</title>
      <link>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1785083#M13835</link>
      <description>&lt;P&gt;Please refer to this document to configure GPIO support in Linux Kernel first.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Layerscape-Knowledge-Base/LS1043-GPIO-support-in-Linux-SDK/ta-p/1103689" target="_blank"&gt;https://community.nxp.com/t5/Layerscape-Knowledge-Base/LS1043-GPIO-support-in-Linux-SDK/ta-p/1103689&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 09:01:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/GPIO-modules-not-loading-on-LS1046AFRWY-board/m-p/1785083#M13835</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2024-01-09T09:01:05Z</dc:date>
    </item>
  </channel>
</rss>

