<?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: iMX7ULP accessing GPIO from user-mode in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX7ULP-accessing-GPIO-from-user-mode/m-p/1622687#M203298</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you are working with the BSP, it has enable you don't need to write to the iomux, it works on C++ as well. As example:&lt;/P&gt;
&lt;P&gt;root@imx7ulp:/sys/class/gpio# ls&lt;BR /&gt;export gpiochip128 gpiochip224 gpiochip472 gpiochip96&lt;BR /&gt;gpio32 gpiochip160 gpiochip32 gpiochip480 unexport&lt;BR /&gt;gpiochip0 gpiochip192 gpiochip464 gpiochip64&lt;BR /&gt;root@imx7ulp:/sys/class/gpio#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 14:42:01 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2023-03-27T14:42:01Z</dc:date>
    <item>
      <title>iMX7ULP accessing GPIO from user-mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7ULP-accessing-GPIO-from-user-mode/m-p/1621152#M203174</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble accessing GPIO from user-mode. I am trying to use PTC_5 as an output pin. Under my calculations this should correspond to pin 5 in sysfs gpio. Technically I am using the gpio character interface in a c++ program but for simplicity I will refer to using sysfs to control the gpio because the results are the same. Without any modification to the device tree, I can export a pin but cannot change the direction of the pin. I end up getting a write error, invalid parameter. I added a pinctrl group under iomuxc1 and I can change direction as well as set the value of the pin. But the pin only works in input mode. Linux reports the value changes when writing to /sys/class/gpio/gpio5/value in output mode but the voltage of the pin is always 0. Is there something I am missing, I was under the assumption that any pin not claimed in the device tree can be used via user-mode. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 19:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7ULP-accessing-GPIO-from-user-mode/m-p/1621152#M203174</guid>
      <dc:creator>djones7777</dc:creator>
      <dc:date>2023-03-23T19:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7ULP accessing GPIO from user-mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7ULP-accessing-GPIO-from-user-mode/m-p/1622687#M203298</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you are working with the BSP, it has enable you don't need to write to the iomux, it works on C++ as well. As example:&lt;/P&gt;
&lt;P&gt;root@imx7ulp:/sys/class/gpio# ls&lt;BR /&gt;export gpiochip128 gpiochip224 gpiochip472 gpiochip96&lt;BR /&gt;gpio32 gpiochip160 gpiochip32 gpiochip480 unexport&lt;BR /&gt;gpiochip0 gpiochip192 gpiochip464 gpiochip64&lt;BR /&gt;root@imx7ulp:/sys/class/gpio#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:42:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7ULP-accessing-GPIO-from-user-mode/m-p/1622687#M203298</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-03-27T14:42:01Z</dc:date>
    </item>
  </channel>
</rss>

