linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Frias <sf84@laposte.net>
To: devicetree@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>
Cc: Mason <slash.tmp@free.fr>
Subject: ARM,SoC: About the use DT-defined properties by 3rd-party drivers
Date: Wed, 24 Aug 2016 16:29:02 +0200	[thread overview]
Message-ID: <57BDAF2E.10502@laposte.net> (raw)

Hi,

Given a SoC and its SDK, 3rd party users of said SoC (customers of the SoC's
manufacturer) may need/want to write kernel modules.
Since the DT describes the HW, it would make sense to expose some HW properties
through the DT, and have 3rd party users rely on them to write their drivers in
a generic way.
However, it seems that one is not allowed to upstream DT bindings and
properties without a driver, is that right?

If true, that hampers DT usage by out-of-tree drivers (or in this case,
drivers that are not written yet) and limits the usage of DT properties as an
API.

We can understand that DT maintainers want to know what goes upstream,
make sure that the bindings are documented, that there are no conflicts with
other bindings or generic strings, etc.
However, it is hard to see why there is not a "relaxed" upstreaming path
for SoC-specific properties (i.e.: that do not affect DT API nor other
SoCs).

As an example, we would like to add some properties to /soc/ like:

   soc {
       compatible = "simple-bus";
       ...
       sigma-register-layout-version = <2>;
       sigma-has-XYZ-capability;

and so on.

If this is really not possible, it forces the SoC manufacturer to expose
those properties in a different way, thus wasting a (seemingly) perfectly
fine way of doing so: the DT and its documentation.

Thoughts?

By the way, what about properties generated on-the-fly by the bootloader?

Thanks in advance.
Best regards,

Sebastian

             reply	other threads:[~2016-08-24 14:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24 14:29 Sebastian Frias [this message]
2016-08-28 20:36 ` ARM,SoC: About the use DT-defined properties by 3rd-party drivers Timur Tabi
2016-09-12 12:29   ` Sebastian Frias
2016-09-12 12:38     ` Mark Rutland
2016-09-12 13:15       ` Sebastian Frias
2016-09-12 13:23         ` Timur Tabi
2016-09-12 14:01         ` ARM, SoC: " Mark Rutland
2016-09-12 14:26           ` Warner Losh
2016-09-12 16:29             ` Sebastian Frias
2016-09-12 16:45               ` Warner Losh
2016-09-12 16:49                 ` Timur Tabi
2016-09-12 17:07                   ` Mark Rutland
2016-09-12 17:06                 ` Mark Rutland
2016-09-12 16:07           ` Sebastian Frias
2016-09-12 16:21             ` Timur Tabi
2016-09-12 16:26             ` Sebastian Frias
2016-09-12 16:56             ` Mark Rutland
2016-09-13 10:04               ` Sebastian Frias
2016-09-13 11:37                 ` Timur Tabi
2016-09-13 13:23                   ` Mark Rutland
2016-09-13 13:12                 ` Mark Rutland
2016-09-13 14:22                   ` Sebastian Frias
2016-09-13 14:51                     ` Mark Rutland
2016-09-14  8:32                       ` Sebastian Frias
2016-09-13 14:55                   ` Sebastian Frias
2016-09-13 15:47                     ` Mark Rutland
2016-09-14  8:24                       ` Sebastian Frias

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=57BDAF2E.10502@laposte.net \
    --to=sf84@laposte.net \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=slash.tmp@free.fr \
    /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).