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.

Linux/PCM1862: create an audio device tree overlay for raspberry pi 3

Part Number: PCM1862

Tool/software: Linux

hello , i'm trying to activate the pcm1862 via i2c bus via commands from my raspberry pi 3 using pcm186x drivers . since no raspbian version supportes the pcm1862 i've created a customized distribution for the raspberry running on 5.1 linux kernel version since it supports pcm186x . after compiling the new kernel i ended up having the pcm186x modules compiled (snd-soc-pcm186x.ko and snd-soc-pcm186x-i2c.ko) under lib/modules/kernel/............/sound/soc/codecs . but i had to charge the modules into the kernel so that i can have them ready whenever booting the system. for that i added an audio overlay and converted it to.dtb in boot/overlays and edit the boot/config.txt . still when rebboting the pi and typing arecord -l nothing appears in the list . something must be missing in the sound node in the .dts file . here's the sound section in the overlay i've created .can you help me fix the problem ? 

fragment@2 {
target = <&sound>;
sound_overlay: __overlay__ {
compatible ="simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "pcm1862";
simple-audio-card,bitclock-master = <&dailink0_master>;
simple-audio-card,frame-master = <&dailink0_master>;
dai-tdm-slot-tx-mask = <1 1>;
dai-tdm-slot-rx-mask = <1 1>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
system-clock-frequency = <12288000>;
mclk-fs = <256>;

status = "okay";
simple-audio-card,cpu {
sound-dai = <&i2s>;
};
dailink0_master:simple-audio-card,codec {
sound-dai = <&pcm186x>;
};
};
};

__overrides__ {
card-name = <&sound_overlay>,"simple-audio-card,name";
};

  • Takwa Barkri, 

    I'm afraid we are unable to provide any assistance related to drivers or the creation of drivers.   The PCM186x driver is intended as an example,  but it is assumed that the user will have the expertise to modify it to a different linux kernel, or variant. 

    I can definitely help with any questions you have about the PCM1862 functionality or configuration. 

    best regards,

    -Steve Wilson