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.

AM4378: McASP ACLKX and FSX output

Part Number: AM4378


Is it possible to output a 256 KHz clock on MCASP0_ACLKX and 8 KHz on MCASP0_FSX? I've tried playing with the simple-audio-card,mclk-fs property in the device tree, and if I set this property to 3072 it seems like that should get me my desired clock frequencies, but it instead outputs 250KHz on ACLKX and 7.8 KHz on FSX. I've looked into davinci-mcasp.c and it indicates that it is going to set the bclk frequency to 256 KHz but instead outputs 250 KHz.

I've also tried using different values for mclk-fs, but any other value that is close to 3072 isn't allowed. Is there something else I can try to get the desired frequencies? Here are my simple audio card and mcasp0 nodes in the device tree:

sound1: sound1 {
compatible = "simple-audio-card";
simple-audio-card,name = "SILABS_DAA";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&mcasp0_clk_out>;
simple-audio-card,frame-master = <&mcasp0_clk_out>;
simple-audio-card,mclk-fs = <3072>;

simple-audio-card,codec {
sound-dai = <&silabs_pcm>;
};

mcasp0_clk_out: simple-audio-card,cpu {
sound-dai = <&mcasp0>;
system-clock-direction = "out";
};
};

&mcasp0 {
#sound-dai-cells = <0>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&mcasp_0_pins_default>;
pinctrl-1 = <&mcasp_0_pins_sleep>;

status = "okay";

op-mode = <0>; // MCASP_IIS_MODE /
tdm-slots = <2>;
// 4 serializers /
serial-dir = < // 0: INACTIVE, 1: TX, 2: RX /
1 2 0 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};