From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932827Ab2LOBnt (ORCPT ); Fri, 14 Dec 2012 20:43:49 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:63219 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932396Ab2LOBnq (ORCPT ); Fri, 14 Dec 2012 20:43:46 -0500 From: Dmitry Torokhov To: Grant Likely Cc: Simon Glass , LKML , Samuel Ortiz , Luigi Semenzato , Vincent Palatin , Rob Herring , Rob Landley , Sourav Poddar , Felipe Balbi , Olof Johansson , Roland Stigge , Wolfram Sang , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH 5/5] Input: Add ChromeOS EC keyboard driver Date: Fri, 14 Dec 2012 17:43:31 -0800 Message-ID: <2990462.l5jY89jKQx@dtor-d630.eng.vmware.com> User-Agent: KMail/4.9.3 (Linux/3.7.0-rc7+; KDE/4.9.3; x86_64; ; ) In-Reply-To: <20121215011345.9D5973E0BEE@localhost> References: <1355348028-19017-1-git-send-email-sjg@chromium.org> <1355348028-19017-6-git-send-email-sjg@chromium.org> <20121215011345.9D5973E0BEE@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, December 15, 2012 01:13:45 AM Grant Likely wrote: > On Wed, 12 Dec 2012 13:33:48 -0800, Simon Glass wrote: > > Use the key-matrix layer to interpret key scan information from the EC > > and inject input based on the FDT-supplied key map. This driver registers > > itself with the ChromeOS EC driver to perform communications. > > > > Additional FDT bindings are provided to specify rows/columns and the > > auto-repeat information. > > > > Signed-off-by: Simon Glass > > Signed-off-by: Luigi Semenzato > > Signed-off-by: Vincent Palatin > > --- > > > > .../devicetree/bindings/input/cros-ec-keyb.txt | 77 ++++ > > drivers/input/keyboard/Kconfig | 10 + > > drivers/input/keyboard/Makefile | 1 + > > drivers/input/keyboard/cros_ec_keyb.c | 413 > > ++++++++++++++++++++ 4 files changed, 501 insertions(+), 0 deletions(-) > > create mode 100644 > > Documentation/devicetree/bindings/input/cros-ec-keyb.txt > > create mode 100644 drivers/input/keyboard/cros_ec_keyb.c > > > > diff --git a/Documentation/devicetree/bindings/input/cros-ec-keyb.txt > > b/Documentation/devicetree/bindings/input/cros-ec-keyb.txt new file mode > > 100644 > > index 0000000..67f51d8 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/input/cros-ec-keyb.txt > > @@ -0,0 +1,77 @@ > > +ChromeOS EC Keyboard > > + > > +Google's ChromeOS EC Keyboard is a simple matrix keyboard implemented on > > +a separate EC (Embedded Controller) device. It provides a message for > > reading +key scans from the EC. These are then converted into keycodes > > for processing +by the kernel. > > + > > +Required properties: > > +- compatible: "google,cros-ec-keyb" > > +- google,key-rows: Number of keyboard rows (must be <= 8) > > +- google,key-columns: Number of keyboard columns (must be <= 13) > > +- google,repeat-delay-ms: Key repeat delay in milliseconds > > +- google,repeat-rate-ms: Key repeat rate in milliseconds > > Hmmm, these should probably be in a common binding. Take a look at > the other input bindings and make a proposal for properties to add to > matrix-keymap.txt. Actually these are not essentia for bringup and can be set from userspace, so I'd say simply drop them. Thanks. -- Dmitry