Jetson nano wk2124 load driver

Hi,
I use Jetson Nano [developer kit version] eMMC module,BSP version:R32.7.4.

My device tree configuration is as follows:
//hdr40_spi2: spi@7000d600 { /* SPI 2 to 40 pin header */
spi@7000d800 {
status = “okay”;
wk2xxxspi1@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>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <6>;
};
};
};
The following error occurred recently when I use spi@7000d800:
[ 73.685362] wk2xxx_init: SPI driver for spi to Uart chip WK2XXX, etc.
[ 73.691990] wk2xxx_init: V2.4 On 2022.07.24
[ 73.696337] wk2xxx_probe!!–in–
[ 73.699672] wk2xxx_spi_irq_parse_dt!!–in–
[ 73.703956] wk2xxx_irq_gpio: 79, irq: 178
[ 73.707805] wk2xxx_spi_irq_parse_dt!!–exit–
[ 73.712548] wk2xxx_probe(0x30) GENA = 0x0
[ 73.716882] wk2xxx_probe(0x35) GENA = 0x0
[ 73.721120] wk2xxx_probe(0x3f) GENA = 0x0
[ 73.725439] wk2xxx_probe(0x30) GENA = 0x0
[ 73.729562] The spi failed to read the register.!!!
[ 73.734547] gpio_free(s->irq_gpio_num)= 0x79,ret=0x-1
[ 73.739690] wk2xxxspi1: probe of spi2.0 failed with error -1

I’ve also tried hdr40_spi2: spi@7000d600, but it doesn’t seem to be working:
hdr40_spi2: spi@7000d600 { /* SPI 2 to 40 pin header */
status = “okay”;
wk2xxxspi1@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>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <6>;
};
};
};
wk2xxx_init: SPI driver for spi to Uart chip WK2XXX, etc.
wk2xxx_init: V2.4 On 2022.07.24
Using hdr40_spi2: spi@7000d600, LOG only goes so far.

I don’t know whether SPI_2_ in Jetson nano J41 header is spi@7000d800 or hdr40_spi2: spi@7000d600

Does anyone have a problem?

duplicate topic as How to add a peripheral WK2XXX device to SPI1 on a 40PIN - Jetson & Embedded Systems / Jetson Nano - NVIDIA Developer Forums

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.