<?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: MX6ul gpio input interrupt only on falling edge</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MX6ul-gpio-input-interrupt-only-on-falling-edge/m-p/1665131#M207264</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218342"&gt;@Konstantin_Bagler&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Please include the &lt;STRONG&gt;gpios&lt;/STRONG&gt; property in the gpio-key device tree node.&lt;/P&gt;
&lt;P&gt;Please refer to&lt;A href="https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt" target="_self"&gt;&amp;nbsp;https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is due to the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/drivers/input/keyboard/gpio_keys.c" target="_self"&gt;gpio-key&lt;/A&gt; driver only supporting the irq trigger on both edges.&lt;/P&gt;
&lt;P&gt;One can refer to the below-mentioned mail chain.&lt;BR /&gt;&lt;A href="https://patchwork.kernel.org/project/linux-input/patch/1433402712-21399-1-git-send-email-yvo@apm.com/" target="_self"&gt;https://patchwork.kernel.org/project/linux-input/patch/1433402712-21399-1-git-send-email-yvo@apm.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 11:29:30 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2023-06-07T11:29:30Z</dc:date>
    <item>
      <title>MX6ul gpio input interrupt only on falling edge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX6ul-gpio-input-interrupt-only-on-falling-edge/m-p/1664101#M207161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use our custom board with iMX6ul. I need to configure GPIO inputs to generate interrupts on falling edge. For some reason interrupt fires both on falling and rising edges.&lt;BR /&gt;GPIOs settings in the device tree:&lt;/P&gt;&lt;P&gt;pinctrl_rotstab: rotstab {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl,pins = &amp;lt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; MX6UL_PAD_CSI_DATA02__GPIO4_IO23 0x1080&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; MX6UL_PAD_CSI_DATA03__GPIO4_IO24 0x1080&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;rotary-stability {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "gpio-keys";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_rotstab&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ccw-2 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; label = "counterclockwise-2";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; interrupts-extended = &amp;lt;&amp;amp;gpio4 24 IRQ_TYPE_EDGE_FALLING&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; linux,code = &amp;lt;KEY_LEFT&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cw-2 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; label = "clockwise-2";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; interrupts-extended = &amp;lt;&amp;amp;gpio4 23 IRQ_TYPE_EDGE_FALLING&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; linux,code = &amp;lt;KEY_RIGHT&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;I also checked &lt;SPAN&gt;GPIO&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;_ICR2 and GPIO4_EDGE_SEL register values. Everything is set up correctly, ICR register holds values corresponding to falling edge interrupts, EDGE_SEL register is zero. But for some reason interrupt is generated on both rising and fallling edges.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I already saw this &lt;A href="https://community.nxp.com/t5/i-MX-Processors/MX6ul-var-dart-dtsi-for-gpio-input-only-on-falling-edge/m-p/655519" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/MX6ul-var-dart-dtsi-for-gpio-input-only-on-falling-edge/m-p/655519&lt;/A&gt; post with the same problem but there was no solution there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 08:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX6ul-gpio-input-interrupt-only-on-falling-edge/m-p/1664101#M207161</guid>
      <dc:creator>Konstantin_Bagler</dc:creator>
      <dc:date>2023-06-06T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: MX6ul gpio input interrupt only on falling edge</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX6ul-gpio-input-interrupt-only-on-falling-edge/m-p/1665131#M207264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218342"&gt;@Konstantin_Bagler&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Please include the &lt;STRONG&gt;gpios&lt;/STRONG&gt; property in the gpio-key device tree node.&lt;/P&gt;
&lt;P&gt;Please refer to&lt;A href="https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt" target="_self"&gt;&amp;nbsp;https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This is due to the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/drivers/input/keyboard/gpio_keys.c" target="_self"&gt;gpio-key&lt;/A&gt; driver only supporting the irq trigger on both edges.&lt;/P&gt;
&lt;P&gt;One can refer to the below-mentioned mail chain.&lt;BR /&gt;&lt;A href="https://patchwork.kernel.org/project/linux-input/patch/1433402712-21399-1-git-send-email-yvo@apm.com/" target="_self"&gt;https://patchwork.kernel.org/project/linux-input/patch/1433402712-21399-1-git-send-email-yvo@apm.com/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 11:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX6ul-gpio-input-interrupt-only-on-falling-edge/m-p/1665131#M207264</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-07T11:29:30Z</dc:date>
    </item>
  </channel>
</rss>

