jetson tx2 spidev

the jetson tx2 L4T version :R32.2.1

the spi pins :
SPI1_CLK G13
SPI1_MISO F14
SPI1_MOSI F13
SPI1_CS0 E13

my devicetree node is :

spi@3240000 {
    spi_qy@0 {
        compatible = "spidev";
                        reg = <0x0>;
                        spi-max-frequency = <0x1312d00>;
                        nvidia,enable-hw-based-cs;
                        nvidia,cs-setup-clk-count = <0x1e>;
                        nvidia,cs-hold-clk-count = <0x1e>;
                        nvidia,rx-clk-tap-delay = <0x1f>;
                        nvidia,tx-clk-tap-delay = <0x0>;


    }
}

while I’m runing ./spidev_test -D /dev/spidev3.0

the RX is 00 00 00…
the ture should be FF FF …

at the L4T R28.2.1 the function is usefull.the hardware is well .

what should I do ? thanks

Have a reference to below topic.

hi ShaneCCC,
in the topic,we can see it’s solved by modifying the pinmux file.and the device is jetson xavier.

I saw the jetson tx2 in the bootloader/t186ref/BCT have the file,but I don’t know which one and what should I do to modify.

in the net ,most of the solution is to modify the device tree.This way I can not refresh the system.

Have a reference to below link.

https://devtalk.nvidia.com/default/topic/1056610/jetson-tx2/spi-config-on-tx2-r28-3/post/5357387/#5357387

what should I do to update the tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg file?

reflash the jetson tx2 system?

Yes modify the cfg file and reflash the system.

https://elinux.org/Jetson/TX2_SPI#Modifying_the_Pinmux_Configuration

Is there a way to not reflash the system?

You can use the devmem2 to write the REG before using SPI, however you have do it after system is reset every time.

thanks!