<?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>i.MX ProcessorsのトピックCannot export specific gpio pins. How to check what uses GPIO pins?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696448#M108125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use an i.mx6 board and am configuring a device tree.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;changed a dts file and put the dtb file in a boot partition.&lt;/P&gt;&lt;P&gt;I set&amp;nbsp;GPIO4_IO19 in dts file as follows.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_hog_1&amp;gt;;&lt;BR /&gt; imx6ul-evk {&lt;BR /&gt; pinctrl_hog_1: hoggrp-1 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt;...&lt;BR /&gt; MX6UL_PAD_CSI_VSYNC__GPIO4_IO19 0x0000B0B0&lt;BR /&gt;...&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At first&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;MX6UL_PAD_CSI_VSYNC__GPIO4_IO19 was defined in other group (usdhcgrp) but I commented out them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;After booting, I checked if gpio is successfully determined as I set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The result is&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;echo 115 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;-sh: echo: write error: Device or resource busy&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I checked this.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;cat /sys/kernel/debug/gpio&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GPIOs 0-31, platform/209c000.gpio, 209c000.gpio:&lt;BR /&gt; gpio-10 (phy-reset ) out lo&lt;/P&gt;&lt;P&gt;GPIOs 32-63, platform/20a0000.gpio, 20a0000.gpio:&lt;/P&gt;&lt;P&gt;GPIOs 64-95, platform/20a4000.gpio, 20a4000.gpio:&lt;BR /&gt; gpio-68 (ft5x06_irq_gpio ) in hi&lt;/P&gt;&lt;P&gt;GPIOs 96-127, platform/20a8000.gpio, 20a8000.gpio:&lt;BR /&gt; gpio-109 (? ) out lo&lt;BR /&gt; gpio-115 (cd ) in lo&lt;BR /&gt; gpio-116 (? ) out lo&lt;BR /&gt; gpio-117 (? ) out lo&lt;BR /&gt; gpio-118 (sysfs ) in hi&lt;/P&gt;&lt;P&gt;GPIOs 128-159, platform/20ac000.gpio, 20ac000.gpio:&lt;BR /&gt; gpio-128 (phy-reset ) out lo&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;gpio-115 is used by cd. What is cd ?&lt;/P&gt;&lt;P&gt;I want to use it as sysfs to read the state. Any other way to read it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, gpio-10, 68, 109, 116, 117 is used by other device.&lt;/P&gt;&lt;P&gt;How can I use them by sysfs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your cooperation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 08:49:49 GMT</pubDate>
    <dc:creator>Hirotoshi_Sato</dc:creator>
    <dc:date>2017-09-07T08:49:49Z</dc:date>
    <item>
      <title>Cannot export specific gpio pins. How to check what uses GPIO pins?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696448#M108125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use an i.mx6 board and am configuring a device tree.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;changed a dts file and put the dtb file in a boot partition.&lt;/P&gt;&lt;P&gt;I set&amp;nbsp;GPIO4_IO19 in dts file as follows.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_hog_1&amp;gt;;&lt;BR /&gt; imx6ul-evk {&lt;BR /&gt; pinctrl_hog_1: hoggrp-1 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt;...&lt;BR /&gt; MX6UL_PAD_CSI_VSYNC__GPIO4_IO19 0x0000B0B0&lt;BR /&gt;...&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At first&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;MX6UL_PAD_CSI_VSYNC__GPIO4_IO19 was defined in other group (usdhcgrp) but I commented out them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;After booting, I checked if gpio is successfully determined as I set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The result is&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;echo 115 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;-sh: echo: write error: Device or resource busy&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I checked this.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;cat /sys/kernel/debug/gpio&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GPIOs 0-31, platform/209c000.gpio, 209c000.gpio:&lt;BR /&gt; gpio-10 (phy-reset ) out lo&lt;/P&gt;&lt;P&gt;GPIOs 32-63, platform/20a0000.gpio, 20a0000.gpio:&lt;/P&gt;&lt;P&gt;GPIOs 64-95, platform/20a4000.gpio, 20a4000.gpio:&lt;BR /&gt; gpio-68 (ft5x06_irq_gpio ) in hi&lt;/P&gt;&lt;P&gt;GPIOs 96-127, platform/20a8000.gpio, 20a8000.gpio:&lt;BR /&gt; gpio-109 (? ) out lo&lt;BR /&gt; gpio-115 (cd ) in lo&lt;BR /&gt; gpio-116 (? ) out lo&lt;BR /&gt; gpio-117 (? ) out lo&lt;BR /&gt; gpio-118 (sysfs ) in hi&lt;/P&gt;&lt;P&gt;GPIOs 128-159, platform/20ac000.gpio, 20ac000.gpio:&lt;BR /&gt; gpio-128 (phy-reset ) out lo&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;gpio-115 is used by cd. What is cd ?&lt;/P&gt;&lt;P&gt;I want to use it as sysfs to read the state. Any other way to read it ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, gpio-10, 68, 109, 116, 117 is used by other device.&lt;/P&gt;&lt;P&gt;How can I use them by sysfs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your cooperation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 08:49:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696448#M108125</guid>
      <dc:creator>Hirotoshi_Sato</dc:creator>
      <dc:date>2017-09-07T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot export specific gpio pins. How to check what uses GPIO pins?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696449#M108126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hirotoshi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/16033748/how-do-can-i-find-out-which-linux-driver-is-hogging-my-gpio" title="https://stackoverflow.com/questions/16033748/how-do-can-i-find-out-which-linux-driver-is-hogging-my-gpio"&gt;How do can I find out which Linux driver is hogging my GPIO? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 10:20:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696449#M108126</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-07T10:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot export specific gpio pins. How to check what uses GPIO pins?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696450#M108127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I am afraid that&amp;nbsp;I&amp;nbsp;have read the link and it would not help me.&lt;/P&gt;&lt;P&gt;(This time the using device is ?, so I cannot find.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think dts file is related to this issue 'cause I think only dts file includes pin control, but I couldn't find out.&lt;/P&gt;&lt;P&gt;Would you give me any other&amp;nbsp;adivice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hiro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 11:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696450#M108127</guid>
      <dc:creator>Hirotoshi_Sato</dc:creator>
      <dc:date>2017-09-07T11:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot export specific gpio pins. How to check what uses GPIO pins?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696451#M108128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hiro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as these are general linux questions, it may be posted&lt;/P&gt;&lt;P&gt;on kernel mail lists.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://vger.kernel.org/vger-lists.html#linux-gpio" title="http://vger.kernel.org/vger-lists.html#linux-gpio"&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 23:53:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696451#M108128</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-07T23:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot export specific gpio pins. How to check what uses GPIO pins?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696452#M108129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your replying.&lt;/P&gt;&lt;P&gt;I found my dts file has woding about the gpio.&lt;/P&gt;&lt;P&gt;At first I think gpio is only defined in &amp;amp;iomuxc {...} in dts, but there are other definition in the dts file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 07:20:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696452#M108129</guid>
      <dc:creator>Hirotoshi_Sato</dc:creator>
      <dc:date>2017-09-21T07:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot export specific gpio pins. How to check what uses GPIO pins?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696453#M108130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;i.MX Development Miscellanea(i.MX 开发杂记)&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335198"&gt;https://community.nxp.com/docs/DOC-335198&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accessing GPIO From UserSpace&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 08:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-export-specific-gpio-pins-How-to-check-what-uses-GPIO/m-p/696453#M108130</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2017-09-21T08:44:30Z</dc:date>
    </item>
  </channel>
</rss>

