From patchwork Mon Jan 16 10:38:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmanabhan Rajanbabu X-Patchwork-Id: 643630 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD371C3DA78 for ; Tue, 17 Jan 2023 08:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236065AbjAQIV4 (ORCPT ); Tue, 17 Jan 2023 03:21:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236040AbjAQIVx (ORCPT ); Tue, 17 Jan 2023 03:21:53 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0203E27D52 for ; Tue, 17 Jan 2023 00:21:50 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230117082149epoutp046c12fecc0ccfdbc8663992de9e8f8c45~7Cu9UKhiS0655706557epoutp04E for ; Tue, 17 Jan 2023 08:21:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230117082149epoutp046c12fecc0ccfdbc8663992de9e8f8c45~7Cu9UKhiS0655706557epoutp04E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1673943709; bh=bEHQlhP4xZUGfK43GB8zShAe9/8hsMiGXcAwQLQzu2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dSm0JEbWrMdDuM9+ACe4qmtnD1fUIFqxLbi+xbOPJNUh65dUqPjH5AV8OJ43opNNN GdH2Abmd6Voo4zxGpYeN2yJMCerbkYdUmhxolTpngmXJctuCLiDOymYRXI70OubGXN N9Ei5c7KACZKcQP6KP5UOyLqGK/L15gWOAsRF1fA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20230117082148epcas5p20720b76357942044e9dfb4400cf31917~7Cu8alT4c0689506895epcas5p2t; Tue, 17 Jan 2023 08:21:48 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.174]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Nx21700Lpz4x9Pw; Tue, 17 Jan 2023 08:21:46 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 35.EF.03362.A9A56C36; Tue, 17 Jan 2023 17:21:46 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20230116103849epcas5p2197a50d3dd2bd55a9c73d0f30fc438a5~6w9SoMEZq2382723827epcas5p2B; Mon, 16 Jan 2023 10:38:49 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230116103849epsmtrp1f385fa309d6824c53f1fd6e9c8370e2b~6w9Sh_CMj2177121771epsmtrp1L; Mon, 16 Jan 2023 10:38:49 +0000 (GMT) X-AuditID: b6c32a4b-4e5fa70000010d22-4c-63c65a9a66df Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 04.F8.10542.93925C36; Mon, 16 Jan 2023 19:38:49 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230116103846epsmtip165a90c1613615da8d03818a87d2dc004~6w9PuJzqX0462804628epsmtip1_; Mon, 16 Jan 2023 10:38:46 +0000 (GMT) From: Padmanabhan Rajanbabu 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 Subject: [PATCH v4 1/5] ASoC: dt-bindings: Add FSD I2S controller bindings Date: Mon, 16 Jan 2023 16:08:19 +0530 Message-Id: <20230116103823.90757-2-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116103823.90757-1-p.rajanbabu@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJsWRmVeSWpSXmKPExsWy7bCmpu6sqGPJBldOmFo8mLeNzeLKxUNM Foc2b2W3mPrwCZvF/CPnWC36Xjxktvh2pYPJ4vKuOWwWM87vY7I4ujHYYtHWL+wWnbv6WS1m XdjBatG69wi7xeE37awWG76vZXQQ8NjwuYnNY+esu+wem1Z1snncubaHzWPf22VsHn1bVjF6 rN9ylcXj8ya5AI6obJuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtzJYW8xNxUWyUX nwBdt8wcoA+UFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnFJbZKqQUpOQUmBXrFibnFpXnpenmp JVaGBgZGpkCFCdkZC2//Yi6YylNx+cpU5gbGx5xdjJwcEgImEtt/97J3MXJxCAnsZpS4+nom C4TziVHi4dUGNgjnM6PE29ZXQBkOsJZzy2Qh4rsYJQ51nGcFGSUk0MoksfdFNojNJmAqsWpO IytIkYhAE5NE25uJYGOZBTYySpw+9pAJpEpYwEti57Jv7CA2i4CqxMfejWA2r4CNxMQDt9kg DpSXWL3hADOIzSlgK/F17w1mkEESAgs5JOb+2sQCUeQicXvFPSYIW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mMEmcfHeMBSTBLLCVUWLqZyMQW1jAS2Lnsm9gU1kEVCU+9m4Es3kFbCQmHrgNtUFeYvWG A8wgNqeArcTXvTfAbCGgmicTzjNOYORbwMiwilEytaA4Nz232LDAKC+1XK84Mbe4NC9dLzk/ dxMjONi1tHYw7ln1Qe8QIxMH4yFGCQ5mJRFev12Hk4V4UxIrq1KL8uOLSnNSiw8xSnOwKInz Xug6GS8kkJ5YkpqdmlqQWgSTZeLglGpgyn6i1PFPX/bptaV1vWb/NlcKh78VmPp1fX9Q+/OI 7dx31v6d9O35fp1XMp2Vk2NrXBaUff2Yd/xFTFNgXejT0nsPZXh8UmOKliZtlCmJc31nl7+E VeFLasoLuWhe+94sLu/J/3b8KHrn69kx59/cV7/CN+SvsSstmsq4gmWPZ9XBslkH3l2Qlr54 d4bTpckKX/5/4bp25+LnBU5KVx3D2z9cbjUPPuU4+8FJI7W3H/7Hn1V9PNVvQx9r+q/kuvVv LXdEyyrluncH69iUP77FlHntdg9LzNn9zB9ESrM/qrhwhqUvsqpY+Jb/3LnKk/4BCX4CLmZ8 82sLggQE1oWczhNK3Sz+Vmp/4srvXwXNlViKMxINtZiLihMBHjZn3uUCAAA= X-CMS-MailID: 20230116103849epcas5p2197a50d3dd2bd55a9c73d0f30fc438a5 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230116103849epcas5p2197a50d3dd2bd55a9c73d0f30fc438a5 References: <20230116103823.90757-1-p.rajanbabu@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add bindings for FSD CPU DAI driver which supports stereo channel audio playback and capture on FSD platform. Signed-off-by: Padmanabhan Rajanbabu Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sound/samsung-i2s.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/samsung-i2s.yaml b/Documentation/devicetree/bindings/sound/samsung-i2s.yaml index 8d5dcf9cd43e..7ae007591080 100644 --- a/Documentation/devicetree/bindings/sound/samsung-i2s.yaml +++ b/Documentation/devicetree/bindings/sound/samsung-i2s.yaml @@ -37,12 +37,20 @@ properties: samsung,exynos7-i2s1: I2S1 on previous samsung platforms supports stereo channels. Exynos7 I2S1 upgraded to 5.1 multichannel with slightly modified bit offsets. + + tesla,fsd-i2s: for 8/16/24bit stereo channel I2S for playback and + capture, secondary FIFO using external DMA, s/w reset control, + internal mux for root clock source with all root clock sampling + frequencies supported by Exynos7 I2S and 7.1 channel TDM support + for playback and capture TDM (Time division multiplexing) to allow + transfer of multiple channel audio data on single data line. enum: - samsung,s3c6410-i2s - samsung,s5pv210-i2s - samsung,exynos5420-i2s - samsung,exynos7-i2s - samsung,exynos7-i2s1 + - tesla,fsd-i2s '#address-cells': const: 1 From patchwork Mon Jan 16 10:38:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmanabhan Rajanbabu X-Patchwork-Id: 643980 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF3B7C3DA78 for ; Tue, 17 Jan 2023 10:02:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235791AbjAQKCD (ORCPT ); Tue, 17 Jan 2023 05:02:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbjAQKBt (ORCPT ); Tue, 17 Jan 2023 05:01:49 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859372DE48 for ; Tue, 17 Jan 2023 02:01:45 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20230117100143epoutp0257ec1a9d526f69c44b980a4ac8245647~7EGLpFZ3-1296712967epoutp02Z for ; Tue, 17 Jan 2023 10:01:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20230117100143epoutp0257ec1a9d526f69c44b980a4ac8245647~7EGLpFZ3-1296712967epoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1673949703; bh=wWGnNGV0K80my33qdYO+3w0zAebtUViujp9+aBWfQaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hbB0dlmIY/8FunfVLNV5dLcOQJrgtV24SjEK/M4rW7V9JftYgVQwj113aSxysYmAM UJ/NbjEpHimcgL65v2BozAaI0yIjyHncI7hK+amI9lEKEg2i4JBxipuyQGZzkp+TlY osKN75CoU3VsFbRRuBsPmJYFaHXVGkbjFESrOg1U= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230117100142epcas5p18a0e24b14047e04fb38c136175a55d2e~7EGLAPhM41092410924epcas5p1p; Tue, 17 Jan 2023 10:01:42 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.175]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Nx4DP07W7z4x9Q8; Tue, 17 Jan 2023 10:01:41 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 69.27.02301.40276C36; Tue, 17 Jan 2023 19:01:40 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230116103856epcas5p3dea4b4a1e6073257c66b7562f263b5b1~6w9ZRBb_11961519615epcas5p3F; Mon, 16 Jan 2023 10:38:56 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230116103856epsmtrp12850d3beb00a71dafa28ffefe08f4ac9~6w9ZQHjqK2177121771epsmtrp1O; Mon, 16 Jan 2023 10:38:56 +0000 (GMT) X-AuditID: b6c32a49-201ff700000108fd-42-63c67204d94c Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id E6.F8.10542.04925C36; Mon, 16 Jan 2023 19:38:56 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230116103854epsmtip11cd3f6db3ef6b880833cddc265a5d32a~6w9W7RZFY0462804628epsmtip1-; Mon, 16 Jan 2023 10:38:54 +0000 (GMT) From: Padmanabhan Rajanbabu 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 Subject: [PATCH v4 2/5] ASoC: samsung: i2s: add support for FSD I2S Date: Mon, 16 Jan 2023 16:08:20 +0530 Message-Id: <20230116103823.90757-3-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116103823.90757-1-p.rajanbabu@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNJsWRmVeSWpSXmKPExsWy7bCmui5L0bFkg3MvrSwezNvGZnHl4iEm i0Obt7JbTH34hM1i/pFzrBZ9Lx4yW3y70sFkcXnXHDaLGef3MVkc3RhssWjrF3aLzl39rBaz LuxgtWjde4Td4vCbdlaLDd/XMjoIe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ID: 20230116103856epcas5p3dea4b4a1e6073257c66b7562f263b5b1 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230116103856epcas5p3dea4b4a1e6073257c66b7562f263b5b1 References: <20230116103823.90757-1-p.rajanbabu@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add support for enabling I2S controller on FSD platform. FSD I2S controller is based on Exynos7 I2S controller, supporting 2CH playback/capture in I2S mode and 7.1CH playback/capture in TDM mode. Signed-off-by: Padmanabhan Rajanbabu --- sound/soc/samsung/i2s-regs.h | 1 + sound/soc/samsung/i2s.c | 53 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/sound/soc/samsung/i2s-regs.h b/sound/soc/samsung/i2s-regs.h index b4b5d6053503..138e95581979 100644 --- a/sound/soc/samsung/i2s-regs.h +++ b/sound/soc/samsung/i2s-regs.h @@ -132,6 +132,7 @@ #define EXYNOS7_MOD_RCLK_192FS 7 #define PSR_PSREN (1 << 15) +#define PSR_PSVAL(x) ((((x) - 1) << 8) & 0x3f00) #define FIC_TX2COUNT(x) (((x) >> 24) & 0xf) #define FIC_TX1COUNT(x) (((x) >> 16) & 0xf) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 9505200f3d11..6f96032090de 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -50,6 +50,10 @@ struct samsung_i2s_dai_data { u32 quirks; unsigned int pcm_rates; const struct samsung_i2s_variant_regs *i2s_variant_regs; + void (*fixup_early)(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai); + void (*fixup_late)(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai); }; struct i2s_dai { @@ -111,6 +115,10 @@ struct samsung_i2s_priv { u32 suspend_i2spsr; const struct samsung_i2s_variant_regs *variant_regs; + void (*fixup_early)(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai); + void (*fixup_late)(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai); u32 quirks; /* The clock provider's data */ @@ -940,6 +948,10 @@ static int i2s_trigger(struct snd_pcm_substream *substream, case SNDRV_PCM_TRIGGER_RESUME: case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: pm_runtime_get_sync(dai->dev); + + if (priv->fixup_early) + priv->fixup_early(substream, dai); + spin_lock_irqsave(&priv->lock, flags); if (config_setup(i2s)) { @@ -947,6 +959,9 @@ static int i2s_trigger(struct snd_pcm_substream *substream, return -EINVAL; } + if (priv->fixup_late) + priv->fixup_late(substream, dai); + if (capture) i2s_rxctrl(i2s, 1); else @@ -1410,6 +1425,8 @@ static int samsung_i2s_probe(struct platform_device *pdev) if (np) { priv->quirks = i2s_dai_data->quirks; + priv->fixup_early = i2s_dai_data->fixup_early; + priv->fixup_late = i2s_dai_data->fixup_late; } else { if (!i2s_pdata) { dev_err(&pdev->dev, "Missing platform data\n"); @@ -1563,6 +1580,31 @@ static int samsung_i2s_remove(struct platform_device *pdev) return 0; } +static void fsd_i2s_fixup_early(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai) +{ + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + struct i2s_dai *i2s = to_info(asoc_rtd_to_cpu(rtd, 0)); + struct i2s_dai *other = get_other_dai(i2s); + + if (!is_opened(other)) { + i2s_set_sysclk(dai, SAMSUNG_I2S_CDCLK, 0, SND_SOC_CLOCK_OUT); + i2s_set_sysclk(dai, SAMSUNG_I2S_OPCLK, 0, MOD_OPCLK_PCLK); + } +} + +static void fsd_i2s_fixup_late(struct snd_pcm_substream *substream, + struct snd_soc_dai *dai) +{ + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + struct samsung_i2s_priv *priv = snd_soc_dai_get_drvdata(dai); + struct i2s_dai *i2s = to_info(asoc_rtd_to_cpu(rtd, 0)); + struct i2s_dai *other = get_other_dai(i2s); + + if (!is_opened(other)) + writel(PSR_PSVAL(2) | PSR_PSREN, priv->addr + I2SPSR); +} + static const struct samsung_i2s_variant_regs i2sv3_regs = { .bfs_off = 1, .rfs_off = 3, @@ -1652,6 +1694,14 @@ static const struct samsung_i2s_dai_data i2sv5_dai_type_i2s1 __maybe_unused = { .i2s_variant_regs = &i2sv5_i2s1_regs, }; +static const struct samsung_i2s_dai_data fsd_dai_type __maybe_unused = { + .quirks = QUIRK_SEC_DAI | QUIRK_NEED_RSTCLR | QUIRK_SUPPORTS_TDM, + .pcm_rates = SNDRV_PCM_RATE_8000_192000, + .i2s_variant_regs = &i2sv7_regs, + .fixup_early = fsd_i2s_fixup_early, + .fixup_late = fsd_i2s_fixup_late, +}; + static const struct platform_device_id samsung_i2s_driver_ids[] = { { .name = "samsung-i2s", @@ -1678,6 +1728,9 @@ static const struct of_device_id exynos_i2s_match[] = { }, { .compatible = "samsung,exynos7-i2s1", .data = &i2sv5_dai_type_i2s1, + }, { + .compatible = "tesla,fsd-i2s", + .data = &fsd_dai_type, }, {}, }; From patchwork Mon Jan 16 10:38:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmanabhan Rajanbabu X-Patchwork-Id: 643982 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19FD0C3DA78 for ; Tue, 17 Jan 2023 08:22:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236133AbjAQIWZ (ORCPT ); Tue, 17 Jan 2023 03:22:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236075AbjAQIWM (ORCPT ); Tue, 17 Jan 2023 03:22:12 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 948132BF0F for ; Tue, 17 Jan 2023 00:22:08 -0800 (PST) Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230117082206epoutp0133bd518c3b78637719c6fd48dc98edd3~7CvNTL5Ga2414324143epoutp01k for ; Tue, 17 Jan 2023 08:22:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230117082206epoutp0133bd518c3b78637719c6fd48dc98edd3~7CvNTL5Ga2414324143epoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1673943726; bh=gBTlZ0SH47cCII3STzXofatJhpEtyMp6kArod4rPj64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RWdP6v5NVgiikX9HN9HuKOrLVlFLIXRbzJJu3bRo/yIcm4bk7LBvxNSJTu57M6atZ gIESCoP63IvxTUeabqy82BoGHe+2ZiMcyFBnIEcf/kMYYn+3RwYhBjLgAMKZzfUXaW BYFO7dV/BLMbmjTFTKerFQGs9b4/er6e+rYBbG7M= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20230117082205epcas5p312e177518ee6e3414d4b985165d48397~7CvMnUgLP1340713407epcas5p35; Tue, 17 Jan 2023 08:22:05 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.174]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Nx21S1dH0z4x9Px; Tue, 17 Jan 2023 08:22:04 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 46.FF.03362.CAA56C36; Tue, 17 Jan 2023 17:22:04 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20230116103903epcas5p2c3e87c1df31b6a53e26fb1358a53f634~6w9fhXpLz2382723827epcas5p2m; Mon, 16 Jan 2023 10:39:03 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230116103903epsmtrp248a77e566c27fdd604f5094949acd2c2~6w9fganbF0521705217epsmtrp2R; Mon, 16 Jan 2023 10:39:03 +0000 (GMT) X-AuditID: b6c32a4b-4e5fa70000010d22-89-63c65aacde29 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id F8.F8.10542.74925C36; Mon, 16 Jan 2023 19:39:03 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230116103900epsmtip18033c52c734ecde4afecdffb4f27687a~6w9dIwjMw0462804628epsmtip1A; Mon, 16 Jan 2023 10:39:00 +0000 (GMT) From: Padmanabhan Rajanbabu 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 Subject: [PATCH v4 3/5] arm64: dts: fsd: Add I2S DAI node for Tesla FSD Date: Mon, 16 Jan 2023 16:08:21 +0530 Message-Id: <20230116103823.90757-4-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116103823.90757-1-p.rajanbabu@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHJsWRmVeSWpSXmKPExsWy7bCmuu6aqGPJBo++cFk8mLeNzeLKxUNM Foc2b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yr91J1/VdsvnBalfF9znOzF66QfvpGgE1T8LP9 9ahvnyo/V567WBQyWd7H9VTKnrwoHYeVSizFGYmGWsxFxYkANM5qkuYCAAA= X-CMS-MailID: 20230116103903epcas5p2c3e87c1df31b6a53e26fb1358a53f634 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230116103903epcas5p2c3e87c1df31b6a53e26fb1358a53f634 References: <20230116103823.90757-1-p.rajanbabu@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add device tree node for I2S0 and I2S1 CPU DAI instances for Tesla FSD platform. FSD SoC has 2 I2S instances driving stereo channel I2S audio playback and capture with external DMA support. Signed-off-by: Padmanabhan Rajanbabu --- arch/arm64/boot/dts/tesla/fsd-evb.dts | 8 +++++ arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi | 14 +++++++++ arch/arm64/boot/dts/tesla/fsd.dtsi | 34 ++++++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index af3862e9fe3b..7650c20f02b4 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -34,6 +34,14 @@ clock-frequency = <24000000>; }; +&i2s_0 { + status = "okay"; +}; + +&i2s_1 { + status = "okay"; +}; + &m_can0 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi index 73cb388d6ac1..3cc15b48cb15 100644 --- a/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd-pinctrl.dtsi @@ -367,6 +367,20 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + i2s0_bus: i2s0-bus-pins { + samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2", "gpd1-3", "gpd1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + i2s1_bus: i2s1-bus-pins { + samsung,pins = "gpd2-0", "gpd2-1", "gpd2-2", "gpd2-3", "gpd2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_pmu { diff --git a/arch/arm64/boot/dts/tesla/fsd.dtsi b/arch/arm64/boot/dts/tesla/fsd.dtsi index 0b68d244f2fb..1c53c68efd53 100644 --- a/arch/arm64/boot/dts/tesla/fsd.dtsi +++ b/arch/arm64/boot/dts/tesla/fsd.dtsi @@ -760,6 +760,40 @@ status = "disabled"; }; + i2s_0: i2s@140e0000 { + compatible = "tesla,fsd-i2s"; + reg = <0x0 0x140e0000 0x0 0x100>; + interrupts = ; + dmas = <&pdma1 14>, <&pdma1 13>, <&pdma1 12>; + dma-names = "tx", "rx", "tx-sec"; + #clock-cells = <1>; + clocks = <&clock_peric PERIC_PCLK_TDM0>, + <&clock_peric PERIC_HCLK_TDM0>, + <&clock_peric PERIC_HCLK_TDM0>; + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_bus>; + #sound-dai-cells = <1>; + status = "disabled"; + }; + + i2s_1: i2s@140f0000 { + compatible = "tesla,fsd-i2s"; + reg = <0x0 0x140f0000 0x0 0x100>; + interrupts = ; + dmas = <&pdma1 17>, <&pdma1 16>, <&pdma1 15>; + dma-names = "tx", "rx", "tx-sec"; + #clock-cells = <1>; + clocks = <&clock_peric PERIC_PCLK_TDM1>, + <&clock_peric PERIC_HCLK_TDM1>, + <&clock_peric PERIC_HCLK_TDM1>; + clock-names = "iis", "i2s_opclk0", "i2s_opclk1"; + pinctrl-names = "default"; + pinctrl-0 = <&i2s1_bus>; + #sound-dai-cells = <1>; + status = "disabled"; + }; + pinctrl_pmu: pinctrl@114f0000 { compatible = "tesla,fsd-pinctrl"; reg = <0x0 0x114f0000 0x0 0x1000>; From patchwork Mon Jan 16 10:38:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmanabhan Rajanbabu X-Patchwork-Id: 643629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C10E4C678D4 for ; Tue, 17 Jan 2023 08:22:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236095AbjAQIWp (ORCPT ); Tue, 17 Jan 2023 03:22:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236098AbjAQIWY (ORCPT ); Tue, 17 Jan 2023 03:22:24 -0500 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCE62B2AC for ; Tue, 17 Jan 2023 00:22:18 -0800 (PST) Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230117082217epoutp04a0497113d3f411755949e9544f0ebae1~7CvXI9iBM0594905949epoutp04O for ; Tue, 17 Jan 2023 08:22:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230117082217epoutp04a0497113d3f411755949e9544f0ebae1~7CvXI9iBM0594905949epoutp04O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1673943737; bh=q/tn14ZjbdXMf9MNwQsdbd5Z9hNIqD6iXxXoo6o434g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h+uITiy/66qgUfdrSATbCg3Wm0vBKKWkJrbn2cjMsV+zztaLXcj/+WVMSBWzo4cLk ZvB1FnomH/fFN0Jt3OokXUrXNnXFwJWFdbHPR3VSP3d+Oru4SKAtUatQVEnweYnL5n rYXS0MM6EOGgSRGEyDyVhn3Z2S8EaL/S+gJlI3BY= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230117082216epcas5p110925e685dd41bc42980301882e1f05c~7CvWgpFlU2934729347epcas5p1I; Tue, 17 Jan 2023 08:22:16 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.183]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Nx21f4Rqbz4x9Pr; Tue, 17 Jan 2023 08:22:14 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D7.89.02301.5BA56C36; Tue, 17 Jan 2023 17:22:13 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20230116103908epcas5p49d65b8a38b8ecfeda508960a9543193d~6w9jzQ-v50449804498epcas5p43; Mon, 16 Jan 2023 10:39:08 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230116103908epsmtrp1db5d2d211fa7a780f87376ed80d70b17~6w9jyZEAd2177121771epsmtrp1a; Mon, 16 Jan 2023 10:39:08 +0000 (GMT) X-AuditID: b6c32a49-473fd700000108fd-21-63c65ab56ff6 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E5.FC.02211.B4925C36; Mon, 16 Jan 2023 19:39:07 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230116103905epsmtip10b5473a5e0ad2423e42781f38d13466d~6w9hlHICO1258912589epsmtip1X; Mon, 16 Jan 2023 10:39:05 +0000 (GMT) From: Padmanabhan Rajanbabu 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 Subject: [PATCH v4 4/5] arm64: dts: fsd: Add codec node for Tesla FSD Date: Mon, 16 Jan 2023 16:08:22 +0530 Message-Id: <20230116103823.90757-5-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116103823.90757-1-p.rajanbabu@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLJsWRmVeSWpSXmKPExsWy7bCmhu7WqGPJBs17DCwezNvGZnHl4iEm i0Obt7JbTH34hM1i/pFzrBZ9Lx4yW3y70sFkcXnXHDaLGef3MVkc3RhssWjrF3aLzl39rBaz LuxgtWjde4Td4vCbdlaLDd/XMjoIeGz43MTmsXPWXXaPTas62TzuXNvD5rHv7TI2j74tqxg9 1m+5yuLxeZNcAEdUtk1GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKL T4CuW2YO0AdKCmWJOaVAoYDE4mIlfTubovzSklSFjPziElul1IKUnAKTAr3ixNzi0rx0vbzU EitDAwMjU6DChOyM0yfnMhYsYa9YuOggewPjD9YuRk4OCQETiWVHdrJ0MXJxCAnsZpR4d3o9 I4TziVGire8xO4TzjVFiz9QpzDAtl2//ZIJI7GWUWHJmCVRLK5PEzedzwQazCZhKrJrTyAqS EBFoYpJoezMRbAuzwEZGidPHHjKBVAkLuEqcvDYJbC6LgKrEvi2fgRZycPAK2EgcbY6CWCcv sXrDAbASTgFbia97bzCDzJEQWMghcehPIxtE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XutjCAJNgFTiVVzGllBEiIC E5gkTr47xgKSYBbYyigx9bMRiC0s4Cpx8toksKksAqoS+7Z8BprEwcErYCNxtDkKYoG8xOoN B8BKOAVsJb7uvQFmCwGVPJlwnnECI98CRoZVjJKpBcW56bnFhgWGeanlesWJucWleel6yfm5 mxjBwa6luYNx+6oPeocYmTgYDzFKcDArifD67TqcLMSbklhZlVqUH19UmpNafIhRmoNFSZz3 QtfJeCGB9MSS1OzU1ILUIpgsEwenVAPTeeG43fpztx8INlD+Nbsyd273XsnWP71sQVWfjK75 vpHoWdEbJrND5k+alcPqa7K3FbL+iiwI3HL1pte1gAtC1Zu+s216JHReds6qjS3Mr4PuTr78 5eSEiuCQJ5MPSWzcanNnz7TZT0Ud7GtXvXadePSbw/2v9xwEfjzaH8WcsmvNLEev8LVdor/W p3TOY9cKWn9rCts/KTvngv3P35907S3ZVNu4erHOH4uiFbPfvrsoutXd2oo16+lDocA74h1F T6d/POS8doekFaNAzbfIJ/9XC9jwmae9c9UpPyynlnk8/azalxpOsfjjxdbpAgy+5tujMn03 7O28ftjEUu/YvzWrrofuMhR6dm6JQ9bkN0osxRmJhlrMRcWJAAVHpCHlAgAA X-CMS-MailID: 20230116103908epcas5p49d65b8a38b8ecfeda508960a9543193d X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230116103908epcas5p49d65b8a38b8ecfeda508960a9543193d References: <20230116103823.90757-1-p.rajanbabu@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add device tree node support for codec on Tesla FSD platform. Signed-off-by: Padmanabhan Rajanbabu --- arch/arm64/boot/dts/tesla/fsd-evb.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index 7650c20f02b4..2cd721564a4f 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -10,6 +10,7 @@ /dts-v1/; #include "fsd.dtsi" +#include / { model = "Tesla Full Self-Driving (FSD) Evaluation board"; @@ -34,6 +35,17 @@ clock-frequency = <24000000>; }; +&hsi2c_5 { + status = "okay"; + + tlv320aic3x: codec@18 { + compatible = "ti,tlv320aic3104"; + reg = <0x18>; + #sound-dai-cells = <0>; + reset-gpios = <&gpg1 6 GPIO_ACTIVE_LOW>; + }; +}; + &i2s_0 { status = "okay"; }; From patchwork Mon Jan 16 10:38:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmanabhan Rajanbabu X-Patchwork-Id: 643981 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46FF1C3DA78 for ; Tue, 17 Jan 2023 08:23:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236145AbjAQIXQ (ORCPT ); Tue, 17 Jan 2023 03:23:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236058AbjAQIW3 (ORCPT ); Tue, 17 Jan 2023 03:22:29 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8F0E2A9BC for ; Tue, 17 Jan 2023 00:22:26 -0800 (PST) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230117082224epoutp018624433242a46d6c53300c980a3c8e3b~7CveL1-Xc2756727567epoutp01B for ; Tue, 17 Jan 2023 08:22:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230117082224epoutp018624433242a46d6c53300c980a3c8e3b~7CveL1-Xc2756727567epoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1673943744; bh=vhmZncf5080rWwGNjHNDrtkXaS1sv2q9iERbNtRikh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dI/4X0gN3yNpr2flR4Mbdh2ELfyhtiec+06phEJSHitgjjf/1L3y5jj4X46Ow1Ltt lKhnD5qwHlV02x9s6NM9IRdqezOJaEc/JJI38SqbSveGPnRDPr9oF1w5nSF/0uaQ+M e+CYO5KBJDaT3Rjff6ZfSCLsoCT024Q8UN+0deB8= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20230117082223epcas5p30d96a87717f66f31413d89d8b19ab37c~7CvdMHV5f2311823118epcas5p3o; Tue, 17 Jan 2023 08:22:23 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.178]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Nx21p1Pgdz4x9QG; Tue, 17 Jan 2023 08:22:22 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id D7.99.02301.EBA56C36; Tue, 17 Jan 2023 17:22:22 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20230116103912epcas5p2ae807f1b6435e103a6527332e42f03a2~6w9oRywb_2875628756epcas5p2P; Mon, 16 Jan 2023 10:39:12 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230116103912epsmtrp26ed9e08d942b406dd67e5923ca62dc16~6w9oQ4NPR0521705217epsmtrp2U; Mon, 16 Jan 2023 10:39:12 +0000 (GMT) X-AuditID: b6c32a49-201ff700000108fd-3c-63c65abe3009 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 77.FC.02211.05925C36; Mon, 16 Jan 2023 19:39:12 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230116103910epsmtip17ec3fe4fe8dc616cea44286cea985488~6w9lrLA720241202412epsmtip1f; Mon, 16 Jan 2023 10:39:09 +0000 (GMT) From: Padmanabhan Rajanbabu 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 Subject: [PATCH v4 5/5] arm64: dts: fsd: Add sound card node for Tesla FSD Date: Mon, 16 Jan 2023 16:08:23 +0530 Message-Id: <20230116103823.90757-6-p.rajanbabu@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230116103823.90757-1-p.rajanbabu@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSfUwTZxzHee7au4NYcyvMPXSo5BIk4MAWaXeMVpfM6LkR18S5RP9Yd2lv wPq6XiuObAzLyxAzh++ADUUwqDDGyyhgoUiKo3GLDiMyM0eERQ1jsvEmRMzGWg62/z6/3/P9 5vs8v+dHoNILmIzItTg4u4U1UViUqHMgKTGl79CgXj7dg9NjNZ0YPXwngNCB77w4fXb8EUZ7 btwW0ycmxlF6YbgMoe/63Bhd+VMfQn/ftp+u887j9DHf12K6eqhbTJf4b+D0wNMvxXTrYjN4 k2Ra51wYc616FGfaG49hzK8jvRjTN9WAMSc6GgHT0nFPx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hy8RCT xaHNW9ktpj58wmYx/8g5Vou+Fw+ZLb5d6WCyuLxrDpvFjPP7mCyObgy2WLT1C7tF565+VotZ F3awWrTuPcJucfhNO6vFhu9rGR0EPDZ8bmLz2DnrLrvHplWdbB53ru1h89j3dhmbR9+WVYwe 67dcZfH4vEkugCOKyyYlNSezLLVI3y6BK2N/wwHGgpNcFYc+bGVvYJzM0cXIySEhYCKxfesX 1i5GLg4hgd2MEscnrGaCSEhLTO/fwwZhC0us/PecHaKomUni47ytzCAJNgFTiVVzGsG6RQQm MEmcfHeMBSTBLLCVUWLqZyMQW1jAS2LRhBdgDSwCqhLTN94Fsjk4eAVsJFYfN4JYIC+xesMB sBJOAVuJr3tvgNlCQCVPJpxnnMDIt4CRYRWjZGpBcW56brFhgWFearlecWJucWleul5yfu4m RnCwa2nuYNy+6oPeIUYmDsZDjBIczEoivH67DicL8aYkVlalFuXHF5XmpBYfYpTmYFES573Q dTJeSCA9sSQ1OzW1ILUIJsvEwSnVwHS4+cxlubTfvnFclzNfeDTsevLr2p70FcHVmw9xOO54 WJj/qn+O5GnO629Kjji6/7xs+a/eaM/KWluVKoWgjWLxq26afn23otBn2xSjV9z3T7zi7thz 9oxl8eH3nuYftRcbrnuQe+RR2pF7tlc/njR2Y0g3YmtfbH8/kbGRd1+wTpy86gKx2ZZZHa// HXUR72h1L8pc4tW2eS+32DYJPY9JtkKWqRvVa3TPqkwTZGbl/Xzxb27Dms/r2OSjGP9yxYl+ 3vrdsfDROp/L205NNix8xGGXer9C77wg08nwmPisv6+XdWQ8Xn/7QL3Tt1PpkRtVWI4a/vs/ 16nL8OZKtitRScf/Z/MuvSKl9b79SqoSS3FGoqEWc1FxIgBRqa9q5QIAAA== X-CMS-MailID: 20230116103912epcas5p2ae807f1b6435e103a6527332e42f03a2 X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230116103912epcas5p2ae807f1b6435e103a6527332e42f03a2 References: <20230116103823.90757-1-p.rajanbabu@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Add device tree node support for sound card on Tesla FSD platform Signed-off-by: Padmanabhan Rajanbabu --- arch/arm64/boot/dts/tesla/fsd-evb.dts | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/tesla/fsd-evb.dts b/arch/arm64/boot/dts/tesla/fsd-evb.dts index 2cd721564a4f..8d7794642900 100644 --- a/arch/arm64/boot/dts/tesla/fsd-evb.dts +++ b/arch/arm64/boot/dts/tesla/fsd-evb.dts @@ -29,6 +29,39 @@ device_type = "memory"; reg = <0x0 0x80000000 0x2 0x00000000>; }; + + sound { + compatible = "simple-audio-card"; + + #address-cells = <1>; + #size-cells = <0>; + + simple-audio-card,name = "FSD Audio Card"; + simple-audio-card,widgets = "Line", "Line Out", + "Line", "Line In"; + simple-audio-card,routing = "Line Out", "LLOUT", + "Line Out", "RLOUT", + "MIC2L", "Line In", + "MIC2R", "Line In"; + + simple-audio-card,dai-link@0 { + reg = <0>; + format = "i2s"; + bitclock-master = <&tlv320aic3x>; + frame-master = <&tlv320aic3x>; + + cpu-0 { + sound-dai = <&i2s_0 0>; + }; + cpu-1 { + sound-dai = <&i2s_0 1>; + }; + codec { + sound-dai = <&tlv320aic3x>; + system-clock-frequency = <33000000>; + }; + }; + }; }; &fin_pll {