How to add a peripheral WK2XXX device to SPI1 on a 40PIN

Hi,
I use Jetson Nano [developer kit version] eMMC module,BSP version:R32.7.4.
Cable connections to SPI1 are as follows:
IRQ ------ PIN12 (I2S_4_SCLK/GPIO79)
RST ------ PIN11 (UART_2_RTS/GPIO50)
SPI_1_SCK ------ PIN23(SPI_1_SCK/GPIO18)
SPI_1_MISO ------ PIN21 (SPI_1_MISO/GPIO17)
SPI_1_MOSI ------ PIN19 (SPI_1_MOSI/GPIO16)

My configuration is as follows:

spi@7000d600 {
		status = "okay";
		spi@0 {
			status = "okay";
			compatible = "wkmic,wk2xxx_spi";
			reg = <0x0>;
			spi-max-frequency = <10000000>;
			reset_gpio=<&gpio TEGRA_GPIO(G, 2) GPIO_ACTIVE_HIGH>;
			irq_gpio=<&gpio TEGRA_GPIO(J, 7) IRQ_TYPE_LEVEL_LOW>;
		};
	};

But the 40pin spi1 in the dtsi file is:

hdr40_spi2: spi@7000d600 { /* SPI 2 to 40 pin header */
		status = "okay";
		spi@0 {
			compatible = "tegra-spidev";
			reg = <0x0>;
			spi-max-frequency = <33000000>;
			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <6>;
			};
		};
		
		spi@1 {
			compatible = "tegra-spidev";
			reg = <0x1>;
			spi-max-frequency = <33000000>;
			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <6>;
			};
		};
	};

Question 1: Is 7000d600 SPI1 or SPI2 ???
Question 2: Whether the spider needs to be removed???
tegra210-porg-p3448-common.txt (22.0 KB)
Question 3: Why can’t I read and write the register? Is SPI not used normally?
insmod_log.txt (58.2 KB)

Hi arlen.x,

SPI1, which is mapping to PIN22(SPI1_MISO), PIN37(SPI1_MOSI), PIN13(SPI1_SCK), PIN18(SPI1_CS0), PIN16(SPI1_CS1) on 40-pins expansion header.

Which SPI interface would you like to use?

It seems you are connecting on SPI0.

What do you mean about “spider”?

It may be caused from you connect WK2XXX device on SPI0 but you modify the device tree for SPI1.
Your driver is probing the device on SPI1.