Steps to enable SPI interface on AGX Xavier

I did the pinmux configuration for the SPI1 device. What are the steps to create the corresponding device tree file? Should that be done on host machine or target Nvidia device?

I found this post to modify the device tree