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: 13104302 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 Foc2b2W3mPrwCZvF/CPnWC36Xjxktvh2pYPJ4vKuOWwWM87vY7I4ujHYYtHWL+wWnbv6WS1m XdjBatG69wi7xeE37awWG76vZXQQ8NjwuYnNY+esu+wem1Z1snncubaHzWPf22VsHn1bVjF6 rN9ylcXj8ya5AI6obJuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtzJYW8xNxUWyUX nwBdt8wcoA+UFMoSc0qBQgGJxcVK+nY2RfmlJakKGfnFJbZKqQUpOQUmBXrFibnFpXnpenmp JVaGBgZGpkCFCdkZM5buZS64IVmx//dM9gbG3yJdjJwcEgImEv9mzWTtYuTiEBLYzShx4N1d KOcTo8TNxRfYIJzPjBLXzt1ngmk5dnYdI0RiF6NE+9pTUE4rk8TmyZ/ZQKrYBEwlVs1pBJsl ItDEJNH2ZiILiMMssJFR4vSxh2CzhAXcJc6cawWzWQRUJdYuvcUOYvMK2Eg8mruMBWKfvMTq DQeYQWxOAVuJr3tvMIMMkhBYyCHxsqkTqshF4nDfPWYIW1ji1fEt7BC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nuGAtIgllgK6PE1M9GILawgLvEmXOtYA0sAqoSa5feYgexeQVsJB7NXcYCsUFeYvWG A2CbOQVsJb7uvQFmCwHVPJlwnnECI98CRoZVjJKpBcW56bnFhgVGeanlesWJucWleel6yfm5 mxjB4a6ltYNxz6oPeocYmTgYDzFKcDArifD67TqcLMSbklhZlVqUH19UmpNafIhRmoNFSZz3 QtfJeCGB9MSS1OzU1ILUIpgsEwenVANT1/K1SpFGl8uTw05KdflEW6jP5e74+yhl270pD7/v z/uf3lVu1dPe9lf0Tw2rwz519XMn5Sssd0ekqu0r3Z9/+3if+Ae9TT8sHfanTJ0tFfD89yOG 8OP75/dPqfj40OHf54pcicn7mr807+2cuPt207Tg3RtCbE+u2flJJPGmo11rNKudgF7cpqwt flHOTWv28m0IzX2Sser29LV39zxKTrr/x/XiVP8G9chFbL5moRfk6vecSzHcOVVi+8eos2X8 qbwf1JWuNkq1z39QVbHkZ8zbuNMMYnvWdzyr91J1/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>;