Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

AM1705 problems when trying to use AIC3106 in Linux

$
0
0

Hello guys,

First of all, my board has the following hardware:

CPU: AM1705
SPI Flash : K0XMFI011 (Spansion) - 4MBytes - Connected to SPI0
Nand Flash: S34ML01G200TFI000 (Spansion) - 128MBytes - Connected to EMIFA
SDR SDRAM : AS4C16M16SA (Alliance Memory) - 32MBytes - Connected to EMIFB - Only one RAM chip
Ethernet : LAN8720a
Audio : TLV320AIC3106 controlled via I2C1
Power : TPS65023

Now my question:

So far I managed to have my board almost ready with the exception of the AIC3106.

Every time I want to output sound (by playing a file or by using the command speaker-test) the system resets and starts with the U-boot prompt.

I have tried several commands and checked the board-da830-evm.c file but I don't know what to modify.

Attached you can find my (Please visit the site to view this file) and my (Please visit the site to view this file).

Also when I try the following commands I get the following response, so I think that the chip is being detected.

aplay -l
=========
root@da850-omapl138-evm:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [DA830/OMAP-L137 EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

aplay -
=========

root@da850-omapl138-evm:~# aplay -L
default:CARD=EVM
DA830/OMAP-L137 EVM,
Default Audio Device
null
Discard all samples (playback) or generate zero samples (capture)
root@da850-omapl138-evm:~

Even I can read the registers via I2C by using the following command line:

root@da850-omapl138-evm:~# i2cget -f -y 1 0x18 0x40
0x00
root@da850-omapl138-evm:~# i2cget -f -y 1 0x18 0x33
0x04
root@da850-omapl138-evm:~# i2cget -f -y 1 0x18 0x11
0xff
root@da850-omapl138-evm:~# i2cget -f -y 1 0x18 0x10
0x80
root@da850-omapl138-evm:~#

So it seems that it can access the chip via I2C.

root@da850-omapl138-evm:~# i2cdetect -F 1
Functionalities implemented by /dev/i2c-1:
I2C yes
SMBus Quick Command yes
SMBus Send Byte yes
SMBus Receive Byte yes
SMBus Write Byte yes
SMBus Read Byte yes
SMBus Write Word yes
SMBus Read Word yes
SMBus Process Call yes
SMBus Block Write yes
SMBus Block Read no
SMBus Block Process Call no
SMBus PEC yes
I2C Block Write yes
I2C Block Read yes
root@da850-omapl138-evm:~#

However I realized that the MCASP signals show no activity in these signals:

DA830_ACLKX1 = aic_bclk
DA830_AFSX1 = aic_wclk
DA830_AXR1_0 = aic_dout
DA830_AXR1_5  = aic_din

I rechecked the pinmux settings and they are OK. Attached you can find my (Please visit the site to view this file).

The only exception is the DA830_AHCLKX1 that is being driven by an external 24.576MHz oscillator which also drives the AIC3106.

What can be wrong?

I will really appreciate your help.

Best regards,

Patricio


Viewing all articles
Browse latest Browse all 17527

Trending Articles