cdsteinkuehler / beaglebone-universal-io

Device tree overlay and support scripts for using most available hardware I/O on the BeagleBone without editing dts files or rebuilding the kernel
GNU General Public License v2.0
127 stars 54 forks source link

config-pin P9_28 pwm doesn't start eCAP2_in_PWM2_out #58

Open terachip opened 6 years ago

terachip commented 6 years ago

Hi There,

In the config-pin utility, there is only one "pwm" option for pin P9_28. However P9_28 is either EHRPWM0_syncouin, or ECAPPWM2 output, which is far more useful. P9_28 can be set to PWM output via "echo pwm2 > state" in /sys/devices/platform/ocp/ocp:P9_28_pinmux, but it would be spiffy if the config-pin utility had both options.

Thanks, terachip