<?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: How to read interrupt for GPIO1_07 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-interrupt-for-GPIO1-07/m-p/1644984#M205278</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216549"&gt;@den&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To read this interruption you will need to configure the pin via software.&lt;BR /&gt;To do that you can follow the iMX8MP Reference Manual in section Chapter 8 Chip IO and Pinmux &amp;gt; General Purpose Input/Output (GPIO) &amp;gt; Interrupt Control Unit.&lt;BR /&gt;&lt;BR /&gt;Also, for iMX8MPlus there are no code samples for interrupt applications, but you can be based on the gpio driver for iMXRT SDK there are no big differences between gpio driver for both processors.&lt;BR /&gt;&lt;BR /&gt;You can port a code sample of iMXRT SDK for interrupt control to iMX8M SDK, and make some changes:&lt;BR /&gt;&lt;BR /&gt;1. You will need to change some macros to correctly port to iMX8M SDK.&lt;BR /&gt;2. Use the BOARD_RdcInit() and BOARD_InitMemory() instead of BOARD_ConfigMPU() used by iMXRT SDK.&lt;/P&gt;
&lt;P&gt;I hope this information will be helpful.&lt;/P&gt;
&lt;P&gt;Best regards, Brian.&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 19:53:32 GMT</pubDate>
    <dc:creator>brian14</dc:creator>
    <dc:date>2023-05-04T19:53:32Z</dc:date>
    <item>
      <title>How to read interrupt for GPIO1_07</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-interrupt-for-GPIO1-07/m-p/1642342#M205054</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I'm working with imx8mp CPU.&lt;/P&gt;&lt;P&gt;I want to know which pin makes an interrupt for GPIO1 controller.&lt;/P&gt;&lt;P&gt;I have the following in my device tree file:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;amp;gpio1 {&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;/* GPIO1_IO07 */&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;test_input_pin_hog {&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;gpio-hog;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;gpios = &amp;lt;7 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;gpio-output;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;output-high;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;line-name = "test_input_pin";&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;};&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and gpio1 controller has the following description into the cpu dtsi:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;gpio1: gpio@30200000 {&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;compatible = "fsl,imx8mp-gpio", "fsl,imx35-gpio";&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;reg = &amp;lt;0x30200000 0x10000&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;interrupts = &amp;lt;GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH&amp;gt;,&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;lt;GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;clocks = &amp;lt;&amp;amp;clk IMX8MP_CLK_GPIO1_ROOT&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;gpio-controller;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;#gpio-cells = &amp;lt;2&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;interrupt-controller;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;#interrupt-cells = &amp;lt;2&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;gpio-ranges = &amp;lt;&amp;amp;iomuxc 0 5 30&amp;gt;;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;64 and 65 IRQs for&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="402"&gt;&lt;SPAN class=""&gt;Combined interrupt indication for GPIO1 signal 0throughout 15&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;and&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="402"&gt;&lt;SPAN class=""&gt;Combined interrupt indication for GPIO1 signal16 throughout 31&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;How do I know that I received an interrupt on this pin(GPIO1_7)?&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Apr 2023 14:55:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-interrupt-for-GPIO1-07/m-p/1642342#M205054</guid>
      <dc:creator>den</dc:creator>
      <dc:date>2023-04-28T14:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to read interrupt for GPIO1_07</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-interrupt-for-GPIO1-07/m-p/1644984#M205278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216549"&gt;@den&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To read this interruption you will need to configure the pin via software.&lt;BR /&gt;To do that you can follow the iMX8MP Reference Manual in section Chapter 8 Chip IO and Pinmux &amp;gt; General Purpose Input/Output (GPIO) &amp;gt; Interrupt Control Unit.&lt;BR /&gt;&lt;BR /&gt;Also, for iMX8MPlus there are no code samples for interrupt applications, but you can be based on the gpio driver for iMXRT SDK there are no big differences between gpio driver for both processors.&lt;BR /&gt;&lt;BR /&gt;You can port a code sample of iMXRT SDK for interrupt control to iMX8M SDK, and make some changes:&lt;BR /&gt;&lt;BR /&gt;1. You will need to change some macros to correctly port to iMX8M SDK.&lt;BR /&gt;2. Use the BOARD_RdcInit() and BOARD_InitMemory() instead of BOARD_ConfigMPU() used by iMXRT SDK.&lt;/P&gt;
&lt;P&gt;I hope this information will be helpful.&lt;/P&gt;
&lt;P&gt;Best regards, Brian.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 19:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-interrupt-for-GPIO1-07/m-p/1644984#M205278</guid>
      <dc:creator>brian14</dc:creator>
      <dc:date>2023-05-04T19:53:32Z</dc:date>
    </item>
  </channel>
</rss>

