#shamelessplug
I haven't tested with the 3.13 kernel, but this sounds like a good use
for my "universal" device tree overlay, which lets you setup and use
most of the hardware from user-space:
https://github.com/cdsteinkuehler/beaglebone-universal-io
You can switch pins between various functions like pwm, uart, and gpio
using a static device tree and entries in sysfs.
I've got a script[1] that makes this easy, so you can do things like:
./config-cape-universal P8.13 pwm
./config-cape-universal P9.24 uart
./config-cape-universal P9.26 high
The advantage of defining all the hardware in the same "overlay" is you
can mix and match pins, for instance using just the Tx or Rx side of the
UART, while using the other pin for a different function without having
to custom edit your own device tree file.
[1] Yes, config-cape-universal is a lousy name. Suggestions for a
better name are welcome!
--
Charles Steinkuehler
cha...@steinkuehler.net