public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] cros-ec-keyboard: Synchronize DT binding from linux
Date: Tue, 16 Dec 2014 09:03:37 +0100	[thread overview]
Message-ID: <1418717017.5286.28.camel@collabora.co.uk> (raw)
In-Reply-To: <20141215223429.GB27866@amd>

On Mon, 2014-12-15 at 23:34 +0100, Pavel Machek wrote:
> On Thu 2014-11-27 16:34:08, Sjoerd Simons wrote:
> > The ChromeOS EC keyboard is used by various different chromebooks. Peach
> > pi being the third board in the u-boot tree to use it (snow and peach
> > pit the other two). Rather then embedding the same big DT node in the
> > peach-pi DT again, copy the dtsi snippit & bindings documentation from
> > linux and include it in all 3 boards.
> > 
> > This slightly changes the dt bindings in u-boot:
> ...
> >   * google,repeat-delay-ms and google,repeat-rate-ms are no longer used
> >     and replaced by hardcoded values (similar to tegra kbc)
> 
> If more than one board needs this (and it clearly does) it would be
> good to make the binding "official"...? I guess that means talking to
> linux Documentation/devicetree maintainers...

Device tree is for describing hardware, while repeat rate & delay are
user preferences, not something inherent to the hardware. As such, those
properties do not belong in device-tree in the first place.

Fwiw, Linux by default uses a delay of 250ms and a period of 33ms unless
the driver handles auto-repeat (e.g. for PS2 which does repeat in
hardware). If your goal is to fix the hardcoding of these values in
various drivers, it's probably better to make u-boot input core have
sane defaults for repeat rather then pushing it out into device-tree.

-- 
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Collabora Ltd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6170 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141216/9cb516a5/attachment.bin>

  reply	other threads:[~2014-12-16  8:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-27 15:34 [U-Boot] [PATCH] cros-ec-keyboard: Synchronize DT binding from linux Sjoerd Simons
2014-11-30 18:58 ` Simon Glass
2014-12-15 22:34 ` Pavel Machek
2014-12-16  8:03   ` Sjoerd Simons [this message]
2014-12-18  3:41     ` Simon Glass
2014-12-29 22:05       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418717017.5286.28.camel@collabora.co.uk \
    --to=sjoerd.simons@collabora.co.uk \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox