devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Jonathan Corbet <corbet-T1hC0tSOHrs@public.gmane.org>
Cc: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
	ksummit-2013-discuss-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Subject: Re: [Ksummit-2013-discuss] [ATTEND] Handling of devicetree bindings
Date: Mon, 15 Jul 2013 23:07:36 +0200	[thread overview]
Message-ID: <CACRpkdaEswVPNqwQkMjsNWutCpOQxgMeGwsgemsF4SSZxXMocQ@mail.gmail.com> (raw)
In-Reply-To: <20130715082915.5142547a-T1hC0tSOHrs@public.gmane.org>

On Mon, Jul 15, 2013 at 4:29 PM, Jonathan Corbet <corbet-T1hC0tSOHrs@public.gmane.org> wrote:

> Do we need a kernel summit discussion, or do we just need a good
> document?  Or, to phrase the question another way, are we lacking a
> consensus among the clueful regarding how device tree bindings should be
> designed, or are we simply lacking education?

I think both. I fear some maintainers do not know enough about
the subject to know if a binding should be rejected.

We have for example:
Documentation/devicetree/usage-model.txt

But this does not at all qualify anyone to judge (dredd) the
validity of some new $binding. It's not kerneldoc, where
everything is pretty easy to understand, it is way more
complex.

It looks simple to begin with: registers, IRQs, compatible
strings ... then all of a sudden: how many #foo-cells should
this have?  0, 1 or 4? foo: bar@12345 {} what naming
convention should be used here? What is an alias? Basically
you have to know it all to properly review that.

The recent discussions about clock bindings is a good
example. Or the fact that we do not have common
pin control binings because it was simply too hard
to get people to agree: I got the committe work dumped
in my knee and I did a bad job at it too. :-(

Part of the problem with both major hardware description
languages (ACPI and devicetree) is that the developers using
either variant appear to be clueless of the other. What makes
devicetree more dangerous than ACPI is that the kernel
maintainers define it, it is not being given from the outside.

Yours,
Linus Walleij

  parent reply	other threads:[~2013-07-15 21:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130713192647.GA3798@katana>
     [not found] ` <20130713204927.GA1124@roeck-us.net>
     [not found]   ` <20130713204927.GA1124-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2013-07-13 23:46     ` [Ksummit-2013-discuss] [ATTEND] Handling of devicetree bindings Linus Walleij
     [not found]       ` <CACRpkdaJ5podVCrb7XuhhGF0Oco+eLrFH0EVGZM0MBbGP9m7WQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-14 18:13         ` Guenter Roeck
     [not found]           ` <20130714181331.GC26513-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2013-07-15  8:36             ` Linus Walleij
     [not found]               ` <20130715082915.5142547a@lwn.net>
     [not found]                 ` <20130715082915.5142547a-T1hC0tSOHrs@public.gmane.org>
2013-07-15 14:59                   ` Guenter Roeck
2013-07-15 21:07                   ` Linus Walleij [this message]
     [not found]                     ` <CACRpkdaEswVPNqwQkMjsNWutCpOQxgMeGwsgemsF4SSZxXMocQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-20  5:51                       ` Grant Likely
     [not found]                     ` <20130719154004.GA3081@katana>
2013-07-21  7:42                       ` Guenter Roeck
2013-07-15 16:56         ` Greg KH
     [not found]           ` <20130715165620.GA29040-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-07-15 17:06             ` Mark Brown
     [not found]               ` <20130715170600.GW11538-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-07-15 18:41                 ` Greg KH
     [not found]                   ` <20130715184157.GB17220-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2013-07-15 19:58                     ` Mark Brown
2013-07-15 18:50             ` David Woodhouse
     [not found]               ` <1373914227.2128.24.camel-Fexsq3y4057IgHVZqg5X0TlWvGAXklZc@public.gmane.org>
2013-07-20  5:48                 ` Grant Likely
2013-07-20 16:16                 ` Linus Walleij
2013-07-21  8:05 Chaiken, Alison
     [not found] ` <60BA5429A0E1584BA3633194F6F993B502AF6D65-0dz9ie/QGrnnlEkxMdpx1dQH9K4/4qFeAL8bYrjMMd8@public.gmane.org>
2013-07-21 11:33   ` Linus Walleij
2013-07-21 16:53   ` David Woodhouse
     [not found]     ` <60BA5429A0E1584BA3633194F6F993B502B10DBC@NA-MBX-03.mgc.mentorg.com>
2013-07-22  6:37       ` Chaiken, Alison

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=CACRpkdaEswVPNqwQkMjsNWutCpOQxgMeGwsgemsF4SSZxXMocQ@mail.gmail.com \
    --to=linus.walleij-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=corbet-T1hC0tSOHrs@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=ksummit-2013-discuss-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).