I’ve got the Orin AGX 64GB DevKit running JP DP6 and I need to be able to do output to GPIO on six different pins on the 40 pin header. I’ve been reading a bunch of threads and it sounds like I need to explicitly set the pins to ‘output’ and set the drive to ‘0’ in the pinmux XLS before they will work. Only one of the six pins is ‘output’ by default, the rest are ‘input’.
So, I decided to take this opportunity to flash to JP6 GA and
I used the spreadsheet to set the pins to output and drive=0, then generated the three dtsi files and copied them over to the /bootloader and bootloader/generic/BCT directories in JP6 GA.
Now, I’m stuck because the documentation says that I should make sure to reference the files in the config file, however the jetson-agx-orin-devkit.conf has no reference to Pinmux and doesn’t look like the config files referenced in the docs…it looks like below. Do I need to reference them in that config file, if so - could someone please point me to documentation that matches the config file format below?
Note, I’m just using the default board names that the spreadsheet suggested and I’m just using the standard board definition - only changing five GPIO pins to ‘output’. (Note: It is strange to me that almost all the GPIO pins are input by default, this code worked great on Jetson nano where they all were bidirectional by default).
source “${LDK_DIR}/p3737-0000-p3701-0000.conf.common”;
update_flash_args_p3737_0000_p3701_0000()
{Select the Base DTB based on SKU
if [ “${board_sku}” = “0000” ]; then
# Enable VRS11 DCM mode for CPU/GPU/CV rails
PMIC_CONFIG=“tegra234-mb1-bct-pmic-p3701-0005.dts”;
DTB_FILE=tegra234-p3737-0000+p3701-0000-nv.dtb;
elif [ “${board_sku}” = “0001” ] || [ “${board_sku}” = “0002” ]; then
DTB_FILE=tegra234-p3737-0000+p3701-0000-nv.dtb;
elif [ “${board_sku}” = “0004” ]; then
# Enable VRS11 DCM mode for CPU/GPU/CV rails
PMIC_CONFIG=“tegra234-mb1-bct-pmic-p3701-0005.dts”;
DTB_FILE=tegra234-p3737-0000+p3701-0004-nv.dtb;
elif [ “${board_sku}” = “0005” ]; then
# Enable VRS11 DCM mode for CPU/GPU/CV rails
PMIC_CONFIG=“tegra234-mb1-bct-pmic-p3701-0005.dts”;
DTB_FILE=tegra234-p3737-0000+p3701-0005-nv.dtb;
else
echo “Error: Unrecognized module SKU ${board_sku}”;
exit 1;
fiTBCDTB_FILE=“${DTB_FILE}”;
}update_flash_args:
update_flash_args()
{
update_flash_args_common
update_flash_args_p3737_0000_p3701_0000
}DTB_FILE=tegra234-p3737-0000+p3701-0000-nv.dtb;
TBCDTB_FILE=“${DTB_FILE}”;
OVERLAY_DTB_FILE=“L4TConfiguration.dtbo,tegra234-p3737-0000+p3701-0000-dynamic.dtbo,tegra234-carveouts.dtbo,tegra-optee.dtbo,tegra234-p3737-camera-dual-imx274-overlay.dtbo,tegra234-p3737-camera-e3331-overlay.dtbo,tegra234-p3737-camera-e3333-overlay.dtbo,tegra234-p3737-camera-imx185-overlay.dtbo”;