From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: Using PXA arm board with MAX7319 GPIO expander input Date: Tue, 9 Feb 2010 07:39:03 +0000 Message-ID: <20100209073903.4d8a00e4@taxman.wild-wind.fr.eu.org> References: <20100208113306.GN9007@buzzloop.caiaq.de> <6a1db73cb6c89001764393acd766f2ba.squirrel@www.loen.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from inca-roads.misterjones.org ([213.251.177.50]:41619 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297Ab0BIHjO (ORCPT ); Tue, 9 Feb 2010 02:39:14 -0500 In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Eric Miao Cc: Daniel Mack , Jebediah Huang , linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org On Tue, 9 Feb 2010 09:05:22 +0800 Eric Miao wrote: > On Mon, Feb 8, 2010 at 8:32 PM, Marc Zyngier wrote: > >> I just saw that there is indeed no support for irq line handling in this > >> driver. In order to use these lines as input for something like the > >> gpio_keys driver, support for that should be added. I never used this > >> driver and can't say whether it is under active development. > > > > It should be rather easy to introduce something similar to what I did for > > the pca953x driver (http://patchwork.kernel.org/patch/77418/) > > > > MAX732x seems a lot saner than PCA953x, as it has at least a hardware > > interrupt mask... > > Well, I'd say max732x is a chip of heavy simplification, input/output direction > of each pin is normally hardcoded, depending on the chip model used, there > seems no such interrupt mask registers for SW use really. I'm currently staring at the max7319 datasheet, and it really looks like there is such a register: "All input ports are continuously monitored for state changes (transition detection). Transitions are latched, allowing detection of transient changes. Any combination of inputs can be selected using the interrupt mask to assert the INT output. When the MAX7319 is subsequently accessed through the serial interface, any pending interrupt is cleared." So it would seems (although I agree with you that max732x as a GPIO expander is grossly simplified) that the feature is at least advertised. M. -- I'm the slime oozin' out from your TV set...