How to enable GPIO35 as PWM5 on jetson AGX xavier

I want to set GPIO35 as pwm5 function, and how to use pwm.

hello 417383384,

you may access pinmux spreadsheets via download center to have customization.

please update the pin configuration using a pinmux spreadsheet for the appropriate platform, and then flash the new configuration to the developer kit.
you should also convert the .dtsi file generated by Excel spreadsheets into a .cfg file with, and perform image flashing to update the cfg file.

please check developer guide, Pinmux Changes for reference,