I encountered a problem: PWM2 cannot output waveform,PWM3 can output waves,the config is the same .Is there any difference between PWM2 and PWM3?My PWM2 configuration is as follows:
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1# echo 0 > export
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1#
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1#
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1#
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1# ls
device export npwm power pwm0 subsystem uevent unexport
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1# cd pwm0
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0# ls
capture duty_cycle enable period polarity power uevent
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0# echo 20000 > period
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0# echo 10000 > duty_cycle
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0# echo 1 > enable
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0#
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0#
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0# ls
capture duty_cycle enable period polarity power uevent
root@tegra-ubuntu:/sys/devices/platform/bus@0/810c5e0000.pwm/pwm/pwmchip1/pwm0# cd /sys/kernel/debug/bpmp/debug/clk/pwm2
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2#
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2#
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2# ls
dvfs flags hidden max_rate mrqcount parent pto_counter refcount vdd_core
dvfs_table fmon hz_off min_rate mrq_rate_locked possible_parents rate state
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2# cat parent
osc
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2# cat rate
27000000
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2#
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2#
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2#
root@tegra-ubuntu:/sys/kernel/debug/bpmp/debug/clk/pwm2# cat /sys/kernel/debug/pwm
0: platform/c6a0000.pwm, 1 PWM device
pwm-0 (pwm-fan ): requested enabled period: 40000 ns duty: 37490 ns polarity: normal usage_power
1: platform/810c5e0000.pwm, 1 PWM device
pwm-0 (sysfs ): requested enabled period: 20000 ns duty: 10000 ns polarity: normal
2: platform/810c5f0000.pwm, 1 PWM device
pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal
3: platform/810c620000.pwm, 1 PWM device
pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal
4: platform/810c5c0000.tachometer, 1 PWM device
pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: normal