From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by ozlabs.org (Postfix) with ESMTP id C99ACDDDF9 for ; Thu, 20 Sep 2007 01:09:04 +1000 (EST) Received: by rv-out-0910.google.com with SMTP id c27so187870rvf for ; Wed, 19 Sep 2007 08:09:03 -0700 (PDT) Message-ID: Date: Wed, 19 Sep 2007 09:09:03 -0600 From: "Grant Likely" Sender: glikely@secretlab.ca To: "S. Fricke" Subject: Re: Configuration-Problem ext-interrupt on mpc52xx In-Reply-To: <20070919115952.GF5682@sfrouter> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <20070919115952.GF5682@sfrouter> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 9/19/07, S. Fricke wrote: > Hi, > > how can i configure an "ext interrupt" to high-level? I want a interruption on > IRQ2, but I checked with an oscilloscope that the pin has a low state and I > needs a high state. > > I have tried, after I got the irq (with irq_of_parse_and_map), set it with > > set_irq_type(irq, IRQ_TYPE_LEVEL_HIGH); > > But I think it is a system-configuration (irq_desc) and no > device-configuration. You shouldn't need to do this. You set your sense level in the device tree. >>From your previous email, your device node looks like this: > intpin@0 { > interrupt-parent = <500>; > interrupts = <1 2 2>; > }; Which is IRQ2, EDGE_FALLING. If you change your interrupts property to <1 2 0>, then your sense is set to LEVEL_HIGH. (Seriously, you need to read the interrupts section of Documentation/powerpc/mpc52xx-device-tree-bindings.txt.) g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195