<?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 TX53 configure gpio pins from c linux code in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330204#M44544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I know this question has been asked, I would like to set/read a pin on the TX53 module pin 153 which corresponds to GPIO2[20], which as I understand it can be configured as &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;WEIM_A[18], &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DISP1_DAT[13], &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CSI1_D[13], &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;BT_CFG1[3], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have tried from user space using the Linux command line to export pin 90, and reading the value with command cat /sys/class/gpio/gpio90/value, the pin which is an input is floating high, and can easily be pulled down by say a 100k resistor. So I know it is an input, but it always reads as 0, so I am either not reading correct gpio port, or it is not configured. Without recompiling the Kernel, is it possible from application code to configure the pin and read the pins status?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;There doesn't appear to be a step by step guide on doing this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help would be welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jeff&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 12:48:25 GMT</pubDate>
    <dc:creator>jeffallan</dc:creator>
    <dc:date>2014-10-16T12:48:25Z</dc:date>
    <item>
      <title>TX53 configure gpio pins from c linux code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330204#M44544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I know this question has been asked, I would like to set/read a pin on the TX53 module pin 153 which corresponds to GPIO2[20], which as I understand it can be configured as &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;WEIM_A[18], &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DISP1_DAT[13], &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CSI1_D[13], &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;BT_CFG1[3], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have tried from user space using the Linux command line to export pin 90, and reading the value with command cat /sys/class/gpio/gpio90/value, the pin which is an input is floating high, and can easily be pulled down by say a 100k resistor. So I know it is an input, but it always reads as 0, so I am either not reading correct gpio port, or it is not configured. Without recompiling the Kernel, is it possible from application code to configure the pin and read the pins status?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;There doesn't appear to be a step by step guide on doing this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help would be welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jeff&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330204#M44544</guid>
      <dc:creator>jeffallan</dc:creator>
      <dc:date>2014-10-16T12:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: TX53 configure gpio pins from c linux code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330205#M44545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to use memtool ( /unit_tests/memtool ) for accessing registers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 01:46:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330205#M44545</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-10-17T01:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: TX53 configure gpio pins from c linux code</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330206#M44546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 10:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TX53-configure-gpio-pins-from-c-linux-code/m-p/330206#M44546</guid>
      <dc:creator>jeffallan</dc:creator>
      <dc:date>2014-10-17T10:08:25Z</dc:date>
    </item>
  </channel>
</rss>

