Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757429Ab3FTJGh (ORCPT ); Thu, 20 Jun 2013 05:06:37 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:59117 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757310Ab3FTJGd (ORCPT ); Thu, 20 Jun 2013 05:06:33 -0400 From: Arnd Bergmann To: Chao Xie Subject: Re: [PATCH V3 5/5] input: pxa27x-keypad: add device tree support Date: Thu, 20 Jun 2013 11:06:20 +0200 User-Agent: KMail/1.12.2 (Linux/3.8.0-22-generic; KDE/4.3.2; x86_64; ; ) Cc: Marek Vasut , stefan@openezx.org, Eric Miao , slapin@ossfans.org, Dmitry Torokhov , "linux-kernel@vger.kernel.org" , Haojian Zhuang , Chao Xie , laforge@openezx.org, linux-input@vger.kernel.org, sleep_walker@suse.cz, Robert Jarzmik , drwyrm@gmail.com, "linux-arm-kernel@lists.infradead.org" References: <1371527778-5236-1-git-send-email-chao.xie@marvell.com> <20130619111341.GH2426@book.gsilab.sittig.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201306201106.20764.arnd@arndb.de> X-Provags-ID: V02:K0:DNUQMyZ+Y6ngm3yxKBXh0Tyu0w0rV2QBtyiyuMcR9sb a3O6B5eAg++Jcm3aYpuKyuR8e0SOgnJXC5i2mjLi5S0shBG+SZ 5k/3TV3UeAss6KvNTRSRIfWti5kB/aDGJ7cRM839pgd2BjRSrL rgWs/ocrBIHlIKZ6wdxULNNxzbGco6lUDqpIvABVM9FdNXSZii iKHeNOzp/HNLEsBLa6LIacEhMR1eR0SREm2CpJkNiBayo0nuv1 tj/CHWjUMgBTdQfjgPuRAEMYENsljjBFPTAg7KUCp30x4iiMPO 5grmThXQ3DJSlewnFDAe2s3TPUvuJ2guFYskqWi79jSC/gLAbs PERnA2f93328uLytaN8o= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2265 Lines: 51 On Thursday 20 June 2013, Chao Xie wrote: > On Wed, Jun 19, 2013 at 7:13 PM, Gerhard Sittig wrote: > > On Wed, Jun 19, 2013 at 16:38 +0800, Chao Xie wrote: > >> > >> On Wed, Jun 19, 2013 at 4:22 PM, Marek Vasut wrote: > >> > > >> >> Signed-off-by: Chao Xie > >> >> [ ... ] > >> >> +++ b/Documentation/devicetree/bindings/input/pxa27x-keypad.txt > >> >> @@ -0,0 +1,60 @@ > >> >> +* Marvell PXA Keypad controller > >> >> + > >> >> +Required Properties > >> >> +- compatible : should be "marvell,pxa27x-keypad" > >> >> +- reg : Address and length of the register set for the device > >> >> +- interrupts : The interrupt for the keypad controller > >> >> +- marvell,debounce-interval : How long time the key will be > >> > > >> > Is there no generic prop name for this debounce interval? > >> > > >> I searched at drivers/input and Documents. > >> Two drivers use "debounce-interval", gpio-keys.c and stmpe-keypad.c. > >> They describe the meanings of "debounce-interval" at its own document file. > >> Some other drivers uses "xxx,debounce-delay-ms" or "debounce-delay-ms" > >> So it seems that there is no generic prop name for this debounce interval. > > > > Actually there is, but under a different (more user friendly) > > name: See the 'debounce-delay-ms' property in > > Documentation/devicetree/bindings/input/gpio-matrix-keypad.txt > > which gets referenced in the matrix_keypad_parse_dt() routine in > > the drivers/input/keyboard/matrix_keypad.c source file. Ah, your > > last sentence mentions that fact. > > > > But when you introduce DT support into an existing driver which > > previously used platform data, then there is no problem with > > backwards compatibility in .dts files. So I suggest to go with > > the "debounce-delay-ms" name since it better reflects to the .dts > > author (hardware engineer) which unit the number is supposed to > > be specified in. > > > So Arnd > What do you think? I am fine with either one. debounce-delay-ms Arnd -- 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/