hello aaron.ge,
note, here’s tegra-gpio.h, this header provides constants for binding nvidia,tegra-gpio. for the Nano series.
you should include that to build your kernel sources.
for example,
$L4T_Sources/r32.5.1/Linux_for_Tegra/source/public/kernel/kernel-4.9/include/dt-bindings/gpio/tegra-gpio.h