Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3862

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

$
0
0
Hi, I made a lot of changes in my max98090.dts file and it shows Loaded Overlay max98090.dtbo
in vclog but no messages in dmesg and no sound card created.

Code:

/dts-v1/;/plugin/;/ {    compatible = "brcm,bcm2835";    fragment@0 {        target = <&i2c1>;        __overlay__ {            #address-cells = <1>;            #size-cells = <0>;            status = "okay";            max98090: audio-codec@10 {                compatible = "maxim,max98090";                reg = <0x10>;                interrupt-parent = <&gpio>;// gpio                interrupts = <55 2>;  // Adjust GPIO as needed                #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_clk_producer>;            __overlay__ {            status = "okay";        };    };    fragment@2 {        target = <&sound>;        sound_overlay: __overlay__ {            compatible = "simple-audio-card";            simple-audio-card,format = "i2s";            simple-audio-card,name = "max98090-audio-codec";            simple-audio-card,bitclock-master = <&dailink_master>;            simple-audio-card,frame-master = <&dailink_master>;            simple-audio-card,widgets = "Microphone", "Microphone Jack";            simple-audio-card,routing = "PDM_DAT", "Microphone Jack";            status = "okay";            simple-audio-card,cpu {                sound-dai = <&i2s_clk_producer>;            };            dailink_master: simple-audio-card,codec {                sound-dai = <&max98090>;            };        };    };    __overrides__ {        card-name = <&sound_overlay>,"simple-audio-card,name";    };};

Code:

pi@raspberrypi:~ $ cat /proc/asound/pcm00-00: MAI PCM i2s-hifi-0 : MAI PCM i2s-hifi-0 : playback 101-00: MAI PCM i2s-hifi-0 : MAI PCM i2s-hifi-0 : playback 102-00: bcm2835 Headphones : bcm2835 Headphones : playback 8
Also no interrupt assigned to 55

Code:

pi@raspberrypi:~ $ cat /proc/interrupts            CPU0       CPU1       CPU2       CPU3        25:          0          0          0          0     GICv2  29 Level     arch_timer 26:      49869      68258      31936      35368     GICv2  30 Level     arch_timer 29:       4981          0          0          0     GICv2  65 Level     fe00b880.mailbox 30:       1811          0          0          0     GICv2 114 Level     DMA IRQ 31:          0          0          0          0     GICv2 116 Level     DMA IRQ 32:          0          0          0          0     GICv2 117 Level     DMA IRQ 33:          0          0          0          0     GICv2 118 Level     DMA IRQ 34:          0          0          0          0     GICv2 119 Level     DMA IRQ 36:          0          0          0          0     GICv2 122 Level     DMA IRQ 37:          0          0          0          0     GICv2 123 Level     DMA IRQ 38:          0          0          0          0     GICv2  48 Level     arm-pmu 39:          0          0          0          0     GICv2  49 Level     arm-pmu 40:          0          0          0          0     GICv2  50 Level     arm-pmu 41:          0          0          0          0     GICv2  51 Level     arm-pmu 46:          0          0          0          0     GICv2 175 Level     PCIe PME 47:      10357          0          0          0     GICv2 189 Level     eth0 48:          0          0          0          0     GICv2 190 Level     eth0 49:         68          0          0          0  BRCM STB PCIe MSI 524288 Edge      xhci_hcd 50:         90          0          0          0     GICv2  66 Level     VCHIQ doorbell 51:       7535          0          0          0     GICv2 153 Level     uart-pl011 52:     177998          0          0          0     GICv2 158 Level     mmc1, mmc0 53:          0          0          0          0     GICv2 150 Level     fe204000.spi 54:          0          0          0          0     GICv2 149 Level     fe804000.i2c 55:        126          0          0          0     GICv2 106 Level     v3d 56:        179          0          0          0     GICv2 129 Level     vc4 hvs 57:          0          0          0          0  interrupt-controller@7ef00100   4 Level     vc4 hdmi hpd connected 58:          0          0          0          0  interrupt-controller@7ef00100   5 Level     vc4 hdmi hpd disconnected 59:          0          0          0          0  interrupt-controller@7ef00100   1 Level     vc4 hdmi cec rx 60:          0          0          0          0  interrupt-controller@7ef00100   0 Level     vc4 hdmi cec tx 61:          0          0          0          0  interrupt-controller@7ef00100  10 Level     vc4 hdmi hpd connected 62:          0          0          0          0  interrupt-controller@7ef00100  11 Level     vc4 hdmi hpd disconnected 63:          0          0          0          0  interrupt-controller@7ef00100   7 Level     vc4 hdmi cec rx 64:          0          0          0          0  interrupt-controller@7ef00100   8 Level     vc4 hdmi cec tx 65:          0          0          0          0     GICv2 107 Level     fe004000.txp 66:          0          0          0          0     GICv2 141 Level     vc4 crtc 67:          0          0          0          0     GICv2 142 Level     vc4 crtc, vc4 crtc 68:        127          0          0          0     GICv2 133 Level     vc4 crtc 69:          0          0          0          0     GICv2 138 Level     vc4 crtc 70:          0          0          0          0     GICv2 130 Level     feb10000.codecIPI0:          0          0          0          0  CPU wakeup interruptsIPI1:          0          0          0          0  Timer broadcast interruptsIPI2:       1039       1180       1213       1221  Rescheduling interruptsIPI3:      22933      29738      43354      36931  Function call interruptsIPI4:          0          0          0          0  CPU stop interruptsIPI5:       3571       5601       2950       3502  IRQ work interruptsIPI6:          0          0          0          0  completion interruptsErr:          0
Now, how to find it is working or not?

Statistics: Posted by electronics_enthu — Wed Nov 13, 2024 11:30 am



Viewing all articles
Browse latest Browse all 3862

Trending Articles