How can I use the PWM in the extended 40 pin after adding my own driver to the Orin nanodevelopment board?

Development board environment:Jetson Linux35.3.1
core board:orin Nano4GB
board:Jetson Orin Nano Developer Kit

I want to call PWM in the extension foot in the driver, how do I add nodes in the device tree, and how do nodes fill in? How do I need to call this PWM port and control it in the driver?

Hi 56101855,

You can refer to Configuring the Jetson Expansion Headers — Jetson Linux Developer Guide documentation to configure pinmux for the pins on expansion header.
You can simply run sudo /opt/nvidia/jetson-io/jetson-io.py to enable desired PWM interface.

Or you can refer to the following thread for the PWM verification:
Unable to generate PWM with Nvidia Jetson AGX Orin Development Kit - #6 by KevinFFF

I have enabled PWM using sudo /opt/nvidia/jetson-io/jetson-io.py。But how do I call it in the driver?

Which PWM interface/pin you are using?
PIN15(pwm1) or PIN33(pwm5) or PIN32(pwm7)?

These feet are in use.

Please refer to Jetson/L4T/peripheral/ - eLinux.org for their mapping.
You have to enable those nodes in device tree before use.

Please share the device tree and dmesg for further check.

thanks for your help!
I haven’t made any changes to the device tree yet because I don’t know where to start. Just use “/opt/nvidia/jetson-io/jetson-io.py”
"Enabling PWM.
dmesg.txt (100.1 KB)

We didn’t figure out how the device tree for PWM should be written? Can you provide an example?

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks

Please share the /boot/dtb/kernel_XXX.dtb from your board.