Solution to run a pcm5102a module on a BPi M2 Zero board (Allwinner H2+/H3).
Becarfull , the connection is different compared to the GPIO 40 of the Raspberry !
Wiring of the DAC on GPIO40 of the BPi M2 Zero:
SCLK (not connected)
BCK on CON2-P27 (PA19-EINT19)
LCK on CON2-P28 (PA18-EINT18)
DIN on CON2-P40 (PA20-EINT20)
VIN (5v) on CON2-P02 or CON2-P04
GND on CON2-P06
Create a file sun8i-h3-I2S-out.dts containing the text of the discussion indicated above /boot/overlay-user
The contents of sun8i-h3-I2S-out.dts should look like:
Thanks to everyone who writes in the forums otherwise I wouldn't have been able to get the whole thing working.
For information, works very well with Logitech Media Server and the Squeezlite player (and certainly others but I haven't tried).