<?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: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2]) in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973767#M4885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it is not required to have the U-Boot running. We have already confirmed this behavior without U-Boot running - using only the RCW and PBL commands to configure the GPIO, as explained in the original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 10:02:32 GMT</pubDate>
    <dc:creator>macpijan</dc:creator>
    <dc:date>2019-07-09T10:02:32Z</dc:date>
    <item>
      <title>[LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973757#M4875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. We have an LS1046A based board. We are during the bring up process&lt;BR /&gt;and are validating the GPIO lines we need. We faced unexpected behavior&lt;BR /&gt;on one of the lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the GPIO (GPIO4[2]) cannot be set to OUT HIGHT despite writing to the&lt;BR /&gt;DIR / DATA registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the U-Boot code we use for this test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;/* GPIO4[2,3,10,11] */&lt;BR /&gt;val4 = (1 &amp;lt;&amp;lt; 29) | (1 &amp;lt;&amp;lt; 28) | (1 &amp;lt;&amp;lt; 21) | (1 &amp;lt;&amp;lt; 20);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read4 = in_be32(&amp;amp;pgpio4-&amp;gt;gpdir);&lt;BR /&gt;printf("gpio4-&amp;gt;gpdir before: 0x%x\n", read4);&lt;BR /&gt;setbits_be32(&amp;amp;pgpio4-&amp;gt;gpdir, val4);&lt;BR /&gt;read4 = in_be32(&amp;amp;pgpio4-&amp;gt;gpdir);&lt;BR /&gt;printf("gpio4-&amp;gt;gpdir after: 0x%x\n\n", read4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read4 = in_be32(&amp;amp;pgpio4-&amp;gt;gpdat);&lt;BR /&gt;printf("gpio4-&amp;gt;gpdat before: 0x%x\n", read4);&lt;BR /&gt;setbits_be32(&amp;amp;pgpio4-&amp;gt;gpdat, val4);&lt;BR /&gt;read4 = in_be32(&amp;amp;pgpio4-&amp;gt;gpdat);&lt;BR /&gt;printf("gpio4-&amp;gt;gpdat after: 0x%x\n\n\n", read4);&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is U-Boot output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;gpio4-&amp;gt;gpdir before: 0x0&lt;BR /&gt;gpio4-&amp;gt;gpdir after: 0x30300000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gpio4-&amp;gt;gpdat before: 0x0&lt;BR /&gt;gpio4-&amp;gt;gpdat after: 0x10300000&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, the GPDAT bit for GPIO4[2] is not being set.&lt;BR /&gt;I believe the pinmux for those pins is correctly set within the RCW. Both GPIO4[2,3]&lt;BR /&gt;are muxed to GPIO by the same single bit RCW[I2C_EXT] = 010.&lt;BR /&gt;So if the setting was incorrect, I would expect both GPIO4[2,3] to not operate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had similar issue for the GPIO2[26,27] and it turned out that we cannot have&lt;BR /&gt;them muxed to GPIO while having the QSPI_A_DAT3 enabled at the same time.&lt;BR /&gt;I could not find a similar issue for the GPIO4[2] in the reference manual.&lt;BR /&gt;Escpecially that muxing it is tied with the GPIO4[3], which works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any other mechanism that would prevent this GPIO from operating? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 08:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973757#M4875</guid>
      <dc:creator>macpijan</dc:creator>
      <dc:date>2019-06-26T08:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973758#M4876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Are there any other mechanism that would prevent this GPIO from operating?&lt;/P&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide additional information:&lt;/P&gt;&lt;P&gt;1) the GPIO4 connection schematics&lt;/P&gt;&lt;P&gt;2) how many boards were tested?&lt;/P&gt;&lt;P&gt;3) use U-Boot and capture dump of all GPIO4 CCSR registers after the test completion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:37:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973758#M4876</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2019-06-26T12:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973759#M4877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We figured out that we can control this GPIO line when the SD card is NOT inserted in the SD slot.&lt;BR /&gt;This GPIO can be muxed to SDHC_CD via [IIC2_EXT], but it is NOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CD signal from the SD card connector is NOT connected in any way to the SoC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behavior is the same both in U-Boot and when controlling the GPIOs via PBL commands&lt;BR /&gt;(no external software is running on the CPU, only the PreBootloader).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GPIO4[2] is connected only to the LED, as shown on the schematic below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/90123iD702CE941738DDD9/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output from U-Boot test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class=""&gt;gpio4 registers dump before:  gpio4-&amp;gt;gpodr: 0x0 gpio4-&amp;gt;gpier: 0xc0000 gpio4-&amp;gt;gpimr: 0x0 gpio4-&amp;gt;gpicr: 0x0 gpio4-&amp;gt;gpibe: 0x0   gpio4 registers dump after:  gpio4-&amp;gt;gpodr: 0x0 gpio4-&amp;gt;gpier: 0x103c0000 gpio4-&amp;gt;gpimr: 0x0 gpio4-&amp;gt;gpicr: 0x0 gpio4-&amp;gt;gpibe: 0x0&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Dump with card inserted:&lt;BR /&gt;=&amp;gt; md.w 0x2330000&lt;BR /&gt; 02330000: 3030 0000 0000 0000 3010 0000 3c10 0000 00.......0...&amp;lt;..&lt;BR /&gt; 02330010: 0000 0000 0000 0000 0000 0000 0000 0000 ................&lt;BR /&gt;&lt;BR /&gt;Dump afte card removal:&lt;BR /&gt; =&amp;gt; md.w 0x2330000&lt;BR /&gt; 02330000: 3030 0000 0000 0000 3030 0000 3c30 0000 00......00..0&amp;lt;..&lt;BR /&gt; 02330010: 0000 0000 0000 0000 0000 0000 0000 0000 ................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We probably may need to change this GPIO to a different line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:29:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973759#M4877</guid>
      <dc:creator>macpijan</dc:creator>
      <dc:date>2020-11-02T14:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973760#M4878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; We figured out that we can control this GPIO line when the SD card is NOT inserted in the SD slot.&lt;/P&gt;&lt;P&gt;Please use U-Boot and capture dumps of SCFG and DCFG CCSR registers for two cases:&lt;/P&gt;&lt;P&gt;1) when SD card is not inserted&lt;/P&gt;&lt;P&gt;2) when SD card is inserted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 05:07:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973760#M4878</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2019-07-03T05:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973761#M4879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://cloud.3mdeb.com/index.php/s/7XstCCcnzx6ZzxA" title="https://cloud.3mdeb.com/index.php/s/7XstCCcnzx6ZzxA"&gt;3mdeb&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 15:16:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973761#M4879</guid>
      <dc:creator>macpijan</dc:creator>
      <dc:date>2019-07-03T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973762#M4880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many boards were tested?&lt;/P&gt;&lt;P&gt;Can you replicate the issue on the LS1046ARDB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:04:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973762#M4880</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2019-07-03T16:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973763#M4881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested on two boards.&lt;BR /&gt;&lt;BR /&gt;Does it make sense to test on the LS1046ARDB?&lt;BR /&gt;I would need to reconfigure the RCW to configure the IIC2_SCL to GPIO4_2, not to SDHC_CD.&lt;BR /&gt;Moreover, the card detect signal from SD connector is physically connected to this pin,&lt;BR /&gt;so I'm not sure whether it is possible to reproduce that. Am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 07:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973763#M4881</guid>
      <dc:creator>macpijan</dc:creator>
      <dc:date>2019-07-04T07:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973764#M4882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; We figured out that we can control this GPIO line when the SD card is NOT inserted in the SD slot.&lt;/P&gt;&lt;P&gt;GPIO4_2 multiplexing is performed only during POR according to the RCW data.&lt;/P&gt;&lt;P&gt;Please use a digital scope and check external level of the K3 pin when the SD card is inserted/removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973764#M4882</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2019-07-04T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973765#M4883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SD card inserted:&lt;BR /&gt;- K3 is LOW (no matter whether we are driving this pin od not)&lt;BR /&gt;&lt;BR /&gt;SD card not inserted:&lt;BR /&gt;- K3 is HIGH when we set it to HIGH&lt;BR /&gt;- K3 is LOW when we set it to LOW or do not configure it as GPIO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 11:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973765#M4883</guid>
      <dc:creator>macpijan</dc:creator>
      <dc:date>2019-07-08T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973766#M4884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it required to have U-Boot running so SD card insertion will affect the K3 behaviour?&lt;/P&gt;&lt;P&gt;Please use a debugger to check the GPIO pin behaviour when SD card is inserted/removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 13:30:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973766#M4884</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2019-07-08T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973767#M4885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it is not required to have the U-Boot running. We have already confirmed this behavior without U-Boot running - using only the RCW and PBL commands to configure the GPIO, as explained in the original post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 10:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973767#M4885</guid>
      <dc:creator>macpijan</dc:creator>
      <dc:date>2019-07-09T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: [LS1046A] Cannot change state of one of the GPIO lines (GPIO4[2])</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973768#M4886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the original post it is several times mentioned that U-Boot is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've meant performing a test with core stopped (execution is paused in debug mode).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 10:28:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1046A-Cannot-change-state-of-one-of-the-GPIO-lines-GPIO4-2/m-p/973768#M4886</guid>
      <dc:creator>ufedor</dc:creator>
      <dc:date>2019-07-09T10:28:48Z</dc:date>
    </item>
  </channel>
</rss>

