userspace PWM on nanopi (or mini2440)

Beau
Hi,

I'm trying to set a PWM signal on TOUT2/GPB2, or any of the other two, from
the command line but can't get it working. 

I can't figure out which pwm I have to export:
# echo ??? > /sys/class/pwm/pwmchip0/export

What's the correspondence between the 5 pwmchip0 pwms and the 3 timer pins
on the board?

cat /sys/class/pwm/pwmchip0/npwm
5

thanks!
Beau