ARM64: dts: bcm2710-rpi-3-b: Adds respeaker 4mic nodes
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 2 Apr 2019 01:30:46 +0000 (10:30 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Feb 2022 07:09:31 +0000 (16:09 +0900)
adds respeaker 4mic nodes.

Change-Id: I8145a93dfebe716be61cb4cad30b7174a1e4bea1
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
 Conflicts:
arch/arm/boot/dts/bcm2710-rpi-3-b.dts

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
arch/arm/boot/dts/bcm2710-rpi-3-b.dts

index 319e1aa32cb0e4753b29c0a433e9ba6047a0f0df..281968f750e1bcfeba79831098eb548a5e608646 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>;
+       };
 };
 
 &i2c2 {
 &i2s {
        pinctrl-names = "default";
        pinctrl-0 = <&i2s_pins>;
+
+       #sound-dai-cells = <0>;
+       status = "okay";
 };
 
 &leds {
        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>;
+       };
+};
+
 &eth_phy {
        microchip,eee-enabled;
        microchip,tx-lpi-timer = <600>; /* non-aggressive*/
index 0a8abf8630ca03c70923d29632541e5a2f7f48bc..94cc7a4db3bfa908a83667fbf9ff9fced0dfbcaa 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>;
+       };
 };
 
 &i2c2 {
 &i2s {
        pinctrl-names = "default";
        pinctrl-0 = <&i2s_pins>;
+
+       #sound-dai-cells = <0>;
+       status = "okay";
 };
 
 &leds {
 cam0_reg: &cam_dummy_reg {
 };
 
+&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>;
+       };
+};
+
 / {
        __overrides__ {
                act_led_gpio = <&act_led>,"gpios:4";