From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <9e4733910809121343q641f4204pccf6ae110fbd6a04@mail.gmail.com> Date: Fri, 12 Sep 2008 16:43:22 -0400 From: "Jon Smirl" To: linuxppc-dev Subject: Device treee syntax for expanding mpc5200 gpios MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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