<?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: i.MX6Quad - GPIO settings in Yocto OS source files in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Quad-GPIO-settings-in-Yocto-OS-source-files/m-p/715580#M111183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mocfur13&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pins default state are described in Table 96 i.MX6DQ Datasheet &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FIMX6DQCEC.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/docs/en/data-sheet/IMX6DQCEC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;gpio can be set in uboot:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/digi-embedded/u-boot/blob/v2015.04/maint/board/digi/ccimx6/ccimx6.c" title="https://github.com/digi-embedded/u-boot/blob/v2015.04/maint/board/digi/ccimx6/ccimx6.c"&gt;u-boot/ccimx6.c at v2015.04/maint · digi-embedded/u-boot · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or linux&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/digi-embedded/linux/blob/v4.9/dey-2.4/maint/arch/arm/mach-imx/mach-imx6q.c" title="https://github.com/digi-embedded/linux/blob/v4.9/dey-2.4/maint/arch/arm/mach-imx/mach-imx6q.c"&gt;linux/mach-imx6q.c at v4.9/dey-2.4/maint · digi-embedded/linux · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gpio direction can not be set in dts file.&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, 25 May 2018 00:21:12 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-05-25T00:21:12Z</dc:date>
    <item>
      <title>i.MX6Quad - GPIO settings in Yocto OS source files</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Quad-GPIO-settings-in-Yocto-OS-source-files/m-p/715579#M111182</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'm working on the Digi ConnectCore6 SBC and trying to set some GPIOs to the different state from the default setting defined in Digi Embedded Yocto (DEY). ConnectCore6 has i.mx6 quad and DEY's version is yocto2.2/linux4.1. As I booted up the SBC and confirmed the state of GPIO198 on the /sys/kernel/debug with serial console,&amp;nbsp; it showed below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@ccimx6sbc:/sys/kernel/debug# cat gpio&lt;BR /&gt;GPIOs 0-31, platform/209c000.gpio, 209c000.gpio:&lt;BR /&gt; gpio-2 (can_stby ) out lo&lt;BR /&gt; gpio-5 (can_stby ) out lo&lt;BR /&gt; gpio-25 (phy-reset ) out lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 32-63, platform/20a0000.gpio, 20a0000.gpio:&lt;BR /&gt; gpio-34 (sysfs ) in lo&lt;BR /&gt; gpio-35 (sysfs ) in hi&lt;BR /&gt; gpio-36 (sysfs ) in hi&lt;BR /&gt; gpio-57 (aud_pwr_en ) out lo&lt;BR /&gt; gpio-58 (uart-pwr-en-gpio ) out lo&lt;BR /&gt; gpio-62 (spi_imx ) out lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 64-95, platform/20a4000.gpio, 20a4000.gpio:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 96-127, platform/20a8000.gpio, 20a8000.gpio:&lt;BR /&gt; gpio-106 (spi_imx ) in lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 128-159, platform/20ac000.gpio, 20ac000.gpio:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 160-191, platform/20b0000.gpio, 20b0000.gpio:&lt;BR /&gt; gpio-171 (? ) out lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 192-223, platform/20b4000.gpio, 20b4000.gpio:&lt;BR /&gt; gpio-198 (sysfs ) out lo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOs 240-255, da9063-gpio, can sleep:&lt;BR /&gt; gpio-247 (gpio-ext-reg ) out hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I measured the voltage of the corresponding pin (connected to open header), it was 3.3V. So the setting is guessed as "out high". I'd like to set the GPIO198 to "input"&amp;nbsp; durning the booting sequence of Yocto OS (like the initializing sequence of MCU). What kind of source flies should I modify and how should I modify it with the above settings before OS build?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've already researched and tested about how to change the pinmux by modifying the .dtsi file before OS build, and how to manipulate the GPIOs with /sys/class/gpio APIs after OS boot. But I've not found the solution to modify the GPIO setting in the OS sources.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best reards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 04:38:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Quad-GPIO-settings-in-Yocto-OS-source-files/m-p/715579#M111182</guid>
      <dc:creator>mocfur13</dc:creator>
      <dc:date>2018-05-24T04:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Quad - GPIO settings in Yocto OS source files</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Quad-GPIO-settings-in-Yocto-OS-source-files/m-p/715580#M111183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mocfur13&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pins default state are described in Table 96 i.MX6DQ Datasheet &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FIMX6DQCEC.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/docs/en/data-sheet/IMX6DQCEC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;gpio can be set in uboot:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/digi-embedded/u-boot/blob/v2015.04/maint/board/digi/ccimx6/ccimx6.c" title="https://github.com/digi-embedded/u-boot/blob/v2015.04/maint/board/digi/ccimx6/ccimx6.c"&gt;u-boot/ccimx6.c at v2015.04/maint · digi-embedded/u-boot · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or linux&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/digi-embedded/linux/blob/v4.9/dey-2.4/maint/arch/arm/mach-imx/mach-imx6q.c" title="https://github.com/digi-embedded/linux/blob/v4.9/dey-2.4/maint/arch/arm/mach-imx/mach-imx6q.c"&gt;linux/mach-imx6q.c at v4.9/dey-2.4/maint · digi-embedded/linux · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gpio direction can not be set in dts file.&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, 25 May 2018 00:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Quad-GPIO-settings-in-Yocto-OS-source-files/m-p/715580#M111183</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-05-25T00:21:12Z</dc:date>
    </item>
  </channel>
</rss>

