linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Device treee syntax for expanding mpc5200 gpios
@ 2008-09-12 20:43 Jon Smirl
  2008-09-15  2:40 ` David Gibson
  2008-09-15 13:02 ` Anton Vorontsov
  0 siblings, 2 replies; 5+ messages in thread
From: Jon Smirl @ 2008-09-12 20:43 UTC (permalink / raw)
  To: linuxppc-dev

I need to implement some more of the mpc5200's gpio capabilities.

Right now we have:
gpios = <&gpio_wkup 0 0>;
first cell is index into the bank, and second is unused.

What do we need to fully describe a mpc5200 gpio?

1) open drain: 1 enable
2) interrupt: 0 no int, 1 simple, 2 wakeup, 3 both
3) interrupt type: 0 any transition, 1 rising, 2 falling, 3 pulse

A gpio pin would then have four cells?

Or should all of this be encoded into a single cell so that the
existing two cell syntax can be preserved?

--
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-15 13:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 20:43 Device treee syntax for expanding mpc5200 gpios Jon Smirl
2008-09-15  2:40 ` David Gibson
2008-09-15  2:59   ` Jon Smirl
2008-09-15 13:02 ` Anton Vorontsov
2008-09-15 13:16   ` Jon Smirl

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).