I have a similar problem to the following
my tegra234-mb1-bct-pinmux-p3701-0000-a04.dtsi setting
spi2_sck_pcc0 {
nvidia,pins = "spi2_sck_pcc0";
nvidia,function = "spi2";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
spi2_miso_pcc1 {
nvidia,pins = "spi2_miso_pcc1";
nvidia,function = "spi2";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
spi2_mosi_pcc2 {
nvidia,pins = "spi2_mosi_pcc2";
nvidia,function = "spi2";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
spi2_cs0_pcc3 {
nvidia,pins = "spi2_cs0_pcc3";
nvidia,function = "spi2";
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
nvidia,io-high-voltage = <TEGRA_PIN_DISABLE>;
nvidia,lpdr = <TEGRA_PIN_DISABLE>;
};
But something wrong with 0x0c302028
root@Jetson:/home/nvidia# busybox devmem 0x0c302048 32
0x00001440
root@Jetson:/home/nvidia# busybox devmem 0x0c302050 32
0x00000440
root@Jetson:/home/nvidia# busybox devmem 0x0c302028 32
0x00000000
root@Jetson:/home/nvidia# busybox devmem 0x0c302038 32
0x00000448
root@Jetson:/home/nvidia#
Try writing the value manually
root@Jetson:/home/nvidia#
root@Jetson:/home/nvidia# busybox devmem 0x0c302028 32 0x00000448
root@Jetson:/home/nvidia# busybox devmem 0x0c302028 32
0x00000448
root@Jetson:/home/nvidia#
Execute normally
root@Jetson:/home/nvidia# spidev_test -s 4000000 -p “\x01\x33” -o spi.out -v -D /dev/spidev1.0
spi mode: 0x0
bits per word: 8
max speed: 4000000 Hz (4000 kHz)
TX | 01 33 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |.3|
RX | AA AA __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |…|
root@Jetson:/home/nvidia# spidev_test -s 4000000 -p “\x01\x33” -o spi.out -v -D /dev/spidev1.0
spi mode: 0x0
bits per word: 8
max speed: 4000000 Hz (4000 kHz)
TX | 01 33 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |.3|
RX | 01 33 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |.3|
root@Jetson:/home/nvidia#
we flashed by connecting the module in recovery mode and executed
./flash.sh jetson-agx-orin-devkit mmcblk0p1
[flash.log|attachment](upload://agRbtIbzpnM0JLo53AorcVBIrmt.log) (91.9 KB)