Thanks Charles. Read this last night, and been meaning to thank you for the information. But kept getting sidetracked . .. gpio-of-helper, I have not been able to find decent documentation on that, but I have not looked recently. Probably somewhere in linux/documentation/ . . .
On Wed, Jul 27, 2016 at 6:00 AM, Charles Steinkuehler < char...@steinkuehler.net> wrote: > 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 > char...@steinkuehler.net > > -- > 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 beagleboard+unsubscr...@googlegroups.com. > 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. > -- 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 beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORp6v2fP1KiTok3COnZ-6opvURcmr1k0ioDmRcjaMP4Z3w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.