Easy GPIO and LED device tree

98 views
Skip to first unread message

no...@nomel.org

unread,
Sep 4, 2013, 5:12:40 AM9/4/13
to beagl...@googlegroups.com
Hello,

I've created two sets of device tree files.

One for easy runtime gpio muxing:

And one to enable the gpio-led interface on any gpio:


For a quick example, it only takes two lines to set up P9.16 to show cpu activity:
echo led-P9.16 > /sys/devices/bone_capemgr.*/slots
echo cpu0 > trigger /sys/class/leds/leds:P9.16/trigger

See the readme files for examples.


Reply all
Reply to author
Forward
0 new messages