How to set GPIO state in the dts or in platform
    Bill Gatliff 
    bgat at billgatliff.com
       
    Wed Jan  6 15:38:50 EST 2010
    
    
  
Ayman El-Khashab wrote:
> I've got a custom board akin to the walnut.  I've successfully got
> u-boot,
> the kernel, and a working filesystem.  The only thing I lack is a
> clear idea
> of how to set a GPIO.
Isn't that the "flags" parameter, e.g.:
gpios = <phandle gpioid flags>
?
If you are passing a 0 for the flags, try a 1.  I know of at least one
driver that interprets that to mean a polarity inversion.  Maybe you'll
get lucky.  :)
b.g.
-- 
Bill Gatliff
Embedded systems training and consulting
http://billgatliff.com
bgat at billgatliff.com
    
    
More information about the Linuxppc-dev
mailing list