From patchwork Fri Mar 24 08:55:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13186553 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 2E8D4C6FD1C for ; Fri, 24 Mar 2023 08:56:33 +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=yujWFpcN7VhSOuu5ORyoWCMw8UxVGoVw5fh57XB1j24=; b=ArDEWhNmdyV9Ok RGVpSxbnt/VKe1IDCOWxRZ0ZWDbjEkUOMUoNv7mxmE/r0fqiFEEvtCzX7rbS22F6J0oOXTr7Q7SSu QTqkx4TMaOqjqytMClEg1Qu68h3T5MHvx23hzra3Zb4iGo/7Ruhh+8ycE6iheckHCx/4zKQKmZq5r uEE4eMoBKW1JMVhfQoZtBoMsdG9o2gWahEkgBQ9g697fTa4d4IF6VQKWsQpmagNDI2jNJk7EHRHh6 RMQHc0UJFn1KfcQSR3Tzt4GztvRlnbeqfTBaYJPg8DssiWr1JtB5C25CqoU4hsmO3LuoVvQ9oCNBx Hd/U9+s4mUa/HvBSngqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfdD6-003vzf-0K; Fri, 24 Mar 2023 08:55:44 +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 1pfdCu-003vue-11 for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2023 08:55:34 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32O8tOpd128166; Fri, 24 Mar 2023 03:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648124; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=N7YXPHTVHKdVEs8BAwDtGyJ+NFr3NkZ1f6MYzNzNDM9vdv5R1waIYwaLB8wO2cmeW Y5q1f5q/8fcImg+qh/mM09ZD6EHmhnB6LufyttDnRmxe1GPsdQzHXyqovcyLlCgita RWibhkwll2ScsaQ6zOBJo9MXN+Tksgv8q7lsIwik= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tOpM000355 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:24 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) 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; Fri, 24 Mar 2023 03:55:23 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) 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; Fri, 24 Mar 2023 03:55:23 -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 32O8tMxp027170; Fri, 24 Mar 2023 03:55:23 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes Date: Fri, 24 Mar 2023 14:25:16 +0530 Message-ID: <20230313-mcasp_upstream-v7-2-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 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/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSGuqRtW3GhBgUwi6H5Y8rGvXkHf5pW7IPvA wr88PkEyPeJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1khgAKCRBD3pH5JJpx RaW7D/9xBeuOOjQsa6OIa6nQsKEzmcFgTQ7ZAeWJSIhRSO9RJUwzXcASzGLCxuaTU3cOGnX6NKh omRAjCmNZHYhafK5sJYs6otKkADvBBeKoeuU8bHesWIQTIC4XKwwVI5FeAWvKgBbiwYu1nzjeyq hQmDO16geKfIgRMrNgNXVwCD4VQxT/1ZwyKBnLUZSW/HlRocklDybOO9C16RdVX9toY+Z17DtJg cCyd+4wj2tliprHmLfF04V2mkOWt8+aGxXA82m3hPCqXO+5AKjrcyISBWYW/5qmALsSRY35I7Zq VQNPumQ8q/eLCCYcc3vyUZHquE4eXMNHtYyMPude0RmmuzvFFXHJ40gEtX6bK61An0gds1LzA8S WKlpSUjiDlbjQeoh/515BpIxniMSTKAaLKOb6k6BOSKUGXJc6a8WQPAIlF2U+yxBKS2ltLcTjfd nhrdhb0RFPeT3cPlWQl2L3Jf0G+VR69DJc7UDhRl5/Z9kLIzinowKIth+L3GbSAUf2ao3JOPvL1 0tkglbBgkw3+qEKy4IZHox0Fk5RGwEKa7V5JE7HrWJ6y222SkcM2WIjZOiQlp97ULs++myyCGLP dhjwUj3lsZTvKHAPjmrtZXm7dFnbzI1DIhSylgFPJRbB01o/LkqH/qSpaD3j38XQWrGT9OWCnBC BZJqiXN5OkmBo0Q== 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-20230324_015532_438289_8C56EFDA X-CRM114-Status: GOOD ( 10.25 ) 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"; + }; };