Hi. I have a LED connected to the GPIO7 pin which is GPIO3_PV.00. The necessary changes have been made to the device tree using the Pinmux Configuration Sheet. The changes have been flashed to the system using the generated .dtsi files.
This is the node for it from the pinmux .dtsi file:
had you refer to this topic, Topic 178959 for using Nano PWM?
you may also probe the pin to ensure the PWM periods / duty_cycle configurations has applied correctly.
thanks
Hi. Thanks for the reply. The PWM pin works as expected now. Earlier in the pinmux configuration sheet, I had not selected the PWM functionality for the pin. So in the pinmux dtsi, the pin function was reserved nvidia,function = "rsvd3";. But after selecting the PWM functionality, the pinmux dtsi shows nvidia,function = "pwm0";.
I wanted to have the LED light up with a certain brightnedd on boot up. So I added this node to the tegra210-p3448-0002-p3449-0000-b00.dts:
please check you’re having this driver kernel/kernel-4.9/drivers/leds/leds-pwm.c to make LED works.
if yes, there’re device tree properties to configure the LED.
for example,
I modified the node based on the examples in the device tree bindings to use pwm-leds and added the max_brightness and default_brightness properties to it. I recompiled the image and flashed it to the Nano.
Node: