arm: dts: bcm2711-rpi-4-b: Adds respeaker 4mic nodes
authorJaechul Lee <jcsing.lee@samsung.com>
Mon, 4 Nov 2019 07:09:25 +0000 (16:09 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 09:35:24 +0000 (18:35 +0900)
adds respeaker 4mic nodes.

Change-Id: I79bf8b7860d53e7c88fa1b37ef2af5cdc0532840
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
arch/arm/boot/dts/bcm2711-rpi-4-b.dts

index 8adf9a8..f290925 100644 (file)
        pinctrl-0 = <&i2c1_pins>;
        clock-frequency = <100000>;
        status = "okay";
+
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       ac108_a: ac108@3b{
+               compatible = "x-power,ac108_0";
+               reg = <0x3b>;
+               #sound-dai-cells = <0>;
+               data-protocol = <0>;
+       };
 };
 
 &i2s {
        pinctrl-names = "default";
        pinctrl-0 = <&i2s_pins>;
+
+       #sound-dai-cells = <0>;
+       status = "okay";
+};
+
+&sound {
+       compatible = "seeed-voicecard";
+       seeed-voice-card,format = "dsp_a";
+       seeed-voice-card,name = "seeed-4mic-voicecard";
+       status = "okay";
+
+       seeed-voice-card,bitclock-master = <&codec_dai>;
+       seeed-voice-card,frame-master = <&codec_dai>;
+       seeed-voice-card,channels-playback-override = <4>;
+       seeed-voice-card,channels-capture-override  = <4>;
+
+       cpu_dai: seeed-voice-card,cpu {
+               sound-dai = <&i2s>;
+               dai-tdm-slot-num     = <2>;
+               dai-tdm-slot-width   = <32>;
+               dai-tdm-slot-tx-mask = <1 1 0 0>;
+               dai-tdm-slot-rx-mask = <1 1 0 0>;
+       };
+       codec_dai: seeed-voice-card,codec {
+               sound-dai = <&ac108_a>;
+               system-clock-frequency = <24000000>;
+       };
 };
 
 // =============================================