Quantcast
Viewing all articles
Browse latest Browse all 4886

Interfacing (DSI, CSI, I2C, etc.) • Re: Raspberry Pi 4 model B external I2S interface not working on pins GPIO18 - 21

DTS file of the audio codec MAX98090.

Code:

/dts-v1/;/plugin/;/ {    compatible = "brcm,bcm2835";    fragment@0 {        target = <&i2c_arm>;        __overlay__ {            #address-cells = <1>;            #size-cells = <0>;            max98090: audio-codec@10 {                compatible = "maxim,max98090";                reg = <0x10>;                interrupt-parent = <&gpx3>;// gpio                interrupts = <2 0x8>;  // Adjust GPIO as needed                clocks = <&i2s0 0>;                clock-names = "mclk";                #sound-dai-cells = <0>;                maxim,dmic-freq = <2500000>;  // Default digital mic frequency                maxim,micbias = <3>;          // Micbias voltage set to 2.8V            };        };    };    fragment@1 {        target = <&i2s>;        __overlay__ {            status = "okay";        };    };    fragment@2 {        target = <&sound>;        __overlay__ {            status = "okay";            compatible = "simple-audio-card";            simple-audio-card,format = "i2s";            simple-audio-card,bitclock-master = <&dailink_master>;            simple-audio-card,frame-master = <&dailink_master>;            simple-audio-card,cpu {                sound-dai = <&i2s>;            };            dailink_master: simple-audio-card,codec {                sound-dai = <&max98090>;            };        };    };};
I got this DTS file compiled as a .dtbo file, which I added to /boot/firmware/overlays/. However, when I connected the audio codec, I could not get any i2s signal in the Logic analyzer. How can I confirm that this overlay is right? Does it show a mic icon in the top right corner of the GUI?

But when I loaded a random overlay of an audio codec dtoverlay=max98357a in the config.txt file, it neither indicated any mic icon at the top right corner nor showed up in either playback or capture devices. The same happens when I load the overlay of my audio codec. But it showed mic icon when I loaded dtoverlay=adau7002-simple (I2S mic capture) and showed up in the "LIST OF CAPTURE DEVICES".

Now, how can I verify that my .dts file is right? So that I can understand if the problem is with the code or did I miss any crucial step.

Kindly help me sort this out...

Statistics: Posted by electronics_enthu — Mon Nov 11, 2024 6:46 am



Viewing all articles
Browse latest Browse all 4886

Trending Articles