<?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のトピックRe: IMX8MM adding a GPIO key</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638316#M204636</link>
    <description>&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;Here is the schematic for the keypad. It goes to a connector and then on to another custom board which in turn connects to the imx8. We've used this same keypad in an IMX6 based application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-22 at 17.16.58.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/220384i9D9F1E4CDDF911AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-22 at 17.16.58.png" alt="Screenshot 2023-04-22 at 17.16.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Apr 2023 15:21:36 GMT</pubDate>
    <dc:creator>J_W</dc:creator>
    <dc:date>2023-04-22T15:21:36Z</dc:date>
    <item>
      <title>IMX8MM adding a GPIO key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638034#M204596</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been following this guide:&amp;nbsp;&lt;A href="https://www.emcraft.com/som/vf6/controlling-gpio-from-linux" target="_blank"&gt;https://www.emcraft.com/som/vf6/controlling-gpio-from-linux&lt;/A&gt;&lt;/P&gt;&lt;P&gt;trying to add a keypad to my imx8mm based board.&lt;/P&gt;&lt;P&gt;I added this to my device tree:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;[...]
    gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpio_keys&amp;gt;;

		col0_btn {
			label = "COL0_BTN";
			gpios = &amp;lt;&amp;amp;gpio1 5 GPIO_ACTIVE_LOW&amp;gt;;
			gpio-key,wakeup;
			linux,code = &amp;lt;BTN_0&amp;gt;;
		};
	};

[...]

&amp;amp;iomuxc {
		pinctrl_gpio_keys: keys0grp {
			fsl,pins = &amp;lt;
				MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5		0x1d6 /* KEY_C0 */		
			&amp;gt;;
		};
[...]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking with 'gpioinfo' command in linux:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@asdf:~# gpioinfo 0
gpiochip0 - 32 lines:
        line   0:      unnamed       unused   input  active-high
        line   1:      unnamed       unused   input  active-high
        line   2:      unnamed       unused   input  active-high
        line   3:      unnamed  "interrupt"   input  active-high [used]
        line   4:      unnamed       unused   input  active-high
        line   5:      unnamed   "COL0_BTN"   input   active-low [used]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking with evtest /dev/input/event0&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@asdf:/# evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 256 (BTN_0)
Properties:
Testing ... (interrupt to exit)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, no push of the button is ever registered. I'm wondering if somehow the mapping between&lt;/P&gt;&lt;P&gt;gpios = &amp;lt;&amp;amp;gpio1 5 GPIO_ACTIVE_LOW&amp;gt; and&amp;nbsp;MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 is incorrect and is something other than what seems obvious?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638034#M204596</guid>
      <dc:creator>J_W</dc:creator>
      <dc:date>2023-04-21T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM adding a GPIO key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638241#M204620</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Your device tree configuration and logs from gpioinfo command seems to be ok. Your input it is detected correctly.&lt;/P&gt;
&lt;P&gt;The next we can check is hardware connection, could you please share me your connections?&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 20:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638241#M204620</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2023-04-21T20:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM adding a GPIO key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638316#M204636</link>
      <description>&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;Here is the schematic for the keypad. It goes to a connector and then on to another custom board which in turn connects to the imx8. We've used this same keypad in an IMX6 based application.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-22 at 17.16.58.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/220384i9D9F1E4CDDF911AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-22 at 17.16.58.png" alt="Screenshot 2023-04-22 at 17.16.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 15:21:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638316#M204636</guid>
      <dc:creator>J_W</dc:creator>
      <dc:date>2023-04-22T15:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM adding a GPIO key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638987#M204712</link>
      <description>&lt;P&gt;On our IMX6 board (in which the key press is detected), using the same keypad we have defined the same button as follows:&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_GPIO_9__KEY_COL6 0x1b0b1 // TX6 COL0&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:15:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1638987#M204712</guid>
      <dc:creator>J_W</dc:creator>
      <dc:date>2023-04-24T13:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM adding a GPIO key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1639044#M204717</link>
      <description>&lt;P&gt;I switched to open drain instead of active low and I get response from COL_0 now though not the buttons themselves.&lt;/P&gt;&lt;P&gt;I suppose I am missing something in how to implement a matrix keyboard. I did some googling but did not manage to find anything useful for the imx8, a lot of stuff just for the imx6 which has a driver for it. Do you have any examples at NXP?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1639044#M204717</guid>
      <dc:creator>J_W</dc:creator>
      <dc:date>2023-04-24T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM adding a GPIO key</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1639141#M204726</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It seems that you need to consider Pad Control Register and Pad Mux Register. Please check it on page 1360 and 1516 of reference manual.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 19:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-adding-a-GPIO-key/m-p/1639141#M204726</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2023-04-24T19:09:51Z</dc:date>
    </item>
  </channel>
</rss>

