Hello,
I’m a littile bit confused about how should I modify a pin configuration.
I’m using Xavier NX development kit, and I want to use 2 SPI interfaces by changing the pin configuration from GPIO to SPI.
What have I done so far is:
Edited the xlsm file.
Generated 3 dtsi files from the xlsm file.
Created 2 cfg files (one for PINMUX and GPIO and another for PAD VOLTAGES) according to the readme file in Linux_for_Tegra/kernel/pinmux/t19x
What should I do with the cfg files? Should they have a specific name?
What should I do with the 3 dtsi files I’ve generated from the xlsm file?
How should I generate the new dtb file? I’m familiar with the dtc tool to compile the device tree files but should I somehow include the generated dtsi files into the directory of the dts sources located in directory Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/jakku/kernel-dts
and after that run the dtc?
How should I flash cfg files?
a. Will the following command flash the cfg files to the board?
sudo ./flash.sh -r -k bpmp-fw-dtb jetson-xavier-nx-devkit mmcblk0p1
b. If I run from nvme should it be as following?
sudo ./flash.sh -r -k bpmp-fw-dtb jetson-xavier-nx-devkit nvme0n1
I would like to keep the rootfs contant and not to do full flash.
Should I change anything in the device tree sources in order to change pin function?
you should copy those dtsi file to your local x86 host machine and re-compile the device tree blob (i.e. *.dtb)
the generated *.cfg file used by the flashing process, you need to perform the full flash to apply the changes correctly.
Should I copy the dtsi files to Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/jakku/kernel-dts/common directory? And how to be sure that those files are compiled, should I edit one of the dts files and include my dtsi files there?
But it is not clear what to do with the generated dtsi and cfg files.
dtsi sources are located in directory
Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/jakku/kernel-dts/common
How should I include the generated dtsi files?
Should I copy the cfg files into the following directory?
Linux_for_Tegra/bootloader/t186ref/BCT
Should the generated cfg files have a specific name or they should replace some of the existing files?