There are a few things I’d like to ask in your answer.
-
Do you connect SPI1_MOSI<–>SPI3_MISO?
Why connect MOSI and MISO?
SPI1_MISO<–> Why doesn’t SPI3_MOSI connect? -
Do I need to update the pinmux setting by changing from dt to slave means I have to flash again?
Can’t I do it in the following way?
(1) Activate spi1, spi3 in /opt/nvidia/jetson-io/jetson-io.py
(2) dtb decompile
—> sudo dtc -I dtb -O dts -o ~/ user-custom.dts / boot / tegra194-p3668-all- p3509-0000-user-custom.dtb
(3) Open the ~/ user-custom.dts file and change spi3(spi@3230000) to slave
(compatible = “nvidia, tegra186-spi” → compatible = “nvidia, tegra186-spi-slave”)
(4) dts compilation
—> sudo dtc -I dts -O dtb -o /boot/tegra194-p3668-all- p3509-0000-user-custom.dtb ~/user-custom.dts
(5) reboot jetson
(6) Change reg value using devmem2 (temporary)
(7) Connection: SPI1_MOSI<–>SPI3_MISO, SPI1_CLK<–>SPI3_CLK, SP1_CS0 ↔ SPI3_CS0 and SPI1_CS1<–>SPI3_CS1
(8) test
-
Where is the dt file? (Where should I change the spi3 slave?)
-
Where do I change the reg? Do I change it in my cfg (galen.cfg)?
-
Is the pinmux update method correct?
&&pinmux update method&&
(1) Jetson_Xavier_NX_Pinmux_Configuration_Template_v1.06 Set pinmux with .xlsm and create DT
(tegra19x-jetson_xavier_nx_module-gpio-default.dtsi, tegra19x-jetson_xavier_nx_module-padvoltage-default.dtsi, tegra19x-jetson_xavier_nx_module-pinmux.dtsi)
(2) Install Linux_for_Tegra with SDK Manager on Linux host PC
(3) Go to /Linux_for_Tegra/kernel/pinmux/t19x
(4) Import the dtsi( tegra19x-jetson_xavier_nx_module-gpio-default.dtsi, tegra19x-jetson_xavier_nx_module-padvoltage-default.dtsi, tegra19x-jetson_xavier_nx_module-pinmux.dtsi) file to the Linux host PC and create a cfg file.
----> python pinmux-dts2cfg.py --pinmux addr_info.txt gpio_addr_info.txt por_val.txt tegra19x-jetson_xavier_nx_module-pinmux.dtsi tegra19x-jetson_xavier_nx_module-gpio-default.dtsi 1.0>galen.cfg <------------
(5) Change galen.cfg to /Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01
(6) Flash with sdk manager (or sudo ./flash.sh jetson-xavier-nx-devkit mmcblk0p1
- Can you give me the source file of spi_test.txt that you gave me?
I want to know how to slave (functions used, interrupts, etc.)