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: 74434 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp473041vqo; Fri, 24 Mar 2023 01:57:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrMoqQ2fwi5uJ/9iQXS7IfGSVExnHszwg86TSWkLpbJgYPVQe7C+8380NyTSpiy6yRbNZW X-Received: by 2002:a17:906:aad0:b0:932:365a:969a with SMTP id kt16-20020a170906aad000b00932365a969amr1954156ejb.8.1679648220513; Fri, 24 Mar 2023 01:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679648220; cv=none; d=google.com; s=arc-20160816; b=z98jsNwy+42HMGAEanmYNsQ9tEjIPiOKn90hU+yZZi5NQ3eGbmyUrGwbjBhQrGKCK0 6gh03mkkMS0VDy7j7IoaAQPJi/odQsL1phxz3OHlR58mGLldDjra0C3JcQPMhZlKStmM l3YQbIa/0oF3F0g4UyHNdQfLxeIT1+GcbSvb4V/BJmYH+zqO0VbFDIiKgFQBYHBZGUeK dlGyu39GIFB36NxE0mzP24HNPXhxR4m82GLEjed2bQkUt1/32a9yi/Tv0igRaMugCzVK /pwASmitc6p69tOVB/A9RC+zfUGKlLY8PPHGg9JXCJkFhxp1xVaygHq8FpYULpm4+8ZW e0bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; b=00m7qTRupvhNSI+c3YyBwgGSfLR59dwXtzPeUKM8t+nniF/hMdl0zyMCmV5+SiNIoM E3AM1FTP+VOsKRJb8Q+HgAxJnm6EsptXPr0NFk1TIOIFoRl24izy7QkFUMVPwrHp6W7a Cn5SfrNHKQqtukAkA8/gKRxJxzba0ODaypV6ugkdpOjn28P/GD2SnuSKzUpJs+M6OC1W ZzN4sMQ4dBuMBwZJh3v1gGSjyNvWAAStcjhXW1KO46XwwGJZc6/JwcNyNUO/nJifW9WY 7qP19tTcENhka+Tzn7mSXVIZpVW/M9NnVtVFJgOmZ0/t0B+pTAuxsZ5TrnDcM/8Hyb+6 9OOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=N7YXPHTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw13-20020a170906c78d00b0092be69b4288si12642361ejb.381.2023.03.24.01.56.36; Fri, 24 Mar 2023 01:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=N7YXPHTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231920AbjCXIzj (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbjCXIzf (ORCPT ); Fri, 24 Mar 2023 04:55:35 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B39241C9; Fri, 24 Mar 2023 01:55:34 -0700 (PDT) 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-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761238812324534319?= X-GMAIL-MSGID: =?utf-8?q?1761238812324534319?= 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"; + }; };