Device treee syntax for expanding mpc5200 gpios

Jon Smirl jonsmirl at gmail.com
Sat Sep 13 06:43:22 EST 2008


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 at gmail.com



More information about the Linuxppc-dev mailing list