<?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 How to enable GPIO function in dts file in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-GPIO-function-in-dts-file/m-p/762166#M118415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know the upper layer Linux command to export gpio and then we can echo 0/1 to gpio path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we would like to make MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01&amp;nbsp;to be a GPIO output function.&lt;/P&gt;&lt;P&gt;Should we need to put this define flag to dts file, and would you please advise where should we put it to ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because we don't find specific gpio paragraph in dts file, and only see something like below. The&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;MX6ULL_PAD_SNVS_TAMPER0__GPIO5_IO00 is put to hoggrp and be used by hoggrp for GPIO control.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We also want to use&amp;nbsp;MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01&lt;SPAN&gt;&amp;nbsp;as GPIO control,&amp;nbsp;and not used by hoggrp, but will be used by upper layer control (e.g. echo 1 &amp;gt; /sys/class/gpio/gpio18/value).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_hog_2: hoggrp-2 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6ULL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x80000000&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steven Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2018 10:33:19 GMT</pubDate>
    <dc:creator>stevenyu</dc:creator>
    <dc:date>2018-01-26T10:33:19Z</dc:date>
    <item>
      <title>How to enable GPIO function in dts file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-GPIO-function-in-dts-file/m-p/762166#M118415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We know the upper layer Linux command to export gpio and then we can echo 0/1 to gpio path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we would like to make MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01&amp;nbsp;to be a GPIO output function.&lt;/P&gt;&lt;P&gt;Should we need to put this define flag to dts file, and would you please advise where should we put it to ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because we don't find specific gpio paragraph in dts file, and only see something like below. The&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;MX6ULL_PAD_SNVS_TAMPER0__GPIO5_IO00 is put to hoggrp and be used by hoggrp for GPIO control.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We also want to use&amp;nbsp;MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01&lt;SPAN&gt;&amp;nbsp;as GPIO control,&amp;nbsp;and not used by hoggrp, but will be used by upper layer control (e.g. echo 1 &amp;gt; /sys/class/gpio/gpio18/value).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_hog_2: hoggrp-2 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6ULL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x80000000&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steven Yu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 10:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-GPIO-function-in-dts-file/m-p/762166#M118415</guid>
      <dc:creator>stevenyu</dc:creator>
      <dc:date>2018-01-26T10:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable GPIO function in dts file</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-GPIO-function-in-dts-file/m-p/762167#M118416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general this may depend on used kernel, but in nxp bsps seems&lt;/P&gt;&lt;P&gt;gpio output function (gpio direction) can not be set in dts file.&lt;/P&gt;&lt;P&gt;It also may be posted on kernel mail list&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://vger.kernel.org/vger-lists.html#devicetree" title="http://vger.kernel.org/vger-lists.html#devicetree"&gt;Majordomo Lists at VGER.KERNEL.ORG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 23:14:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-GPIO-function-in-dts-file/m-p/762167#M118416</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-01-26T23:14:09Z</dc:date>
    </item>
  </channel>
</rss>

