<?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 set GPIO initial setting for i.MX8M Mini. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1300228#M176234</link>
    <description>&lt;P&gt;Hi TANAKA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;Could you please let us know how to set these direction in kernel?&lt;BR /&gt;&amp;gt;We need to change device tree? Could you please show example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not possible to set direction and set the value of GPIO in device tree, one can&lt;/P&gt;
&lt;P&gt;set them in uboot, example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mm_evk/spl.c?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mm_evk/spl.c?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/asm-generic/gpio.h?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/include/asm-generic/gpio.h?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;Also, we need to get and set the value of GPIO in user space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can look at example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://variwiki.com/index.php?title=MX8M_GPIO&amp;amp;release=RELEASE_HARDKNOTT_V1.0_DART-MX8M-MINI" target="_blank"&gt;https://variwiki.com/index.php?title=MX8M_GPIO&amp;amp;release=RELEASE_HARDKNOTT_V1.0_DART-MX8M-MINI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 07:43:20 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-06-30T07:43:20Z</dc:date>
    <item>
      <title>How to set GPIO initial setting for i.MX8M Mini.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1300104#M176217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use custom board using i.MX8M Mini.&lt;BR /&gt;And we try to change OS based on Linux for i.MX (Linux 5.4.70_2.3.0).&lt;BR /&gt;We have some additional GPIO for output and input.&lt;BR /&gt;Could you please let us know how to set these direction in kernel?&lt;BR /&gt;We need to change device tree? Could you please show example?&lt;BR /&gt;Also, we need to get and set the value of GPIO in user space.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 05:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1300104#M176217</guid>
      <dc:creator>tan-k</dc:creator>
      <dc:date>2021-06-30T05:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set GPIO initial setting for i.MX8M Mini.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1300228#M176234</link>
      <description>&lt;P&gt;Hi TANAKA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;Could you please let us know how to set these direction in kernel?&lt;BR /&gt;&amp;gt;We need to change device tree? Could you please show example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not possible to set direction and set the value of GPIO in device tree, one can&lt;/P&gt;
&lt;P&gt;set them in uboot, example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mm_evk/spl.c?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mm_evk/spl.c?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/include/asm-generic/gpio.h?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/include/asm-generic/gpio.h?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;Also, we need to get and set the value of GPIO in user space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can look at example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://variwiki.com/index.php?title=MX8M_GPIO&amp;amp;release=RELEASE_HARDKNOTT_V1.0_DART-MX8M-MINI" target="_blank"&gt;https://variwiki.com/index.php?title=MX8M_GPIO&amp;amp;release=RELEASE_HARDKNOTT_V1.0_DART-MX8M-MINI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 07:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1300228#M176234</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-06-30T07:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set GPIO initial setting for i.MX8M Mini.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1301004#M176293</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;BR /&gt;We referred to your URL and could set GPIO in uboot.&lt;BR /&gt;Also, we could set and get the value GPIO via /sys/class/gpio.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 08:10:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-GPIO-initial-setting-for-i-MX8M-Mini/m-p/1301004#M176293</guid>
      <dc:creator>tan-k</dc:creator>
      <dc:date>2021-07-01T08:10:05Z</dc:date>
    </item>
  </channel>
</rss>

