To make use of the IR receiver, load module meson-ir
For one PWM (pin 33) and one SPI:
sudo modprobe pwm-peson npwm=1
sudo modprobe pwm-ctrl
For two PWM (pins 33 and 19) and no SPI
sudo modprobe pwm-peson npwm=2
sudo modprobe pwm-ctrl
You can control the PWM via simple sysfs entries. In /sys/devices/platform/pwm-ctrl you'll find the following files:
echo 50 > duty0 # 50% duty cycle
echo 1 > enable0 # enable PWM0
echo 100000 > freq0 # set frequency to 100kHz
Copyright ©2009-2022 Arch Linux ARM
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
The Arch Linux™ name and logo are used under permission of the Arch Linux Project Lead.