<?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: set gpio imx8mn in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1508234#M193993</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202142"&gt;@razriel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can define a script in the environment variable, as described in my last reply for the automatic access of the GPIO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for the board_init function method can also be part of the image creation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 11:51:25 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2022-08-18T11:51:25Z</dc:date>
    <item>
      <title>set gpio imx8mn</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1494935#M192982</link>
      <description>&lt;P&gt;I am trying to set gpio immidiatly after power cycle.&lt;/P&gt;&lt;P&gt;I want to do it in u-boot enviormant before kernel loads.&lt;/P&gt;&lt;P&gt;found two possible solutions:&lt;/P&gt;&lt;P&gt;1. use gpio-hog in device tree. so few example how to use in device trees of other boards.&lt;/P&gt;&lt;P&gt;2. setting it in board_init function under board/freescale/imx8mn_evk/imx8mn_evk.c by adding gpio_request gpio_direction_output.&lt;/P&gt;&lt;P&gt;I am using yocto imx-5.15.5-1.0.0 honister and cannot find much information how to do this.&lt;/P&gt;&lt;P&gt;I belive both approaches cannot work together. one will overwrite the other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;which one I should use ?&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Roy&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 15:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1494935#M192982</guid>
      <dc:creator>razriel</dc:creator>
      <dc:date>2022-07-25T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: set gpio imx8mn</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1507240#M193928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202142"&gt;@razriel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To set the GPIO during startup in U-Boot one could add a script to set the IO.&lt;BR /&gt;E.g.,&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;# setenv set-io 'gpio set &amp;lt;gpio-number&amp;gt;'
# setenv bootcmd 'run set-io; run ubiboot; run sdboot'
# saveenv&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or else you can use the&amp;nbsp;&lt;EM&gt;board_init&amp;nbsp;&amp;nbsp;&lt;/EM&gt;function to access the GPIO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either one can be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 06:37:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1507240#M193928</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-08-17T06:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: set gpio imx8mn</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1508229#M193991</link>
      <description>&lt;P&gt;The method you suggest is not could for prouductization.&lt;/P&gt;&lt;P&gt;how do I make it part of the image creation and not something to be done manualy ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:44:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1508229#M193991</guid>
      <dc:creator>razriel</dc:creator>
      <dc:date>2022-08-18T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: set gpio imx8mn</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1508234#M193993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202142"&gt;@razriel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can define a script in the environment variable, as described in my last reply for the automatic access of the GPIO.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for the board_init function method can also be part of the image creation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 11:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/set-gpio-imx8mn/m-p/1508234#M193993</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-08-18T11:51:25Z</dc:date>
    </item>
  </channel>
</rss>

