]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add PWMOut for PocketBeagle #159
authorDrew Fustini <drew@pdp7.com>
Sat, 26 Oct 2019 19:03:09 +0000 (21:03 +0200)
committerDrew Fustini <drew@pdp7.com>
Sat, 26 Oct 2019 20:08:26 +0000 (22:08 +0200)
Add PWMOut for PocketBeagle which has the AM3358 SoC.

Note that the generic linux PWMOut implementation will
not work as BeagleBoard.org kernel has a patch to allow
udev to be able to set the ownership and permissions
in /sys/class/pwm when channels are exported.  However,
this naming scheme is different than what is used in the
mainline kernel.

The PocketBeagle has these PWM outputs:

/sys/class/pwm/pwmchip0/pwm-0:0/period
/sys/class/pwm/pwmchip0/pwm-0:1/period
/sys/class/pwm/pwmchip2/pwm-2:0/period
/sys/class/pwm/pwmchip2/pwm-2:1/period
/sys/class/pwm/pwmchip4/pwm-4:0/period
/sys/class/pwm/pwmchip4/pwm-4:1/period

Here is the kernel patch that is being used:
https://github.com/RobertCNelson/bb-kernel/blob/am33x-v4.11/patches/drivers/pwm/0001-pwm-Create-device-class-for-pwm-channels.p$


No differences found