<?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 LS1046 GPIO interrupt  in QorIQ</title>
    <link>https://community.nxp.com/t5/QorIQ/LS1046-GPIO-interrupt/m-p/945402#M8297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;I want to use a GPIO as an interrupt source，so I refer to this manual&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-332743"&gt;LS1043 GPIO support in Linux SDK&lt;/A&gt;。&lt;/P&gt;&lt;P&gt;I configured&amp;nbsp; according to the manual，but when i&amp;nbsp; type&amp;nbsp; echo&amp;nbsp; both &amp;gt; edge ,the terminal print this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@localhost:/sys/class/gpio/gpio448# echo both &amp;gt; edge &lt;BR /&gt;[ 440.803793] gpio gpiochip1: (2310000.gpio): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ&lt;BR /&gt;-bash: echo: write error: Input/output error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i check the /proc/interrupts :&lt;/P&gt;&lt;P&gt;root@localhost:/sys/class/gpio/gpio448# cat /proc/interrupts &lt;BR /&gt; CPU0 CPU1 CPU2 CPU3 &lt;BR /&gt; 1: 0 0 0 0 GICv2 25 Level vgic&lt;BR /&gt; 3: 6506 5623 5394 4957 GICv2 30 Level arch_timer&lt;BR /&gt; 4: 0 0 0 0 GICv2 27 Level kvm guest timer&lt;BR /&gt; 6: 0 0 0 0 GICv2 138 Level arm-pmu&lt;BR /&gt; 7: 0 0 0 0 GICv2 139 Level arm-pmu&lt;BR /&gt; 8: 0 0 0 0 GICv2 127 Level arm-pmu&lt;BR /&gt; 9: 0 0 0 0 GICv2 129 Level arm-pmu&lt;BR /&gt; 11: 0 0 0 0 GICv2 75 Level fsl-ifc&lt;BR /&gt; 12: 1 0 0 0 GICv2 131 Level &lt;BR /&gt; 13: 40530 0 0 0 GICv2 94 Level mmc0&lt;BR /&gt; 14: 0 0 0 0 GICv2 77 Level bman-err, qman-err, fman-err&lt;BR /&gt; 20: 0 0 0 0 GICv2 214 Level QMan portal 3&lt;BR /&gt; 21: 0 0 0 0 GICv2 216 Level QMan portal 2&lt;BR /&gt; 22: 0 0 0 0 GICv2 218 Level QMan portal 1&lt;BR /&gt; 23: 0 0 0 0 GICv2 220 Level QMan portal 0&lt;BR /&gt; 29: 0 0 0 0 GICv2 215 Level BMan portal 3&lt;BR /&gt; 30: 0 0 0 0 GICv2 217 Level BMan portal 2&lt;BR /&gt; 31: 0 0 0 0 GICv2 219 Level BMan portal 1&lt;BR /&gt; 32: 0 0 0 0 GICv2 221 Level BMan portal 0&lt;BR /&gt; 34: 112 0 0 0 GICv2 88 Level 2180000.i2c&lt;BR /&gt; 35: 34 0 0 0 GICv2 91 Level 21b0000.i2c&lt;BR /&gt; 36: 1788 0 0 0 GICv2 86 Level ttyS0&lt;BR /&gt; 42: 0 0 0 0 GICv2 118 Level 29d0000.ftm0&lt;BR /&gt; 43: 0 0 0 0 GICv2 115 Level 2ad0000.watchdog&lt;BR /&gt; 44: 0 0 0 0 GICv2 135 Level eDMA&lt;BR /&gt; 45: 0 0 0 0 GICv2 92 Level xhci-hcd:usb1&lt;BR /&gt; 46: 0 0 0 0 GICv2 93 Level xhci-hcd:usb3&lt;BR /&gt; 47: 0 0 0 0 GICv2 95 Level xhci-hcd:usb5&lt;BR /&gt; 48: 0 0 0 0 GICv2 101 Level ahci-qoriq[3200000.sata]&lt;BR /&gt; 63: 0 0 0 0 GICv2 149 Level PCIe PME&lt;BR /&gt; 64: 0 0 0 0 GICv2 150 Level aerdrv&lt;BR /&gt; 65: 0 0 0 0 GICv2 76 Level fman&lt;BR /&gt;IPI0: 5614 10437 8082 6962 Rescheduling interrupts&lt;BR /&gt;IPI1: 462 717 676 700 Function call interrupts&lt;BR /&gt;IPI2: 0 0 0 0 CPU stop interrupts&lt;BR /&gt;IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts&lt;BR /&gt;IPI4: 0 0 0 0 Timer broadcast interrupts&lt;BR /&gt;IPI5: 1528 658 469 443 IRQ work interrupts&lt;BR /&gt;IPI6: 0 0 0 0 CPU wake-up interrupts&lt;BR /&gt;Err: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find any information about mpc8xxx.&lt;/P&gt;&lt;P&gt;Is it that I did not open the driver for mpc8xxx correctly? But I have already followed the manual completely.&lt;/P&gt;&lt;P&gt;my lsdk version is 18.03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question : How can I create a GPIO interrupt in the driver layer? I did not find any information about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2019 06:22:07 GMT</pubDate>
    <dc:creator>shijj</dc:creator>
    <dc:date>2019-07-19T06:22:07Z</dc:date>
    <item>
      <title>LS1046 GPIO interrupt</title>
      <link>https://community.nxp.com/t5/QorIQ/LS1046-GPIO-interrupt/m-p/945402#M8297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;I want to use a GPIO as an interrupt source，so I refer to this manual&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-332743"&gt;LS1043 GPIO support in Linux SDK&lt;/A&gt;。&lt;/P&gt;&lt;P&gt;I configured&amp;nbsp; according to the manual，but when i&amp;nbsp; type&amp;nbsp; echo&amp;nbsp; both &amp;gt; edge ,the terminal print this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@localhost:/sys/class/gpio/gpio448# echo both &amp;gt; edge &lt;BR /&gt;[ 440.803793] gpio gpiochip1: (2310000.gpio): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ&lt;BR /&gt;-bash: echo: write error: Input/output error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i check the /proc/interrupts :&lt;/P&gt;&lt;P&gt;root@localhost:/sys/class/gpio/gpio448# cat /proc/interrupts &lt;BR /&gt; CPU0 CPU1 CPU2 CPU3 &lt;BR /&gt; 1: 0 0 0 0 GICv2 25 Level vgic&lt;BR /&gt; 3: 6506 5623 5394 4957 GICv2 30 Level arch_timer&lt;BR /&gt; 4: 0 0 0 0 GICv2 27 Level kvm guest timer&lt;BR /&gt; 6: 0 0 0 0 GICv2 138 Level arm-pmu&lt;BR /&gt; 7: 0 0 0 0 GICv2 139 Level arm-pmu&lt;BR /&gt; 8: 0 0 0 0 GICv2 127 Level arm-pmu&lt;BR /&gt; 9: 0 0 0 0 GICv2 129 Level arm-pmu&lt;BR /&gt; 11: 0 0 0 0 GICv2 75 Level fsl-ifc&lt;BR /&gt; 12: 1 0 0 0 GICv2 131 Level &lt;BR /&gt; 13: 40530 0 0 0 GICv2 94 Level mmc0&lt;BR /&gt; 14: 0 0 0 0 GICv2 77 Level bman-err, qman-err, fman-err&lt;BR /&gt; 20: 0 0 0 0 GICv2 214 Level QMan portal 3&lt;BR /&gt; 21: 0 0 0 0 GICv2 216 Level QMan portal 2&lt;BR /&gt; 22: 0 0 0 0 GICv2 218 Level QMan portal 1&lt;BR /&gt; 23: 0 0 0 0 GICv2 220 Level QMan portal 0&lt;BR /&gt; 29: 0 0 0 0 GICv2 215 Level BMan portal 3&lt;BR /&gt; 30: 0 0 0 0 GICv2 217 Level BMan portal 2&lt;BR /&gt; 31: 0 0 0 0 GICv2 219 Level BMan portal 1&lt;BR /&gt; 32: 0 0 0 0 GICv2 221 Level BMan portal 0&lt;BR /&gt; 34: 112 0 0 0 GICv2 88 Level 2180000.i2c&lt;BR /&gt; 35: 34 0 0 0 GICv2 91 Level 21b0000.i2c&lt;BR /&gt; 36: 1788 0 0 0 GICv2 86 Level ttyS0&lt;BR /&gt; 42: 0 0 0 0 GICv2 118 Level 29d0000.ftm0&lt;BR /&gt; 43: 0 0 0 0 GICv2 115 Level 2ad0000.watchdog&lt;BR /&gt; 44: 0 0 0 0 GICv2 135 Level eDMA&lt;BR /&gt; 45: 0 0 0 0 GICv2 92 Level xhci-hcd:usb1&lt;BR /&gt; 46: 0 0 0 0 GICv2 93 Level xhci-hcd:usb3&lt;BR /&gt; 47: 0 0 0 0 GICv2 95 Level xhci-hcd:usb5&lt;BR /&gt; 48: 0 0 0 0 GICv2 101 Level ahci-qoriq[3200000.sata]&lt;BR /&gt; 63: 0 0 0 0 GICv2 149 Level PCIe PME&lt;BR /&gt; 64: 0 0 0 0 GICv2 150 Level aerdrv&lt;BR /&gt; 65: 0 0 0 0 GICv2 76 Level fman&lt;BR /&gt;IPI0: 5614 10437 8082 6962 Rescheduling interrupts&lt;BR /&gt;IPI1: 462 717 676 700 Function call interrupts&lt;BR /&gt;IPI2: 0 0 0 0 CPU stop interrupts&lt;BR /&gt;IPI3: 0 0 0 0 CPU stop (for crash dump) interrupts&lt;BR /&gt;IPI4: 0 0 0 0 Timer broadcast interrupts&lt;BR /&gt;IPI5: 1528 658 469 443 IRQ work interrupts&lt;BR /&gt;IPI6: 0 0 0 0 CPU wake-up interrupts&lt;BR /&gt;Err: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find any information about mpc8xxx.&lt;/P&gt;&lt;P&gt;Is it that I did not open the driver for mpc8xxx correctly? But I have already followed the manual completely.&lt;/P&gt;&lt;P&gt;my lsdk version is 18.03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question : How can I create a GPIO interrupt in the driver layer? I did not find any information about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 06:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/LS1046-GPIO-interrupt/m-p/945402#M8297</guid>
      <dc:creator>shijj</dc:creator>
      <dc:date>2019-07-19T06:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: LS1046 GPIO interrupt</title>
      <link>https://community.nxp.com/t5/QorIQ/LS1046-GPIO-interrupt/m-p/945403#M8298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Check your Linux BSP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;The following message dump happens on the LS1046ARDB board if LSDK 1906 Linux BSP is used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio# echo 448 &amp;gt; export&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio# ls&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;export&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio448&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpiochip384&amp;nbsp; gpiochip416&amp;nbsp; gpiochip448&amp;nbsp; gpiochip480&amp;nbsp; unexport&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio# cd gpio448&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio/gpio448# echo both &amp;gt; edge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio/gpio448# cd ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio# more gpio448&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*** gpio448: directory ***&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;root@TinyDistro:/sys/class/gpio# more gpio448/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;gpio448/active_low&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*** gpio448/device: directory ***&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;gpio448/direction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;gpio448/edge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;both&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*** gpio448/power: directory ***&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;*** gpio448/subsystem: directory ***&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;gpio448/uevent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;gpio448/value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;::::::::::::::&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 06:22:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/QorIQ/LS1046-GPIO-interrupt/m-p/945403#M8298</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2019-07-22T06:22:32Z</dc:date>
    </item>
  </channel>
</rss>

