<?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: Device Tree for GPIO Push Button in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671795#M103486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this looks like it will be helpful for some background understanding. I have the gpio-keys somewhat working but I'm having no luck with the gpio-reset. Is there some more documentation on that than what's in the Documentation/devicetree/bindings/reset? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2017 15:57:22 GMT</pubDate>
    <dc:creator>danielbujak</dc:creator>
    <dc:date>2017-07-18T15:57:22Z</dc:date>
    <item>
      <title>Device Tree for GPIO Push Button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671793#M103484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I'm working on a board based on the iMX6ul evk, and am trying to register push button presses in user space. Based on the research I've done, the best way to do this is via gpio-keys in the device tree. So far I've gotten the below code. The device tree compiles but there is no documentation on how to handle this in the user space. So I have 2 questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is GPIO-KEYS the correct binding to use if I want to trigger a script to run based on a GPIO toggle for example?&lt;/LI&gt;&lt;LI&gt;Is there documentation on how to handle this and other bindings in user space?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Input button configuration */&lt;BR /&gt;&amp;nbsp; gpio_keys {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "gpio-keys";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpiokeys&amp;gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autorepeat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test-btn {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label = "Test-Input";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux,code = &amp;lt;28&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpios = &amp;lt;&amp;amp;gpio1 31 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl_gpiokeys: gpiokeygrp {&lt;BR /&gt;&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; MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000010B0&amp;nbsp; /* USER Push Button */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671793#M103484</guid>
      <dc:creator>danielbujak</dc:creator>
      <dc:date>2017-07-17T18:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Device Tree for GPIO Push Button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671794#M103485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi danielbujak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check examples on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://community.freescale.com/thread/381277" title="https://community.freescale.com/thread/381277"&gt;https://community.freescale.com/thread/381277&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://kosagi.com/w/index.php?title=Definitive_GPIO_guide" title="https://kosagi.com/w/index.php?title=Definitive_GPIO_guide"&gt;Definitive GPIO guide - Studio Kousagi Wiki&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for documentation one can look at common linux documentation&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kernel.org/doc/Documentation/gpio/sysfs.txt" title="https://www.kernel.org/doc/Documentation/gpio/sysfs.txt"&gt;https://www.kernel.org/doc/Documentation/gpio/sysfs.txt&lt;/A&gt;&amp;nbsp;&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>Mon, 17 Jul 2017 23:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671794#M103485</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-17T23:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Device Tree for GPIO Push Button</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671795#M103486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this looks like it will be helpful for some background understanding. I have the gpio-keys somewhat working but I'm having no luck with the gpio-reset. Is there some more documentation on that than what's in the Documentation/devicetree/bindings/reset? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 15:57:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-Tree-for-GPIO-Push-Button/m-p/671795#M103486</guid>
      <dc:creator>danielbujak</dc:creator>
      <dc:date>2017-07-18T15:57:22Z</dc:date>
    </item>
  </channel>
</rss>

