[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <52458774.1060909@st.com>
Date: Fri, 27 Sep 2013 14:26:12 +0100
From: Srinivas KANDAGATLA <srinivas.kandagatla@...com>
To: Mark Rutland <mark.rutland@....com>
Cc: "linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
"rob.herring@...xeda.com" <rob.herring@...xeda.com>,
Pawel Moll <Pawel.Moll@....com>,
Stephen Warren <swarren@...dotorg.org>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Rob Landley <rob@...dley.net>,
Mauro Carvalho Chehab <m.chehab@...sung.com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH RFC] media: rc: OF: Add Generic bindings for remote-control
On 27/09/13 12:34, Mark Rutland wrote:
>> > + - rx-mode: Can be "infrared" or "uhf". rx-mode should be present iff
>> > + the rx pins are wired up.
> I'm unsure on this. What if the device has multiple receivers that can
> be independently configured? What if it supports something other than
> "infrared" or "uhf"? What if a device can only be wired up as
> "infrared"?
>
> I'm not sure how generic these are, though we should certainly encourage
> bindings that can be described this way to be described in the same way.
>
>> > + - tx-mode: Can be "infrared" or "uhf". tx-mode should be present iff
>> > + the tx pins are wired up.
> I have similar concerns here to those for the rx-mode property.
>
Initially rx-mode and tx-mode sounded like more generic properties
that's the reason I ended up in this route. But after this discussion it
looks like its not really generic enough to cater all the use cases.
It make sense for me to perfix "st," for these properties in the st-rc
driver rather than considering them as generic properties.
> I think what we actually need to document is the process of creating a
> binding in such a way as to encourage uniformity. Something like the
> following steps:
I agree, It will help.. :-)
>
> 1. Look to see if a binding already exists. If so, use it.
>
> 2. Is there a binding for a compatible device? If so, use/extend it.
>
> 3. Is there a binding for a similar (but incompatible) device? Use it as
> a template, possibly factor out portions into a class binding if
> those portions are truly general.
>
> 4. Is there a binding for the class of device? If so, build around that,
> possibly extending it.
>
> 5. If there's nothing relevant, create a binding aiming for as much
> commonality as possible with other devices of that class that may
> have bindings later.
Thanks for this little guide...
--srini
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists