Message ID | 20221014102151.108539-7-p.rajanbabu@samsung.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp122156wrs; Fri, 14 Oct 2022 04:12:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pwXMjOQaeRqAqF/AqN4uSJs+RRpuTPhJ3GmnsNgRiuocNbgMxsUnEw8PLhfya6P+SezPt X-Received: by 2002:a05:6a00:10cf:b0:563:34ce:412f with SMTP id d15-20020a056a0010cf00b0056334ce412fmr4596398pfu.67.1665745943424; Fri, 14 Oct 2022 04:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665745943; cv=none; d=google.com; s=arc-20160816; b=SbcRrbxhXScNTg0h1i6PRY7b5K8LHhdZo3lNaiOeU9HrwAQzkyj2pjvOmhrbBEEiln q09LHPt9KIX9V9rA1sQpbhNJC4nbPY0Cr7gnrPjPymuRsDyZbVvg1j3hWHZ4zu3aA4dA 5svTbUnfO5tUbEpBr2W3KFRR8S+5QBAx6x/HNehn28Osd25/1EEnK6y+Rq5Ow4y/rceA nRz/2LWzyENOHWdtb/Vrt3Vn5kimYBwmo5zPhhnv+i551h82B2nrPzesAnI9CU1+hGNN Qwicagp4Zl3e+cmo2CGGGvwKE7ztUFrCx5SH4nmGuUMxumLDpAEEw3D1SaC8a5aWJL+j L0dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=9SsgF3hWBhdrZJfljS7+eBsGPvly+gPDoy3K5tTIdBg=; b=OjugAvVvfgMQy2iRXqiOaPKvuqSk07tD2wEuuSEkWRKn1O6h3hQjPslbAywGEtLFZe 2CtNVngZDg2+3kzpEqtN0MQbRFy8ympC5pxitajt4WTbH4p0NDhBbnpREm/rrSL1eUh7 NQdIxLLHaY4zteqbZ5rnFaQYsmCOoCCTcJ+AzmO88wLy8RQZdRIk3SKCIqd+jpRqKe3x JVm1ZVlgd8U57GHgdeoY+3kXAW/jWx8XOa94Ys8MIfwhVoeCSb2VCobq7ii3LyXC1RuQ z2yeFmUbYbqMadzDTDrGu0bTiOEAbMUK3PjgMeUqq0vWKIF3wzY0gJg9mlabtoQQpJO+ v9Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MziZwkX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a63de16000000b004599da2b2bdsi2494970pgg.183.2022.10.14.04.12.08; Fri, 14 Oct 2022 04:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MziZwkX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiJNLLP (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 14 Oct 2022 07:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbiJNLKy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Oct 2022 07:10:54 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D6A1BBEF3 for <linux-kernel@vger.kernel.org>; Fri, 14 Oct 2022 04:10:38 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20221014111036epoutp03808882b9cf9467cbfca5383d8289fcd1~d6wNXDPax1249612496epoutp03b for <linux-kernel@vger.kernel.org>; Fri, 14 Oct 2022 11:10:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20221014111036epoutp03808882b9cf9467cbfca5383d8289fcd1~d6wNXDPax1249612496epoutp03b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1665745836; bh=9SsgF3hWBhdrZJfljS7+eBsGPvly+gPDoy3K5tTIdBg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MziZwkX127b95mJ65tK57IEgMd6yRO/4O7vIf6qiGp0UkJQNE5yTHcM+DWe/S2gGC eGyzElqVDK9bCamL7KJ+u32TJYITSx2UO70XGZRktALjUdIX61EMJwBINyUKOpEUhs nF/FF3LPa7hJRRGPfkvwElApyezT9VBa7b6+38ig= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20221014111036epcas5p34c04fce5100e24c348de56cf4482979a~d6wMq8x480410004100epcas5p38; Fri, 14 Oct 2022 11:10:36 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.174]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4MpkFj3t7Hz4x9Pt; Fri, 14 Oct 2022 11:10:33 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 80.31.26992.9A349436; Fri, 14 Oct 2022 20:10:33 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20221014104915epcas5p12414b87ea127b2d5bf521556bf841b00~d6dj9NWX52011520115epcas5p1k; Fri, 14 Oct 2022 10:49:15 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221014104915epsmtrp2f5c4039270bdfe8644ff8738d6f79eac~d6dj8SSSL0248602486epsmtrp2M; Fri, 14 Oct 2022 10:49:15 +0000 (GMT) X-AuditID: b6c32a49-0c7ff70000016970-3a-634943a9ba47 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6D.56.14392.BAE39436; Fri, 14 Oct 2022 19:49:15 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221014104913epsmtip10879994e360ec84ae6bd8e31ffc0b4ea~d6dh1ysO_2736727367epsmtip1j; Fri, 14 Oct 2022 10:49:12 +0000 (GMT) From: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, s.nawrocki@samsung.com, perex@perex.cz, tiwai@suse.com, pankaj.dubey@samsung.com, alim.akhtar@samsung.com, rcsekar@samsung.com, aswani.reddy@samsung.com Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> Subject: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD Date: Fri, 14 Oct 2022 15:51:51 +0530 Message-Id: <20221014102151.108539-7-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221014102151.108539-1-p.rajanbabu@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLJsWRmVeSW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Kjvd8rpz4emDv59KP Ny+8e3Hy5rN7LNpVKxvWnecJCxTUZdy4hZOpSazz+5VVvqeMzSpzF3mqBp+dv3fVy6CZ2/V/ y9m1nt4gefV8CfcNZ/lFH9rMbS74XttYp6fEUpyRaKjFXFScCADuAJ825QIAAA== X-CMS-MailID: 20221014104915epcas5p12414b87ea127b2d5bf521556bf841b00 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221014104915epcas5p12414b87ea127b2d5bf521556bf841b00 References: <20221014102151.108539-1-p.rajanbabu@samsung.com> <CGME20221014104915epcas5p12414b87ea127b2d5bf521556bf841b00@epcas5p1.samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746661218287291917?= X-GMAIL-MSGID: =?utf-8?q?1746661218287291917?= |
Series |
ASoC: samsung: fsd: audio support for FSD SoC
|
|
Commit Message
Padmanabhan Rajanbabu
Oct. 14, 2022, 10:21 a.m. UTC
Add device tree node support for sound card on Tesla FSD board
Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com>
---
arch/arm64/boot/dts/tesla/fsd-evb.dts | 49 +++++++++++++++++++++++++++
arch/arm64/boot/dts/tesla/fsd.dtsi | 3 ++
2 files changed, 52 insertions(+)
Comments
>-----Original Message----- >From: Padmanabhan Rajanbabu [mailto:p.rajanbabu@samsung.com] >Sent: Friday, October 14, 2022 3:52 PM >To: lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; >krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; >perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; >alim.akhtar@samsung.com; rcsekar@samsung.com; >aswani.reddy@samsung.com >Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- >kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org; Padmanabhan >Rajanbabu <p.rajanbabu@samsung.com> >Subject: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD > >Add device tree node support for sound card on Tesla FSD board > >Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> >--- > arch/arm64/boot/dts/tesla/fsd-evb.dts | 49 >+++++++++++++++++++++++++++ > arch/arm64/boot/dts/tesla/fsd.dtsi | 3 ++ > 2 files changed, 52 insertions(+) > >diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts >b/arch/arm64/boot/dts/tesla/fsd-evb.dts >index c0a4509499ab..ecaa3c2e3045 100644 >--- a/arch/arm64/boot/dts/tesla/fsd-evb.dts >+++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts >@@ -49,3 +49,52 @@ > &tdm_1 { > status = "okay"; > }; >+ >+&sound { >+ compatible = "tesla,fsd-sndcard"; >+ status = "okay"; >+ model = "fsd-i2s"; >+ widgets = >+ "Speaker", "MAIN SPK", >+ "Microphone", "MAIN MIC"; >+ >+ primary-dai-link-0 { >+ link-name = "fsd-primary-0"; >+ dai-format = "i2s"; >+ tesla,bitclock-master = <&tdm_0>; >+ tesla,frame-master = <&tdm_0>; >+ cpu { >+ sound-dai = <&tdm_0 0>; >+ }; >+ }; >+ >+ secondary-dai-link-0 { >+ link-name = "fsd-secondary-0"; >+ dai-format = "i2s"; >+ tesla,bitclock-master = <&tdm_0>; >+ tesla,frame-master = <&tdm_0>; >+ cpu { >+ sound-dai = <&tdm_0 1>; >+ }; >+ }; >+ >+ primary-dai-link-1 { >+ link-name = "fsd-primary-1"; >+ dai-format = "i2s"; >+ tesla,bitclock-master = <&tdm_1>; >+ tesla,frame-master = <&tdm_1>; >+ cpu { >+ sound-dai = <&tdm_1 0>; >+ }; >+ }; >+ >+ secondary-dai-link-1 { >+ link-name = "fsd-secondary-1"; >+ dai-format = "i2s"; >+ tesla,bitclock-master = <&tdm_1>; >+ tesla,frame-master = <&tdm_1>; >+ cpu { >+ sound-dai = <&tdm_1 1>; >+ }; >+ }; >+}; >diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi >b/arch/arm64/boot/dts/tesla/fsd.dtsi >index 5decad45a1b6..fc8931f830a7 100644 >--- a/arch/arm64/boot/dts/tesla/fsd.dtsi >+++ b/arch/arm64/boot/dts/tesla/fsd.dtsi >@@ -847,6 +847,9 @@ > status = "disabled"; > }; > >+ sound: sound { >+ }; >+ Why to have an empty node in dtsi? > timer@10040000 { > compatible = "tesla,fsd-mct", "samsung,exynos4210- >mct"; > reg = <0x0 0x10040000 0x0 0x800>; >-- >2.17.1
> -----Original Message----- > From: Alim Akhtar [mailto:alim.akhtar@samsung.com] > Sent: 14 October 2022 06:59 PM > To: 'Padmanabhan Rajanbabu' <p.rajanbabu@samsung.com>; > lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; > krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; > perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; > rcsekar@samsung.com; aswani.reddy@samsung.com > Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- > kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org > Subject: RE: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD > > > > >-----Original Message----- > >From: Padmanabhan Rajanbabu [mailto:p.rajanbabu@samsung.com] > >Sent: Friday, October 14, 2022 3:52 PM > >To: lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; > >krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; > >perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; > >alim.akhtar@samsung.com; rcsekar@samsung.com; > aswani.reddy@samsung.com > >Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- > >kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org; > Padmanabhan > >Rajanbabu <p.rajanbabu@samsung.com> > >Subject: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD > > > >Add device tree node support for sound card on Tesla FSD board > > > >Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> > >--- > > arch/arm64/boot/dts/tesla/fsd-evb.dts | 49 > >+++++++++++++++++++++++++++ > > arch/arm64/boot/dts/tesla/fsd.dtsi | 3 ++ > > 2 files changed, 52 insertions(+) > > > >diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts > >b/arch/arm64/boot/dts/tesla/fsd-evb.dts > >index c0a4509499ab..ecaa3c2e3045 100644 > >--- a/arch/arm64/boot/dts/tesla/fsd-evb.dts > >+++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts > >@@ -49,3 +49,52 @@ > > &tdm_1 { > > status = "okay"; > > }; > >+ > >+&sound { > >+ compatible = "tesla,fsd-sndcard"; > >+ status = "okay"; > >+ model = "fsd-i2s"; > >+ widgets = > >+ "Speaker", "MAIN SPK", > >+ "Microphone", "MAIN MIC"; > >+ > >+ primary-dai-link-0 { > >+ link-name = "fsd-primary-0"; > >+ dai-format = "i2s"; > >+ tesla,bitclock-master = <&tdm_0>; > >+ tesla,frame-master = <&tdm_0>; > >+ cpu { > >+ sound-dai = <&tdm_0 0>; > >+ }; > >+ }; > >+ > >+ secondary-dai-link-0 { > >+ link-name = "fsd-secondary-0"; > >+ dai-format = "i2s"; > >+ tesla,bitclock-master = <&tdm_0>; > >+ tesla,frame-master = <&tdm_0>; > >+ cpu { > >+ sound-dai = <&tdm_0 1>; > >+ }; > >+ }; > >+ > >+ primary-dai-link-1 { > >+ link-name = "fsd-primary-1"; > >+ dai-format = "i2s"; > >+ tesla,bitclock-master = <&tdm_1>; > >+ tesla,frame-master = <&tdm_1>; > >+ cpu { > >+ sound-dai = <&tdm_1 0>; > >+ }; > >+ }; > >+ > >+ secondary-dai-link-1 { > >+ link-name = "fsd-secondary-1"; > >+ dai-format = "i2s"; > >+ tesla,bitclock-master = <&tdm_1>; > >+ tesla,frame-master = <&tdm_1>; > >+ cpu { > >+ sound-dai = <&tdm_1 1>; > >+ }; > >+ }; > >+}; > >diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi > >b/arch/arm64/boot/dts/tesla/fsd.dtsi > >index 5decad45a1b6..fc8931f830a7 100644 > >--- a/arch/arm64/boot/dts/tesla/fsd.dtsi > >+++ b/arch/arm64/boot/dts/tesla/fsd.dtsi > >@@ -847,6 +847,9 @@ > > status = "disabled"; > > }; > > > >+ sound: sound { > >+ }; > >+ > Why to have an empty node in dtsi? This is required as every node we use in dts should have the same declared in dtsi. Sound nodes in most of the platform is only declared (dummy node) in dtsi and defining only in dts. Thus we are following the same. > > > timer@10040000 { > > compatible = "tesla,fsd-mct", "samsung,exynos4210- > mct"; > > reg = <0x0 0x10040000 0x0 0x800>; > >-- > >2.17.1 > Thank you for reviewing the patch
On 21/10/2022 04:12, Padmanabhan Rajanbabu wrote: > > >> -----Original Message----- >> From: Alim Akhtar [mailto:alim.akhtar@samsung.com] >> Sent: 14 October 2022 06:59 PM >> To: 'Padmanabhan Rajanbabu' <p.rajanbabu@samsung.com>; >> lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; >> krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; >> perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; >> rcsekar@samsung.com; aswani.reddy@samsung.com >> Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- >> kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org >> Subject: RE: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD >> >> >> >>> -----Original Message----- >>> From: Padmanabhan Rajanbabu [mailto:p.rajanbabu@samsung.com] >>> Sent: Friday, October 14, 2022 3:52 PM >>> To: lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; >>> krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; >>> perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; >>> alim.akhtar@samsung.com; rcsekar@samsung.com; >> aswani.reddy@samsung.com >>> Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- >>> kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org; >> Padmanabhan >>> Rajanbabu <p.rajanbabu@samsung.com> >>> Subject: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD >>> >>> Add device tree node support for sound card on Tesla FSD board >>> >>> Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> >>> --- >>> arch/arm64/boot/dts/tesla/fsd-evb.dts | 49 >>> +++++++++++++++++++++++++++ >>> arch/arm64/boot/dts/tesla/fsd.dtsi | 3 ++ >>> 2 files changed, 52 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts >>> b/arch/arm64/boot/dts/tesla/fsd-evb.dts >>> index c0a4509499ab..ecaa3c2e3045 100644 >>> --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts >>> +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts >>> @@ -49,3 +49,52 @@ >>> &tdm_1 { >>> status = "okay"; >>> }; >>> + >>> +&sound { >>> + compatible = "tesla,fsd-sndcard"; >>> + status = "okay"; >>> + model = "fsd-i2s"; >>> + widgets = >>> + "Speaker", "MAIN SPK", >>> + "Microphone", "MAIN MIC"; >>> + >>> + primary-dai-link-0 { >>> + link-name = "fsd-primary-0"; >>> + dai-format = "i2s"; >>> + tesla,bitclock-master = <&tdm_0>; >>> + tesla,frame-master = <&tdm_0>; >>> + cpu { >>> + sound-dai = <&tdm_0 0>; >>> + }; >>> + }; >>> + >>> + secondary-dai-link-0 { >>> + link-name = "fsd-secondary-0"; >>> + dai-format = "i2s"; >>> + tesla,bitclock-master = <&tdm_0>; >>> + tesla,frame-master = <&tdm_0>; >>> + cpu { >>> + sound-dai = <&tdm_0 1>; >>> + }; >>> + }; >>> + >>> + primary-dai-link-1 { >>> + link-name = "fsd-primary-1"; >>> + dai-format = "i2s"; >>> + tesla,bitclock-master = <&tdm_1>; >>> + tesla,frame-master = <&tdm_1>; >>> + cpu { >>> + sound-dai = <&tdm_1 0>; >>> + }; >>> + }; >>> + >>> + secondary-dai-link-1 { >>> + link-name = "fsd-secondary-1"; >>> + dai-format = "i2s"; >>> + tesla,bitclock-master = <&tdm_1>; >>> + tesla,frame-master = <&tdm_1>; >>> + cpu { >>> + sound-dai = <&tdm_1 1>; >>> + }; >>> + }; >>> +}; >>> diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi >>> b/arch/arm64/boot/dts/tesla/fsd.dtsi >>> index 5decad45a1b6..fc8931f830a7 100644 >>> --- a/arch/arm64/boot/dts/tesla/fsd.dtsi >>> +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi >>> @@ -847,6 +847,9 @@ >>> status = "disabled"; >>> }; >>> >>> + sound: sound { >>> + }; >>> + >> Why to have an empty node in dtsi? > This is required as every node we use in dts should have the same declared in I see no reason why this is required. > dtsi. Sound nodes in most of the platform is only declared (dummy node) in > dtsi and defining only in dts. Thus we are following the same. Can you point me to Samsung platform doing this? Keep the code consistent with Exynos style. Best regards, Krzysztof
> -----Original Message----- > From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org] > Sent: 21 October 2022 06:24 PM > To: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com>; 'Alim Akhtar' > <alim.akhtar@samsung.com>; lgirdwood@gmail.com; broonie@kernel.org; > robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > s.nawrocki@samsung.com; perex@perex.cz; tiwai@suse.com; > pankaj.dubey@samsung.com; rcsekar@samsung.com; > aswani.reddy@samsung.com > Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- > kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org > Subject: Re: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla FSD > > On 21/10/2022 04:12, Padmanabhan Rajanbabu wrote: > > > > > >> -----Original Message----- > >> From: Alim Akhtar [mailto:alim.akhtar@samsung.com] > >> Sent: 14 October 2022 06:59 PM > >> To: 'Padmanabhan Rajanbabu' <p.rajanbabu@samsung.com>; > >> lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; > >> krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; > >> perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; > >> rcsekar@samsung.com; aswani.reddy@samsung.com > >> Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- > >> kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org > >> Subject: RE: [PATCH 6/6] arm64: dts: fsd: Add sound card node for > >> Tesla FSD > >> > >> > >> > >>> -----Original Message----- > >>> From: Padmanabhan Rajanbabu [mailto:p.rajanbabu@samsung.com] > >>> Sent: Friday, October 14, 2022 3:52 PM > >>> To: lgirdwood@gmail.com; broonie@kernel.org; robh+dt@kernel.org; > >>> krzysztof.kozlowski+dt@linaro.org; s.nawrocki@samsung.com; > >>> perex@perex.cz; tiwai@suse.com; pankaj.dubey@samsung.com; > >>> alim.akhtar@samsung.com; rcsekar@samsung.com; > >> aswani.reddy@samsung.com > >>> Cc: alsa-devel@alsa-project.org; devicetree@vger.kernel.org; linux- > >>> kernel@vger.kernel.org; linux-samsung-soc@vger.kernel.org; > >> Padmanabhan > >>> Rajanbabu <p.rajanbabu@samsung.com> > >>> Subject: [PATCH 6/6] arm64: dts: fsd: Add sound card node for Tesla > >>> FSD > >>> > >>> Add device tree node support for sound card on Tesla FSD board > >>> > >>> Signed-off-by: Padmanabhan Rajanbabu <p.rajanbabu@samsung.com> > >>> --- > >>> arch/arm64/boot/dts/tesla/fsd-evb.dts | 49 > >>> +++++++++++++++++++++++++++ > >>> arch/arm64/boot/dts/tesla/fsd.dtsi | 3 ++ > >>> 2 files changed, 52 insertions(+) > >>> > >>> diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts > >>> b/arch/arm64/boot/dts/tesla/fsd-evb.dts > >>> index c0a4509499ab..ecaa3c2e3045 100644 > >>> --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts > >>> +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts > >>> @@ -49,3 +49,52 @@ > >>> &tdm_1 { > >>> status = "okay"; > >>> }; > >>> + > >>> +&sound { > >>> + compatible = "tesla,fsd-sndcard"; > >>> + status = "okay"; > >>> + model = "fsd-i2s"; > >>> + widgets = > >>> + "Speaker", "MAIN SPK", > >>> + "Microphone", "MAIN MIC"; > >>> + > >>> + primary-dai-link-0 { > >>> + link-name = "fsd-primary-0"; > >>> + dai-format = "i2s"; > >>> + tesla,bitclock-master = <&tdm_0>; > >>> + tesla,frame-master = <&tdm_0>; > >>> + cpu { > >>> + sound-dai = <&tdm_0 0>; > >>> + }; > >>> + }; > >>> + > >>> + secondary-dai-link-0 { > >>> + link-name = "fsd-secondary-0"; > >>> + dai-format = "i2s"; > >>> + tesla,bitclock-master = <&tdm_0>; > >>> + tesla,frame-master = <&tdm_0>; > >>> + cpu { > >>> + sound-dai = <&tdm_0 1>; > >>> + }; > >>> + }; > >>> + > >>> + primary-dai-link-1 { > >>> + link-name = "fsd-primary-1"; > >>> + dai-format = "i2s"; > >>> + tesla,bitclock-master = <&tdm_1>; > >>> + tesla,frame-master = <&tdm_1>; > >>> + cpu { > >>> + sound-dai = <&tdm_1 0>; > >>> + }; > >>> + }; > >>> + > >>> + secondary-dai-link-1 { > >>> + link-name = "fsd-secondary-1"; > >>> + dai-format = "i2s"; > >>> + tesla,bitclock-master = <&tdm_1>; > >>> + tesla,frame-master = <&tdm_1>; > >>> + cpu { > >>> + sound-dai = <&tdm_1 1>; > >>> + }; > >>> + }; > >>> +}; > >>> diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi > >>> b/arch/arm64/boot/dts/tesla/fsd.dtsi > >>> index 5decad45a1b6..fc8931f830a7 100644 > >>> --- a/arch/arm64/boot/dts/tesla/fsd.dtsi > >>> +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi > >>> @@ -847,6 +847,9 @@ > >>> status = "disabled"; > >>> }; > >>> > >>> + sound: sound { > >>> + }; > >>> + > >> Why to have an empty node in dtsi? > > This is required as every node we use in dts should have the same > > declared in > > I see no reason why this is required. > > > dtsi. Sound nodes in most of the platform is only declared (dummy > > node) in dtsi and defining only in dts. Thus we are following the same. > > Can you point me to Samsung platform doing this? > > Keep the code consistent with Exynos style. Okay, will add the sound node in accordance with Exynos style > > Best regards, > Krzysztof
diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index c0a4509499ab..ecaa3c2e3045 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -49,3 +49,52 @@ &tdm_1 { status = "okay"; }; + +&sound { + compatible = "tesla,fsd-sndcard"; + status = "okay"; + model = "fsd-i2s"; + widgets = + "Speaker", "MAIN SPK", + "Microphone", "MAIN MIC"; + + primary-dai-link-0 { + link-name = "fsd-primary-0"; + dai-format = "i2s"; + tesla,bitclock-master = <&tdm_0>; + tesla,frame-master = <&tdm_0>; + cpu { + sound-dai = <&tdm_0 0>; + }; + }; + + secondary-dai-link-0 { + link-name = "fsd-secondary-0"; + dai-format = "i2s"; + tesla,bitclock-master = <&tdm_0>; + tesla,frame-master = <&tdm_0>; + cpu { + sound-dai = <&tdm_0 1>; + }; + }; + + primary-dai-link-1 { + link-name = "fsd-primary-1"; + dai-format = "i2s"; + tesla,bitclock-master = <&tdm_1>; + tesla,frame-master = <&tdm_1>; + cpu { + sound-dai = <&tdm_1 0>; + }; + }; + + secondary-dai-link-1 { + link-name = "fsd-secondary-1"; + dai-format = "i2s"; + tesla,bitclock-master = <&tdm_1>; + tesla,frame-master = <&tdm_1>; + cpu { + sound-dai = <&tdm_1 1>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 5decad45a1b6..fc8931f830a7 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -847,6 +847,9 @@ status = "disabled"; }; + sound: sound { + }; + timer@10040000 { compatible = "tesla,fsd-mct", "samsung,exynos4210-mct"; reg = <0x0 0x10040000 0x0 0x800>;