<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr"><div class="gmail_default" style>On Wed, Dec 19, 2012 at 10:16 AM, Dmitry Torokhov <span dir="ltr"><<a href="mailto:dmitry.torokhov@gmail.com" target="_blank">dmitry.torokhov@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Dec 19, 2012 at 12:57:22PM +0000, Grant Likely wrote:<br>
> On Fri, 14 Dec 2012 17:43:31 -0800, Dmitry Torokhov <<a href="mailto:dmitry.torokhov@gmail.com">dmitry.torokhov@gmail.com</a>> wrote:<br>
> > On Saturday, December 15, 2012 01:13:45 AM Grant Likely wrote:<br>
> > > On Wed, 12 Dec 2012 13:33:48 -0800, Simon Glass <<a href="mailto:sjg@chromium.org">sjg@chromium.org</a>> wrote:<br>
> > > > Use the key-matrix layer to interpret key scan information from the EC<br>
> > > > and inject input based on the FDT-supplied key map. This driver registers<br>
> > > > itself with the ChromeOS EC driver to perform communications.<br>
> > > ><br>
> > > > Additional FDT bindings are provided to specify rows/columns and the<br>
> > > > auto-repeat information.<br>
> > > ><br>
> > > > Signed-off-by: Simon Glass <<a href="mailto:sjg@chromium.org">sjg@chromium.org</a>><br>
> > > > Signed-off-by: Luigi Semenzato <<a href="mailto:semenzato@chromium.org">semenzato@chromium.org</a>><br>
> > > > Signed-off-by: Vincent Palatin <<a href="mailto:vpalatin@chromium.org">vpalatin@chromium.org</a>><br>
> > > > ---<br>
> > > ><br>
> > > > .../devicetree/bindings/input/cros-ec-keyb.txt | 77 ++++<br>
> > > > drivers/input/keyboard/Kconfig | 10 +<br>
> > > > drivers/input/keyboard/Makefile | 1 +<br>
> > > > drivers/input/keyboard/cros_ec_keyb.c | 413<br>
> > > > ++++++++++++++++++++ 4 files changed, 501 insertions(+), 0 deletions(-)<br>
> > > > create mode 100644<br>
> > > > Documentation/devicetree/bindings/input/cros-ec-keyb.txt<br>
> > > > create mode 100644 drivers/input/keyboard/cros_ec_keyb.c<br>
> > > ><br>
> > > > diff --git a/Documentation/devicetree/bindings/input/cros-ec-keyb.txt<br>
> > > > b/Documentation/devicetree/bindings/input/cros-ec-keyb.txt new file mode<br>
> > > > 100644<br>
> > > > index 0000000..67f51d8<br>
> > > > --- /dev/null<br>
> > > > +++ b/Documentation/devicetree/bindings/input/cros-ec-keyb.txt<br>
> > > > @@ -0,0 +1,77 @@<br>
> > > > +ChromeOS EC Keyboard<br>
> > > > +<br>
> > > > +Google's ChromeOS EC Keyboard is a simple matrix keyboard implemented on<br>
> > > > +a separate EC (Embedded Controller) device. It provides a message for<br>
> > > > reading +key scans from the EC. These are then converted into keycodes<br>
> > > > for processing +by the kernel.<br>
> > > > +<br>
> > > > +Required properties:<br>
> > > > +- compatible: "google,cros-ec-keyb"<br>
> > > > +- google,key-rows: Number of keyboard rows (must be <= 8)<br>
> > > > +- google,key-columns: Number of keyboard columns (must be <= 13)<br>
> > > > +- google,repeat-delay-ms: Key repeat delay in milliseconds<br>
> > > > +- google,repeat-rate-ms: Key repeat rate in milliseconds<br>
> > ><br>
> > > Hmmm, these should probably be in a common binding. Take a look at<br>
> > > the other input bindings and make a proposal for properties to add to<br>
> > > matrix-keymap.txt.<br>
> ><br>
> > Actually these are not essentia for bringup and can be set from userspace,<br>
> > so I'd say simply drop them.<br>
><br>
> Aren't they needed for a working keyboard? If so, I would really think<br>
> they should be set correctly without userspace intervention.<br>
<br>
</div></div>I am sorry if I was unclear, but I was actually talking about the last<br>
2: repeat-delay-ms and repeat-rate-ms. Input core has I believe sane<br>
defaults (250 msec delay, 33 cps autorepeat) and user can adjust if<br>
other rate is preferred.<br></blockquote><div><br></div><div style>I seems like I should remove these two, then.</div><div style><br></div><div style>It would be nice if we could keep these parameters so that the keyboard doesn't require user-space set up to work, but I understand and agree they are not essential. Regarding Grant's request to come up with a common binding, if I remove these then that is not needed, right?</div>
<div style><br></div><div style>Regards,</div><div style>Simon</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dmitry<br>
</font></span></blockquote></div><br></div></div></div>