Hello,
I want to control the PWM ports of my BeagleBone Black via sysfs. Unfortunately I cannot export them as simple as the GPIO devices.
So how do I get them to work? I read some stuff about muxing but this is mainly for 3.2.
I also found this sort of hack but I am not happy with it as it seems quite device dependent:
$ SLOTS=/sys/devices/bone_capemgr.*/slots
$ PINS=/sys/kernel/debug/pinctrl/44e10800.pinmux/pins
$ echo am33xx_pwm > $SLOTS
$ echo bone_pwm_P9_21 > $SLOTS
$ echo 1 > export
$ cd /sys/class/pwm/pwm1
$ echo 1000000 > period_ns
Best,
Bodo