On 7/27/2016 12:33 AM, William Hermans wrote:
> Charles,
> 
> Is there a way through modifying your overlay files to put an output pin in a 
> specific state as the overlay file is loaded ? I noticed one can change input 
> to 
> output as needed in fragment@2. But do not see a way to change pin state. 
> unless 
> if it'll work if i replace "input" with hi, or low ? I've replaced with 
> "output" 
> and that works . . . e.g.
>
> P8_07 {
>                      gpio-name = "P8_07";
>                      gpio = <&gpio2 2 0>;
>                      dir-changeable;
> };

The pin exporting is done by the gpio-of-helper kernel module, so you
can use anything that driver understands, like init-high or init-low:

P8_07 {
                     gpio-name = "P8_07";
                     gpio = <&gpio2 2 0>;
                     output;
                     init-high;
};

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/27596900-6b9a-88fb-25b3-79427dd4758d%40steinkuehler.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to