<?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: Interrupt from VBUSVALID on i.mx28</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480681#M76564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved the problem last week by using the irq_of_parse_and_map() function to retreive the interrupt from the device tree and getting the corresponding virtual interrupt number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just took a look at your code and our device trees are a match. The way you requests interrupts is a bit different, but i think it will work just fine. If you do have any problems requesting interrupts, maybe try the above function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please note that when i started this thread i had no idea what the device tree was, so do not take anything i say as gospel :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 10:11:15 GMT</pubDate>
    <dc:creator>asmushansen</dc:creator>
    <dc:date>2016-02-16T10:11:15Z</dc:date>
    <item>
      <title>Interrupt from VBUSVALID on i.mx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480677#M76560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running a vanilla linux kernel(4.1.13) on the i.mx28 and i would like to add battery backup to my system. When i disconnect the 5V supply, the PMU is using the battery to supply the processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i reconnect the 5V nothing happens. I would like to enable the VBUSVALID interrupt, such that i can start the DC DC converter from the IRQ routine, and log the event. I have written a kernel module which should handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PMU application node section &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;3.1.2.3 the process of enabling the interrupt is described. I do this in the initialization of the kernel module, and when i try to generate my interrupt, either by reconnecting the 5V supply or generating a software interrupt by writing a 1 to the HW_ICOLL_INTERRUPT6[SOFTIRQ] i get the following message on my debugger: unexpected IRQ trap at vector 00.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;After this linux halts and restarts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;I suspect that i have overlooked something in the setup of the interrupt. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 10:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480677#M76560</guid>
      <dc:creator>asmushansen</dc:creator>
      <dc:date>2016-02-02T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt from VBUSVALID on i.mx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480678#M76561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding the PMU hardware, everything looks OK. Most likely, you didn't configure the interrupt handler routine/vector correctly. For more information, please refer to the Chapter 3 "Machine Specific Layer (MSL)", especially, to the Section 3.1 "Interrupts", of the attached document.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 12:37:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480678#M76561</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2016-02-04T12:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt from VBUSVALID on i.mx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480679#M76562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Linux reference manual i'm told to use the irq_set_chip function before the request_irq function. However, i do not know shich parameters to set the irq_chip function to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions where i can see that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480679#M76562</guid>
      <dc:creator>asmushansen</dc:creator>
      <dc:date>2016-02-11T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt from VBUSVALID on i.mx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480680#M76563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asmus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can't recommend to use the MX28_EVK_Linux_Reference_Manual in your case because it referes to the ancient Kernel 2.6.35. Since this version there has been a lot of changes like introduction of device trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometime ago i also started implementing a &lt;A href="https://github.com/lategoodbye/linux-mxs-power/tree/dcdc-clk"&gt;kernel driver&lt;/A&gt; for the mxs power subsystem. Unfortunately i haven't finished it yet. Maybe it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to your problem please look at &lt;A href="https://github.com/lategoodbye/linux-mxs-power/blob/dcdc-clk/drivers/power/mxs_power.c"&gt;https://github.com/lategoodbye/linux-mxs-power/blob/dcdc-clk/drivers/power/mxs_power.c&lt;/A&gt; . The interrupt itself is defined in the device tree &lt;A href="https://github.com/lategoodbye/linux-mxs-power/blob/dcdc-clk/arch/arm/boot/dts/imx28.dtsi#L1061" title="https://github.com/lategoodbye/linux-mxs-power/blob/dcdc-clk/arch/arm/boot/dts/imx28.dtsi#L1061"&gt;linux-mxs-power/imx28.dtsi at dcdc-clk · lategoodbye/linux-mxs-power · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But beware i didn't test the VBUSVALID detection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of Linux mainline specific question i strongly recommend to post them on linux-arm-kernel mailing list. I would be happy if you share the final results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 18:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480680#M76563</guid>
      <dc:creator>lategoodbye</dc:creator>
      <dc:date>2016-02-15T18:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt from VBUSVALID on i.mx28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480681#M76564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I resolved the problem last week by using the irq_of_parse_and_map() function to retreive the interrupt from the device tree and getting the corresponding virtual interrupt number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just took a look at your code and our device trees are a match. The way you requests interrupts is a bit different, but i think it will work just fine. If you do have any problems requesting interrupts, maybe try the above function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please note that when i started this thread i had no idea what the device tree was, so do not take anything i say as gospel :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 10:11:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-from-VBUSVALID-on-i-mx28/m-p/480681#M76564</guid>
      <dc:creator>asmushansen</dc:creator>
      <dc:date>2016-02-16T10:11:15Z</dc:date>
    </item>
  </channel>
</rss>

