Using I2S amp without I2S

Hello, I am planning to build a small mobile wifi speaker for my daughter. As main board I'll use the orange pi zero 2w (because i already have it, it has usb c and 5ghz wifi and it's small) and i have a small 3W speaker (not tested sound quality yet, but I guess it should be good enough).

For in between i was thinking a mono i2s amp, since that doesn't require a separate dac or psu. So i got the MAX98357A

Turns out, the orange pi doesn't have i2s. It's there any other way to use the amp or do i need to get a different one? And if so: which one do you recommend?

Would be grateful for any information or guidance.
 
Turns out, the orange pi doesn't have i2s. It's there any other way to use the amp ...?
Yes there is, the serial peripheral interface (SPI) is very similar to I2S and maybe used with slight modifications. Refer to the below for similarities between the two.

https://www.ti.com/lit/an/slaa449a/slaa449a.pdf

It is however necessary to enable the SPI module on your SBC (pins 19, 21, 23) manually before attempting to transfer data.
 
Last edited: