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

Device Tree • Re: Enabling dtparms in dtoverlay

$
0
0
I plan to used I2S mic and use this dtoverlay

Code:

/dts-v1/;/plugin/;/ {compatible = "brcm,bcm2835";fragment@0 {target = <&i2s_clk_producer>;__overlay__ {status = "okay";};};fragment@1 {target-path = "/";__overlay__ {dmic_codec: dmic-codec {#sound-dai-cells = <0>;compatible = "dmic-codec";status = "okay";};};};fragment@2 {target = <&sound>;sound_overlay: __overlay__ {compatible = "simple-audio-card";simple-audio-card,format = "i2s";simple-audio-card,name = "mic";simple-audio-card,bitclock-slave = <&dailink0_slave>;simple-audio-card,frame-slave = <&dailink0_slave>;simple-audio-card,widgets = "Microphone", "Microphone Jack";status = "okay";simple-audio-card,cpu {sound-dai = <&i2s_clk_producer>;                    dai-tdm-slot-width = <32>;                    dai-tdm-slot-num   = <2>;};dailink0_slave: simple-audio-card,codec {#sound-dai-cells = <0>;sound-dai = <&dmic_codec>;};};};__overrides__ {card-name = <&sound_overlay>,"simple-audio-card,name";};};
but also need to set dtparm=i2s=on.

Tring to decide if worth puting eeprom on board to make it self configuring.

Statistics: Posted by wkeeling — Thu Aug 29, 2024 5:22 pm



Viewing all articles
Browse latest Browse all 4848

Trending Articles