Hi All, I have to use I2s to interface Rpi3 with codec tfa9879. So we have 6 input for this codec i) Rpi_PCM_FS (GPO_19_PCM_FS) ii) Rpi_PCM_SCLK (GPIO_18_PCM_SCLK) iii) Rpi_PCM_DOUT (GPIO_21_PCM-DOUT) iv)Rpi_SCL (GPIO_03_SCL) v) Rpi_SDA (GPIO_02_SDA) vi)Rpi_ADSEL2 (GPIO_13)
Now for I2s interface, I'm confused in linux driver part. In path "linux/sound/soc/bcm " we have many platform drivers for audio codec but I'm not getting any I2s driver related to tfa9879 while codec driver is available in path "linux/sound/soc/codecs/tfa9879.c"
Do i need to add anything in dts file? How about I2c interface for this codec? or will codec driver take care of i2c interface?
After some online research I have come to know that i have to add dtoverlay in rpi. and i need to write machine driver also to glue platform driver and codec driver. In my case : bcm2835-i2s (rasberrypi) <-----> tfa9879 (NXP)
Could somebody help me with this dts and machine driver part? I need some references to write machine driver.