From patchwork Mon Jul 31 12:44:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 128730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2042684vqg; Mon, 31 Jul 2023 07:13:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+8zU9Q+dK8wPP5hcxLIFjX0T9kw0mRdVruYV1fuMXTVw4J9cAq4YnfR6Ft7IOyNTe1XKH X-Received: by 2002:a17:906:8a77:b0:993:d7cf:f58 with SMTP id hy23-20020a1709068a7700b00993d7cf0f58mr7364671ejc.2.1690812786040; Mon, 31 Jul 2023 07:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690812786; cv=none; d=google.com; s=arc-20160816; b=xOawjJJzyvWz8rfVEfSWxXepAOrFQNujc1iGlxHLqDVeVk92zsmLdj3M/Tetw6txwt wtWfuizspQ4q9L9qNVaeo2kBrGcbG1Fsiy8fTqcOklbbLZPS1b2W8Svrvv34npIERT7Z ynAj5BQcHpG9byDTvBV4DUYDhtIa0q1BqYKfK/ez2OKt76KlGL8kAUPgyw4qtNMulwDc hWl3MOiPmZhsbFf3lC1qHBeY9kjLok6vsiOVyKPlufBFmK3E2osAuM63IqhEHGARXXsP UNjjfpQa7hIkdk7v98ZPJ65yyehU7dHLS+0rcky1CXYs6lJpLa2JrLZJnerX2lLMkGl0 Zbew== 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=rFKxR4kiZsVXfWxPWYirF1uEHZrvGpRg31+yNWQjANs=; fh=wytEBRQSvsK3MbMJ7OHl/+WqtzW/MaQ8tR0AteMVY9o=; b=tJHU/KbizhG4xAvH1ByjHmCAcYIT7eorLYkB+k5Ff/mRXGjE2l2VRv6Li5xQdiuopa yazBZQC3DdQZkl7VuPH7bP/re3qSzCQqb2Dg34kRy5tEYVm/6iFaADw772VXob0LcPZC CDsnNfB3mb5xae8gR1OcWzUtIyYkWlf4OeQHzAKLzR5yGZRLEQap0pa0k8Fe4AMAoUDw oHw2h8gBqS5xGvO68scjdIy3bzbSuP4WTnT6G4DoDDMnuMC6N32aY/w+nxpkeO8kOcSI Z3ZqUlYY0Ruey+Apohod99D/1K1CsbXWYoFjNkHmJlBNAtKcUPGpFF2LpbWkgHtcaJw1 Te4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X1dcp8UD; 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 y17-20020a170906915100b0099a1f78de48si7075873ejw.638.2023.07.31.07.12.39; Mon, 31 Jul 2023 07:13:06 -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=X1dcp8UD; 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 S232897AbjGaMp4 (ORCPT + 99 others); Mon, 31 Jul 2023 08:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjGaMpf (ORCPT ); Mon, 31 Jul 2023 08:45:35 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB0B10DF; Mon, 31 Jul 2023 05:45:26 -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 36VCjEOi052726; Mon, 31 Jul 2023 07:45:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690807514; bh=rFKxR4kiZsVXfWxPWYirF1uEHZrvGpRg31+yNWQjANs=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=X1dcp8UDxNsGKjzClZhqmh+B261cSGrdmjixojeLWu6PNJO6BL+e+ydi/3m3Q6PZx Hwb1CmtYOP6Xjb8fS/5wMaALO341+m0D3fQTVyAqUJmmGD/ER2RLYBudarL23zQ8xB UKqvmXGUmMAG+W/qvvhMA/t1z0UC22VPkyjxPGW4= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36VCjEx8021140 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 07:45:14 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 31 Jul 2023 07:45:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.23 via Frontend Transport; Mon, 31 Jul 2023 07:45:14 -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 36VCjDPL053737; Mon, 31 Jul 2023 07:45:13 -0500 From: Jai Luthra Date: Mon, 31 Jul 2023 18:14:38 +0530 Subject: [PATCH 1/5] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20230731-mcasp_am62a-v1-1-8bd137ffa8f1@ti.com> References: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> In-Reply-To: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , Jai Luthra , Jayesh Choudhary X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2667; i=j-luthra@ti.com; h=from:subject:message-id; bh=OkQTiDuqGhIce7iYRKp2/z8wgqCBU984hPUcGGuIhW8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx6zW9GI6KUCKNKPhUfTQAQDV/qhscucteMhkD 3pWSofqh9iJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMes1gAKCRBD3pH5JJpx RebbD/sE9tnA1zQXexQPjH7L7J6YUk/37eZVlVgiioxUEWxA05QHxe1eK/U2y3bXvdDHhURC5ob OpTVzaLHFAJ+EKY2+N0Jv8RDcyUiI9Qrsz4oCTtcC8Mql3bNIamfmIn9x4RWs6ZzSvHW8r1iRSE /kqft0tsdZAhyoCVoLGv+dU/9xkMsZOudhQNDN4AGgx2aOhGCtURonh5jN2NNGKAsRloN1U0pKb fauXyxLRuEKASrfmU0FYcSMSfHHItEl8ePnYnO2Ij7YuUlrGlDnVD18sVDi6qOApy6sE0r8uvH2 RW6tgV+QchQkpW2FSOqLuAAmgsglfU+erfeHIX5sRCoz9mEoH2AYAIf5lhP+XWLvUGC69kCfmij jUXBv1ofRyDWOZqi6TXBh63v7fZ2IYrT3keIMHp09WaSd5AU4KXYTJTEfAEwf/pHO4Xl0tOf8zB a+CCbr1Cm/VuDuwuWbHXFzlQXr2ltGThpCwnmq3gknQhjwq2yAJtS13828v/sBxm8QZrOF7Zpil 6QPNrQ3VabL8Iw/b9jB7QIpnlThx+MY36PtiiWSjQTascvfBovdrgu4Ko5osD4d5h6GHREYaxvt UCiSsRc1tRTR/rJw5iObaqVXthfInTi3/0UpwSFw0tw9UM8T4RO0xENmVG39OCdFy4KSmOS+xCY Qn5YgSF+OBkyb9g== 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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: INBOX X-GMAIL-THRID: 1772945707556851830 X-GMAIL-MSGID: 1772945707556851830 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 Reviewed-by: Devarsh Thakkar --- 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 8397cb80f559..e4ced2cc790b 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -816,4 +816,64 @@ ecap2: pwm@23120000 { clock-names = "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"; + }; };