Part Number: AM3359
Tool/software: Linux
Hi
I am trying to interface an I2S microphone (https://www.adafruit.com/product/3421) with BeagleBone Black,I have written the device tree:
/* * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ /dts-v1/; #include "am33xx.dtsi" #include "am335x-bone-common.dtsi" &ldo3_reg { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; &mmc1 { vmmc-supply = <&ldo3_reg>; }; &am33xx_pinmux { mcasp0_pins: mcasp0_pins { pinctrl-single,pins = < 0x190 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx */ 0x194 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx*/ 0x198 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0 */ >; }; mcasp1_pins: mcasp1_pins { pinctrl-single,pins = < /* sink must enable receivers */ 0x1a0 0x23 /* P9_42 mcasp1_aclkx - bit clock */ 0x1a4 0x23 /* P9_27 mcasp1_fsx - frame sync */ 0x1a8 0x23 /* P9_41 mcasp1_axr0 - i2s input */ >; }; }; &mcasp0 { pinctrl-names = "default"; pinctrl-0 = <&mcasp0_pins>; status = "okay"; op-mode = <0>; /* MCASP_IIS_MODE */ tdm-slots = <2>; /* 16 serializer */ serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ 1 0 0 0 >; tx-num-evt = <32>; rx-num-evt = <32>; }; &mcasp1 { #sound-dai-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&mcasp1_pins>; status = "okay"; op-mode = <0>; tdm-slots = <2>; num-serializer = <4>; serial-dir = < /* 1 TX 2 RX 0 unused */ 2 0 0 0 >; rx-num-evt = <1>; tx-num-evt = <1>; }; / { pcm5102a: pcm5102a { compatible = "ti,pcm5102a"; }; sound { compatible = "ti,pcm5102a-evm-audio"; ti,model = "TI PCM5102A"; ti,audio-codec = <&pcm5102a>; ti,mcasp-controller = <&mcasp1>; ti,codec-clock-rate = <2400000>; }; };
I get a clock on pin 9_42 but no LRCLK on pin 9_27, and also when i measure the bit clock it seems to have a freqency of 24MHz, The .wav files are created when I run
arecord -d 10 -Dhw:0,0 -f dat audio.wav
but the there seems to be no sound in it.