Go to advanced search

by stefan_o
Tue May 16, 2017 2:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428059

Re: The I2S sound thread.

Hi YCN-, this is how I understand this, my driver contains the device-overlay and two kernel modules: The device overlay signals there is an I2S device connected that the two kernel modules are needed. Then kernel will load the BCM I2S modules (that will handle all the I2S stuff) and the two other m...
by stefan_o
Mon May 15, 2017 9:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428059

Re: The I2S sound thread.

Ok, here is the driver I have written for the PCM4202 ADC. It's design is somewhat hacky: -The GPIO lines for H/W control are defined in a header file so you need to edit this file if you want to connect them differently before compiling. Better practice is to use the new GPIO kernel api and define ...
by stefan_o
Sat May 13, 2017 9:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428059

Re: The I2S sound thread.

What do I have to do to get my own driver working? I used the Hifiberry DAC driver as a starting point, because it uses the PCM5102, which is also a H/W controlled like the PCM4202. The modules compile & load just fine, but the rpi-4202-adc does not depend on the pcm4202 (it should be depending on i...
by stefan_o
Sat May 13, 2017 6:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428059

Re: The I2S sound thread.

Hi, I want to connect an ADC to the I2S interface. I set up an ESP8266 to generate a I2S signal at 48kHz as master. I used this this code: https://github.com/skakri/asoc-i2s-loader and changed the format to "SND_SOC_DAIFMT_CBM_CFM", in this case the ADC will be master. I can record at 48kHz and the ...
by stefan_o
Wed Mar 22, 2017 8:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 887
Views: 428059

Re: The I2S sound thread.

Hi, I have seen there are many Raspberry Pi DAC projects, I would like to create an ADC hat for the Raspberry Pi using the TI PCM4202 ADC. The PCM4202 is hardware-controlled (no I2C/SPI, just pins up/low for selecting sample rate, format, etc.), so I have to use GPIOs for them. So I need to write a ...
by stefan_o
Mon Aug 31, 2015 10:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCA 9564 I2C bus driver with RPi B+
Replies: 2
Views: 863

Re: PCA 9564 I2C bus driver with RPi B+

I googled a lot and the answer to my question is no, because for access like that the address bus would need to accessible, but it's not (please correct me if I'm wrong). So basically I need to modify the driver to work directly with the gpio. Setting every single bit manually is somewhat stupid if ...
by stefan_o
Mon Aug 31, 2015 6:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCA 9564 I2C bus driver with RPi B+
Replies: 2
Views: 863

Re: PCA 9564 I2C bus driver with RPi B+

I analyzed the driver code a bit more and I this is what I found out: -The reset pin is accessed using gpio and interrupt pin with an interrupt (if available) -The driver expects that the registers of the device are mapped to the memory For me there are two major questions now: 1.) How to tell the d...
by stefan_o
Sun Aug 30, 2015 6:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCA 9564 I2C bus driver with RPi B+
Replies: 2
Views: 863

PCA 9564 I2C bus driver with RPi B+

Hello, I like to access an existing I2C bus with a Raspberry Pi B+. This bus is multimaster, it contains several equal microcontrollers and they all for example read the same EEPROM (my project needs to communicate with all of them). Unfortunately from what I read here the Raspberry Pi I2C-Interface...

Go to advanced search