<?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 回复： iMX6 - PCAL6416 - Linux kernel gpio expander interrupt issue in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1951780#M228299</link>
    <description>&lt;P&gt;HI，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am debugging the pcal6416,and can you share the linux driver . thank you&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 06:51:51 GMT</pubDate>
    <dc:creator>5454ty</dc:creator>
    <dc:date>2024-09-11T06:51:51Z</dc:date>
    <item>
      <title>iMX6 - PCAL6416 - Linux kernel gpio expander interrupt issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1264848#M172877</link>
      <description>&lt;P&gt;Hi NXP team,&lt;/P&gt;&lt;P&gt;We are working on iMX6ULL and PCAL6416 GPIO expander on Linux 4.14.98. The /linux/drivers/gpio/gpio-pca953x.c driver is backported from Linux 5.2&lt;/P&gt;&lt;P&gt;Currently the pcal6416 gpio controller function is OK. From iMX6 gpio 1 pin 6 use as the gpio pin to receive the pcal6416 interrupt signal.&lt;/P&gt;&lt;P&gt;We expected to use the interrupt from the pcal6416 as interrupt expander and the device tree as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;i2c1 {
	clock-frequency = &amp;lt;100000&amp;gt;;
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c1&amp;gt;;
	status = "okay";

	exp_gpio1: exp_gpio1@20 {
		compatible = "nxp,pcal6416";
		reg = &amp;lt;0x20&amp;gt;;
		gpio-controller;
		#gpio-cells = &amp;lt;2&amp;gt;;
		status = "okay";
		reset-gpios = &amp;lt;&amp;amp;gpio5 6 GPIO_ACTIVE_HIGH&amp;gt;;
		vcc-supply = &amp;lt;&amp;amp;reg_sd1_vmmc&amp;gt;;

		interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;
		interrupts = &amp;lt;6 IRQ_TYPE_EDGE_FALLING&amp;gt;;
		interrupt-controller;
		#interrupt-cells = &amp;lt;2&amp;gt;;
	};
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the device tree configuration as above the issue has occurred. From the debug console after "Starting kernel ..." line is printed kernel hang and it needs up to 30 minutes to boot up and IRQ init for pcal6416 is OK.&lt;/P&gt;&lt;P&gt;Could you please help me to clarify any issue from the device tree configuration or any workaround for this.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Phuong Nguyen&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1264848#M172877</guid>
      <dc:creator>vocsiphuong</dc:creator>
      <dc:date>2021-04-20T06:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 - PCAL6416 - Linux kernel gpio expander interrupt issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1268323#M173218</link>
      <description>&lt;P&gt;I can recommend you that you verify that you Interrupt ID, it is correct always take in consideration that the Interrupts are 32 bits Shift.&lt;/P&gt;
&lt;P&gt;And you can take a look to the Kernel Documentation regarding the device tree configuration&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kernel.org/doc/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt" target="_blank"&gt;https://www.kernel.org/doc/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 19:46:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1268323#M173218</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2021-04-26T19:46:56Z</dc:date>
    </item>
    <item>
      <title>回复： iMX6 - PCAL6416 - Linux kernel gpio expander interrupt issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1951780#M228299</link>
      <description>&lt;P&gt;HI，&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am debugging the pcal6416,and can you share the linux driver . thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 06:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-PCAL6416-Linux-kernel-gpio-expander-interrupt-issue/m-p/1951780#M228299</guid>
      <dc:creator>5454ty</dc:creator>
      <dc:date>2024-09-11T06:51:51Z</dc:date>
    </item>
  </channel>
</rss>

