For some reason I can no longer edit my original post to update the link, but here’s the guide for the TX2:
Everything is now done via the device tree and should be mostly identical between the Nano and the TX2.
I recommend downloading the NVIDIA Tegra Linux Driver Package Development Guide for your release and following the “Kernel Customization” section to get started. If you have any questions post back here and I should get a notification.