Yes. You can initially use universal IO to configure the pin(s), and then when it is time to sleep, use config-pin to change the pins direction, and / of value. There is also the /sys/class/gpio/* sysfs set of sub directories, but I'm unsure how one would use /sys/class/gpio/export, etc if the pin it already configured via a deice tree file. Perhaps the device tree file could take care of the mux mode only, and the sysfs gpio sub system could configure the rest ?
On Tue, May 31, 2016 at 10:33 AM, E Mag <e_...@live.ca> wrote: > Hi, > > Is there a way to set the GPIO pins into a specific state before entering > sleep mode on the BBB? I know you can set their configuration in the device > tree e.g.: > > wlan_pins_sleep: pinmux_wlan_pins_sleep { > pinctrl-single,pins = < > 0x28 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* > gpmc_ad10.gpio0_26 WL_EN*/ > 0x2C (PIN_INPUT_PULLUP | MUX_MODE7) /* > gpmc_ad11.gpio0_27 WL_IRQ*/ > 0x7C (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* > gpmc_csn0.gpio1_29 BF_EN*/ > >; > }; > > But is there a way to set a default output state for certain pins upon > entering sleep mode without involving the PRU? > > Thank you, > > -Eric > > -- > 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/edf610d9-3468-4ac0-abfe-4df1f8ccef0b%40googlegroups.com > <https://groups.google.com/d/msgid/beagleboard/edf610d9-3468-4ac0-abfe-4df1f8ccef0b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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/CALHSORoYWp1t2D_eVx3MSJAeKfTpk_-jX7SU-6qNg8xZLKEEOg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.