pmodi2s

hi

i want to test
https://reference.digilentinc.com/reference/pmod/pmodi2s/start

and i connect on TX1 EVB J21 pin.

i can use it on tx2 after set the command
amixer -c 1 sset ‘ADMAIF1 Mux’ ‘I2S1’

but how to work on TX1?

Hi Etta,

It should work the same on the TX1 as it does on TX2. Are you saying that it is not working no TX1? If so then we may need to look at the pinmuxing. Please confirm.

Jon

Hi Jon

the test step as below

  1. command
    amixer -c 1 sset ‘ADMAIF1 Mux’ ‘I2S1’

  2. command
    aplay -D hw:1,0 test.wav

  3. detect signal
    i can’t see any signal from J21 pin7 pin12 pin35 pin40

and the same step will work on tx2

Can you dump the following …

$ sudo cat /sys/kernel/debug/tegra_gpio
Name:Bank:Port CNF OE OUT IN INT_STA INT_ENB INT_LVL
 A: 0:0 24 00 00 04 00 00 000000
 B: 0:1 0f 00 00 00 00 00 000000
 C: 0:2 1f 00 00 00 00 00 000000
 D: 0:3 00 00 00 00 00 00 000000
 E: 1:0 70 00 00 00 00 00 000000
 F: 1:1 00 00 00 00 00 00 000000
 G: 1:2 00 00 00 00 00 00 000000
 H: 1:3 ff 1b 0a 40 00 24 002024
 I: 2:0 0f 0d 05 02 00 00 000000
 J: 2:1 00 00 00 00 00 00 000000
 K: 2:2 f0 20 00 d0 00 80 008000
 L: 2:3 02 00 00 02 00 02 000000
 M: 3:0 00 00 00 00 00 00 000000
 N: 3:1 00 00 00 00 00 00 000000
 O: 3:2 00 00 00 00 00 00 000000
 P: 3:3 00 00 00 00 00 00 000000
 Q: 4:0 00 00 00 00 00 00 000000
 R: 4:1 00 00 00 00 00 00 000000
 S: 4:2 f0 f0 00 00 00 00 000000
 T: 4:3 03 03 00 00 00 00 000000
 U: 5:0 0c 00 00 00 00 00 000000
 V: 5:1 6e 66 00 00 00 00 000000
 W: 5:2 00 00 00 00 00 00 000000
 X: 5:3 ff 00 00 fc 00 70 606000
 Y: 6:0 03 00 00 03 00 01 010100
 Z: 6:1 1f 08 00 16 00 07 030300
AA: 6:2 00 00 00 00 00 00 000000
BB: 6:3 0d 04 00 00 00 00 000000
CC: 7:0 32 10 00 22 00 02 020200
DD: 7:1 00 00 00 00 00 00 000000
EE: 7:2 00 00 00 00 00 00 000000
FF: 7:3 00 00 00 00 00 00 000000

The I2S1 pins are shared with GPIOs B0-B3. In the above, the row for ‘B:’ shows that the GPIO_CNF register is set to 0xf which implies that GPIOs B0-B3 are GPIO and not SFIO. To use these pins for I2S we need to configure them as SFIO. If you refer to the L4T documentation for rel28.2 [0] the section ‘System Configuration → Tegra ASoC Driver for Jetson TX1 and TX2 → Troubleshooting → Issue 2: Sound Not Audible’

Regards
Jon

[0] https://developer.nvidia.com/embedded/dlc/l4t-documentation-28-2-ga

Hi etta,

How’s going on your testing? Still can’t make it work on TX1?
Please update the status then can provide the further support.

Thanks