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)
I got kernel source code with
$ git clone --depth=1 https://github.com/raspberrypi/linux
and using replace default kernel of raspian jessie with this compiled kernel.
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?
I'm following the same steps to cross-compile the kernel given in
https://www.raspberrypi.org/documentati ... uilding.md for Rpi3 model B(processor bcm2837).
Thanks,
Hardik
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.
Thanks & Regards,
Hardik