From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbcEaKRB (ORCPT ); Tue, 31 May 2016 06:17:01 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:21119 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbcEaKQy (ORCPT ); Tue, 31 May 2016 06:16:54 -0400 Subject: Re: [PATCH v4 18/18] ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card To: Peter Griffin , , , , , , , , , References: <1464192412-16386-1-git-send-email-peter.griffin@linaro.org> <1464192412-16386-20-git-send-email-peter.griffin@linaro.org> CC: , , , From: Arnaud Pouliquen X-Enigmail-Draft-Status: N1110 Message-ID: <574D6473.7050902@st.com> Date: Tue, 31 May 2016 12:16:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <1464192412-16386-20-git-send-email-peter.griffin@linaro.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.201.23.162] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-05-31_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/25/2016 06:06 PM, Peter Griffin wrote: > This patch enables the uniperif players 2 & 3 for b2120 boards > and also adds the "simple-audio-card" device node to interconnect > the SoC sound device and the codec. > > Signed-off-by: Peter Griffin > --- > arch/arm/boot/dts/stihxxx-b2120.dtsi | 40 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi > index 722c63f..5297f21 100644 > --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi > +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi > @@ -131,5 +131,45 @@ > dvb-card = ; > }; > }; > + > + sti_uni_player2: sti-uni-player@2 { > + status = "okay"; > + }; > + > + sti_uni_player3: sti-uni-player@3 { > + status = "okay"; > + }; enable sti-sasg-codec with spdif pinctrl > + > + sound { > + compatible = "simple-audio-card"; > + simple-audio-card,name = "sti audio card"; > + status = "okay"; > + > + simple-audio-card,dai-link@0 { > + /* DAC */ > + format = "i2s"; > + dai-tdm-slot-width = <32>; clean dai-tdm-slot-width, not used. Regards, Arnaud > + mclk-fs = <256>; > + cpu { > + sound-dai = <&sti_uni_player2>; > + }; > + > + codec { > + sound-dai = <&sti_sasg_codec 1>; > + }; > + }; > + simple-audio-card,dai-link@1 { > + /* SPDIF */ > + format = "left_j"; > + mclk-fs = <128>; > + cpu { > + sound-dai = <&sti_uni_player3>; > + }; > + > + codec { > + sound-dai = <&sti_sasg_codec 0>; > + }; > + }; > + }; > }; > }; >