From patchwork Mon Mar 13 14:49:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13172657 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 26B93C61DA4 for ; Mon, 13 Mar 2023 14:54:15 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qH2J4987mtUjWpPsNnrlqWfHsklX0fttfOQ57mq1cGE=; b=RviT791Q0wvyho MllkH06HC1E0kc1/S2R7ZI8tU3DdjMPl1z4+IYR504YLITAWs7pZZt2XrpQ6bNY+j5bMwGaCH2Czp DGjqUmHp2BEZ+SkHm7nzfB/fvT1FI9+PsCa/VsCigEVVFCElvdug/5IVbRmPrZc07inK5fC6xSbsG DuIT3QuBrod3xjytd6wQmEwdfQ56QZTf5SZuCFjid5oYOXGrh8aWLwbvbKqV+rCRIZrpLKeyLQRiW zlfC+vvLH3kpfBWWd1iS88DNnib5CDft4K6nwly5yLNsR5s4eWGzQq38o8VK72+jmi8uUSBsPx0kN uNak0i38ib0FgwdmYnEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjY0-006FRI-5v; Mon, 13 Mar 2023 14:53:12 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjUm-006Dpv-Hl for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 14:49:54 +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 32DEne6I049179; Mon, 13 Mar 2023 09:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718980; bh=KmiYo0Mp/7UOsWp+C/ZJZUsUsiy/rrCL5FhE3tFewDs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SKd9Z+mgcxyIqIbal0owo/zuLbzqDOTpdcKaNCqIoUlWFacUwMeECmsD3wFobRcGN W5K0devXLIC1UxfqDEx9W+F2fihRvgUeIlZK6pzt9JwQoxqxrn+7Tt6opiVFlK9RnA lyiQyAPnJbox9ia9cIikr3siuVTXddIDR4BXOL2o= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnevi013609 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:40 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:39 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 13 Mar 2023 09:49:39 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32DEncAR034152; Mon, 13 Mar 2023 09:49:39 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 1/6] arm64: defconfig: Enable audio drivers for TI K3 SoCs Date: Mon, 13 Mar 2023 20:19:30 +0530 Message-ID: <20230313-mcasp_upstream-v5-1-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=840; i=j-luthra@ti.com; h=from:subject:message-id; bh=HwVDODIMEdhkR4OZ+E+QhHZzJZLC2RvE10il4WYmg/w=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbSa9JVTxMnEeWN0igOUAK9GGBPe5WDrbHy+ F1kPDbMZ2OJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA820gAKCRBD3pH5JJpx RV9RD/9TyT40gbWcd6ZdFMfcZbFdVo8mrQbFI9EqK9pW21SGIuUFnTb1VBwzQSQkBydZEasdpi/ Njz9ve66Cdn/KOIwGEuSWF9haob0PsaxTqJur3JohRK1ev6BjKQZOFBEtoWahgAIuvJ/TRFmLMG QQiIdbtSSTnaecPxJisKC4JMFKYHwMDRSJjhFpXk4+pFm81J+fbdDOt+GBcQJK//HO2ql139e0L Yrv1wS7inKh8hWk2JBekhPP7AB7qzsg3oWVF3pOj2JDDIAFMkJuTE+ELlv3/H+1afrmsuRAoPM+ py2vifnq9vnFC5+hSDI4Oi2qqYKxJBCRkc7d6NqWbpb9lrgNLUXn7tkxpnzC64Kf7UfPgCq7mLL 80tGRNyoWG+5xzuax8h3p8LlKNa9lahqspdpRiY1KnxhppdgMLTxIejHuDKVXEdK+K3YEJzqwqE 2doEgHzzKWg2hKA6teOx/2q1IaE0BUdhEpks2q9XGI7cXEqVLi2Hy2HsPqZ8fF3UXneU+hL20By pgfzoPCM2zHU6QoRViQe0k9iTgFYbQMKJvBrORaCLSHNxz3oY+v4HlWHKl7qIoKMl4xqZq+LFkS ObzG/UpmWzU2fosGZKoyYaRfd3Ui9W+GNo6w/VAZPYkJTMT5wPErQJiZA4/QiyLpuuur4IxK5AE +EzvKTFFXW66aYQ== 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-20230313_074952_762673_3F77D96C X-CRM114-Status: UNSURE ( 9.08 ) 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 --- 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 Mon Mar 13 14:49:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13172659 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 8BEDFC61DA4 for ; Mon, 13 Mar 2023 14:55:15 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7NPeKC66hZNvD60e9Wap6cL1uAWMUCleD+M+LqDetS8=; b=USn5FkJGWnXVgK 4I2J13yESnZTOp87KdCBp8zpNat+VTSg8XOVZvyM2wOeUC966a4okYc+6JYXkUSbeddChuzjwFO5P +fFJ8ETt6AgxX8Ay4aOYhYyVaGuaQnRwAd9tNTd0yuanYLHOjigEZ6Y5BG9vvAfjp9Ou+bQgD+dhq OptGlHymuQ66fORB+W+pvMup4YJwdZwREsNKkNksksUqXtfw+0HeMPLg8DklhIbmxoz4fbJengIoT hHUBkLrT/oWtlamsDFI7Uec/RANMj7LKLxR1eboPdHVJVmPKM3ZbOfgQ9TZ7fES3nfI2rFqz3mc4+ f5n6+pxl8LfsfdTyAdxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjYk-006Fmu-51; Mon, 13 Mar 2023 14:53:59 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjUw-006Dq5-GG for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 14:50:04 +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 32DEnfpJ044507; Mon, 13 Mar 2023 09:49:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718981; bh=RTf4J3zVmz9UIzhMrDvWTIRzZ+fFJueiDX/4hEq8MBE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ECc7xZK6Uq5/iqt+wpPmNqxZZMOgNQI2tV42X2C5/1/N3GjfoR5ih07MyZrWoQvLU Un90ZJiIfrzSkMNhqSYhxUc0XSfOXtl9n3MMrPh2bAyxAWrcIZrV/fyrjNNg+YOjHQ HbVcFFGt4TkL1bu35gDNa+85U1fSMibaLm7F9iZw= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnfiw123658 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:41 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) 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; Mon, 13 Mar 2023 09:49:41 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Mon, 13 Mar 2023 09:49:40 -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 32DEne6B122948; Mon, 13 Mar 2023 09:49:40 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jayesh Choudhary , Jai Luthra Subject: [PATCH v5 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes Date: Mon, 13 Mar 2023 20:19:31 +0530 Message-ID: <20230313-mcasp_upstream-v5-2-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2652; i=j-luthra@ti.com; h=from:subject:message-id; bh=vAiECCbRBTuSSHKHrNzv2pqB2mqxrvCFcodpCjBORbU=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbT0m2OKRNjmKmrjsr206qiPgO1VWbQ8Lzv5 CMc7ApG6yCJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA820wAKCRBD3pH5JJpx RfWkEAC9/j83YlMzER6zNlTE4Xup4i4aRlyLAGWYjHRuPngFrYWpcdDOklwhLy9ddAMF0lmfwrd qX1jiMskbDrdM6LyG+HEP5yw6eZgMDl7V7EFEzrxO0q93GCFg+kNLzunMuio3geU7o2RKWhfdOe jQprhBW/se7L6pnWyxiOGQhQ8N8LXSnwRX9ROcqVmOOHhW9vEk6oeOCX2At8y5hzPISOGHa05KI y/MECJyDgXxc4xuWAwSKriqutGYRmjRafxoQKrKxbAkXKhwK/alpATFbatoaof7qEjEO10QQYmb vBbPmYvgSvIIorzZA80NiVB3q/a/PtQv3N8Nm75L2S5uOaGcfy9vpzzh8duu462No5zjy3C/BrI ALsvUGo6POZSHcH/GCoWOp6iNyUd3lqxQ0p5w2YIAb8dCCZwNN+yWRM6gdi0W2qRUcd5XrIiuFJ cCjnQTosfx5h1EKDukj09bdtHgt+mk4Bkc0h8t8TdmHhy67fANvC36iSIkvexSmdzzsHsTlPcu2 BvzYTyXfrpqlMKhguWEgWuL6t1b2SYXA34uQlhLFaW6E948QrYm7TF07P83LAeMFPy3RbLQVbLx HCacxmaMQNX1aaWLlD2gUq3WvzxRrHAnZ/IMI9uT+8hGlZnLRes5CaLWd3dGcR0r10Uj0Odq2To CQ01hD1d9LcWo6A== 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-20230313_075002_794179_477043E3 X-CRM114-Status: UNSURE ( 9.88 ) 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 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 ea683fd77d6a..4da5747987bb 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -787,4 +787,64 @@ epwm2: pwm@23020000 { clock-names = "tbclk", "fck"; status = "disabled"; }; + + mcasp0: mcasp@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: mcasp@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: mcasp@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 Mon Mar 13 14:49:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13172658 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 31EAEC61DA4 for ; Mon, 13 Mar 2023 14:54:38 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Lbtjwho96K5Xu5bzgG5FaWywx+wyJjLcpbKZP1DBGYc=; b=epparrsh4eQi/m e13riBqWtFgbybF6lo/Eon2V6C0mdxwIxj2X1NtPTvrg8+mrjC8asy/gAL+5Nmqgttj59JgD9z0E0 wXuVVCzXgVCvQFcD+In2FqLmSVGt+hrgrpQxqUfELJGvfBOUA6wHGlnGKOCxKqYyaB7psLgt7h4qK aiN3JVV7aaoHc7ZytzcmkBp/ZSwc6YeGXnPpt0wvq/EM4LbPXqdCa2yMTFTXv1rzzI0B6j/S/d+zk 9KOEUZOg/eK5ojQOsyHNsCQ+ka9xBPfVNjKVslzjrD7rJnjkW7QJ8NAF8NHO5QEG3Uqa7bawUHGHa POwN/np3VauIizeSqQhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjYG-006FYZ-4Y; Mon, 13 Mar 2023 14:53:28 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjUn-006DqO-0K for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 14:49:55 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32DEngJX044512; Mon, 13 Mar 2023 09:49:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718983; bh=xDr7Pvji9JKHAiVQxH6IsyfNhpqWt97bltmNKB/R4bw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JzdXdUe2vf4qtxVoU555Bx2DX5A+XxzgSrjK/PMt5kfzV7AZGBlZYPdyaq1ycUUb8 wFl5kIZL2cygp6MuCgwM6ZHpV6EQDXCfsaw5C3hnK8YNRLwXq20WhXXcaHzbBvc+Ze xhGMwlu6t1tJkHXVouT6xYU5YjSCajIVJJSl+Un4= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEngA9127726 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:42 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:42 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 13 Mar 2023 09:49:42 -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 32DEnfeo005291; Mon, 13 Mar 2023 09:49:42 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 3/6] arm64: dts: ti: k3-am625-sk: Enable audio on AM62 SK Date: Mon, 13 Mar 2023 20:19:32 +0530 Message-ID: <20230313-mcasp_upstream-v5-3-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3509; i=j-luthra@ti.com; h=from:subject:message-id; bh=qbZwv830evAh8S1QTh/60C26lc/AuC9RZaa+Vn7mrt8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbUlhPE4H8JRmYEVz0xHicKnc6BuJOJ89EYR tzcKIcBDbSJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821AAKCRBD3pH5JJpx RVJrD/0UC98f+FkkJoydZOrMdGuvtgZbWHPikkWv+6H8v+6JHTBN23lJbx/F1K2fXu9y9oLqBol iCdD89tuZ+3feHqxKsbV33cqvQjU0DATGhEcZDIXqsR39Db2GxoPQ1nyTwJvQEf/XSljCr8OmN7 ycfu1aO33N3cxySSfUhcM/C+6OC2Lh1xPfPZ6n1X2rfHvHDf1dhWc5a8KF0BqPpkd+7D/qsIcov KSwBtzuZB0T49JoJsTbIBazqSTZRAM9UeL5WSwgGxF/gfyTnnljQM2Bqa0pbMroRZ7wc1nFboUX AfhR9TzxZ+NHF+sAJFT16ZYOHc52/IQaRuofmZQCVGhwAqAbrkRXqv+BuEMJlXSveKV37gbEiFf A7Zbjtaj3sNCCLwA5iIdghwDetbKE6JDsdNaTQewBlh0R+3Hw6lps+zdasKOXlnxTtnDC1kG8j9 yjmts8oIs3d+6aCrHKgCeQf1uPPSbtZ/MRioOnAxeW0k1TB7K3VaKY6+Syx3YfwbR/NRS3kCtz3 fqOUMOwsNefhhnEEqrfeTnIk1cJeC1hWMOt/2TKEu/lQYpcYL3ewaZ/Jg1DMbWomOoFKSZYXyIp Exe9A8s/S7d1zU/kdrjCzFYrmCEp1o73Z4R6pkIFSlZucHyJzWS/fLtxWaYz6ZFKKixPqzcSyz5 X6UeFrEV+nDMMpg== 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-20230313_074953_189164_FD1696C0 X-CRM114-Status: GOOD ( 11.96 ) 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. Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am625-sk.dts | 88 ++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index 6bc7d63cf52f..3199042f3687 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -141,6 +141,52 @@ vdd_sd_dv: regulator-4 { <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; + }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + 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>; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -292,6 +338,15 @@ main_usb1_pins_default: main-usb1-pins-default { AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x0090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */ + AM62X_IOPAD(0x0098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ + AM62X_IOPAD(0x008c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */ + AM62X_IOPAD(0x0084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */ + >; + }; }; &wkup_uart0 { @@ -349,6 +404,19 @@ exp1: gpio@22 { pinctrl-names = "default"; pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; }; + + 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 { @@ -406,6 +474,26 @@ cpsw3g_phy1: ethernet-phy@1 { }; }; +&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>; +}; + &mailbox0_cluster0 { mbox_m4_0: mbox-m4-0 { ti,mbox-rx = <0 0 0>; From patchwork Mon Mar 13 14:49:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13172737 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 E3FD3C61DA4 for ; Mon, 13 Mar 2023 15:46:42 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KPL7SqCctCgRtRqTwz9lln9+YOdoiBjNhFE/YuYrE3s=; b=svVx2h+BeiYr5o dmK8ml9MmwjJZ6VUWXmbgKu275Xr5oErdvVCOyS51mMfO4PekDvAqK//jd4ra7qO2+Dnv/kAmzj9S YVhW8x6iG6AbZjyVyUM1clRzyuelDYgXHY9ToM2nVHvKnVGYfEDWN25afBzrQ6zLAPXLM88D/0D/x NgUf6uX7qs9Z4rs48y19nlUEoLVvez3yYy4rC7lWZSu4uaizmRBwfj8BpX0ekqL9h541WX8vyZW6D roJ4xaLt0+eGwjjoyCaJFoFcXU5U/1VMw5XcxbVfBxmAzILLmHP7O/h9f7z4VuP7ZH5ABBu8P+0SC t3UIM8fgn5l72BErJp0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbkMl-006TaD-HY; Mon, 13 Mar 2023 15:45:39 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbkMX-006TVl-V7 for linux-arm-kernel@bombadil.infradead.org; Mon, 13 Mar 2023 15:45:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=jgN5ONbG040NbFS8/BZLIr5Dl3xsg65QWBAIodV5mi0=; b=bHPt8f7cyxUsPJSnhm9pAXeudL 0r3spXK/2L6rHrJEOwJSF/oC3HSdpPcxvltXNknnZ+PyCjDWKTFEjINvvUO++z6qYPrV0QIacmp+2 p3l2ADnzaP6PHbomYiy6WO9Ullu/j/ArJyBrnzMKbZmTiz2TVqszWxvo+8wJSH9sBdyws6q/Cu9Vd PJuC74NUt76mTztf/aTAtXEBIHM5d0/zJrjy+mbL45gx4ZgwIjBC26xPk1MqNAfhl8BaNBZ2gxxgD tfEGfBN4mrDwjVQv+/1NyPmdVK/y6ByT75y0ZNg3+oy/O1/Ow5QLCQOXXdmn5WgQLyngBPL0Ezyvq 9GQSf/cQ==; Received: from lelv0142.ext.ti.com ([198.47.23.249]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pbjUp-001P6E-1V for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 14:49:58 +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 32DEniPx044517; Mon, 13 Mar 2023 09:49:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718984; bh=jgN5ONbG040NbFS8/BZLIr5Dl3xsg65QWBAIodV5mi0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DKjLu8zZXsNznrTX2p9z66+gvQvgtBXHnLJcTdm5W8StCp4u8wlQI8C/c8/B35z3e q9nNdrWYJRwhGIXgL2UhiZNc30YXkCzmoC9F4toj5tolomU1H+e9YYc05RuhVQQiaS Fp6HMpbsH2FmSnk3n/SjJXd0WpaU1JJmSsmKSsRs= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEniOD012183 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:44 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:44 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.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; Mon, 13 Mar 2023 09:49:44 -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 32DEnhHI122973; Mon, 13 Mar 2023 09:49:43 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 4/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP Date: Mon, 13 Mar 2023 20:19:33 +0530 Message-ID: <20230313-mcasp_upstream-v5-4-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2567; i=j-luthra@ti.com; h=from:subject:message-id; bh=AHQ+upU3Yvs9g6FKaLLd7vmmT7/6vuQDLA/v3ncpTGQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbVbzQbVvMZD9JUmjwBhNW2nbRgUnURSzQxv dL7cD3j5qaJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821QAKCRBD3pH5JJpx Rc7VD/9LobVaU8dgCCukxbi9zQlOb/HtPcyT39YVoCHhJxU4YKqM93eQdpx+bA4AZ5A7ONrT7BR jYheJkXjjAVBD/OFqY1dKEW6ZdAZYNj1AXE5rFLExX+v6TqyOhGw2Zcae6PpqBaZfdhWuB6Ecz5 CJ7W67vq7U6KTdfr6Mpkfr2mrMr1+BqGB2vqCpeyL0S3zaOpYCRGdWc6PGhbXxZjwUthrznxKrf xXTuswuPeOqd+G3GKfnxB7lhny4lkZ9ORqi6UZVbSvJFZblZFq2IUq1Rq047Ok5q3/GzNnS8mjG +58h3niWr/qVv+PWKFSDI3g0e+ut7AO/qrieeC36s4psh1dWLmuxZW8YMTSQFgR7Z+gT2zGRiH2 k1d7RswfzaEByWzb3TrJUHxFLLPElomC5wTczZPaICfMmOyhG4Dkt50Yo36UxAMP73JsBRdXopn eT67UkVoIBVgn+Z7jXb5SD//7ttvRdQF4KCCl9TR8PemKKUqNPOJY8zpI9KumwZ1J3E3bADin8F zDUXJ4vRvrjtY2tMDmn/FRt3lBF/c9zS02ZU8UGE4bZ8a0rt1ADIcRJFvhhMmVpaXfX5GC4I+p/ DseLiqeigSMtTj7O2UMGT2WOwosOpyFBzLq5+ElbiZlGcX0d4voa+apx6kgWI75H6NqoydSxwl+ Nrd30zr1H9cyZKA== 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-20230313_144955_857179_36E637FD X-CRM114-Status: UNSURE ( 9.20 ) 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..7b20c07fab77 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: mcasp@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: mcasp@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: mcasp@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 Mon Mar 13 14:49:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13172656 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 72CEEC6FD1F for ; Mon, 13 Mar 2023 14:54:06 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k3I091FwBHY+D8mcfFnIhSWKpmcSCiiK2wsAA0ozFAE=; b=dk/BNKzkuANGft Ep3502lbgdE4CNrqD+vJLjGxQR3aJGvqeqbE2fJ5ZADPMl+6B8V2l8QKQM96+6svMPzg5neA3iGTj uBFh9UN7Ux2muyX50snjAJWciY49tNiLwZUttiR8c3qnHjc7qojg2MqdN5vNPLBDnwK7Q2KidihQ4 wTLGfumgIcmdPC7rttOX7mdPX/lVogQEVChYUcNsnWYLi/5hSvTYHtPaD3kLEhsYrd13dPXxrMvqn KZTu5b8+ERd4L6StKbTC7Un0fDXTQiSZ9T8fPjtdoaqHDQDo9bvRLkmbup23IKcUCVWqzgsFHkucG Fy6M37HTK75okKsr35cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjXo-006FMW-Mv; Mon, 13 Mar 2023 14:53:00 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbjUm-006Ds5-SA for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 14:49:54 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32DEnjW1049188; Mon, 13 Mar 2023 09:49:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718985; bh=Cm4fxL8aqP+M/xiJppfBdfZbTdZp5e43WLIPjo0QZ38=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oMKDdwaPvkeQL+WKydMkJyqLIqKzIt0tXvTxGiIKCzPvDngdiO/7WVJAE4u1MFfJ4 5ijWXb8Algbme+BWU53IA4y2o71R1vBERrfUyoE0uQT1/jgNCDB0iETQIA71yHqtuz ZZlhyRqysq1GewOO1nfO+/7fEFQrevkHE3l4UM+k= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnjwf127745 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:45 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) 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; Mon, 13 Mar 2023 09:49:45 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE111.ent.ti.com (10.64.6.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; Mon, 13 Mar 2023 09:49:45 -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 32DEniDJ010691; Mon, 13 Mar 2023 09:49:45 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 5/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators Date: Mon, 13 Mar 2023 20:19:34 +0530 Message-ID: <20230313-mcasp_upstream-v5-5-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1387; i=j-luthra@ti.com; h=from:subject:message-id; bh=8FGf5SMnjUpyVTelFPfg4Qsiky79X6LMQvgpym9Ks7E=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbWhY5Br2DuJyYgMrLp6KbL8hSICDZc4JsI3 zH7pmFxlkuJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821gAKCRBD3pH5JJpx RY/JEADWFB0xBeszY03V6z82hBrxGooUW5O40v2maBDWV6y6lTl6wV4hFA//qkIAMa5gyCdPVSL IejfuBTcs18w3TOgaSOtCwokTtQzR8PN8OQeo5y/gQ3O1efxK1Qub15AY+kKbCy40H+yeLYE86T /XoASTnU06VT7PMBlachv0fZjuXAMcKa8vf+Se6s6XqdMgk+dbfGfTJnhkCTQbrEp72HawctSI1 KtDHHG/0BumtNs58XURTk3wgbTgIMSZzKsPGJkoPXYxhKSqz5dCfCJIwOU42c3gWF5w+mg2c9fp D75S/1MpCVCPVg21bFcM13+9nxoIeSva2zOci7yVy0ItxG6znys1PkwJz3OQfVpHvsBW3NMjaUA KiXEQI03Y5QUGK2NXqXIUt51uK6fnDQXkEj1u3NoR3SfetsbVvQrUl+CKjnIbo2qCxF0ZbGoX3k cQyiKG3O9CZdfm9l99xLF9n2PxsEUF/i5LjLvJGomJmsj1mQTXuUCl0YfSnHdx1Bu/T/xWQ+u0U Lh8+lgrS2xdFvkn86ylnadegMsVVEthfi7JeDQNSooIby3t+OpNVmUUJtxcOV/saQMYjIcYoK7g 1BjKmmVqlMqBnMj8BQFxAfYzS9nVwveQ2KbtwfabxJJc/qWpipf+7//LrFJI4OR5P70OGVwzV63 9tSsy7EAqDnvzLA== 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-20230313_074953_015629_9D094AE5 X-CRM114-Status: GOOD ( 10.47 ) 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. Signed-off-by: Jai Luthra --- 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 5c9012141ee2..063e69e45163 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -76,10 +76,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>; @@ -98,6 +98,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 Mon Mar 13 14:49:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13172738 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 68CD1C6FD19 for ; Mon, 13 Mar 2023 15:46:50 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3q+BiMJeYdF7xdlEW1DbWnsnkpa0WBD46j1l1+j+160=; b=MUc3lJZBKfNACf 2Jws++5mZidwsYLTiDb9QEvzFVJb4MJN6NshuSnh4KeqI1325PrSvmK9uvFTH19Eo6GiImR9YDV8n hwi6mvikmjR43DE8hYY3jVuc0Dj+n3PkJrbCsXlRtMZszxRE/FCp0n5wBsLJF5jH0colxiyXWsYRh UjKqAxOXqWKmRurU7STxgfkdNLfNZWlNre9oNEmEpbvUVR8cHDEEi2BVVSl8tBxdUY4Q9uhhaahIf 06H7JInHRR/DqMu6hsfYqBUzHzrFRlUPMWTW4Vm162GRQKufqxEMjsDLk7Afb2joH3YpLgwSpXix1 nCboDju/J1nu1Ysn4PGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbkMv-006Td2-G3; Mon, 13 Mar 2023 15:45:49 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbkMZ-006TWX-F9 for linux-arm-kernel@bombadil.infradead.org; Mon, 13 Mar 2023 15:45:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=M9oOgXpy7VJsV6og9C3G518iHqPrz1pxGesdLOm0XXk=; b=FQdub6Jp/JCbCUV0KtDTuHKU5x uslyACtEFibVL5QuXH3xzUdlKV7MuCC4ZcrK5Ty1QKbrxo25DWV0O+vVJKoTgJJHQ54g7ctE81owC glGSDCYuCTOqdH4J79zOVpqmUiwk+Pb5qXPO7yxJY/NCRcoyNNtEwkR1oFPkFmCji79LhSp5/3XaB 3653pMOn/PppeL8kZTEqpYSCedEI01PH9xf+4JyUMmjMYMLKWZJzg35FQSSyrADEUNpW56pT/dhIx XWK9jTU19F+O0a9YvfZmsxDzJcvW4U0bU1h18IohMA1h4f4dwCdM0fRwv37qI9YiwEB9o02pKGMDt tOM9eKRw==; Received: from fllv0016.ext.ti.com ([198.47.19.142]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pbjUq-001P6P-2S for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2023 14:50:00 +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 32DEnl0G098652; Mon, 13 Mar 2023 09:49:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718987; bh=M9oOgXpy7VJsV6og9C3G518iHqPrz1pxGesdLOm0XXk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aQyd0xzxpQsh5u3jdoKM6M3PYnj10FG4/56uWrIUt8BwLV00IYZd/SfGNwBK6IrQN Rwv6/WWUoU34THeqgQTC7a0jCMA08QECxnEhWAFZWY2ym5/kdWlDEIbNX27djucOgX FqGNj6rA1LvKI4xwz9RVuy69YIOQx7bEccrYOALE= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnlgj123692 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:47 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) 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; Mon, 13 Mar 2023 09:49:46 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) 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; Mon, 13 Mar 2023 09:49:46 -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 32DEnkOC005381; Mon, 13 Mar 2023 09:49:46 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A Date: Mon, 13 Mar 2023 20:19:35 +0530 Message-ID: <20230313-mcasp_upstream-v5-6-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3124; i=j-luthra@ti.com; h=from:subject:message-id; bh=e0XqG1n85p5rfGQ8c31UUUGa4/j6/dGgmGuUYExZ8Ok=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbWHCsj+mR3HmGG6neUPrlEPfrjErffXZIG1 OpecTjEp62JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821gAKCRBD3pH5JJpx RbMRD/sH6pQfqs0i5JoEQ0U9031GIJfnNJ6vKBj6cb4dHbDFv9//1/cjEF8eYfeYRzQ5bRAxPn1 sF1kkUigh85xwcTkXQfT3WuafJQYf2UtSZGv6DaAXJb86zAur8Qw8e/rgBXbSiHFaQWg7xcm+JN Kab7/Sn5KNB6uBUOtwHGMHCb7yq6gdRuEGY8UqPl7Vhv/71Qd2w+JzLRpeBALGlgQ2LfgYNBQQJ E/+E//B/1veWZfC/qU+BIZhX5iGPUOvpLf7eQdkgtkH5ksNonW0bgcxwrVCMLHYrT/pnUUL0x9z vNaebMRtO8DVPT6VGyXyDClQvQTIvOVqoXiuylww8pSM1Gr6PH89JhBxYuMCerJJ5zuUeblovYY khMIJ9N6rPltOEndUeBFvC9G18Es9snoH4W/tlImUVzI9SDjy8FQBHmgTxFeSLCupGki24ZlDVs CrwYZ5gQw7YYAOBnIqsWeJ/da0g6L/8A1lOi+c610H5QmsNqHJ8s970+3uNjTyzV0pAHKJzyF/W CftLyigWalAZp4js58hKhGXvA687VZCzrAckohSSAKDCHi3/DvAB7GkVtb78bVXJmsN5CZq/2tL dpUxrHNsuH3SxRBFMqazFs3nY9TooEzJxGpzWN8AtL3NDmZHfmhTVrGRSQiFcoXpiMP2vsMiNLG ayaFu8AJ0uGbabA== 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-20230313_144957_256736_27278993 X-CRM114-Status: GOOD ( 11.28 ) 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. 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 063e69e45163..1775ed154aff 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -122,6 +122,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 { @@ -200,6 +235,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 { @@ -234,6 +278,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 */ + status = "okay"; + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + }; }; &sdhci1 { @@ -302,3 +359,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>; +};