From patchwork Wed Mar 15 09:03: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: 13175519 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 29192C74A5B for ; Wed, 15 Mar 2023 09:04:51 +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=7G1l++8Iznw1kuW0zjSvnlHRU1C/hYGeslbhNZFqZI4=; b=z0ArvRmx1Fg6kB 8ROMGRDTTBb1TFf7i1HKcwRlZyzP/yz+u8/Rav7jQQ0y1d06lYjM5Yyqv99VyfOmyIUHrt7WNAbTo b/0t6u0iEpUr1SuJExJ4XUFxPpkjG9xGnRPzSpUYr0rbsbmyHEiFmXjM6qBV87W/1a+JS+RS4hF9b CXtcvEOZqcO3L5I/n6gVVuJaQETsiNwhrrLszp4vZML+vmCBDDUcJAyg4w7WUeJ2lRxepJqZ++yGu v2u1yAB0BUR/3mXfUiPmMpdBWZ9o3CIh9tZIWeRSSdwEHKUL+pxkgZH2Bp+yv09y5b8rwVHvCUP8N kXERi4TwG03lq9XNs6VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcN34-00Crmu-1f; Wed, 15 Mar 2023 09:03:54 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcN2z-00CrjT-35 for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 09:03:51 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32F93gNr127353; Wed, 15 Mar 2023 04:03:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678871022; bh=pNYjOPZLfTGHtUQIJS1+TCtBaAmBtJH01h9FWZ4IfQc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tcsvrlEU8wSCjYkQb9ti1idRRqNTe0WVV+UUZF8BMgeUKPgG8Fre7KlfWXbxmOKdm iH47s4rSE3I49gKwUQDqGIAvW76cYfwaytRgRoOjTgvSqS+8k4/xlZUaGH2lsjFw1O TXutjzRLV+pabNsmm0IIKBuyGZoNkiXkNjHp6kaY= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32F93grZ068228 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 15 Mar 2023 04:03:42 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 15 Mar 2023 04:03:41 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) 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; Wed, 15 Mar 2023 04:03:41 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32F93fTY104696; Wed, 15 Mar 2023 04:03:41 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v6 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes Date: Wed, 15 Mar 2023 14:33:31 +0530 Message-ID: <20230313-mcasp_upstream-v6-2-77685d7cbeb8@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v6-0-77685d7cbeb8@ti.com> References: <20230313-mcasp_upstream-v6-0-77685d7cbeb8@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2740; i=j-luthra@ti.com; h=from:subject:message-id; bh=0fD4RCKgRcyT90JHKtvgV3Ukjm3btUjTWtPkMvr2fQE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkEYdXP14+js+tZYpFg8pyCv3M+O2Uv+BJf+iyX e6f5WZzIoGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZBGHVwAKCRBD3pH5JJpx RWH4D/9LfrXZS9pnZAmF+QTx0tlZQEH4/NeXBuLSllaR6R9B/8RJ1xpM1k7VCHlz7B3XKIqJAZy VDft4OyhobE2CMCyNr2+Bova98JztxGvOwcHRJ5ylD9HbNlxpPOgUiR2b/0GYgMjNwHOgC1yx6R F2doBG4cd64Zi0soUQGH1b+DSL6X8/XDpNJl/cw8iLI7V1F4i2BqHrm7TqFskCoILsYW7Cr3x+Z Uh6A3/0oerIZtrmDkkuLqE/umF88O8Jar140o/DaNTW0kTDI/ckS13G+gkruQJA5i9nmaCTUVxl HaOA9IkRdwmW1GhZ+IoDk5OgAli5O8fLXc6IZ+TR9nd7Ez44jUjHPtwHo1ED2l7ydIqmEdFG4WZ L+FULqV+Ng1jG3oU1prTl5fmQN7okVrqUKYtjqiZOfdjnKI+P3RMitILYFVuA326lsumNjIr40C DdsL8H6eGmWv0JbHEp4lEMpDyURn5jNEoQO+dyvNChKWmPhHkWDSJld35dmS+hOssZ5w8MYmVOP 4O/PGi/CpVm8Lv39WwEwLzl5GIrK0amDvp4J+o8s44Z7Fpg4qWiS/vU2HENyRwa3B4dd2AGlzQW vu1REZ8LcBaj6mDw21ZRo88COkHSYAOZG6TjjwDPinIy31QncTk43XZw5/DIhYhMvNnJDYzULBK Nlmm4gBem/R1knw== 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-20230315_020350_127397_80A2F1E5 X-CRM114-Status: GOOD ( 10.66 ) 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..c52c23ac409a 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: 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"; + }; };