<?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 GPIO configuration during image building using Yocto  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/998685#M148102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen step to control gpio pins in various forum, all of them suggesting a common steps like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ # echo 117 &amp;gt; /sys/class/gpio/export&amp;nbsp; &amp;nbsp;--&amp;gt; this create a folder gpio117&lt;BR /&gt;/ # echo in &amp;gt; /sys/class/gpio/gpio117/direction&lt;/P&gt;&lt;P&gt;/ # echo 1 &amp;gt; /sys/class/gpio/gpio117/value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here for creating of gpio117 after building the image. But I want to create the gpio117 before creating the build image using Yocto.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with providing the above information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If changes need to done in the device tree file, please provide a exact location of the file where can i find the device tree in my Yocto build with some example for i.MX 8M based SOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2020 06:51:50 GMT</pubDate>
    <dc:creator>ashoksowndar</dc:creator>
    <dc:date>2020-02-07T06:51:50Z</dc:date>
    <item>
      <title>GPIO configuration during image building using Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/998685#M148102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen step to control gpio pins in various forum, all of them suggesting a common steps like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ # echo 117 &amp;gt; /sys/class/gpio/export&amp;nbsp; &amp;nbsp;--&amp;gt; this create a folder gpio117&lt;BR /&gt;/ # echo in &amp;gt; /sys/class/gpio/gpio117/direction&lt;/P&gt;&lt;P&gt;/ # echo 1 &amp;gt; /sys/class/gpio/gpio117/value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here for creating of gpio117 after building the image. But I want to create the gpio117 before creating the build image using Yocto.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with providing the above information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If changes need to done in the device tree file, please provide a exact location of the file where can i find the device tree in my Yocto build with some example for i.MX 8M based SOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Thanks and Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; padding: 0px;"&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 06:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/998685#M148102</guid>
      <dc:creator>ashoksowndar</dc:creator>
      <dc:date>2020-02-07T06:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO configuration during image building using Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/998686#M148103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="349113" data-username="ashoksowndar@gmail.com" href="https://community.nxp.com/people/ashoksowndar@gmail.com"&gt;Ashok&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Try these steps:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1) The position of linux source&lt;/STRONG&gt;&lt;BR /&gt;Let me take 4.14.98-2.2.0 for i.MX8QXPMEK as an example.&lt;BR /&gt;source code : build/tmp/work/imx8qxpmek-poky-linux/linux-imx/4.14.98-r0/git/&lt;BR /&gt;device tree: build/tmp/work/imx8qxpmek-poky-linux/linux-imx/4.14.98-r0/git/arch/arm64/boot/dts/freescale&lt;BR /&gt;device tree file: fsl-imx8mq-evk.dts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(2) Adding the GPIO you want to device tree&lt;/STRONG&gt;&lt;BR /&gt;&amp;amp;iomuxc {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_hog&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;imx8mq-evk {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl_hog: hoggrp {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fsl,pins = &amp;lt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX8MQ_IOMUXC_NAND_READY_B_GPIO3_IO16&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x19&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX8MQ_IOMUXC_NAND_WE_B_GPIO3_IO17&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x19&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX8MQ_IOMUXC_NAND_WP_B_GPIO3_IO18&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x19&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX8MQ_IOMUXC_SAI2_RXFS_GPIO4_IO21&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x19&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;BR /&gt;[comment]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIO4_IO21 ---&amp;gt; (4-1)x32+21 = 117&amp;nbsp; , which is&amp;nbsp; GPIO117&lt;BR /&gt;Above IOMUX of GPIO4_21 will use CPU pin "SAI2_RXFS"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(3) Recompiling kernel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# bitbake -c compile -f linux-imx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# bitbake -c deploy -f linux-imx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2020 05:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/998686#M148103</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2020-02-09T05:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO configuration during image building using Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/1274198#M173790</link>
      <description>&lt;P&gt;How do we choose the exact gpio and i'm planning to enable the iomux_sw_pad_ctl_pad_sai5_rxd3 and which address i can choose&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 04:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/1274198#M173790</guid>
      <dc:creator>VinithNama</dc:creator>
      <dc:date>2021-05-10T04:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO configuration during image building using Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/1289627#M175238</link>
      <description>&lt;P&gt;After adding the gpio in the device tree I'm deploying and building using&amp;nbsp;&amp;nbsp;bitbake -c compile -f linux-imx bitbake -c deploy -f linux-imx after successful building of the kernel I am copying the image file and flashing through sdcard, After booting the board I'm checking the sys/class/gpio section for the pin which i have added, I'm unable to see the pin which i have updated in device tree.&lt;/P&gt;&lt;P&gt;Later I have exported the gpio pins using&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo 88 &amp;gt; /sys/class/gpio/export&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then I can see the pin in gpio section as sys/class/gpio when I make the pin High and low and the pin as output I'm unable to see the voltage 3.3 at physical pin .&lt;/P&gt;&lt;P&gt;I'm using the J1003 EXP CN pins and&lt;/P&gt;&lt;P&gt;The exact pin is MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x19&lt;/P&gt;&lt;P&gt;In the dts file I have configured as&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_hog&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;imx8mm-evk {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl_hog: hoggrp {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fsl,pins = &amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x19&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;/P&gt;&lt;P&gt;Can you please help me to find the solution for this&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 05:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-configuration-during-image-building-using-Yocto/m-p/1289627#M175238</guid>
      <dc:creator>VinithNama</dc:creator>
      <dc:date>2021-06-09T05:55:12Z</dc:date>
    </item>
  </channel>
</rss>

