From patchwork Tue Mar 28 13:29:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2227850vqo; Tue, 28 Mar 2023 06:43:43 -0700 (PDT) X-Google-Smtp-Source: AKy350ZdEd1uE7+Q75w2akZ8LA+paAjjke2yWo8k4fmnkdflZU+rzYD38oHkA7uZFy/fGQi6kWUv X-Received: by 2002:a17:906:74b:b0:8b1:3a23:8ec7 with SMTP id z11-20020a170906074b00b008b13a238ec7mr16018272ejb.43.1680011023438; Tue, 28 Mar 2023 06:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011023; cv=none; d=google.com; s=arc-20160816; b=P9V3dpGPqkCetVQ/i0JsLzzDBLJTTywBLyrZcue3NA1gsWBr/BHJz071dOAE+XeXkm dE78rEHcjjFEXj/g++9MJwqKzYbfP3FeaJxrpbPn67S8CZ3/VZ/pHe410m1/xbFk6PT9 r/scQfbXXuohaznP878UW30ltwtVivnplP8cFrVn2vfQXZoynS6h2tR3Eqx+6KjYhUg6 tDn/F9iql8BWW38v+M/5lFtfVT1xaSC8Uos3/t6o7ZANvwz/GrWMV+jyJnlWNQx93hi/ YlfJVO67qpCNG4abXj7Tr2Vq6tmtmiD7Ih4fPkWhxTYON9LL/MFDd3DcH7P0mXQfo1oo NB8Q== 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=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; b=lSqpRvVMPILuozDSGCqB+7U9fu6rfYLoYYI8Fzht97D8jkqr+ihSigxOMnSxHwVNE+ NpwIN0Hgs6d+dwLavTMrYITyBL0xS8Xeh5BxRAgSBclf5ExX/L51PkLWv9IqfNnXogwv MkfQgilJR603QcDo5KoM346NJwz+pHAC0Dj13JKFWbY46CqU5DKU0UTHPKN48MopaRkI YKXHWmkjMhTbYpYW8OJ3uXPOHcTElprtcULrXQbk7ZUGSRLSCh762Qo8FYkfs8CbLtn2 382+g6wNbcegEBRt7JCvWm/Zem3+PduaBtA7pa32pV7JZm/lnhNRxjmGP8hWExsJeGR1 dSoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=o40KxPQo; 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 mb6-20020a170906eb0600b009236817e43asi26666059ejb.380.2023.03.28.06.43.19; Tue, 28 Mar 2023 06:43:43 -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=o40KxPQo; 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 S233176AbjC1NaG (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233125AbjC1N3s (ORCPT ); Tue, 28 Mar 2023 09:29:48 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A788BDE6; Tue, 28 Mar 2023 06:29:44 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTYaS039874; Tue, 28 Mar 2023 08:29:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010174; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=o40KxPQoZMJ7l8BhPysSbHna5TNykYuH0QlvU5ktgqPyJo2pW/UPwkFOMUW3vLpty 8ITH+2q16W35gij7HzDH6P/CoG0euqolwNIGbODIsgMFraW3d3Co0G4y8cf3f3vyGU 4U7pCGKJFH+0JqOqlUVpKM346fQqa7aP/Z2Yh9+4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTYa6007668 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:34 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:33 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 28 Mar 2023 08:29:33 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTX49031399; Tue, 28 Mar 2023 08:29:33 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:20 +0530 Subject: [PATCH v8 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-2-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@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=3YQ8iDFX2K1gkT2KWC73dpEyDkmFbkpNff4cJhstfZY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu2sUumGGllyRYCduia9i8fP+YZoVTAWWfSo fudc40jPxyJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtgAKCRBD3pH5JJpx RSDSEACZZ+5iIekhm5klw6NeU4H5AHv1T8TVpmZMrRuFZIV6JT0AxDUemL5i3y+EJ0taEutJEf0 kBoGX4HprkU00yx9pbNt4SN1ftH8j8NzYcjjS/GfELf4K80FySBRbo3NzgAJ6OXJgYyE0Dhr/TT CVnXLJ3UWl41p7c0Bdd5RLBTdgLsE4nX2UcpANI83nQT64HN+5axfcbaCYOCBncHpTyJX5Y9mfW rAfCi+lYqjEPB/C3HTiizTDV0w5N2g7s5ecKnEH5bHgTDDIih2h35+rDN1j52xD/HZGUOMPM/yR LPxPwec0hYo2kms0kCejJa3t67UN2fraujj8eRFg5Ph2p5f7heGA9h/XboQ6NDpIuPp/bxfH4k7 Kn+0KyCdWdFzvYmlG/5/8z8mal22uOcJ3qvXQjEw7ugvVcnEZYs++A1rot1NdM208By2QfeQlm5 kJHlfbmOIM6kKvjWzhC0Yjs4V6eKJj5EGOM7VWeZbS0HRc4LF3964Ls+6rCKWYrDQYwjhMs0yjn ep3KrdmO/wRjs6NReNEx3l/exriKwQgFjPM5J3zpeqOul44csY01elH4mhF1S/zZUm2MZUA3SWw N8UBLFrL3dVByeMucpftU53juRPMB38jr+WLIN4QgDwtCGfyrC9ZCJPO70EWaW5d7C/aKk4+BvQ VVVEgjqtaReHpag== 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?1761619238957889127?= X-GMAIL-MSGID: =?utf-8?q?1761619238957889127?= 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"; + }; };