There are a few post about i2s, but none of them were answered. For example Le Potato audio input?
I’ve connected pcm5102a, although I’m not sure where I should connect BCK. There are two pins free: I2S-AO-CLK and I2S-AM-CLK.
Connections table
Ref alias | Ref functions | pcm5102 |
---|---|---|
ADC0 | SARADC_CH0 | |
ADC2 | SARADC_CH2 | |
I2SOUT-CH01 | JTAG_TDO // I2SOUT_CH01 // TSin_D_VALID_B | DIN |
I2S-LR-CLK | JTAG_TDI // I2S_LR_CLK_OUT // TSin_SOP_B | LCK |
I2S-AO-CLK | JTAG_TMS // I2S_AO_CLK_OUT // Tsin_D0_B | BCK? |
I2S-AM-CLK | JTAG_TCK // I2S_AM_CLK // TSin_CLK_B | |
GND | GND | GND, SCK |
VDDIO_AO3.3V | 3.3V | VIN |
I found some info that I need to add dtoverlay=hifiberry-dac
to /boot/config.txt, but there’s no such file. I’m using LibreComputer’s Debian 12 on Sweet Potato. How can I add that option? libretech-wiring-tool does not have the overlay.
Alternatively, Le Potato audio input? - #6 by librecomputer says
The I2S nodes are already in the device tree, you just need to enable them by changing the status flag.
How do I do that?
The end goal is to execute aplay -l
and see pcm5102 in the output.