Rt5640 does not work on Orin nx, L4T 35.3.1

Hi everybody, I added the audio codec rt5640 to the Orin nx platform, and GPIO13 is connected to the GPIO1/IRQ of rt5640. And I also enable i2s of jetson-io.py,But the rt5640 does not work.
I modified tegra234-p3767-common-audio.dtsi.
Used i2cdetect to detect and confirm that rt5640 is being called by the kernel module.
And snd-soc-rt5640 appears in the lsmod output.
cat /proc/asound/cards.

But rt5640 does not work on Orin nx,And When powered on, the MCLK waveform does not have frequency.
tegra234-p3767-common-audio.dtsi.txt (8.3 KB)


Have you checked the Troubleshooting section Audio Setup and Development — Jetson Linux Developer Guide documentation (nvidia.com)?

Here are my test results. And I don’t know what else I have to test.
1、$ i2cdetect -r -y 0

2、$ dmesg | grep “ASoC”

3、$ cat /sys/kernel/debug/asoc/components

Through measurement, I found that only MCLK(AUD_MCLK) waveform remains at a constant frequency output, I only modified the device tree file tegra234-p3767-common-audio.dtsi. I don’t know if this is right, or if there are other documents to be amended.

Hi sjz_shaohua,

Are you using the devkit or custom board for Orin NX?

Please also share the full dmesg for further check.

We use a custom board.
After modifying the device tree file, IRQ(GPIO13) is 1.8V, and only MCLK(AUD_MCLK) has a waveform, 11.29MHz. I2S0_SCLK, I2S0_FS, I2S0_DOUT, and I2S0_DIN are all unchanged when playing .wav files using aplay.
log.txt (67.5 KB)

How do I solve the problem that the RT5640 has no sound output? What is the problem of this.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

Do you configure the pinmux for I2S2?

Please share the result of the following command on your board.

$ sudo busybox devmem 0x02434088 //SOC_GPIO41 - I2S2_SCLK
$ sudo busybox devmem 0x02434090 //SOC_GPIO42 - I2S2_SDATA_OUT
$ sudo busybox devmem 0x02434098 //SOC_GPIO43 - I2S2_SDATA_IN
$ sudo busybox devmem 0x024340a0 //SOC_GPIO44 - I2S2_LRCK