From patchwork Tue Mar 28 13:29:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13191066 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 647A6C6FD18 for ; Tue, 28 Mar 2023 13:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2YeKuK38+Eee2KBmH9JlBUUvkFhT0Qv66b+30xVtShg=; b=vDRiPYzLe1xGcz 2YZWG/vxCQvN2+juw6PgldyhRxhYcUHrXGLfGjceRkcyibNjkVMeSLWS5vhYNoVPrJ40PxCv34QvX QBlBL51bRFU5K5Q+BYhVex3ougAHyVhODcI8UQ6KjqAI9MFInQte7n/ccogO8Uj0XWFSQgi+5XDm8 4eEW/DWHhgt0sdT4zihqGr9Rvi/Here04nRq3vL50fefR0ZZXtxNtqftJ0qRmjkL4s3+4cvwAZqX+ ppoBYaFTC2/36TmuSjGXOR8ttD5EYP93kbnNg/yz9VqC+20w8T4+Ab6vQJfDaheqt1ofYR05krYto qnGLsEKktKne5yxsUaCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OX-00Ea8f-0a; Tue, 28 Mar 2023 13:29:49 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OQ-00Ea3v-0Z for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 13:29:43 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTWO7039861; Tue, 28 Mar 2023 08:29:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010172; bh=1GtChf5uKiuwn7OvNybLChaTrFxr5FfqKFgP6cHU+XU=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=RaPe6qr/eUSvgdq7gdaINnE89PcLw8rXJh8J9n4lNS8tCuN6ebgQPKrlClSap3x9d D0yrmOB1f7LlNbHVjh3dOxIsSTcHI6y4TMQArgDyYjJX5jlkJapbIqcCTv722GAUQj /V/Cs3q6Vv3RYV/esgxEqUr6dNpgjMGjo4oXCL3U= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTWBV125950 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:32 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:32 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:32 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTVRG007386; Tue, 28 Mar 2023 08:29:32 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:19 +0530 Subject: [PATCH v8 1/6] arm64: defconfig: Enable audio drivers for TI K3 SoCs MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-1-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=888; i=j-luthra@ti.com; h=from:subject:message-id; bh=wZfBiEbhTUv8dcdW1NR4C+wvCaboQpeHbYEligjEsOw=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu1Y3gBEMt3pQZinkVQlD679Ouwg8mvAq9SG 4uaam78UuOJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtQAKCRBD3pH5JJpx RSnCEACqiRCaXfxy9vr4bhwJd70MUgE8Uw1vn8X4Xp3Uxj6MrjYCzzmBdEkTrV8hphRGHZclGNl MlR9240I2sqK+fNHgboZY2fKNNWmBzhifxaSzvWbsKMJdMJ7/tp1LioYJAxSj5HyWSV7enWGExM Vbxpl2ZX5jpABKqjtK4JD/7OPzdlfVVIDFcVAUCu/aDnLPNKVMkcts9KGM9FatIcMAumSBNbvhK NEGYGll5O42Yw4SPnjNWhEXulVrZtZE6EA6J3fd/AhvaRUN3ffok1ne1kkOF/Q3faPzCr1W9Po+ tDrwvhxkg0tDz+i2rWZIB0oqMOjjnHWUOLAesCNoGjxATI+fBok4X6tCxkuZ4erHHMAz2uMFkzo mQFBNMcDbuCpdBDruigcM2kMKaj1Z/1YUEPlcxakmj+dnTkLzxdGQaDta5ZcJZUNHIDLaD4dmh8 Y21WtBs7LCQoEZ1fahv/FfxdnEXvRXSbpv7IC10nJipId7AUKxFGqZuaXcZQByARbdyqiM1Ecwc emqpAZWuY2zN38Fg3sHhIYmGwb/ktBM5k4h6r8dcArzKb77JukE+sbosHYxDZjKjunrAqRH4uCl 77iXGE3+M6Rad0s58GRETaCN0xmzECiZ5MhW7siRpkQ9OMp89klHg2I5mmqAGTmzO7uMyoytkg8 yWrnRN6ywonRMzQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_062942_303013_02CF95B8 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org TI's K3 platform uses McASP as the digital audio interface on the SoCs. AM62x and AM62A based starter kits also use the TLV320AIC3106 codec with a 3.5mm jack for analog audio input and output. Signed-off-by: Jai Luthra Reviewed-by: Devarsh Thakkar --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7790ee42c68a..7e0ce1833904 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -898,6 +898,8 @@ CONFIG_SND_SOC_LPASS_WSA_MACRO=m CONFIG_SND_SOC_LPASS_VA_MACRO=m CONFIG_SND_SOC_LPASS_RX_MACRO=m CONFIG_SND_SOC_LPASS_TX_MACRO=m +CONFIG_SND_SOC_DAVINCI_MCASP=m +CONFIG_SND_SOC_TLV320AIC3X_I2C=m CONFIG_SND_SIMPLE_CARD=m CONFIG_SND_AUDIO_GRAPH_CARD=m CONFIG_SND_AUDIO_GRAPH_CARD2=m From patchwork Tue Mar 28 13:29:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13191067 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E5CAC76196 for ; Tue, 28 Mar 2023 13:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yujWFpcN7VhSOuu5ORyoWCMw8UxVGoVw5fh57XB1j24=; b=M1bewDZA0I+CuI aZk/DF1RN2fTFpif6wurhFbZQ+NbWkJpOQKZh/ccYwicGuqWIjNUcUgscvA4Mdrmq69i0+wAlUrkH UnUDFIkNEtGicHn+X5b0FHxGGN2Lr9ATu4ekQPpVHNJh+3L60JVOnk8FezZsIMPkgP6uD1EwXLie9 f16waPBuHgPOcTWvn48jrBKMuyL/TRzg6lauEShL5ZewQdfpG05PYT6q6ZQhgzoLGwqSn0YYP9K9U bAu3byaZBSNela4n8GkSIIVmzW5j2HAtLFgpDpxQ3liKSpojwUn2Kt9uta6KAUJ9o8bx07uJ8VaGu tl866ryNZd7QCbePiOSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OY-00Ea9G-0w; Tue, 28 Mar 2023 13:29:50 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OQ-00Ea4f-0Z for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 13:29:43 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTYaS039874; Tue, 28 Mar 2023 08:29:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010174; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=o40KxPQoZMJ7l8BhPysSbHna5TNykYuH0QlvU5ktgqPyJo2pW/UPwkFOMUW3vLpty 8ITH+2q16W35gij7HzDH6P/CoG0euqolwNIGbODIsgMFraW3d3Co0G4y8cf3f3vyGU 4U7pCGKJFH+0JqOqlUVpKM346fQqa7aP/Z2Yh9+4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTYa6007668 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:34 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:33 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:33 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTX49031399; Tue, 28 Mar 2023 08:29:33 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:20 +0530 Subject: [PATCH v8 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-2-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2740; i=j-luthra@ti.com; h=from:subject:message-id; bh=3YQ8iDFX2K1gkT2KWC73dpEyDkmFbkpNff4cJhstfZY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu2sUumGGllyRYCduia9i8fP+YZoVTAWWfSo fudc40jPxyJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtgAKCRBD3pH5JJpx RSDSEACZZ+5iIekhm5klw6NeU4H5AHv1T8TVpmZMrRuFZIV6JT0AxDUemL5i3y+EJ0taEutJEf0 kBoGX4HprkU00yx9pbNt4SN1ftH8j8NzYcjjS/GfELf4K80FySBRbo3NzgAJ6OXJgYyE0Dhr/TT CVnXLJ3UWl41p7c0Bdd5RLBTdgLsE4nX2UcpANI83nQT64HN+5axfcbaCYOCBncHpTyJX5Y9mfW rAfCi+lYqjEPB/C3HTiizTDV0w5N2g7s5ecKnEH5bHgTDDIih2h35+rDN1j52xD/HZGUOMPM/yR LPxPwec0hYo2kms0kCejJa3t67UN2fraujj8eRFg5Ph2p5f7heGA9h/XboQ6NDpIuPp/bxfH4k7 Kn+0KyCdWdFzvYmlG/5/8z8mal22uOcJ3qvXQjEw7ugvVcnEZYs++A1rot1NdM208By2QfeQlm5 kJHlfbmOIM6kKvjWzhC0Yjs4V6eKJj5EGOM7VWeZbS0HRc4LF3964Ls+6rCKWYrDQYwjhMs0yjn ep3KrdmO/wRjs6NReNEx3l/exriKwQgFjPM5J3zpeqOul44csY01elH4mhF1S/zZUm2MZUA3SWw N8UBLFrL3dVByeMucpftU53juRPMB38jr+WLIN4QgDwtCGfyrC9ZCJPO70EWaW5d7C/aKk4+BvQ VVVEgjqtaReHpag== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_062942_299658_25BE1447 X-CRM114-Status: GOOD ( 10.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Jayesh Choudhary Add the nodes for McASP 0-2. Use the audio-friendly 96MHz main_1_hsdivout6_clk as clock parent instead of the default 100Mhz main_2_hsdivout8_clk source. Signed-off-by: Jayesh Choudhary Signed-off-by: Jai Luthra Reviewed-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 16e14863d7df..b3e4857bbbe4 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -832,4 +832,64 @@ epwm2: pwm@23020000 { clock-names = "tbclk", "fck"; status = "disabled"; }; + + mcasp0: audio-controller@2b00000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b00000 0x00 0x2000>, + <0x00 0x02b08000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc500 0>, <&main_bcdma 0 0x4500 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 190 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 190 0>; + assigned-clock-parents = <&k3_clks 190 2>; + power-domains = <&k3_pds 190 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp1: audio-controller@2b10000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b10000 0x00 0x2000>, + <0x00 0x02b18000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc501 0>, <&main_bcdma 0 0x4501 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 191 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 191 0>; + assigned-clock-parents = <&k3_clks 191 2>; + power-domains = <&k3_pds 191 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp2: audio-controller@2b20000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b20000 0x00 0x2000>, + <0x00 0x02b28000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc502 0>, <&main_bcdma 0 0x4502 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 192 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 192 0>; + assigned-clock-parents = <&k3_clks 192 2>; + power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; }; From patchwork Tue Mar 28 13:29:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13191070 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D65CC76196 for ; Tue, 28 Mar 2023 13:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jdyweHYt0wG5UEST3cN/XKIQQAhF4nv7N8hmbod9VBE=; b=lpqD3ujISL/kad LhWsrQ6JN+28mMK5RdzyxRAYWR/pSWpq//S5xTOh5fQRsqEkcp5tkDn8EtFSXCCIYu3byLPXI8mco 8U3r4+vWxPbFf0H0/OCtuFpqNX39NFnWEFdqwCreSQflYeEwop6SNIjPDFH10BbvggCvDzh4Y6R/g Klw75w4LMn17UoOeCwBrQHBp7vF1MqnQWjIqLg22rwnYFzFIwuHKAZZuh7BZtDKMn6JCuzbzSBKWp pRRuJTCJ88KRhiporyGBea1F/IzIMS9VoSDlyjiqAzMtvyTIAs4u1t58ZucUnwnqM5k3p2fi7AaLb ZLguqSTjZMCL6QnWfjkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph9Oz-00EaKn-00; Tue, 28 Mar 2023 13:30:17 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OU-00Ea5r-0K for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 13:29:47 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTZeX005659; Tue, 28 Mar 2023 08:29:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010175; bh=GcjcK0aiufr3pNfevNc1Fajnc2tfgJ/plgHPTJwi63o=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=kisIOWDMXNUOKro/l1wAMFLJwHKj2JHDxNZs4O3byXnthjFmxJh/1L5wnLF3UABOf WKMZXGma3XsoD4KKwJFY+DK5e5FE3HZnNk7NkQoevIBWfi15k9hdabHMdRocdoaNxe 3p1i0xFSyX2JkYTwYr80oanEeTS4zSX2RqkxXDWQ= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTZH9125973 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:35 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:35 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:35 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTYT1031408; Tue, 28 Mar 2023 08:29:35 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:21 +0530 Subject: [PATCH v8 3/6] arm64: dts: ti: k3-am625-sk: Enable audio on AM62 SK MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-3-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4839; i=j-luthra@ti.com; h=from:subject:message-id; bh=vzGrfqEKlhkGfNdmuVqiHcQV4XDMwCqemhlXKuW2nWE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu38nQDmUJFnGxu025sMntWQe2D85Y6IA4nW ZKtAM2ZNL2JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtwAKCRBD3pH5JJpx RfGSEACcaRzresD2Ah/N4SUh81VX9cqCKpgrdRCSttCFWn61kQax3OTpFvNie3R0DdbXxkb/Snv NUdqp8GRWWrYl41ttIZPJhulRcjJIuQNYi9D58ENV2SotK7iYF2dwezno047l079aA+58d3oKeD 7pU1WiKUpBpLY5WZi4eCw+WFxhBF4s8+75593RvBhZayN73lk9VqTuMiSKjpIapEjn7dAWjrLuz RCIMq8/eHz0FVvc5GHJGPQhgueyUq7F/4edEIc5jjpfpzdgKUWYk7xV0ITARrUKgzhyP68IRWra 7gFc32lwDejBe7NN7nsEbgOamDhCeSAEzwaXdCjCe7GQXmDczSwQkB9/xfY5K3HWlGxaJFN6Gme KUD3PhHJiHwDfuWKZeSRCb4dHtuL2mLSWnWdVLw4T/vVtVZczL87qI9Uo83BtBVbkCAu1qifhIF 7bnmMuxnMxyu877hFw8TSN0i+xX4MPeYGnH8TBwCAUql3qsME9KidBRdYJGvuL/ft5Xh7b9K8lg db20kfNbpjtTdF5Ab93EfL9ADCLHnEq5ilaGTEUiWA7Kv7pEqkG1m5E7pfP/tsj/zxxybglghtx N7kRSYA1KkR1/IKnzxlwouOQNeH/7GbFNYzw8/R4s6/hxbHsfdvb2ZUXtyTI9XM2D2S5TnsvDbI z7INRFwk29d/Z8Q== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_062946_229266_8AA2C670 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use from SK-AM62 E2 [1] onwards and update pinmux. Keep all audio related nodes in the common dtsi as they are exactly the same between SK-AM62 and SK-AM62-LP. Link: https://www.ti.com/lit/zip/sprr448 [1] Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 11 ++++ arch/arm64/boot/dts/ti/k3-am625-sk.dts | 11 ++++ arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 77 ++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts index b2ca19e3042e..5ed6b1abe87d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts @@ -70,6 +70,17 @@ vddshv_sdio: regulator-4 { states = <1800000 0x0>, <3300000 0x1>; }; + + vcc_1v8: regulator-5 { + /* output of TPS62824DMQ */ + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3_sys>; + regulator-always-on; + regulator-boot-on; + }; }; &main_pmx0 { diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index cdc0858dd1b2..2b861681e548 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -87,6 +87,17 @@ vdd_sd_dv: regulator-4 { states = <1800000 0x0>, <3300000 0x1>; }; + + vcc_1v8: regulator-5 { + /* output of TPS6282518DMQ */ + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3_sys>; + regulator-always-on; + regulator-boot-on; + }; }; &main_pmx0 { diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 54318a07d50c..2500cb9ba323 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -81,6 +81,41 @@ led-0 { default-state = "off"; }; }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + codec_audio: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "AM62x-SKEVM"; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line In", + "Microphone", "Microphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLOUT", + "Headphone Jack", "HPROUT", + "LINE1L", "Line In", + "LINE1R", "Line In", + "MIC3R", "Microphone Jack", + "Microphone Jack", "Mic Bias"; + simple-audio-card,format = "dsp_b"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + simple-audio-card,bitclock-inversion; + + simple-audio-card,cpu { + sound-dai = <&mcasp1>; + }; + + sound_master: simple-audio-card,codec { + sound-dai = <&tlv320aic3106>; + clocks = <&tlv320_mclk>; + }; + }; }; &main_pmx0 { @@ -175,6 +210,15 @@ main_usb1_pins_default: main-usb1-pins-default { AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18/E16) USB1_DRVVBUS */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */ + AM62X_IOPAD(0x098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ + AM62X_IOPAD(0x08c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */ + AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */ + >; + }; }; &wkup_uart0 { @@ -205,6 +249,19 @@ &main_i2c1 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c1_pins_default>; clock-frequency = <400000>; + + tlv320aic3106: audio-codec@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x1b>; + ai3x-micbias-vg = <1>; /* 2.0V */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + DVDD-supply = <&vcc_1v8>; + }; }; &sdhci0 { @@ -272,3 +329,23 @@ &usb1 { pinctrl-names = "default"; pinctrl-0 = <&main_usb1_pins_default>; }; + +&mcasp1 { + status = "okay"; + #sound-dai-cells = <0>; + + pinctrl-names = "default"; + pinctrl-0 = <&main_mcasp1_pins_default>; + + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 1 0 2 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + >; + tx-num-evt = <32>; + rx-num-evt = <32>; +}; From patchwork Tue Mar 28 13:29:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13191069 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4B5BC6FD18 for ; Tue, 28 Mar 2023 13:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RJGrLRWA/2Fl2aMe80PC1DOnQLye8m2XFS5cipBLCMA=; b=yuJLkiCUc9f7rm 8n8TUrwwdpHd5+5kKRYRxnxZvjkmoOYDN7q9v+FjWPsu1Nd1Mj65T3fBhuTQ9T5b1L/oqLrEX3lqn soectczj/gT7zms8kCj2OTDqwcgifaCN8bRg09NyDk4VqaUVMrDgX8m6X17HSxkXZdm2tyUPWGzy6 VlCFhE13RBnYqbjM4WN1xUGm4ZUoD6p1pbZjaVd1zKe982TRug5jCJNq7mIVy8pN2jIEIIjHx4+TR 7Iyi7/HMpsQCxXNv7jRO4JzNX/5IEr+O+uxv3DjOSf5dcZqKAYKud3G9nEOmc8D+OEolhXeDgETiz p2lBEWzdgZXC5z3OM6/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph9Ow-00EaJP-2F; Tue, 28 Mar 2023 13:30:14 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OU-00Ea6K-0K for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 13:29:47 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTbHY005664; Tue, 28 Mar 2023 08:29:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010177; bh=kVU3fxPuN+E3YCIbaYl85jZLwsmV6nxyeKf/SyfMpTk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=h/4GOfCEMADPPKJnVzfdMB7xZWesZot0qUsFban3pJ13gPVFPOt/MKmnk0jppCVc+ DN7DM9CDSeAm92IOZ5I4f4OGmkS2ANNuWzON5YglGrnCfhStIn8izZj5c3/W6F5yNH oGENRHHyI0DdZtx0e9t/s8nYxVA0IJuOE6EhMQFw= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTbYA113910 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:37 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:36 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTZxD122345; Tue, 28 Mar 2023 08:29:36 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:22 +0530 Subject: [PATCH v8 4/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-4-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2667; i=j-luthra@ti.com; h=from:subject:message-id; bh=R63VlF5mAlSgoaVYF/ip213cmqYqKxSlEFrCk2GElqQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu4FZwNzu/Xl8V1VV6/puk7SB4hinnK7NtQv +UY4nGm0uaJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLruAAKCRBD3pH5JJpx RUcuD/9PPXlYjU4x3rfNseJ+1KSdk6Wz7acnKxj5M4hbM8CuuJDprWcCBbuS1L78uvjrIQT22BJ cee1io2ZK9CYn22+P1fG9cStQ9oqdR6prwzvlWFMSKZttXfE5c3PqH+mDVg7KRYXIqOzDB7w3CD rbsIt0dKMMLQAQ5fh3+DQOkMzLg5k2kHg2d/wYJJeSWp0DYpBFArzFiw4mYZEPzNcyt1xJ0z706 RuI7FCZhlvmMS3i2e3dWhE0WDJKjnnHGPox9oSyTBQWCeAOPs6kJAz0VqO7DzDx3NmD56/Xnt1N TNYBFpflVdtZvSYSkaSOfqB6I91FUX0LosYR0zZAOTdbzbxl3eTP/1i7aUy1Xd4632IUQ3Ld8+y b8H2Yf5ZqfgPIrSUcbMmwIb94rKuju0RRCzvUN4syR2BG2I8knB95sGoRThhJLb4m14iR5MCzhA Q6NyOgAzBHSCS1mAu31He93G94e3gNJlLXfnBTE7pgBb7+EioFtVqlDExz7NRY4KfKVVffL+EoD LIXDkWEKf6RWjnalhXbOl3qZ329tE7IeZhBWCTelMytAt1h1rvgYifSwPOffaWXUXihF/ERooJ5 J6vNcDDpGgNtfzmnz+nGJyUd+aQIgHTgBEaxnUudVMQ8zcIJt+3KgqJbPD/0zLr6c+hpyt6iWVi u79LtkNkAUg35rQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_062946_228857_BD272099 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Same as AM62, AM62A has three instances of McASP which can be used for transmitting or receiving digital audio in various formats. Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 393a1a40b68b..50e4fcb1d678 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -660,4 +660,64 @@ ecap2: pwm@23120000 { clock-names = "fck"; status = "disabled"; }; + + mcasp0: audio-controller@2b00000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b00000 0x00 0x2000>, + <0x00 0x02b08000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc500 0>, <&main_bcdma 0 0x4500 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 190 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 190 0>; + assigned-clock-parents = <&k3_clks 190 2>; + power-domains = <&k3_pds 190 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp1: audio-controller@2b10000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b10000 0x00 0x2000>, + <0x00 0x02b18000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc501 0>, <&main_bcdma 0 0x4501 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 191 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 191 0>; + assigned-clock-parents = <&k3_clks 191 2>; + power-domains = <&k3_pds 191 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp2: audio-controller@2b20000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b20000 0x00 0x2000>, + <0x00 0x02b28000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc502 0>, <&main_bcdma 0 0x4502 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 192 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 192 0>; + assigned-clock-parents = <&k3_clks 192 2>; + power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; }; From patchwork Tue Mar 28 13:29:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13191071 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63220C6FD18 for ; Tue, 28 Mar 2023 13:31:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IbEk0szZHqlx30Syue2f6HX/0UYC5GRlXkbD2spjVgE=; b=KLpUaDdQlJlOg6 g1GAK2cW4xitmGxAdTANgAzjUkb4deFDzYasdNtELG0C+DsDHxQ2cCPu+rIHxxOrZ8JbmtT/+lkeC QMAZBGgsYCJQMYSRLRbBGR2Mc+ZB6uCQpNMsqKzjcp01MATmK162hxO85cwhcI2jJ1V+KyNxBjZGx Tm6C0y595ywA7j960TIT3Na2pg2/VYL5LTrCHQZKbmGJYrbQfTf+vPArURNuk/45xzVXb7FlfB/41 KAsYiHCSPg/KWB0aCkapH4MIDvpFbf179a+9ZOPLTKHhClzPci8Xx+ZLunf4lkQbYHseuroRsZ8o5 LUey+iUWTSYlwkOFqD3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph9P3-00EaMy-1a; Tue, 28 Mar 2023 13:30:21 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OV-00Ea6s-2Y for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 13:29:49 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTcdk082681; Tue, 28 Mar 2023 08:29:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010178; bh=iex5qyliMq2Kt/A4FkjflgasDUlNCyGEwIwcs3aI2A0=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=L5BC/RdIJ+IsOG4i41VFRKI5I0ohRl7o3dytozwyBnwksLNauBAaD1f3qFX/WHguZ bOcT/GAjORut0/mxlU+F2qYsSzNwZpvCV4+88YeTuJDN7at6ZdyJ53YwCmMySwen4i Zsrm3oIN/SULVpKk/a3UkzcoKA3gJOBpjnCu0Hio= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTcJu113914 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:38 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:37 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTbJr122365; Tue, 28 Mar 2023 08:29:37 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:23 +0530 Subject: [PATCH v8 5/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-5-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1485; i=j-luthra@ti.com; h=from:subject:message-id; bh=89iMQQ1UzhGpsP8Ub7JZE+Zeru9HloZUwbHrSaYxdwE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu5u2YFb4DZkiksybL+9twOtvWuKkVfrnIu8 i7cKG0ItReJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLruQAKCRBD3pH5JJpx RQEWEADNob/dQDlWZURDtb0nPvQTFMNlyBF+VXUeu4PFS4FyesDKBCW9Wn1UjSEC4dnB1lDGYB3 D6rDmjynw9CzFcDjWaK+BhDazgl5lrHEWRrhnfcfPbsaRJ9HKAi4ZMyAkbAhUjoZceuqELjoIJn utZRtF8oMYu8ckG2j5apRhYlaVArdUVz0LLv8fmIknvNlbNbUFaMJzbEzDAF3AsrlzkhsZ+Ct6n veTxfsXsX4DKpFb0g1GYsybv6qMx8jAABHlpCtFbuCt7g8KB9PDxheTdkiK0OKn/CYlbF4gBUP2 6lg4hKYVGZ7rTICw4i/jhgblJQJK2hlR6SA1sXZfvJEXfD3hDvE+g1aS23JVc4dCIJKDnT6IwTD xzhzg8HmKcNHrfTQonm4yD4BCLE0Ya92RKqKBUmHwUBelcDY344WqbO+2WIe16oPrwTyK2N3vGw Kcl8n3ZmIzCJJ3LEN39/FHBUQPsewwWUpfsW75btF3LhUS9BfM/pA1/GwD9eScnus+TJWaoqww7 uxXfxpVw0LBpa8fJiqdMjFlBaAeF0kwinK38iv8BC6839W9YtLjEsYDp9nhD3dj90n/hvKTEUaW O5NU+/OA61rpIAeCVLeO7qncR6IblWnQMQM2f84V2zAFowfB8B+Nm88XFXZPFO3BCCTVgjU4c1h 03nv0Z+C6RUH0mg== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_062947_945722_8882BB16 X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org VCC_3V3_MAIN is the output of LM5141-Q1, and it serves as an input to TPS22965DSGT which produces VCC_3V3_SYS. [1] Link: https://www.ti.com/lit/zip/sprr459 [1] Signed-off-by: Jai Luthra Reviewed-by: Devarsh Thakkar --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index f6a67f072dca..2296d656323c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -77,10 +77,10 @@ vcc_5v0: regulator-1 { regulator-boot-on; }; - vcc_3v3_sys: regulator-2 { + vcc_3v3_main: regulator-2 { /* output of LM5141-Q1 */ compatible = "regulator-fixed"; - regulator-name = "vcc_3v3_sys"; + regulator-name = "vcc_3v3_main"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; vin-supply = <&vmain_pd>; @@ -99,6 +99,17 @@ vdd_mmc1: regulator-3 { gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; }; + vcc_3v3_sys: regulator-4 { + /* output of TPS222965DSGT */ + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3_sys"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3_main>; + regulator-always-on; + regulator-boot-on; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; From patchwork Tue Mar 28 13:29:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13191072 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9940C6FD18 for ; Tue, 28 Mar 2023 13:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O3gPgk+r6yHaKIUWXZxvS7C+StraRuMQxyLKFEiJEO4=; b=McNTGZIliB0ent TVtM/LDcMFBfoCI1RBsyj5Bab0Cj2womTENcIsxYjxYN78FTo+/ELJZKXw+Kl9CDXzWELU0yNi824 j2uEomnlmoXwaq/dg4JHFpCuJv9a6mXokdBfWZkKOIJbrp9dhKG8kNQS6l/0M7h0uDtd/TSFd5lCd 6N77YeoAx9L3ysUPtGjybdoa2VVAiIU7rEd9iDWI3hVgdDlAya2tn182CU3gFCbdK4e4616dhKpC3 T1i7O9cXgwiUMiQo49YT6crE6Am3I1auSW9GjBUQOASC+n8wWr2zXJw4pixyIvPwhMQiod0uTfMZp UY9Xp4/N7LlGM7MCHGqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph9P1-00EaM4-2H; Tue, 28 Mar 2023 13:30:19 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph9OU-00Ea6z-0q for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 13:29:49 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTdXo005670; Tue, 28 Mar 2023 08:29:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010179; bh=lV+HXvD7QcdmJmzElwDez7tC33GDs2nZ7rVEaoUKP70=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=ix3C9UIaEpSKpamTaQSuPXDSkP30LkpHS2EKK4sBBIBkrlRF3EDUfPb1KbjnT/Xnu WmqXxNyxuf4BgYetmGpsKVf0yRbr5kuUaQXbQ4ZTCdNV/y65PhCsnG3b88z+oKQPe1 4SHa/5cMmD3eNizzECwv+KkONvZcS6cxoUNCbIQI= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTdlk007693 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:39 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:39 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:39 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTcSC122376; Tue, 28 Mar 2023 08:29:39 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:24 +0530 Subject: [PATCH v8 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-6-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3461; i=j-luthra@ti.com; h=from:subject:message-id; bh=GBSLCEn9irDxaEIQSwlX3uqzJq0b8qmTn/M8uqYMMDI=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu6yqEOh1VCnvYA/vYRiDQZ8ZGi9Mkg0/kP5 Mpk2ICscuOJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrugAKCRBD3pH5JJpx RR1yD/4/aoKVBEdhxTihzM/wH2D7Br17mIokHUM59qnV8FuNW0npvlHTBkozXmZfe6G7gkSmJUF GK9JNGypYr7czzbORRfy9rk4ugwUTc/6GLnv1oy5hEj6+YQ7i2gDsPStMShgnC/S3QP9qc4UGo/ dYhbMXKq7/WOz9q+MfrxbmSFS9Bz1ue1NDRZzeuLtyhn567M+4Eb/GK2VeGhNbBZCci6Fx9U2t0 VCuST3HXQJElIyEnbWzi6Rk77MnHX2f0sqPFgimhzJ685QANlDuwXUNMyeZOrF7Ql0jEN+M4YbU JnDPvoH3X98SIrDYJf+u9wmDEb9pa8A9lgkNAqVpWvEjjitAT4eZe6Jk9JWkyArPFGeeZdGRIzx z+OpvLW04tI7OtQjm4YEPHz2cUqyFU7ZzM8E7gaKFQCV3N0cGSUW138d2VYn8Ryq4MSFfhf9yvB gHFaP/cJsXi5bEgxK3sKlhzXVWOoW7rSwS3Ze0whEOWoovE51OeMLIHeffGNJRHCuzOPGpwjO0m NGyswSgp/chDo6gwVbKv88PwJN/h1i4/0arXDbx9er8LSr3OV6Bm19f/BzjbzA+fzt+m3nl+lab tJb8MJV6HWgU9J2w3f8AaBc0nh1qyz15s9p/FuRwKcRPgEIOIDtpaocZVnnab6vbIHF85z4NwE6 tf0k/G9e+fvkhsA== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_062946_403074_10271F2B X-CRM114-Status: GOOD ( 13.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use and update pinmux. The codec (TLV320AIC3106) is also supplied with a DVDD 1.8V supply from the PMIC (TPS6593x) on the SK. [1] As the PMIC driver and devicetree node is missing, skip describing DVDD for now and manually set the OCMV voltage. Link: https://www.ti.com/lit/zip/sprr459 [1] Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 77 +++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 2296d656323c..8d7087e5f9e4 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -123,6 +123,41 @@ led-0 { default-state = "off"; }; }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + codec_audio: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "AM62Ax-SKEVM"; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line In", + "Microphone", "Microphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLOUT", + "Headphone Jack", "HPROUT", + "LINE1L", "Line In", + "LINE1R", "Line In", + "MIC3R", "Microphone Jack", + "Microphone Jack", "Mic Bias"; + simple-audio-card,format = "dsp_b"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + simple-audio-card,bitclock-inversion; + + simple-audio-card,cpu { + sound-dai = <&mcasp1>; + }; + + sound_master: simple-audio-card,codec { + sound-dai = <&tlv320aic3106>; + clocks = <&tlv320_mclk>; + }; + }; }; &main_pmx0 { @@ -201,6 +236,15 @@ AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */ AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */ + AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */ + AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */ + AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */ + >; + }; }; &main_i2c0 { @@ -235,6 +279,19 @@ exp1: gpio@22 { "MCASP1_FET_SEL", "UART1_FET_SEL", "PD_I2C_IRQ", "IO_EXP_TEST_LED"; }; + + tlv320aic3106: audio-codec@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x1b>; + ai3x-micbias-vg = <1>; /* 2.0V */ + ai3x-ocmv = <1>; /* 1.5V */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + }; }; &sdhci1 { @@ -303,3 +360,23 @@ cpsw3g_phy0: ethernet-phy@0 { ti,min-output-impedance; }; }; + +&mcasp1 { + status = "okay"; + #sound-dai-cells = <0>; + + pinctrl-names = "default"; + pinctrl-0 = <&main_mcasp1_pins_default>; + + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 1 0 2 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + >; + tx-num-evt = <32>; + rx-num-evt = <32>; +};