<?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 Implementing Dual-Function GPIO Key Mapping for Display Control and System Restart on i.MX8QXP SoM in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Implementing-Dual-Function-GPIO-Key-Mapping-for-Display-Control/m-p/2140650#M239588</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We are using an &lt;STRONG&gt;i.MX8QXP SoM&lt;/STRONG&gt; and have built the OS image with the following Yocto configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;MACHINE = imx8qxpc0mek&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;DISTRO = fsl-imx-wayland&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;DISTRO_VERSION = 6.6-scarthgap&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Kernel Version&lt;/STRONG&gt;: 6.6.36&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;A &lt;STRONG&gt;GPIO expander is connected over I2C&lt;/STRONG&gt;, and we have successfully mapped several GPIOs to key events like number keys and letters.&lt;/P&gt;&lt;P&gt;Now, we want to assign a &lt;STRONG&gt;dual-functionality to one GPIO key&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Short press&lt;/STRONG&gt;: Turns &lt;STRONG&gt;off the display&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Long press (≥5 seconds)&lt;/STRONG&gt;: &lt;STRONG&gt;Restarts the system&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We are looking for the appropriate &lt;STRONG&gt;Linux input event keycode&lt;/STRONG&gt; to assign this behavior with dual functionality and device tree configuration.&lt;BR /&gt;&lt;BR /&gt;Regads,&lt;BR /&gt;Adnan&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 06:52:31 GMT</pubDate>
    <dc:creator>adnan_dst</dc:creator>
    <dc:date>2025-07-25T06:52:31Z</dc:date>
    <item>
      <title>Implementing Dual-Function GPIO Key Mapping for Display Control and System Restart on i.MX8QXP SoM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Implementing-Dual-Function-GPIO-Key-Mapping-for-Display-Control/m-p/2140650#M239588</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We are using an &lt;STRONG&gt;i.MX8QXP SoM&lt;/STRONG&gt; and have built the OS image with the following Yocto configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;MACHINE = imx8qxpc0mek&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;DISTRO = fsl-imx-wayland&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;DISTRO_VERSION = 6.6-scarthgap&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Kernel Version&lt;/STRONG&gt;: 6.6.36&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;A &lt;STRONG&gt;GPIO expander is connected over I2C&lt;/STRONG&gt;, and we have successfully mapped several GPIOs to key events like number keys and letters.&lt;/P&gt;&lt;P&gt;Now, we want to assign a &lt;STRONG&gt;dual-functionality to one GPIO key&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Short press&lt;/STRONG&gt;: Turns &lt;STRONG&gt;off the display&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Long press (≥5 seconds)&lt;/STRONG&gt;: &lt;STRONG&gt;Restarts the system&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We are looking for the appropriate &lt;STRONG&gt;Linux input event keycode&lt;/STRONG&gt; to assign this behavior with dual functionality and device tree configuration.&lt;BR /&gt;&lt;BR /&gt;Regads,&lt;BR /&gt;Adnan&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 06:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Implementing-Dual-Function-GPIO-Key-Mapping-for-Display-Control/m-p/2140650#M239588</guid>
      <dc:creator>adnan_dst</dc:creator>
      <dc:date>2025-07-25T06:52:31Z</dc:date>
    </item>
  </channel>
</rss>

