<?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>i.MX Processorsのトピックi.MX6 output gpio value behaviour</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329326#M44342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am migrating code from L3.0.35 to L3.10.17 and on both cases I am using the function gpio_direction_output(); and gpio_export(); on the board file to export gpio pins on sysfs.&lt;/P&gt;&lt;P&gt;On &lt;SPAN style="font-size: 13.3333330154419px;"&gt;L3.0.35 when I change a pin value, i.e. from 0 -&amp;gt; 1, with echo and look into it, the value reads as 1. But on L3.10.17 when I apply echo on the value then read it, the value always return a 0 value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But on both cases, devices attached on the out gpio functions properly. Echo 1 on a gpio output to a LED and turns on on both cases.&lt;/P&gt;&lt;P&gt;Is returning to 0 on gpio values on L3.10.17 normal behaviour for this version? Is there a way for the value to maintain its "current" value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 11:10:24 GMT</pubDate>
    <dc:creator>yurirellosa</dc:creator>
    <dc:date>2015-02-23T11:10:24Z</dc:date>
    <item>
      <title>i.MX6 output gpio value behaviour</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329326#M44342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am migrating code from L3.0.35 to L3.10.17 and on both cases I am using the function gpio_direction_output(); and gpio_export(); on the board file to export gpio pins on sysfs.&lt;/P&gt;&lt;P&gt;On &lt;SPAN style="font-size: 13.3333330154419px;"&gt;L3.0.35 when I change a pin value, i.e. from 0 -&amp;gt; 1, with echo and look into it, the value reads as 1. But on L3.10.17 when I apply echo on the value then read it, the value always return a 0 value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But on both cases, devices attached on the out gpio functions properly. Echo 1 on a gpio output to a LED and turns on on both cases.&lt;/P&gt;&lt;P&gt;Is returning to 0 on gpio values on L3.10.17 normal behaviour for this version? Is there a way for the value to maintain its "current" value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 11:10:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329326#M44342</guid>
      <dc:creator>yurirellosa</dc:creator>
      <dc:date>2015-02-23T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 output gpio value behaviour</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329327#M44343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could take a look at the following thread, where it is mentioned how to configure GPIOs on SABRE SD:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-content-finding="Community" data-objectid="467019" data-objecttype="2" href="https://community.nxp.com/message/467019#467019"&gt;https://community.freescale.com/message/467019&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329327#M44343</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2015-02-24T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 output gpio value behaviour</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329328#M44344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Sorry if my question seems vague, but I actually don't have problem with adding output GPIO, it currently works fine with the device.&lt;/P&gt;&lt;P&gt;The problem was when reading the value for the output GPIO it only comes back as [0].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I have looked into the gpio drivers on both linux versions. On L3.0.35 output gpio returns GPIO_DR and input return GPIO_PSR.&lt;/P&gt;&lt;P&gt;It seems on L3.10.17 the value is now only mapped to get GPIO_PSR.&lt;/P&gt;&lt;P&gt;Also I found this thread: &lt;A href="http://lists.infradead.org/pipermail/linux-arm-kernel/2014-July/272037.html"&gt;http://lists.infradead.org/pipermail/linux-arm-kernel/2014-July/272037.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For output GPIO's I have set the SION bit on the device tree (0x40000000) and that seem to have solved the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 05:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-output-gpio-value-behaviour/m-p/329328#M44344</guid>
      <dc:creator>yurirellosa</dc:creator>
      <dc:date>2015-02-25T05:55:23Z</dc:date>
    </item>
  </channel>
</rss>

