My pinmux spreadsheet set is here:
After that, I use pinmux-dts2cfg.py to update my BCT cfg:
diff --git a/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg b/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg
index 09ff5d8..da7aa27 100644
--- a/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg
+++ b/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg
@@ -2,7 +2,7 @@
## Pinmux version 1.6
## Input pinmux file name: tegra19x-jetson_xavier_nx_module-pinmux.dtsi
## Input gpio file name: tegra19x-jetson_xavier_nx_module-gpio-default.dtsi
-## Generation date: 2023-04-10 16:30
+## Generation date: 2023-04-25 14:26
## PLEASE DO NOT EDIT THIS FILE
## This is autogenerated file using the script pinmux-dts2cfg.py
##
@@ -86,10 +86,6 @@ pinmux.0x0c2f1200 = 0x00000003; # CONFIG CC0
pinmux.0x0c2f120c = 0x00000000; # CONTROL CC0
pinmux.0x0c2f1210 = 0x00000000; # OUTPUT CC0
pinmux.0x0c302048 = 0x00000000; # GPIO spi2_sck_pcc0
-pinmux.0x0c2f1240 = 0x00000003; # CONFIG CC2
-pinmux.0x0c2f124c = 0x00000000; # CONTROL CC2
-pinmux.0x0c2f1250 = 0x00000000; # OUTPUT CC2
-pinmux.0x0c302028 = 0x00000000; # GPIO spi2_mosi_pcc2
pinmux.0x0c2f1260 = 0x00000003; # CONFIG CC3
pinmux.0x0c2f126c = 0x00000000; # CONTROL CC3
pinmux.0x0c2f1270 = 0x00000000; # OUTPUT CC3
@@ -226,7 +222,7 @@ pinmux.0x0c301038 = 0x00000058; # power_on_pee4: rsvd0, pull-up, tristate-enable
pinmux.0x0c303028 = 0x0000c000; # can0_en_paa5: rsvd0, tristate-disable, input-disable
pinmux.0x0c302048 = 0x00000002; # spi2_sck_pcc0: rsvd2, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
pinmux.0x0c302050 = 0x00000002; # spi2_miso_pcc1: rsvd2, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
-pinmux.0x0c302028 = 0x00000002; # spi2_mosi_pcc2: rsvd2, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
+pinmux.0x0c302028 = 0x00000406; # spi2_mosi_pcc2: rsvd2, pull-down, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
pinmux.0x0c302038 = 0x00000002; # spi2_cs0_pcc3: rsvd2, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
pinmux.0x0c302000 = 0x00000056; # touch_clk_pcc4: rsvd2, pull-down, tristate-enable, input-enable, lpdr-disable
But when booting up, GPIO05 is not pulled down.
And I read the port, the result is not the same to the above cfg:
root@tegra-ubuntu:~# cat /sys/kernel/debug/tegra_pinctrl_reg | grep 0x0c302028
Bank: 1 Reg: 0x0c302028 Val: 0x00000006 -> spi2_mosi_pcc2