<?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: Not able to configure UART2 to act as GPIO on LS1028A-RDB in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1922820#M14667</link>
    <description>&lt;P&gt;Please try the following u-boot commands.&lt;/P&gt;
&lt;P&gt;=&amp;gt; gpio set MPC@023000006&lt;BR /&gt;gpio: pin MPC@023000006 (gpio 6) value is 1&lt;BR /&gt;=&amp;gt; gpio status MPC@023000006&lt;BR /&gt;Bank MPC@02300000:&lt;BR /&gt;MPC@023000006: output: 1 [ ]&lt;BR /&gt;=&amp;gt; gpio clear MPC@023000006&lt;BR /&gt;gpio: pin MPC@023000006 (gpio 6) value is 0&lt;BR /&gt;=&amp;gt; gpio status MPC@023000006&lt;BR /&gt;Bank MPC@02300000:&lt;BR /&gt;MPC@023000006: output: 0 [ ]&lt;BR /&gt;=&amp;gt; gpio set MPC@023000000&lt;BR /&gt;gpio: pin MPC@023000000 (gpio 0) value is 1&lt;BR /&gt;=&amp;gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 09:08:31 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2024-08-01T09:08:31Z</dc:date>
    <item>
      <title>Not able to configure UART2 to act as GPIO on LS1028A-RDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1920341#M14634</link>
      <description>&lt;P&gt;Hi, I'm trying to use UART2 on LS1028ARDB to act as GPIO output.&lt;/P&gt;&lt;P&gt;I did the following:&lt;/P&gt;&lt;P&gt;1) Changed RCW:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UART2_SOUTSIN_PMUX=1&lt;/LI-CODE&gt;&lt;P&gt;2) Changed CPLD mux so that UART2 pins are forwarded to uBUS1&lt;/P&gt;&lt;P&gt;//board_init&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;reg = QIXIS_READ(brdcfg[3]);
reg &amp;amp;= ~(0x30);
reg |= 0x20;
QIXIS_WRITE(brdcfg[3], reg);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Enabled support for SYSFS_GPIO in Linux Kernel&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CONFIG_GPIO_SYSFS=y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Configured pins through SYSFS&lt;/P&gt;&lt;P&gt;a) UART2_SOUT -&amp;gt; GPIO1_DAT07&amp;nbsp; uBUS1 TX (it works)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cd /sys/class/gpio
echo 487 &amp;gt; export
cd gpio487 
echo "out" &amp;gt; direction
echo "1" &amp;gt; value // Voltage changes to 3.3V
echo "0" &amp;gt; value // Voltage changes to around 0.0V&lt;/LI-CODE&gt;&lt;P&gt;b) UART2_SIN -&amp;gt; GPIO1_DAT6 uBUS1 RX (does not work)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cd /sys/class/gpio
echo 486 &amp;gt; export
cd gpio486 
echo "out" &amp;gt; direction
echo "1" &amp;gt; value // Voltage changes to 3.3V
echo "0" &amp;gt; value // Voltage keeps on level 3.3V&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What did I do wrong? According to LS1028A RM GPIO1_DAT06 (UART2_SIN) is I/O pin so it should work in both functions output and input.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 09:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1920341#M14634</guid>
      <dc:creator>pb3</dc:creator>
      <dc:date>2024-07-30T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to configure UART2 to act as GPIO on LS1028A-RDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1922820#M14667</link>
      <description>&lt;P&gt;Please try the following u-boot commands.&lt;/P&gt;
&lt;P&gt;=&amp;gt; gpio set MPC@023000006&lt;BR /&gt;gpio: pin MPC@023000006 (gpio 6) value is 1&lt;BR /&gt;=&amp;gt; gpio status MPC@023000006&lt;BR /&gt;Bank MPC@02300000:&lt;BR /&gt;MPC@023000006: output: 1 [ ]&lt;BR /&gt;=&amp;gt; gpio clear MPC@023000006&lt;BR /&gt;gpio: pin MPC@023000006 (gpio 6) value is 0&lt;BR /&gt;=&amp;gt; gpio status MPC@023000006&lt;BR /&gt;Bank MPC@02300000:&lt;BR /&gt;MPC@023000006: output: 0 [ ]&lt;BR /&gt;=&amp;gt; gpio set MPC@023000000&lt;BR /&gt;gpio: pin MPC@023000000 (gpio 0) value is 1&lt;BR /&gt;=&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1922820#M14667</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2024-08-01T09:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to configure UART2 to act as GPIO on LS1028A-RDB</title>
      <link>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1922824#M14669</link>
      <description>&lt;P&gt;Thanks, I've already tried this and it does not work. However I consulted this issue with our electronics Team and based on what they say, on LS1028ARDB it is physically&amp;nbsp;not possible to configure this GPIO as an output.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Not-able-to-configure-UART2-to-act-as-GPIO-on-LS1028A-RDB/m-p/1922824#M14669</guid>
      <dc:creator>pb3</dc:creator>
      <dc:date>2024-08-01T09:11:31Z</dc:date>
    </item>
  </channel>
</rss>

