Jetson Nano pwm-2 sysfs using

Good afternoon, Nvidia! How can I declare pwm-2 to be ruled by sysfs? I saw that someone could do this, I need it too:

I tried to declare:

			pe6 {
				nvidia,pins = "pe6";
				nvidia,function = "pwm2";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
	pwm@7000a000 {
		nvidia,no-clk-sleeping-in-ops;
		pwm2: pwm2 {
                status = "okay";
            };
	};

But it is not working…

sudo cat /sys/kernel/debug/pwm
platform/70110000.pwm, 1 PWM device
 pwm-0   (pwm-regulator       ): requested enabled period: 2500 ns duty: 0 ns polarity: normal

platform/7000a000.pwm, 4 PWM devices
 pwm-0   ((null)              ): period: 0 ns duty: 0 ns polarity: normal
 pwm-1   (pwm-regulator       ): requested enabled period: 8000 ns duty: 4000 ns polarity: normal
 pwm-2   ((null)              ): period: 0 ns duty: 0 ns polarity: normal
 pwm-3   (pwm-fan             ): requested enabled period: 45334 ns duty: 45333 ns polarity: normal

ls /sys/class/pwm/pwmchip0/
device	export	npwm  power  subsystem	uevent	unexport

Oh, sorry, I just obtained that everything is ok, I just needed to export this in pwmchip0

Glad to know you found the cause, thanks for your sharing!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.