Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946370AbbHGWRz (ORCPT ); Fri, 7 Aug 2015 18:17:55 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:45117 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946271AbbHGWRy (ORCPT ); Fri, 7 Aug 2015 18:17:54 -0400 Date: Sat, 8 Aug 2015 00:10:52 +0200 From: Andrew Lunn To: raghu MG Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Sebastian Hesselbarth Subject: Re: Armadaxp GPIO interrupts Message-ID: <20150807221052.GJ26884@lunn.ch> References: <20150804153439.GA28673@lunn.ch> <20150805162155.GE32760@lunn.ch> <20150806132926.GB19896@lunn.ch> <20150806171312.GI13421@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 35 On Sat, Aug 08, 2015 at 02:24:04AM +0530, raghu MG wrote: > Hi Andrew, > I added these entries into armada-xp-gp.dtb > gpio_rtm { > compatible = "gpio-rtm"; > #address-cells = <1>; > #size-cells = <0>; > pinctrl-0 = <&keys_pin>; > pinctrl-names = "default"; > > rtm@57 { > label = "RTM JACKINOUT"; > gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; /* GPIO 57 */ > }; > }; > > So I understand the leaf nodes are specific purpose of > GPIOs(input:keyboard,mouse,touchpad etc). > 1)For the board I am working needs different implementation for GPIO > 57 unlike input devices drivers driving GPIOs. > 2)To implement the functionality I need to write driver specific to my > board which will implement event specific to requirements. > I hope I am going right here, can you name a simple driver(kernel > source) where it would make my driver development easy. Given the name "RTM JACKINOUT", how about sound/soc/soc-jack.c Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/