Dear sir
we use tlv320aic3104 on am3358 board,but it do not works, we design our board follows http://elinux.org/CircuitCo:Audio_Cape_RevB;
use sdk 6 with 3.2 kernel.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear sir
we use tlv320aic3104 on am3358 board,but it do not works, we design our board follows http://elinux.org/CircuitCo:Audio_Cape_RevB;
use sdk 6 with 3.2 kernel.
Hi,
Please check whether you have pinmuxed the AM335X interface to the codec correctly?
Hi Biser,
I think you are right, I check the code, mcasp1_init() initialize the mcasp1, but we actually connect mcasp0,
/* Module pin mux for mcasp1 */
static struct pinmux_config mcasp1_pin_mux[] = {
{"mii1_crs.mcasp1_aclkx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN},
{"mii1_rxerr.mcasp1_fsx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN},
{"mii1_col.mcasp1_axr2", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN},
{"rmii1_refclk.mcasp1_axr3", OMAP_MUX_MODE4 |
AM33XX_PIN_INPUT_PULLDOWN},
{NULL, 0},
};
how can I initialize mcasp0? I wonder that how I can confirm the strings in the arry, like "mii1_crs.mcasp1_aclkx", would you please help me to verify it? thanks
the attachment is the schem of audio, FYI
Hi,
You need to configure like mcasp0_ahclkx.mcasp0_ahclkx.
For example to mux the MCASP0 pins showed in the schematic above you need to create a structure similar to the one bellow:
static struct pinmux_config mcasp0_pin_mux[] = {
{"mcasp0_fsx.mcasp0_fsx", OMAP_MUXMODE0 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_aclkx.mcasp0_aclkx", OMAP_MUXMODE0 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_axr0.mcasp0_axr0", OMAP_MUXMODE0 | AM33XX_PIN_INPUT_PULLDOWN},
.................................
.................................
{NULL, 0},
};
Above structure configures
ball B13 as mcasp0_fsx with input enable & pull down
ball A13 as mcasp0_aclkx with input enable & pull down
ball D12 as mcasp0_axr0 with input enable & pull down
and so on....
Hope this helps.
Best Regards,
Yordan
hi Yordan,
we configed as follows but failed.
/*Module pin mux for mcasp0 */
static struct pinmux_config mcasp0_pin_mux[] = {
{"mcasp0_aclkx.mcasp0_aclkx", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_fsx.mcasp0_fsx", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_axr0.mcasp0_axr0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_axr1.mcasp0_axr1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN},
{"mcasp0_ahclkx.mcasp0_ahclkx", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, // Is this pin config here? or any advice?
{NULL, 0},
};
now we config as follows, is there a function like setup_pin_mux for us to print the pinmux value?
/* Setup McASP 0 wubin */
static void mcasp0_init(int evm_id, int profile)
{
/* Configure McASP */
setup_pin_mux(mcasp0_pin_mux);
switch (evm_id) {
case EVM_SK:
am335x_register_mcasp(&am335x_evm_sk_snd_data0, 0);
break;
default:
am335x_register_mcasp(&am335x_evm_snd_data0, 0);
}
return;
}
Hi Amon,
Sorry for the delayed response, needed some time to catch up with the updates on this thread since Friday.
Here is what I can answer of your questions:
"we now consider to use CLKOUT1(A15) or CLKOUT2(D14) as the MCLK of TLV320AIC3014,
we test CLKOUT2 is 32.768k ,but TLV320AIC3014 need 500KHz to 50Mhz,
we wonder how to config CLKOUT1 CLKOUT2 to be 12MHz or 24MHz to satisfy codec?"
I think it would be best if you stick with the reference design -> elinux.org/.../Audio_Cape_B1_Schematic.pdf & https://github.com/CircuitCo/BeagleBone-Black/blob/master/BBB_SCH.pdf?raw=true
In beaglebone audio cape
MCLK is connected to the expansion header on GPIO3_21 => which is ball A14 of AM335x device => MCASP0_AHCLKX/EQEP0_STROBE/MCASP0_AXR3/MCASP1_AXR1/EMU4/PR1_PRU0_PRU_R30_7/PR1_PRU0_PRU_R31_7/GPIO3_21
WCLK is connected to SPI1_D0 => ball B13 on AM335x device =>
MCASP0_FSX/EHRPWM0B//SPI1_D0/MMC1_SDCD/PR1_PRU0_PRU_R30_1/PR1_PRU0_PRU_R31_1/GPIO3_15
BCLK is connected to SP1_SCLK => ball A13 on AM335x device =>
MCASP0_ACLKX/EHRPWM0A//SPI1_SCLK/MMC0_SDCD/PR1_PRU0_PRU_R30_0/PR1_PRU0_PRU_R31_0/GPIO3_14
Please ensure the correct setting of those clocks. Refer to Sitara DAC example & backport to your kernel version: http://processors.wiki.ti.com/index.php/Sitara_Linux_Audio_DAC_Example
"now we config as follows, is there a function like setup_pin_mux for us to print the pinmux value?
/* Setup McASP 0 wubin */
static void mcasp0_init(int evm_id, int profile)
{
/* Configure McASP */
setup_pin_mux(mcasp0_pin_mux);
switch (evm_id) {
case EVM_SK:
am335x_register_mcasp(&am335x_evm_sk_snd_data0, 0);
break;
default:
am335x_register_mcasp(&am335x_evm_snd_data0, 0);
}"
Yes you can use the setup_pinmux() function on mcasp0. But first you need to create static struct pinmux_config mcasp0_pin_mux[] with all needed pins (depending on your use case: clock, data, irq, etc...) defined.
Regarding the errors you get:
Amon Wu said:root@am335x-evm:/test# aplay 123.wav
Playing WAVE '123.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
[ 555.468688] playback write error (DMA or IRQ trouble?)
Can you check the following fixes: https://lkml.org/lkml/2013/3/1/204
Hi,
Amon Wu said:but one problem is the GPIO3_21/MCLK has no clock, and no print log in davinci-mcasp.c
Having no clock on the AHCLKR pin (MCLK) could be the root cause of your issue. I think you should concentrate on configuring the clocks first.
I see you've initialized the MCASP0, in board-am335xevm.c, as done with mcasp1? Like:
static void mcasp0_init(int evm_id, int profile)
{
setup_pin_mux(mcasp0_pin_mux);
switch (evm_id) {
case EVM_SK:
am335x_register_mcasp(&am335x_evm_sk_snd_data1, 0);
break;
default:
am335x_register_mcasp(&am335x_evm_sk_snd_data1, 0);
return;
}
After booting your board, can you verify the pinmux settings for AHCLKX (ball A14), FSX (ball B13), AXR & MCASP clock dividers? You can use the devmem2 command in user space.
Best Regards,
Yordan
Hi,
Have you cleaned up your board file?
I can see that in board-am335xevm.c (SDK6.0) mcasp0 pins are used by other modules.
For example MCASP0_AHCLKX is muxed as gpio3_21 & is used by the WIFI module:
static struct pinmux_config wl12xx_pin_mux[] = {
{"gpmc_a0.gpio1_16", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},
{"mcasp0_ahclkr.gpio3_17", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
{"mcasp0_ahclkx.gpio3_21", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP},
{NULL, 0},
};
static struct pinmux_config wl12xx_pin_mux_sk[] = {
{"gpmc_wpn.gpio0_31", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
{"gpmc_csn0.gpio1_29", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP},
{"mcasp0_ahclkx.gpio3_21", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},
{NULL, 0},
};
MCASP0_AXR0 is muxed as SPI1_D1:
static struct pinmux_config spi1_pin_mux[] = {
{"mcasp0_aclkx.spi1_sclk", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_INPUT_EN},
{"mcasp0_fsx.spi1_d0", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_PULL_UP | AM33XX_INPUT_EN},
{"mcasp0_axr0.spi1_d1", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_INPUT_EN},
{"mcasp0_ahclkr.spi1_cs0", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_PULL_UP | AM33XX_INPUT_EN},
{NULL, 0},
};
and so on. I think that you should clean those or mux the MCASP0 pins (AHCLKX, AHCLKR, FSX, AXR, etc..) on other device balls if your HW design allows that.
Best Regards,
Yordan
the new log
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0 (zhouqun@zhouqun) (gcc version 4.7.3 20130225
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: at arch/arm/mach-omap2/clkt_clksel.c:194 omap2_clksel_r)
[ 0.000000] clock: Could not find fieldval 0 for clock dpll_core_m6_ck parenk
[ 0.000000] Modules linked in:
[ 0.000000] Backtrace:
[ 0.000000] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c0400ed4>] (dump_)
[ 0.000000] r6:c0030b28 r5:00000009 r4:c05bbe78 r3:c05dca8c
[ 0.000000] [<c0400ebc>] (dump_stack+0x0/0x1c) from [<c003e4a4>] (warn_slowp)
[ 0.000000] [<c003e450>] (warn_slowpath_common+0x0/0x6c) from [<c003e560>] ()
[ 0.000000] r8:80000200 r7:c0636e64 r6:00000000 r5:c05cec38 r4:00000000
[ 0.000000] r3:00000009
[ 0.000000] [<c003e528>] (warn_slowpath_fmt+0x0/0x40) from [<c0030b28>] (oma)
[ 0.000000] r3:00000000 r2:c04ec8cc
[ 0.000000] [<c0030a60>] (omap2_clksel_recalc+0x0/0x134) from [<c0034a34>] ()
[ 0.000000] r6:c0636e9c r5:c05ceb38 r4:c05cec38
[ 0.000000] [<c0034a00>] (propagate_rate+0x0/0x54) from [<c0034a40>] (propag)
[ 0.000000] r5:c05ceadc r4:c05ceb24
[ 0.000000] [<c0034a00>] (propagate_rate+0x0/0x54) from [<c0034a40>] (propag)
[ 0.000000] r5:c05cea24 r4:c05ceac8
[ 0.000000] [<c0034a00>] (propagate_rate+0x0/0x54) from [<c0034a40>] (propag)
[ 0.000000] r5:c05ce910 r4:c05cea10
[ 0.000000] [<c0034a00>] (propagate_rate+0x0/0x54) from [<c0034ba4>] (recalc)
[ 0.000000] r5:c05dc1e4 r4:c05ce8fc
[ 0.000000] [<c0034b64>] (recalculate_root_clocks+0x0/0x58) from [<c058cbd8>)
[ 0.000000] r5:c05ce78c r4:c05ce78c
[ 0.000000] [<c058cb54>] (am33xx_clk_init+0x0/0xa0) from [<c058c920>] (omap3)
[ 0.000000] r5:c0a51040 r4:00003517
[ 0.000000] [<c058c840>] (omap3xxx_clk_init+0x0/0x314) from [<c05865b8>] (am)
[ 0.000000] r7:c0636e64 r6:c0636e9c r5:c0a51040 r4:c05ac1a8
[ 0.000000] [<c058657c>] (am33xx_init_early+0x0/0x40) from [<c0582de0>] (set)
[ 0.000000] [<c05826cc>] (setup_arch+0x0/0x804) from [<c057f5a4>] (start_ker)
[ 0.000000] [<c057f52c>] (start_kernel+0x0/0x2dc) from [<80008040>] (0x80008)
[ 0.000000] r6:c05ad618 r5:c05bc084 r4:10c53c7d
[ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa8
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 e
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 513288k/513288k available, 11000k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc057f000 (5596 kB)
[ 0.000000] .init : 0xc057f000 - 0xc05ba000 ( 236 kB)
[ 0.000000] .data : 0xc05ba000 - 0xc06213f0 ( 413 kB)
[ 0.000000] .bss : 0xc0621414 - 0xc064ffe4 ( 187 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrus
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 1s
[ 0.000000] Console: colour dummy device 80x30
[ 0.000305] Calibrating delay loop... 298.59 BogoMIPS (lpj=1492992)
[ 0.067657] pid_max: default: 32768 minimum: 301
[ 0.067932] Security Framework initialized
[ 0.068115] Mount-cache hash table entries: 512
[ 0.068817] CPU: Testing write buffer coherency: ok
[ 0.096496] omap_hwmod: pruss: failed to hardreset
[ 0.098693] print_constraints: dummy:
[ 0.099456] NET: Registered protocol family 16
[ 0.103942] OMAP GPIO hardware version 0.1
[ 0.109863] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.114044] omap_i2c.1: alias fck already exists
[ 0.115905] omap2_mcspi.1: alias fck already exists
[ 0.116394] omap2_mcspi.2: alias fck already exists
[ 0.118530] edma.0: alias fck already exists
[ 0.118591] edma.0: alias fck already exists
[ 0.118621] edma.0: alias fck already exists
[ 0.181579] bio: create slab <bio-0> at 0
[ 0.186340] SCSI subsystem initialized
[ 0.189849] usbcore: registered new interface driver usbfs
[ 0.190551] usbcore: registered new interface driver hub
[ 0.190979] usbcore: registered new device driver usb
[ 0.192779] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.195861] tps65910 1-002d: could not be detected
[ 0.198883] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.201232] Switching to clocksource gp timer
[ 0.237304] NET: Registered protocol family 2
[ 0.237670] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.238250] TCP established hash table entries: 16384 (order: 5, 131072 byte)
[ 0.238952] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.239379] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.239410] TCP reno registered
[ 0.239440] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.239471] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.239929] NET: Registered protocol family 1
[ 0.240447] RPC: Registered named UNIX socket transport module.
[ 0.240478] RPC: Registered udp transport module.
[ 0.240478] RPC: Registered tcp transport module.
[ 0.240509] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.240997] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.272277] VFS: Disk quotas dquot_6.5.2
[ 0.272399] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.273468] msgmni has been set to 1002
[ 0.279876] alg: No test for stdrng (krng)
[ 0.281158] io scheduler noop registered
[ 0.281188] io scheduler deadline registered
[ 0.281433] io scheduler cfq registered (default)
[ 0.283691] Could not set LED4 to fully on
[ 0.286987] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.966674] console [ttyO0] enabled
[ 0.971466] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.979919] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.988372] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.996704] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.005065] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.014434] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[ 1.042816] brd: module loaded
[ 1.057250] loop: module loaded
[ 1.060943] i2c-core: driver [tsl2550] using legacy suspend method
[ 1.067596] i2c-core: driver [tsl2550] using legacy resume method
[ 1.074218] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.121856] No daughter card found
[ 1.125549] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 1.135101] The board is a AM335x Beaglebone Black.
[ 1.141326] Cannot clk_get ck_32
[ 1.144989] ++++++++pin_mux:xdma_event_intr1.clkout2
[ 1.152160] tps65217 1-0024: TPS65217 ID 0xe version 1.2
[ 1.160919] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV
[ 1.170501] print_constraints: DCDC2: 900 <--> 3300 mV at 1100 mV
[ 1.180053] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV
[ 1.189544] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV
[ 1.198913] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV
[ 1.208190] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV
[ 1.217620] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV
[ 1.224884] ++++++++pin_mux:mii1_rxerr.mii1_rxerr++++++++pin_mux:mii1_txen.m6
[ 1.304718] davinci-mcasp.0: alias fck already exists
[ 1.310882] ++++++++pin_mux:gpmc_ad3.mmc1_dat3++++++++pin_mux:gpmc_ad2.mmc1_8
[ 1.369720] omap_hsmmc.0: alias fck already exists
[ 1.375732] omap_hsmmc.1: alias fck already exists
[ 1.381408] ++++zhouqun i2c2_init
[ 1.385040] ++++++++pin_mux:uart1_ctsn.i2c2_sda++++++++pin_mux:uart1_rtsn.i2l
[ 1.393005] omap_i2c.3: alias fck already exists
[ 1.398864] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 1.409057] registered am33xx_sr device
[ 1.417083] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.424865] omap2-nand driver initializing
[ 1.429595] OneNAND driver initializing
[ 1.436492] CAN device driver interface
[ 1.440582] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.491943] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.498504] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
[ 1.506347] davinci_mdio.0: probed
[ 1.509979] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LA0
[ 1.519409] usbcore: registered new interface driver zd1201
[ 1.525756] usbcore: registered new interface driver cdc_ether
[ 1.532318] usbcore: registered new interface driver cdc_eem
[ 1.538665] usbcore: registered new interface driver dm9601
[ 1.544677] cdc_ncm: 04-Aug-2011
[ 1.548461] usbcore: registered new interface driver cdc_ncm
[ 1.554504] Initializing USB Mass Storage driver...
[ 1.560058] usbcore: registered new interface driver usb-storage
[ 1.566467] USB Mass Storage support registered.
[ 1.573059] mousedev: PS/2 mouse device common for all mice
[ 1.581176] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 1.588867] i2c /dev entries driver
[ 1.593994] Linux video capture interface: v2.00
[ 1.599578] usbcore: registered new interface driver uvcvideo
[ 1.605743] USB Video Class driver (1.1.1)
[ 1.614257] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.623199] cpuidle: using governor ladder
[ 1.628692] cpuidle: using governor menu
[ 1.638397] omap4_aes_mod_init: loading AM33X AES driver
[ 1.644317] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[ 1.651458] omap4_aes_probe: probe() done
[ 1.656494] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[ 1.662872] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[ 1.685760] omap4_sham_probe: probe() done
[ 1.695709] usbcore: registered new interface driver usbhid
[ 1.701599] usbhid: USB HID core driver
[ 1.707611] usbcore: registered new interface driver snd-usb-audio
[ 1.715881] +++++++++++++++zhouqun aic3x_i2c_probe
[ 1.720977] control_type = SND_SOC_I2C
[ 1.725067] ++++++snd_soc_register_codec:0
[ 1.729461] +++++++++++++++zhouqun aic3x_i2c_probe
[ 1.734588] control_type = SND_SOC_I2C
[ 1.738555] ++++++snd_soc_register_codec:0
[ 1.743804] ++++++++++++++++zhouqun:davinci_mcasp_init
[ 1.743835] ++++++++++++++==zhouqun : davinci_mcasp_probe
[ 1.755737] +++++++zhouqun :evm_init
[ 1.759582] ++++zhouqun am335x_evm?
[ 1.765045] ++++++++++soc_bind_dai_link
[ 1.769134] ++++++++zhouqun:binding TLV320AIC3X at idx 0
[ 1.775024] +++++++++++++++ aic3x_probe
[ 1.779144] tlv320aic3x-codec 1-001b: Failed to get supply 'IOVDD': -19
[ 1.786224] tlv320aic3x-codec 1-001b: Failed to request supplies: -19
[ 1.793090] tlv320aic3x-codec 1-001b: asoc: failed to probe CODEC tlv320aic39
[ 1.802398] asoc: failed to instantiate card AM335X EVM: -19
[ 1.808471] ALSA device list:
[ 1.811614] No soundcards found.
[ 1.815246] oprofile: hardware counters not available
[ 1.820617] oprofile: using timer interrupt.
[ 1.825195] nf_conntrack version 0.5.0 (8020 buckets, 32080 max)
[ 1.832672] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.838500] TCP cubic registered
[ 1.842010] NET: Registered protocol family 17
[ 1.846740] can: controller area network core (rev 20090105 abi 8)
[ 1.853485] NET: Registered protocol family 29
[ 1.858184] can: raw protocol (rev 20090105)
[ 1.862762] can: broadcast manager protocol (rev 20090105 t)
[ 1.868835] Registering the dns_resolver key type
[ 1.873962] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3
[ 1.882141] ThumbEE CPU extension supported.
[ 1.886779] mux: Failed to setup hwmod io irq -22
[ 1.893157] Power Management for AM33XX family
[ 1.898223] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.905181] Copied the M3 firmware to UMEM
[ 1.909667] Cortex M3 Firmware Version = 0x181
[ 1.917877] create_regulator: DCDC2: Failed to create debugfs directory
[ 1.925964] smartreflex smartreflex: am33xx_sr_probe: Driver initialized
[ 1.941772] clock: disabling unused clocks to save power
[ 1.979644] Detected MACID=d0:5f:b8:fc:3:d0
[ 1.986236] cpsw: Detected MACID = d0:5f:b8:fc:03:d2
[ 1.993865] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01)
[ 2.003845] Waiting for root device /dev/mmcblk0p2...
[ 2.016632] mmc1: new high speed MMC card at address 0001
[ 2.023590] mmcblk0: mmc1:0001 S10004 3.56 GiB
[ 2.028656] mmcblk0boot0: mmc1:0001 S10004 partition 1 4.00 MiB
[ 2.035217] mmcblk0boot1: mmc1:0001 S10004 partition 2 4.00 MiB
[ 2.043762] mmcblk0: p1 p2
[ 2.052093] mmcblk0boot1: unknown partition table
[ 2.061340] mmcblk0boot0: unknown partition table
[ 2.117767] kjournald starting. Commit interval 5 seconds
[ 2.123748] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 2.131103] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 2.139312] Freeing init memory: 236K
INIT: version 2.88 booting
Error opening /dev/fb0: No such device
Starting udev
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or y
bootlogd.
[ 8.760864] EXT3-fs (mmcblk0p2): using internal journal
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1686: No soundcards found...
Configuring network interfaces... [ 9.967315] net eth0: CPSW phy found : id 1
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
done.
Tue Jun 25 23:09:00 UTC 2013
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to '/etc/drop'
Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgnvwfm6Pt5Z7tSqyA+te2ZnaoprJvm08QkSdZsI/AIwm
Fingerprint: md5 91:f4:93:58:99:68:bd:e6:42:df:d8:1b:26:b2:aa:96
dropbear.
Starting telnet daemon.
Performing wifi calibration...
Error: Module wl12xx_sdio is not currently loaded
nl80211 not found.
[ 20.656250] Disabling lock debugging due to kernel taint
Starting network benchmark server: netserver.
Starting syslogd/klogd: done
Starting thttpd.
Starting Lighttpd Web Server: lighttpd.
2013-06-25 23:09:01: (log.c.166) server started
/
Starting Matrix GUI application.
ERROR: could not insert 'g_mass_storage': No such device
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
binutils-symlinks
binutils
gdbserver
If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution. This can be done using
the opkg remove command. i.e.:
opkg remove <package>
Where <package> is the name printed in the list above
NOTE: If the package is a dependency of another package you
will be notified of the dependent packages. You should
use the --force-removal-of-dependent-packages option to
also remove the dependent packages as well
***************************************************************
***************************************************************
Stopping Bootlog daemon: bootlogd.
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org am335x-evm ttyO0
Arago 2013.05 am335x-evm ttyO0
am335x-evm login:
actully we do not use spi1 and not initialize it in the cfg list, as follows.
maybe not
/* Beaglebone Black */
static struct evm_dev_cfg beagleboneblack_dev_cfg[] = {
{am335x_rtc_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{clkout2_enable, DEV_ON_BASEBOARD, PROFILE_NONE},
{tps65217_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mii1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mfd_tscadc_init, DEV_ON_BASEBOARD, PROFILE_ALL},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc1_emmc_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
// {i2c2_init, DEV_ON_BASEBOARD, PROFILE_NONE},
// {sgx_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{enable_ecap1, DEV_ON_BASEBOARD, PROFILE_NONE},
{NULL, 0, 0},
};
static void mcasp_start_tx(struct davinci_audio_dev *dev)
{
u8 offset = 0, i;
u32 cnt;
mcasp_set_ctl_reg(dev->base + DAVINCI_MCASP_GBLCTLX_REG, TXHCLKRST);
mcasp_set_ctl_reg(dev->base + DAVINCI_MCASP_GBLCTLX_REG, TXCLKRST);
mcasp_set_ctl_reg(dev->base + DAVINCI_MCASP_GBLCTLX_REG, TXSERCLR);
mcasp_set_reg(dev->base + DAVINCI_MCASP_TXBUF_REG, 0);
mcasp_set_ctl_reg(dev->base + DAVINCI_MCASP_GBLCTLX_REG, TXSMRST);
mcasp_set_ctl_reg(dev->base + DAVINCI_MCASP_GBLCTLX_REG, TXFSRST);
mcasp_set_reg(dev->base + DAVINCI_MCASP_TXBUF_REG, 0);
for (i = 0; i < dev->num_serializer; i++) {
if (dev->serial_dir[i] == TX_MODE) {
offset = i;
break;
}
}
/* wait for TX ready */ here we found !(mcasp_get_reg(dev->base + DAVINCI_MCASP_XRSRCTL_REG(offset)) always 1,and cnt count to 100000 then quit the loop, maybe not tx ready ?
cnt = 0;
while (!(mcasp_get_reg(dev->base + DAVINCI_MCASP_XRSRCTL_REG(offset)) &
TXSTATE) && (cnt < 100000))
cnt++;
mcasp_set_reg(dev->base + DAVINCI_MCASP_TXBUF_REG, 0);
}
Hi Yordan,
we have the clock 24.576Mhz on GPIO3_21,we enable the GPIO1_27 to enable the external clock on the BBB borad.
but still with the wrong log,
[ 555.468688] playback write error (DMA or IRQ trouble?)
please help us to fix the problem,thank you.