range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
198
g. Then select <Reboot> to restart the system to make the configuration take effect
3) After opening a pwm, there will be an extra pwmchipX in /sys/class/pwm/ (X is a
specific number), for example, after opening pwm11, check the pwmchipX under
/sys/class/pwm/ one becomes two
orangepi@orangepi:~$ ls /sys/class/pwm/
pwmchip0 pwmchip1
4) Which pwmchip above corresponds to pwm11, let's check the output of the ls
/sys/class/pwm/ -l command first, as shown below:
5) Then it can be known from the table below that the base address of the pwm11
register is fe6f0030, and then look at the output of the ls /sys/class/pwm/ -l command,
you can see that pwmchip1 is linked to fe6f0030.pwm, so pwm11 corresponds to
pwmchip as pwmchip1