From 2cf5810f2f4ea750912faa6817791f67bbe928ae Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Fri, 1 Apr 2022 20:38:18 +0800 Subject: [PATCH] ARM: dts: rockchip: rv1103-evb-v10: add support acodec sound Signed-off-by: Xing Zheng Change-Id: I8b3b31b96120c14c5757c9123bcec76dd6be8fbf --- arch/arm/boot/dts/rv1103-evb-v10.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/rv1103-evb-v10.dtsi b/arch/arm/boot/dts/rv1103-evb-v10.dtsi index 624f0b50692d..dcde6f539970 100644 --- a/arch/arm/boot/dts/rv1103-evb-v10.dtsi +++ b/arch/arm/boot/dts/rv1103-evb-v10.dtsi @@ -9,6 +9,25 @@ chosen { bootargs = "earlycon=uart8250,mmio32,0xff4c0000 console=ttyFIQ0 root=/dev/mmcblk0p5 rootfstype=ext4 rootwait snd_soc_core.prealloc_buffer_size_kbytes=16"; }; + + acodec_sound: acodec-sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "rv1103-acodec"; + simple-audio-card,format = "i2s"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,cpu { + sound-dai = <&i2s0_8ch>; + }; + simple-audio-card,codec { + sound-dai = <&acodec>; + }; + }; +}; + +&acodec { + #sound-dai-cells = <0>; + pa-ctl-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + status = "okay"; }; &emmc { @@ -28,3 +47,8 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c4m2_xfer>; }; + +&i2s0_8ch { + #sound-dai-cells = <0>; + status = "okay"; +};