devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Iles <jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org>
To: Steffen Trumtrar <s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Jamie Iles <jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org>,
	delicious quinoa
	<delicious.quinoa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Dinh Nguyen <dinh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Grant Likely
	<grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Alan Tull <atull-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org>,
	"dinguyen-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org"
	<dinguyen-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org>
Subject: Re: gpio: dwapb: Synopsys Designware GPIO
Date: Thu, 31 Oct 2013 16:55:24 +0000	[thread overview]
Message-ID: <20131031165524.GB4572@page> (raw)
In-Reply-To: <20131031161739.GC28790-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>

On Thu, Oct 31, 2013 at 05:17:39PM +0100, Steffen Trumtrar wrote:
> On Thu, Oct 31, 2013 at 04:07:23PM +0000, Jamie Iles wrote:
> > The reason for having it split into banks is that for hardware that 
> > has a mixture of bank sizes (odd hardware admittedly, but that 
> > includes hardware that I was writing the driver for), we had a setup 
> > like 16 pins on bank A, 16 on B, 1 on C and 16 on D where each bank 
> > could have a maximum of 32, so converting from a data sheet to GPIO 
> > number is not obvious.  Grant Likely suggested representing the 
> > banks as different devices, so that's how I created the binding.
> > 
> 
> I have no problem with the binding, if it is worth it. Do you mean you had
> hardware where the gpio lines where not connected? Or maybe you had an older
> version of the IP core?

Not even unconnected, the IP was configured to have banks of varying 
width!  Perhaps it was something to do with the physical pads that they 
were connected to having different I/O standards or something.

> In the Socfpga case there is gpio_config_reg2, which specifies the width
> for every of the 4 ports. So I thought I use those values to describe my
> hardware. The Socfpga however only uses the first bank of its three GPIO cores,
> so I wouldn't be able to test if the code works for more than just that.

I think that if there was a guarantee that all banks apart from the last 
were configured to equal width then representing the controller as a 
single device would be right, but given that it isn't always the case 
then seperate devices for each bank is probably the most sensible.

That said I'd personally be happy either way to see the patches merged!

Jamie
--
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-10-31 16:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30 22:46 gpio: dwapb: Synopsys Designware GPIO Dinh Nguyen
     [not found] ` <52718C28.5030803-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-31  8:22   ` Steffen Trumtrar
     [not found]     ` <CADhT+wcCzMM1MbP3UuQbdc8JmpdO+AhM421R5AiC6vxyn-osvQ@mail.gmail.com>
     [not found]       ` <CADhT+wcCzMM1MbP3UuQbdc8JmpdO+AhM421R5AiC6vxyn-osvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-31 15:34         ` delicious quinoa
     [not found]           ` <CANk1AXRH8zDZFFWGn=NYrkhHrygeoeLQ9QNd6o7Wm6XHmT95pQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-31 15:58             ` Steffen Trumtrar
     [not found]               ` <20131031155803.GB28790-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-10-31 16:07                 ` Jamie Iles
2013-10-31 16:17                   ` Steffen Trumtrar
     [not found]                     ` <20131031161739.GC28790-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-10-31 16:55                       ` Jamie Iles [this message]
2013-10-31 17:21                       ` Sebastian Hesselbarth
     [not found]                         ` <527291AA.1030305-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-31 17:37                           ` Steffen Trumtrar

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=20131031165524.GB4572@page \
    --to=jamie-wmlquqddiekakbo8gow8eq@public.gmane.org \
    --cc=atull-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org \
    --cc=delicious.quinoa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=dinguyen-EIB2kfCEclfQT0dZR+AlfA@public.gmane.org \
    --cc=dinh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@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).