<?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: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418507#M246944</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This seems to be an issue with the interrupt configuration since you can use different GPIOs from the same group in different cores.&lt;/P&gt;
&lt;P&gt;Which interrupt did you configure in Linux device tree?&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2026 20:24:10 GMT</pubDate>
    <dc:creator>JorgeCas</dc:creator>
    <dc:date>2026-10-05T20:24:10Z</dc:date>
    <item>
      <title>i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418427#M246942</link>
      <description>&lt;P&gt;I am using an i.MX93 with Linux on the Cortex-A55 and bare-metal MCUXpresso SDK firmware on the Cortex-M33.&lt;/P&gt;&lt;P&gt;I want both cores to use different pins of GPIO2:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux&lt;/STRONG&gt;: touchscreen and buttons. The touchscreen uses GPIO2_IO11/IO12 for IRQ/reset.&lt;BR /&gt;&lt;STRONG&gt;M33&lt;/STRONG&gt;: GPIO2_IO22 as an interrupt input (RANin) and GPIO2_IO27 as an output (RANout).&lt;BR /&gt;Problem&lt;/P&gt;&lt;P&gt;Without starting the M33 firmware, the Linux touchscreen works, buttons also. When the M33 firmware runs, touch and buttons no longer work, and the touchscreen interrupt counter in /proc/interrupts does not increase:&lt;BR /&gt;&lt;BR /&gt;on M33 I use this configuration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#define PIN_IN_RGPIO           GPIO2
#define PIN_OUT_RGPIO          GPIO2
#define PIN_IN_RGPIO_PIN       22U
#define PIN_OUT_RGPIO_PIN      27U
#define M33_PIN_MASK ((1U &amp;lt;&amp;lt; PIN_OUT_RGPIO_PIN) | (1U &amp;lt;&amp;lt; PIN_IN_RGPIO_PIN))
#define EXAMPLE_RGPIO_CLOCK_ROOT kCLOCK_Root_BusWakeup
#define EXAMPLE_RGPIO_CLOCK_GATE kCLOCK_Gpio2
 
const clock_root_config_t rgpioClkCfg = {
    .clockOff = false,
    .mux = 0,
    .div = 1
};
 
CLOCK_SetRootClock(EXAMPLE_RGPIO_CLOCK_ROOT, &amp;amp;rgpioClkCfg);
    CLOCK_EnableClock(EXAMPLE_RGPIO_CLOCK_GATE);
    CLOCK_EnableClock(kCLOCK_Gpio2);
 
PIN_OUT_RGPIO-&amp;gt;PCNS &amp;amp;= ~M33_PIN_MASK;
GPIO2-&amp;gt;ICNS = 0x0;
 
RGPIO_SetPinInterruptConfig(GPIO2, 22U,
                            kRGPIO_InterruptOutput0,
                            kRGPIO_InterruptRisingEdge);
EnableIRQ(GPIO2_0_IRQn);
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate a support for that.&lt;/P&gt;&lt;P&gt;Bests&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2026 11:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418427#M246942</guid>
      <dc:creator>bora</dc:creator>
      <dc:date>2026-10-05T11:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418507#M246944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This seems to be an issue with the interrupt configuration since you can use different GPIOs from the same group in different cores.&lt;/P&gt;
&lt;P&gt;Which interrupt did you configure in Linux device tree?&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2026 20:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418507#M246944</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2026-10-05T20:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418665#M246952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for my touch I use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hycon: touchscreen@38 {
		compatible = "hycon,hy4633";
		pinctrl-names = "default";
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_touchscreen&amp;gt;;
		reg = &amp;lt;0x38&amp;gt;;
		interrupt-parent = &amp;lt;&amp;amp;gpio2&amp;gt;;
		interrupts = &amp;lt;11 IRQ_TYPE_EDGE_FALLING&amp;gt;;
		reset-gpios = &amp;lt;&amp;amp;gpio2 12 GPIO_ACTIVE_LOW&amp;gt;;
		vcc-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;;
		touchscreen-size-x = &amp;lt;320&amp;gt;;
	  	touchscreen-size-y = &amp;lt;280&amp;gt;;
    };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2026 08:18:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418665#M246952</guid>
      <dc:creator>bora</dc:creator>
      <dc:date>2026-10-06T08:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418818#M246956</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please try to change the interrupt used by M33 core by changing:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;GPIO2-&amp;gt;ICNS &amp;amp;= ~(1U &amp;lt;&amp;lt; 1U);
EnableIRQ(GPIO2_1_IRQn);&lt;/LI-CODE&gt;
&lt;P&gt;Best regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2026 17:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX93-Sharing-GPIO2-between-Linux-and-Cortex-M33-causes-Linux/m-p/2418818#M246956</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2026-10-06T17:23:48Z</dc:date>
    </item>
  </channel>
</rss>

