From 2da4988c5aff2f58809a2ea76a6e7a4a5d745a41 Mon Sep 17 00:00:00 2001 From: Jaechul Lee Date: Tue, 2 Apr 2019 10:30:46 +0900 Subject: ARM64: dts: bcm2710-rpi-3-b: Adds respeaker 4mic nodes adds respeaker 4mic nodes. Change-Id: I8145a93dfebe716be61cb4cad30b7174a1e4bea1 Signed-off-by: Jaechul Lee --- arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts | 37 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 37 ++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) (limited to 'arch/arm') diff --git a/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts b/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts index 841a361ec959..33f7006d564e 100644 --- a/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts @@ -219,6 +219,16 @@ 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 { @@ -261,6 +271,9 @@ &i2s { pinctrl-names = "default"; pinctrl-0 = <&i2s_pins>; + + #sound-dai-cells = <0>; + status = "okay"; }; &leds { @@ -287,6 +300,30 @@ 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>; + }; +}; + / { __overrides__ { act_led_gpio = <&act_led>,"gpios:4"; diff --git a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts index 90f33ba01ca9..d27ab2b35b4b 100644 --- a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts @@ -230,6 +230,16 @@ 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 { @@ -272,6 +282,9 @@ &i2s { pinctrl-names = "default"; pinctrl-0 = <&i2s_pins>; + + #sound-dai-cells = <0>; + status = "okay"; }; &leds { @@ -298,6 +311,30 @@ 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>; + }; +}; + / { __overrides__ { act_led_gpio = <&act_led>,"gpios:4"; -- cgit v1.2.3