<?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: How to configure Input/Output a GPIO in Devicetree? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335981#M45677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the purpose of the devicetree is to describe the hardware and not it's configuration. As far as i know it's not possible to set the GPIO direction directly via DT. But if you assign the GPIO to assigned function like a LED and the led driver would do that for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case you want to keep them as GPIOs you can set direction in board file or via sysfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 18:49:22 GMT</pubDate>
    <dc:creator>lategoodbye</dc:creator>
    <dc:date>2014-12-09T18:49:22Z</dc:date>
    <item>
      <title>How to configure Input/Output a GPIO in Devicetree?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335979#M45675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using yocto 1.6 daisy branch with kernel 3.10.17.&lt;/P&gt;&lt;P&gt;I am able to configure all platform data and pin-muxing correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query in that... How can we configure a GPIO that is Input/output in device tree?&lt;/P&gt;&lt;P&gt;I didn't find anything in device tree.&lt;/P&gt;&lt;P&gt;I have two GPIO in which one is input and other output, i am able to configure everything successfully.&lt;/P&gt;&lt;P&gt;But need to ask where i can define those pin as Input or Output ... In device tree? ... or ... in board file? ... or in driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 12:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335979#M45675</guid>
      <dc:creator>alokpawar</dc:creator>
      <dc:date>2014-12-09T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Input/Output a GPIO in Devicetree?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335980#M45676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is no intuitively clear description,&lt;/P&gt;&lt;P&gt;one can just look at examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/374167"&gt;Re: Any examples on how to modify the .dts (device tree) source for custom hardware?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kosagi.com/w/index.php?title=Definitive_GPIO_guide" title="http://www.kosagi.com/w/index.php?title=Definitive_GPIO_guide"&gt;Definitive GPIO guide - Studio Kousagi Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/gpio/gpio.txt"&gt;http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/gpio/gpio.txt&lt;/A&gt;&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;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 13:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335980#M45676</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-12-09T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Input/Output a GPIO in Devicetree?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335981#M45677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the purpose of the devicetree is to describe the hardware and not it's configuration. As far as i know it's not possible to set the GPIO direction directly via DT. But if you assign the GPIO to assigned function like a LED and the led driver would do that for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case you want to keep them as GPIOs you can set direction in board file or via sysfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 18:49:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/335981#M45677</guid>
      <dc:creator>lategoodbye</dc:creator>
      <dc:date>2014-12-09T18:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Input/Output a GPIO in Devicetree?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/1313005#M177439</link>
      <description>&lt;P&gt;I want to set&amp;nbsp;GPIO2_IO14 as output and set pin to 1 in device tree file.&lt;/P&gt;&lt;P&gt;what are the changes needed for that?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 05:58:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-configure-Input-Output-a-GPIO-in-Devicetree/m-p/1313005#M177439</guid>
      <dc:creator>avni</dc:creator>
      <dc:date>2021-07-26T05:58:05Z</dc:date>
    </item>
  </channel>
</rss>

