From patchwork Thu Mar 30 09:44:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 77001 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1006634vqo; Thu, 30 Mar 2023 02:57:05 -0700 (PDT) X-Google-Smtp-Source: AKy350bdSIakhPFSEyw+rHA6VQmwHpphivuaLrvgKYKjnIGf3MoWNM0ZviQKTb5jeAlZYv9Knw1k X-Received: by 2002:a17:902:d4c6:b0:1a1:cc5a:b07 with SMTP id o6-20020a170902d4c600b001a1cc5a0b07mr27287808plg.37.1680170224879; Thu, 30 Mar 2023 02:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680170224; cv=none; d=google.com; s=arc-20160816; b=W5zzCmIvC+05imM2lwEb7NrFgTRMX7GgKgtcCngEbccVNZYmAO015awwxTJkO81eSQ zHI5RUDk6g8fyKJ9BkCgZbfDO4kgMTBhP6tXcPSKPuMXfbrh2H3NLp0eEFGHqWeVM6Jf O6QZ4Mw4tKeGYP1tWuu19CET6PvdeSVs8bjsDrjuLqR0i3xi7P6a+5K8VjXa+D58PUNi zYp4k50eMO5sxLZnK06gCi9wDhnMKUx1wtn5ygPHENsdXAhTrtg8Cvm4tKmoLIJNtJjR U1cOA7TYj47xXFgkm1YU5CfSnrBnL7cSFu8NmtXdpmjiQV2ZC+9qTdxOtqVMLJUzpy97 ONNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=AlMhjL9CRajVtBVIkCsJW9Rh4YIfgaRLVDCN7Vup2sk=; b=nZZH9mrQcF3qGeTWPuHtktNfoo30GcpMkCqxWleU7XJDjt0E7XAQaR+Z2kgBqQLASB mLVIj0T1MN4eOvPT+AOObkNxWCiM7e24GrdIgp8yerf9bqCdKyvFG/PTIG501hAt8kpL kPg/r4uy7uNG6lQMwyZ+c++9fYngxHj7aLB6yQwU2Xb07Oy3q7b4L5fzG5MwhA6QngKh 03s4PoNQRsASsKeeI9Ts2kkkPyv2146jUOeFomELuAtt5iBQIXucMmtI+P50I7KMCE3L nizRUz7OuGEtin1ckqyD/RUGhWaGryjX/HMe926nbdviRroxzWv8ukgL3sWcbxaWmfBF tk8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PbYDhFxJ; 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 n9-20020a170902e54900b0019f33c0d583si34177913plf.315.2023.03.30.02.56.51; Thu, 30 Mar 2023 02:57:04 -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=PbYDhFxJ; 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 S230168AbjC3JpD (ORCPT + 99 others); Thu, 30 Mar 2023 05:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbjC3JpA (ORCPT ); Thu, 30 Mar 2023 05:45:00 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B43397AB2; Thu, 30 Mar 2023 02:44:58 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32U9inHJ096110; Thu, 30 Mar 2023 04:44:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680169489; bh=AlMhjL9CRajVtBVIkCsJW9Rh4YIfgaRLVDCN7Vup2sk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=PbYDhFxJooN6EuOGoaKig78FqUQg35MdnZFL01EIG0zKdH0omUZjlbZpt8mv34ZtX ayAC5xc9Cmcnrn3YXOms27gI8yFdNQgd0jMaWFZ5ZiYdT/jnExzP7dfMrm48buQ0Mt 4N8H/GEGMLgUuCXH+0TdsG2v4DyJssNS9pJ11QOg= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32U9ingK003609 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Mar 2023 04:44:49 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) 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; Thu, 30 Mar 2023 04:44:49 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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; Thu, 30 Mar 2023 04:44:49 -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 32U9igI6097036; Thu, 30 Mar 2023 04:44:43 -0500 From: Jai Luthra Date: Thu, 30 Mar 2023 15:14:05 +0530 Subject: [PATCH v10 1/3] arm64: dts: ti: k3-am62-main: Add McASP nodes MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v10-1-94332149657a@ti.com> References: <20230313-mcasp_upstream-v10-0-94332149657a@ti.com> In-Reply-To: <20230313-mcasp_upstream-v10-0-94332149657a@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=oJGd3Jm0QelcHLq5dxDiEcHYIhZUcAN3ApL/B7AF7lc=; b=owEBbQKS/ZANAwAKAUPekfkkmnFFAcsmYgBkJVoF3HH73cO97rLBmOlq+Fw3/oW8P95DyvDW7 10cp/ora0WJAjMEAAEKAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCVaBQAKCRBD3pH5JJpx Rb4wD/9/9xSO+9zgUDjoM2vjgleKV/R88+dPDqNE0ybjfdwl+QkGLzIj3ndvuurXC9XUaitakXp vx0K5HxLC/hn26CmvcBIB50ikx75f8W2YZQtJW7zRLwwmjkhvZLjMR7M++tm3f0rORt8b11lDCA RF+K7Ddq6uyjZx4c7jgLwDfbfextvazsHcrQ8Bqvb+m8wTEZApnUPDV/WIqg3nb9LuS3jZRu0eb eYHAvCZuSiBenHEaFH/SGYxSBwnQL79sECJYoAHc5A/fnw2NPUk1V2D9dP+rMH5IvwkS7RVBFRg M0UgP0XXeiYM0otowrenvPzZyzWejT2xnBFEap4rIYpnr9RCw0KZ6Kn2h6TfGQJuD5EifwNUHMP tI6iU/CYVHNzGRluQd0o96we7e1Q/JOFOOFceZVju+6ykqFMe89cFDUAzrgwDDMBPjaWP6JU8ka 7nnY0ybwJGRmpn738wOQq4scPkZh7sQQxo5J4gPSboKMvpV/VJYVDjt3UPqMpbjOsz0hfqR3uJx 32mU+7OR4M7Pu5lE5no9rQTR7AA6tC/biwhxDOw1lMes0cHMXjDIP0rlkP5mx6vMoeQf2XoiS/s 0bqXcMSM2xPwJaKi5VpahwAvHRpW87GB9HHgR6FSqHZRG9LEM8J85IkdtUCBdJMvMRpvyA3MsI/ qvUYNVmXHFcXkJA== 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?1761786173784815055?= X-GMAIL-MSGID: =?utf-8?q?1761786173784815055?= 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"; + }; };