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"; + }; }; From patchwork Thu Mar 30 09:44:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1001767vqo; Thu, 30 Mar 2023 02:47:33 -0700 (PDT) X-Google-Smtp-Source: AKy350Z/5QpDo6ZXzBzYhL3EiAD67U5utwXoWqnM1+qoEkqm8iIfUKMyEv8Q9itq4BJ80WZuLSVN X-Received: by 2002:a17:906:3c56:b0:92b:e3f0:275f with SMTP id i22-20020a1709063c5600b0092be3f0275fmr20189967ejg.40.1680169653534; Thu, 30 Mar 2023 02:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680169653; cv=none; d=google.com; s=arc-20160816; b=EwCnf2eWWLo4ql/FNQiklUCkOmpGGqBHGzbV5Pl+Dcx3Wyq8A9DbHt2zFTmuiS9Emb aldCiT7epJN+t957TqO6fc1+j2GutmU+48X91rxuG8kK9chLd7ihvjhJe1IMLCEZWeul R3u/eY3+bWMxxJwQSx1S74xJ29hAyskxs3FS8mLMAxRzrcVc8ARh0KewbzP8AIFf1nLc 8rJzylPjP48VyPVOTyNgCjswvSjQy7CFOe3E1qOfKvp/+Ke09V6cQ4pu/wwi9YD2xQ+6 4arN0lq6m+sOVVzzONdSXlR9z46zVydAKC1C+iSSJzpK6cH2VhQw8I1/GtXeEyY16r9N JL/A== 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=BcDIjJzjHM+N/vIcwapsyTbufzOIObtBASc/eP3RZoY=; b=z8sbSqUv925uPC3IPoXxFsovPlrUVTzV09rtrXWadH+kUr8+9+XCBEg0xvvk5ocVxZ NHEglp8cps0KSxgBwWL0X+1HYDqRdDxnMjJUCVUP2BomeuBEDJRfeI7QPxOwKReHMWC/ byReDYcgrdqgNw/2kvyVdM7TrmHQp9MazQJkn7qvqp5JtpqMiii7C7iXokMtEOM4v1V0 OnQ7uQAGpMEB0nBp2yIlRFibSWPMKN7pJHvINQvCrBKkVFq8CvUYyV5ybWbbLHY4ibC7 dQ+at5V7g55f547YDjEtOWW28kC14q3kfm9+oiBnpX9lNkMb6tLNzahApFIikqWT2ggo p0QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IDEjAYfb; 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 j15-20020a170906830f00b008bc21b16e13si35751117ejx.871.2023.03.30.02.47.09; Thu, 30 Mar 2023 02:47:33 -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=IDEjAYfb; 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 S229835AbjC3JpL (ORCPT + 99 others); Thu, 30 Mar 2023 05:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjC3JpC (ORCPT ); Thu, 30 Mar 2023 05:45:02 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 855EE7EFA; Thu, 30 Mar 2023 02:45:00 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32U9ip1Z012217; Thu, 30 Mar 2023 04:44:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680169491; bh=BcDIjJzjHM+N/vIcwapsyTbufzOIObtBASc/eP3RZoY=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=IDEjAYfbYtctMKxgMjw1gonoHtbT1gywv0S2qG5QhWh5pSMn3hSZMt/OLDYDvQG7R CKCGfi+TJD3xDGF3WVLFAjQH3BSkl6p9T+mLGjga9oXH5Rf3t+u3brv7tKzq7lE0In Jw30VnlJIQYoduKJh0OKujFLpjNM23nz8CmDD7zU= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32U9ipGo126016 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Mar 2023 04:44:51 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE112.ent.ti.com (157.170.170.23) 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:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) 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:51 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32U9iowg107066; Thu, 30 Mar 2023 04:44:50 -0500 From: Jai Luthra Date: Thu, 30 Mar 2023 15:14:06 +0530 Subject: [PATCH v10 2/3] arm64: dts: ti: Enable audio on SK-AM62(-LP) MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v10-2-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=4664; i=j-luthra@ti.com; h=from:subject:message-id; bh=Q+DrbQqKkVZKHL1+fZFKT0R9RrX4odqVY5iWfqn0blo=; b=owEBbQKS/ZANAwAKAUPekfkkmnFFAcsmYgBkJVoFQYr/KMFWODnOKxTQqqXaZy4jFItaKnytD B3AAeOhIM2JAjMEAAEKAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCVaBQAKCRBD3pH5JJpx RVsnEACdlmJvCBpAwnyV89JQID2dDiFOgEw05vrdFFk5D51Mm4a/kkfuXcFlox/gBIN9yHRWNPq VJGytbdxT3f0FbvuMqPQ199FqBi508QZqJZJwj2+rN4LOAN4TwC3i7GeMaEOVdAm8Z4etwWMTy+ weo5+Fyb11Qx3lv+feKbngwkmxnVdGlBGhK2LLHQAxaXMOgerXuZXM+T0H7GLt43X7g26kDV6ai ID1gUQR/Z9y9w7m9Oub24J9ytPcHrnWVbVQxmeWGcM4oIsT8vvPYSg+igwRYMFM3c2Pv0C21Vfq k+iNBYnOBe3DKM9geF9hch9Z/vG1dT7KWi+EhOt8CoPsVrwgF3ZjBIHmD2hz5VwJ1rQ/U1NtM77 YU0eUGsPttdrpfMdsHAI+EE1q3Z71T5DCAy87+MqTDRhV+v4ema1UVdV6aTHbYsIbv/qSodBIr1 gyWlu+b7dwSFqfi+cy94S63c9aCfhfTmYnuw56Q2d+7v+84J8wEtziJZ51P/1c7tMSksi4Jk9sC K6P+CtJ6LxE+p+LIWf7E2RZ3jH2Eg7qcsyaSJSugIin1b9QcTA+205XInXc0lIL37MuBoI7Ecao Z9FrcQeL/CebKEKP7WqqHtEQVRSS/zBcF1tjkqQQelBapWy269NvrTxADjSOTMa4RQfK1Nx9qDp hXMoOEL/SMtxpDA== 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?1761785574582931049?= X-GMAIL-MSGID: =?utf-8?q?1761785574582931049?= Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use from SK-AM62 E2 [1] onwards and update pinmux. Keep all audio related nodes in the common dtsi as they are exactly the same between SK-AM62 and SK-AM62-LP [2]. Link: https://www.ti.com/lit/zip/sprr448 [1] Link: https://www.ti.com/lit/zip/sprr471 [2] Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 4 ++ arch/arm64/boot/dts/ti/k3-am625-sk.dts | 15 +++++ arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 76 ++++++++++++++++++++++++++ 3 files changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts index b2ca19e3042e..4b94f7a86316 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts @@ -225,3 +225,7 @@ ldo4_reg: ldo4 { }; }; }; + +&tlv320aic3106 { + DVDD-supply = <&buck2_reg>; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index cdc0858dd1b2..2a1adda9bff6 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -87,6 +87,17 @@ vdd_sd_dv: regulator-4 { states = <1800000 0x0>, <3300000 0x1>; }; + + vcc_1v8: regulator-5 { + /* output of TPS6282518DMQ */ + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3_sys>; + regulator-always-on; + regulator-boot-on; + }; }; &main_pmx0 { @@ -256,3 +267,7 @@ partition@3fc0000 { }; }; }; + +&tlv320aic3106 { + DVDD-supply = <&vcc_1v8>; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 54318a07d50c..e197ea5fa448 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -81,6 +81,41 @@ led-0 { default-state = "off"; }; }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + codec_audio: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "AM62x-SKEVM"; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line In", + "Microphone", "Microphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLOUT", + "Headphone Jack", "HPROUT", + "LINE1L", "Line In", + "LINE1R", "Line In", + "MIC3R", "Microphone Jack", + "Microphone Jack", "Mic Bias"; + simple-audio-card,format = "dsp_b"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + simple-audio-card,bitclock-inversion; + + simple-audio-card,cpu { + sound-dai = <&mcasp1>; + }; + + sound_master: simple-audio-card,codec { + sound-dai = <&tlv320aic3106>; + clocks = <&tlv320_mclk>; + }; + }; }; &main_pmx0 { @@ -175,6 +210,15 @@ main_usb1_pins_default: main-usb1-pins-default { AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18/E16) USB1_DRVVBUS */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */ + AM62X_IOPAD(0x098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ + AM62X_IOPAD(0x08c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */ + AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */ + >; + }; }; &wkup_uart0 { @@ -205,6 +249,18 @@ &main_i2c1 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c1_pins_default>; clock-frequency = <400000>; + + tlv320aic3106: audio-codec@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x1b>; + ai3x-micbias-vg = <1>; /* 2.0V */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + }; }; &sdhci0 { @@ -272,3 +328,23 @@ &usb1 { pinctrl-names = "default"; pinctrl-0 = <&main_usb1_pins_default>; }; + +&mcasp1 { + status = "okay"; + #sound-dai-cells = <0>; + + pinctrl-names = "default"; + pinctrl-0 = <&main_mcasp1_pins_default>; + + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 1 0 2 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + >; + tx-num-evt = <32>; + rx-num-evt = <32>; +}; From patchwork Thu Mar 30 09:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1005227vqo; Thu, 30 Mar 2023 02:53:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aSLH6sbDinZVCFIzDyZ0FMAJYuw3vl+cP4WPUM/eRCo5E3QuM+AN8QrutUmGK9KeIOpjar X-Received: by 2002:aa7:c948:0:b0:4fe:94a2:81be with SMTP id h8-20020aa7c948000000b004fe94a281bemr20463941edt.7.1680170022648; Thu, 30 Mar 2023 02:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680170022; cv=none; d=google.com; s=arc-20160816; b=Cx8PGA8M17rljyS7SIx+ZOVEkqq7HG6T3FigXLqIqHf0t3HVNnLxrGrwbj14/Lcsc5 wD7GechAKFmyrScyVCd8+DcGa54V6A+TA/aBCe0WHhqeq6m1GZgggSECRwfmxI+C9SRF LTJS8SNBcWKZwcK7OwP+1vJOqC9W8AGGe/aXcxHDBE94CO5ymBeKdMX35vPOeYLbRTnj dzQTZtugjDm4Rb/rmPH87lULsjx0lxYTQNpFBH1PI0bOUHerP06v00nAkyeMYwAe+03k aC8VJWfm7IBxUq0KvCyyV1skVQWujpX4LT4tproDLRqXluxeiYU6gtOIalyVMdJdLDI1 /4Dw== 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=soXE9bktBToEycLhN2zBXHfzs7BMojhJ2uSbbRGceRg=; b=b6iEkZsvVvzFSetXjqHbvz0B0BcbEG0YKuE4Hqz7OdLPtAw7d9O3WAX5z2lDwUHu8d btQCT/akSCurbQirTcrszd/YV7DO6lVXQukFxC9zHwQ9JiJo8I4VR7uFbeFLLGoQnp2Y 3Cg6QaTnOM765D8/zVDANMvobdoCYwOCCsDpyIxfgsSPY9ONseqo9Q6POPvte/tl3SlE oByPHfRS9pSD9bHqzucERtHPiBslQl6LIVg6SdWBRzsWNr0M4lMeicyMVmCEfR48TM9V 31MAFtvOqdtd401Io9PNXnHFdpG33zFh9ty2+GEqIjIYepc8FaN9YFV6Jdl1cDw50TH8 CImQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RxGwGMxv; 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 n13-20020a05640204cd00b004fe84497e17si36194509edw.26.2023.03.30.02.53.19; Thu, 30 Mar 2023 02:53:42 -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=RxGwGMxv; 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 S230286AbjC3JpP (ORCPT + 99 others); Thu, 30 Mar 2023 05:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbjC3JpC (ORCPT ); Thu, 30 Mar 2023 05:45:02 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB55A83C8; Thu, 30 Mar 2023 02:45:00 -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 32U9isxB096122; Thu, 30 Mar 2023 04:44:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680169494; bh=soXE9bktBToEycLhN2zBXHfzs7BMojhJ2uSbbRGceRg=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=RxGwGMxvxqN9FQFS/ng2/gWJFwRB9iKQ415zy27lNl/KlGS01lHv5jbQi3NsrNVwk 5nK1iZyEkB0Vg/6ZDweFuJHTE8TmoM3B/PQzmwNPoF2JRHvRRprDNtHsTu54hlh0b2 6Mp2P+23ciEOCUbzYEumQaTz5RDUY/C/72LCS7RM= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32U9is3C003683 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 Mar 2023 04:44:54 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE104.ent.ti.com (157.170.170.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:53 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) 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:53 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32U9iq9n107081; Thu, 30 Mar 2023 04:44:53 -0500 From: Jai Luthra Date: Thu, 30 Mar 2023 15:14:07 +0530 Subject: [PATCH v10 3/3] arm64: defconfig: Enable audio drivers for SK-AM62 MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v10-3-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=1095; i=j-luthra@ti.com; h=from:subject:message-id; bh=ZO8au2iG1cOBrDND8B5Vouipf0z2YJCHnxzIsKjkbGw=; b=owEBbQKS/ZANAwAKAUPekfkkmnFFAcsmYgBkJVoG+woVuZG1ZDiiAsh6vvTVTjXZ0bVKGZkff w8XogN7X1mJAjMEAAEKAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCVaBgAKCRBD3pH5JJpx Rf9eD/0T6B2Tokl85gKZuEBLPLVA8xMT+WJrFLE7ueXloWjkrz2TBcq9N3L2RwTqX0/B5PqwEjz 0VsI2LtN+5uNRPipwU5QpWJ2cwAzU45lklmFJnscrdBu8KSJ5snJBx6RQ1Wl/pvYPhJzb37s/kX yigjsRe6VnbX8CI6OwfcmrCdv3LDVr7s+55c73QluVSZ3ySOez6Ay+/CgDYBHyd6QwKgExAK/W7 aflxGsni8tc57+ISnz1T7GRvQ3PCoMMmROvpNhKCUUvPuX96QvEqrR3wABoc8fZG+1Qp+9vqQKT WYkY8o4byRQ0e2HC4fr8wHRtX6Ki1L95hWLf84hqfDSRvjlUM7rmWeu4u4mXOEIjqKKfJ+qktki NVimR6x3ZdIDZlCXaHNLjAIC3D++yoM/p+bOqHThTjHSQm5Q2FOLxB9UzA5fcxsStn/KQHfeJCU fAQ//23xauZq4toQ+mCkFig4QOsz9T1rzSvKGBl88LjAeqUm22Y7TfSYcMy7RRu6+SfSLywQYit 8crN/QWym1nwedCIAZJTAq5kWTtDJh2R3u0zp6/j6zdHH4aWtM/JL6E5O1MdAM/KR34lQxu6JYD 55y7aScbgLUF9SgpBp/x0TUH/fgEdejUv2z72wdTT4FVIBNLlXxZYlL0yv/QMZT7VJYmSaMPg/U zEvt5jyUpXxubnA== 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?1761785961708654236?= X-GMAIL-MSGID: =?utf-8?q?1761785961708654236?= TI's K3 platform uses McASP as the digital audio interface on the SoCs. SK-AM62, SK-AM62-LP and SK-AM62A also use the TLV320AIC3106 codec with a 3.5mm jack for analog audio input and output. Signed-off-by: Jai Luthra Reviewed-by: Devarsh Thakkar --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ca3569261713..a13119aecaa1 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -877,6 +877,7 @@ CONFIG_SND_SOC_TEGRA210_AMX=m CONFIG_SND_SOC_TEGRA210_ADX=m CONFIG_SND_SOC_TEGRA210_MIXER=m CONFIG_SND_SOC_TEGRA_AUDIO_GRAPH_CARD=m +CONFIG_SND_SOC_DAVINCI_MCASP=m CONFIG_SND_SOC_AK4613=m CONFIG_SND_SOC_ES7134=m CONFIG_SND_SOC_ES7241=m @@ -891,6 +892,7 @@ CONFIG_SND_SOC_SIMPLE_MUX=m CONFIG_SND_SOC_TAS2552=m CONFIG_SND_SOC_TAS571X=m CONFIG_SND_SOC_TLV320AIC32X4_I2C=m +CONFIG_SND_SOC_TLV320AIC3X_I2C=m CONFIG_SND_SOC_WCD9335=m CONFIG_SND_SOC_WCD934X=m CONFIG_SND_SOC_WM8524=m