>
> *configure a few GPIOs for my application. Is this something that can be
> accomplished entirely via DTB?*
>
> *         # cd /sys/class/gpio*
>
> *         # echo 50 > export*
> *         # echo 115 > export*
> *         # echo out > gpio50/direction*
> *         # echo out > gpio115/direction*
>
> *         # echo 1 > gpio50/value*
> *         # echo 1 > gpio115/value*
>
> *         # echo 0 > gpio50/value*
> *         # echo 0 > gpio115/value*
>
> * That is, setting which GPIOs are enabled, setting their direction, and
> setting their output state?*
>
> * Thanks,*
>

Yes, it can be done. I thought you had all this down before ? You can
configure what mode the pin is actually used for - The several different
peripheral types per pin, or GPIO + pull up/down or neither, and pin
direction.

On Sun, Apr 3, 2016 at 4:52 PM, John Syne <[email protected]> wrote:

> Why not do it in your applications?
>
> http://derekmolloy.ie/kernel-gpio-programming-buttons-and-leds/
>
> Regards,
> John
>
>
>
>
> > On Apr 3, 2016, at 4:14 PM, Rick Mann <[email protected]> wrote:
> >
> > I configure a few GPIOs for my application. Is this something that can
> be accomplished entirely via DTB?
> >
> >       # cd /sys/class/gpio
> >
> >       # echo 50 > export
> >       # echo 115 > export
> >       # echo out > gpio50/direction
> >       # echo out > gpio115/direction
> >
> >       # echo 1 > gpio50/value
> >       # echo 1 > gpio115/value
> >
> >       # echo 0 > gpio50/value
> >       # echo 0 > gpio115/value
> >
> > That is, setting which GPIOs are enabled, setting their direction, and
> setting their output state?
> >
> > Thanks,
> >
> > --
> > Rick Mann
> > [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].
> > 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 [email protected].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to