devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Srinivas KANDAGATLA <srinivas.kandagatla-qxv4g6HH51o@public.gmane.org>
Cc: "linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Mauro Carvalho Chehab
	<m.chehab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	"linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org"
	<rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
	Pawel Moll <Pawel.Moll-5wv7dgnIgG8@public.gmane.org>,
	Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>,
	Ian Campbell
	<ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org>,
	Rob Landley <rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org>,
	"grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org"
	<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v3] media: st-rc: Add ST remote control driver
Date: Wed, 18 Sep 2013 15:12:52 +0100	[thread overview]
Message-ID: <20130918141252.GA17453@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <52397C51.1020608-qxv4g6HH51o@public.gmane.org>

On Wed, Sep 18, 2013 at 11:11:29AM +0100, Srinivas KANDAGATLA wrote:
> Thanks Mark,
> 
> On 16/09/13 15:10, Mark Rutland wrote:
> >> +
> >> > +Required properties:
> >> > +       - compatible: should be "st,comms-irb".
> > This should probably say "should contain" rather than "should be". There
> > may be future vairants of this device, which will also have a more
> > specific compatible string.
> Ok, will change it to the suggest.
> > 
> >> > +       - reg: base physical address of the controller and length of memory
> >> > +       mapped  region.
> >> > +       - interrupts: interrupt number to the cpu. The interrupt specifier
> >> > +       format depends on the interrupt controller parent.
> > I don't like the phrase "interrupt number to the cpu". We already have
> > the term interrupt-specifier to precisely define this. How about:
> > 
> > - interrupts: interrupt-specifier for the sole interrupt generated by
> >               the device.
> > 
> TBH, I did copy them from one of the existing bindings docs.
> I will change it.

There's a lot of inconsistency with existing docs, it would be nice to
use consistent, correct terminology going forward :)

> >> > +
> >> > +Optional properties:
> >> > +       - rx-mode: can be "infrared" or "uhf".
> >> > +       - tx-mode: should be "infrared".
> > Are these required to use rx/tx?
> Yes, these are required for driver to be in rx/tx mode.
> 
> One of them can be optional depending on the board setup.
> So, Is it ok to move such properties to required properties section?

I'd probably just make a note on each stating what they mean (i.e. that
rx-mode should be present iff the rx pins are wired up).

> > 
> > If you don't have a tx-mode or rx-mode, I assume you can't do
> > anything...
> Yes, driver errs out.
> > 
> >> > +       - pinctrl-names, pinctrl-0: the pincontrol settings to configure
> >> > +       muxing properly for IRB pins.
> > If we're expecting names, the names we expect should be defined.
> > 
> >> > +       - clocks : phandle of clock.
> > This is not just a phandle. This is a phandle + clock-specifier pair.
> Yep, will change it.

Cheers.

Mark.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2013-09-18 14:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 12:06 [PATCH v3] media: st-rc: Add ST remote control driver Srinivas KANDAGATLA
     [not found] ` <1377778012-873-1-git-send-email-srinivas.kandagatla-qxv4g6HH51o@public.gmane.org>
2013-09-16 14:10   ` Mark Rutland
     [not found]     ` <20130916141049.GE30650-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-09-18 10:11       ` Srinivas KANDAGATLA
     [not found]         ` <52397C51.1020608-qxv4g6HH51o@public.gmane.org>
2013-09-18 14:12           ` Mark Rutland [this message]

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=20130918141252.GA17453@e106331-lin.cambridge.arm.com \
    --to=mark.rutland-5wv7dgnigg8@public.gmane.org \
    --cc=Pawel.Moll-5wv7dgnIgG8@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org \
    --cc=linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=m.chehab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
    --cc=rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org \
    --cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
    --cc=srinivas.kandagatla-qxv4g6HH51o@public.gmane.org \
    --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@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).