From patchwork Mon Mar 13 14:49:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 68882 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1230516wrd; Mon, 13 Mar 2023 07:52:27 -0700 (PDT) X-Google-Smtp-Source: AK7set/SojRRXAR7mdIGb5ZwHjtObvzxNHUrFgxWwDodDq/WqW6LnaVRVG03bfQ+Jl0CqENCwlKI X-Received: by 2002:a05:6a20:3d0b:b0:c9:9312:5f1d with SMTP id y11-20020a056a203d0b00b000c993125f1dmr45557027pzi.4.1678719147564; Mon, 13 Mar 2023 07:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678719147; cv=none; d=google.com; s=arc-20160816; b=P3Q/AIL0M2u2u01v4ZMPGFn5CKLFPzSl601Rtefu0ltsZrQ92CRcKVWktDb9pNyZwk C++GBoEpBPdnNKp+3VWG2Sp7mkgXJg8gvelyYCT9rnh45zEv1yajsAbDdPCF9PeNw/OE JtawUI1WnJ6eql1DreApOlx/WUuKXRneKZ+wpb/L0tM3nCbq5vKIij4NnhP26Z7DkMx1 5ru/HWDQfc0oYvnPxs0XPW1aVTEa8chAZuDXgYDXo1EkwvAT4iuSzLrJ2ug03Ali3G1h uc3aJpOxr2JpTxcPWsEwDkQ0BHnXr5S65g7bqd/9W7qaq3xm1xa4IoBeeoMmE3KrWFB9 d5bQ== 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=KmiYo0Mp/7UOsWp+C/ZJZUsUsiy/rrCL5FhE3tFewDs=; b=iduS4IWhfQp3QVasuwDXQOOm5TPzGwXXu06fKX6eZPFgzEaEVnVWX8Tm7I+f1kUzpH rycik7XFOKUpY/eJChM7t3GntJZTcHJxPwaHZgnitsI+KknZYD3qHn4XUoT0Le5ofvo3 WhZ7NpjBCXqMVZQ1s2xyFCO4leS9OzxzaPFO9L6u2awGp6CkEiN3VnOSRRmdnC2BtUIv g8QifOrulrzt1N+SPaZaG6wSNZmYsFiAL9AOxxeEwZIzdoES8W2kUE00l1wtT6Iim750 ukg1AFZiUU0urbBOxmS+a6DKN7hjs/cYV7vPjUSz4OHNctShaYl9Qg7IXfzF1Jj+IWEe 6zfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SKd9Z+mg; 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 s1-20020a63dc01000000b0050b51e62c20si1868723pgg.793.2023.03.13.07.52.13; Mon, 13 Mar 2023 07:52:27 -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=SKd9Z+mg; 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 S231639AbjCMOvH (ORCPT + 99 others); Mon, 13 Mar 2023 10:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231594AbjCMOuq (ORCPT ); Mon, 13 Mar 2023 10:50:46 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B50F573AD9; Mon, 13 Mar 2023 07:50:05 -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 32DEne6I049179; Mon, 13 Mar 2023 09:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718980; bh=KmiYo0Mp/7UOsWp+C/ZJZUsUsiy/rrCL5FhE3tFewDs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SKd9Z+mgcxyIqIbal0owo/zuLbzqDOTpdcKaNCqIoUlWFacUwMeECmsD3wFobRcGN W5K0devXLIC1UxfqDEx9W+F2fihRvgUeIlZK6pzt9JwQoxqxrn+7Tt6opiVFlK9RnA lyiQyAPnJbox9ia9cIikr3siuVTXddIDR4BXOL2o= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnevi013609 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:40 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 13 Mar 2023 09:49:39 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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; Mon, 13 Mar 2023 09:49:39 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32DEncAR034152; Mon, 13 Mar 2023 09:49:39 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 1/6] arm64: defconfig: Enable audio drivers for TI K3 SoCs Date: Mon, 13 Mar 2023 20:19:30 +0530 Message-ID: <20230313-mcasp_upstream-v5-1-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=840; i=j-luthra@ti.com; h=from:subject:message-id; bh=HwVDODIMEdhkR4OZ+E+QhHZzJZLC2RvE10il4WYmg/w=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbSa9JVTxMnEeWN0igOUAK9GGBPe5WDrbHy+ F1kPDbMZ2OJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA820gAKCRBD3pH5JJpx RV9RD/9TyT40gbWcd6ZdFMfcZbFdVo8mrQbFI9EqK9pW21SGIuUFnTb1VBwzQSQkBydZEasdpi/ Njz9ve66Cdn/KOIwGEuSWF9haob0PsaxTqJur3JohRK1ev6BjKQZOFBEtoWahgAIuvJ/TRFmLMG QQiIdbtSSTnaecPxJisKC4JMFKYHwMDRSJjhFpXk4+pFm81J+fbdDOt+GBcQJK//HO2ql139e0L Yrv1wS7inKh8hWk2JBekhPP7AB7qzsg3oWVF3pOj2JDDIAFMkJuTE+ELlv3/H+1afrmsuRAoPM+ py2vifnq9vnFC5+hSDI4Oi2qqYKxJBCRkc7d6NqWbpb9lrgNLUXn7tkxpnzC64Kf7UfPgCq7mLL 80tGRNyoWG+5xzuax8h3p8LlKNa9lahqspdpRiY1KnxhppdgMLTxIejHuDKVXEdK+K3YEJzqwqE 2doEgHzzKWg2hKA6teOx/2q1IaE0BUdhEpks2q9XGI7cXEqVLi2Hy2HsPqZ8fF3UXneU+hL20By pgfzoPCM2zHU6QoRViQe0k9iTgFYbQMKJvBrORaCLSHNxz3oY+v4HlWHKl7qIoKMl4xqZq+LFkS ObzG/UpmWzU2fosGZKoyYaRfd3Ui9W+GNo6w/VAZPYkJTMT5wPErQJiZA4/QiyLpuuur4IxK5AE +EzvKTFFXW66aYQ== 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760264609168640335?= X-GMAIL-MSGID: =?utf-8?q?1760264609168640335?= TI's K3 platform uses McASP as the digital audio interface on the SoCs. AM62x and AM62A based starter kits also use the TLV320AIC3106 codec with a 3.5mm jack for analog audio input and output. Signed-off-by: Jai Luthra --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7790ee42c68a..7e0ce1833904 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -898,6 +898,8 @@ CONFIG_SND_SOC_LPASS_WSA_MACRO=m CONFIG_SND_SOC_LPASS_VA_MACRO=m CONFIG_SND_SOC_LPASS_RX_MACRO=m CONFIG_SND_SOC_LPASS_TX_MACRO=m +CONFIG_SND_SOC_DAVINCI_MCASP=m +CONFIG_SND_SOC_TLV320AIC3X_I2C=m CONFIG_SND_SIMPLE_CARD=m CONFIG_SND_AUDIO_GRAPH_CARD=m CONFIG_SND_AUDIO_GRAPH_CARD2=m From patchwork Mon Mar 13 14:49:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 68885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1231705wrd; Mon, 13 Mar 2023 07:55:33 -0700 (PDT) X-Google-Smtp-Source: AK7set9yK3Fdn9yzD4JX4JsGfnuuRoHBQZ/eHbAm85heQEEc+cKgUuBXicScxSCFs4B604ukOyB9 X-Received: by 2002:aa7:963b:0:b0:625:2ed6:9070 with SMTP id r27-20020aa7963b000000b006252ed69070mr1424688pfg.22.1678719333554; Mon, 13 Mar 2023 07:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678719333; cv=none; d=google.com; s=arc-20160816; b=RLFjFiUmjZHGIcrd54GAQUHkvuNwtolLKuzj1QT3QxdBICFsvVOB0OHZDHqjnrtcXa Ca97LTYvCnfwscT9tVE8M+CIKT4sbXnB9LwzCoklChruMxlw4qR66FNtQF4MEx23u7DR dLwNJsVNCncRMg/9vGtenDVCzpOkC4utKwIDmfvdRGbpY1sN7LU76r2yYDHYxhEZxMa0 dyWAQ1dr2L70wdEkO75w8vKk70tw2JQZBLOkT9Hb9V4s8MHDk7daTzKCnY5QZYeHSNVd B/b8aYQMomSwSNPo8C9pLB0e7Lm/JDxTMpNXfMIlyRMjOcU7t7NO/+nzxO5JBDJH+sSI CvlA== 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=RTf4J3zVmz9UIzhMrDvWTIRzZ+fFJueiDX/4hEq8MBE=; b=sqhvxsTwmTRGFv14t+Q7ba5ar3B2Xp7KQVinOedFK/o2oUqfWRcrl3atwucqFL6F3i a/44qFpO0F1bDqgoO88R1nSZmRKbO1wry+CvG9PahIndab7Gtt58mErgXU2VlyXX3EEx Rq5o3nOD6dI2xKMPt2BMP9UggyA9H1Ofxo170IAIUBU0Zbizsr578kxfauNHbosxG1kL /w1CVb4Drbj0lnUoFFm8VhYXZxbjMO57uEjmfz4YLJQNxlDy9DjJzqnHu5UMS6YgsDqT m/tdwjX1U+Q+LG8oe8+hxEXEuMxE1Gi4P1ljHJEv/Q04vrSvV53QVgUKzCCZ6rVqLFxJ nRhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ECc7xZK6; 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 s1-20020a63dc01000000b0050b51e62c20si1868723pgg.793.2023.03.13.07.55.18; Mon, 13 Mar 2023 07:55: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=ECc7xZK6; 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 S231532AbjCMOvg (ORCPT + 99 others); Mon, 13 Mar 2023 10:51:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjCMOu7 (ORCPT ); Mon, 13 Mar 2023 10:50:59 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3570A74335; Mon, 13 Mar 2023 07:50:28 -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 32DEnfpJ044507; Mon, 13 Mar 2023 09:49:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718981; bh=RTf4J3zVmz9UIzhMrDvWTIRzZ+fFJueiDX/4hEq8MBE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ECc7xZK6Uq5/iqt+wpPmNqxZZMOgNQI2tV42X2C5/1/N3GjfoR5ih07MyZrWoQvLU Un90ZJiIfrzSkMNhqSYhxUc0XSfOXtl9n3MMrPh2bAyxAWrcIZrV/fyrjNNg+YOjHQ HbVcFFGt4TkL1bu35gDNa+85U1fSMibaLm7F9iZw= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnfiw123658 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:41 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:41 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Mon, 13 Mar 2023 09:49:40 -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 32DEne6B122948; Mon, 13 Mar 2023 09:49:40 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jayesh Choudhary , Jai Luthra Subject: [PATCH v5 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes Date: Mon, 13 Mar 2023 20:19:31 +0530 Message-ID: <20230313-mcasp_upstream-v5-2-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2652; i=j-luthra@ti.com; h=from:subject:message-id; bh=vAiECCbRBTuSSHKHrNzv2pqB2mqxrvCFcodpCjBORbU=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbT0m2OKRNjmKmrjsr206qiPgO1VWbQ8Lzv5 CMc7ApG6yCJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA820wAKCRBD3pH5JJpx RfWkEAC9/j83YlMzER6zNlTE4Xup4i4aRlyLAGWYjHRuPngFrYWpcdDOklwhLy9ddAMF0lmfwrd qX1jiMskbDrdM6LyG+HEP5yw6eZgMDl7V7EFEzrxO0q93GCFg+kNLzunMuio3geU7o2RKWhfdOe jQprhBW/se7L6pnWyxiOGQhQ8N8LXSnwRX9ROcqVmOOHhW9vEk6oeOCX2At8y5hzPISOGHa05KI y/MECJyDgXxc4xuWAwSKriqutGYRmjRafxoQKrKxbAkXKhwK/alpATFbatoaof7qEjEO10QQYmb vBbPmYvgSvIIorzZA80NiVB3q/a/PtQv3N8Nm75L2S5uOaGcfy9vpzzh8duu462No5zjy3C/BrI ALsvUGo6POZSHcH/GCoWOp6iNyUd3lqxQ0p5w2YIAb8dCCZwNN+yWRM6gdi0W2qRUcd5XrIiuFJ cCjnQTosfx5h1EKDukj09bdtHgt+mk4Bkc0h8t8TdmHhy67fANvC36iSIkvexSmdzzsHsTlPcu2 BvzYTyXfrpqlMKhguWEgWuL6t1b2SYXA34uQlhLFaW6E948QrYm7TF07P83LAeMFPy3RbLQVbLx HCacxmaMQNX1aaWLlD2gUq3WvzxRrHAnZ/IMI9uT+8hGlZnLRes5CaLWd3dGcR0r10Uj0Odq2To CQ01hD1d9LcWo6A== 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760264804099107928?= X-GMAIL-MSGID: =?utf-8?q?1760264804099107928?= 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 ea683fd77d6a..4da5747987bb 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -787,4 +787,64 @@ epwm2: pwm@23020000 { clock-names = "tbclk", "fck"; status = "disabled"; }; + + mcasp0: mcasp@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: mcasp@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: mcasp@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 Mon Mar 13 14:49:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 68895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1256857wrd; Mon, 13 Mar 2023 08:41:52 -0700 (PDT) X-Google-Smtp-Source: AK7set9KCRAS3SAdI2hhf+v6SW8qB17MtcweIR9sd3BS3bhV3w+cvjaxYbawGjqJXNfSPhQ6i0It X-Received: by 2002:a05:6a20:8407:b0:cd:363d:b27c with SMTP id c7-20020a056a20840700b000cd363db27cmr47506391pzd.16.1678722110445; Mon, 13 Mar 2023 08:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678722110; cv=none; d=google.com; s=arc-20160816; b=O/xKS7ianR5hJvl+wmOJcl9dw13prAlbhWF5Eb4aWnmcHBRywVcs2f5bI91htS7IzD Ew7OH5r2hoBMFRB+4La5qRbqAYYnHNgxdTxtWna/ssl+kG9bpdI5xYDSD7zzIbve9buQ cJGMTAzUB3AdUIjID6GMH6ouRcsddiIv4fhTgueRF0ltrAPZoPAEsBtUca+IXJh+DyOy eWd0r1QQ4f2+d4QE87ta0j0m1dBIxlsJeGgOQ7OxDD7ZWN37FShHaJoSYyvJxfrx9b/1 0ltC7ZftFxD2+hk6JdslU5Uon9CDbgz7HxJE5ATB1sjsUaikL3fbCJ7dWvPniZzZ4H1W 72yw== 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=xDr7Pvji9JKHAiVQxH6IsyfNhpqWt97bltmNKB/R4bw=; b=l7kNGEw8HGveREQM3KeHcDoF5xRd/aVBxV0y3E0P5h1yzrIV9klj7NmVOvT7X5A107 qAcbPvSeyIdajpMS/zBmL/riGzXzbFs2+VdxxTaKbMnWkaMCYaVNYgMrCDo3AccaGQnF uMV1zXJpxNKiS1u7/ij7nbFoaYrn8efRMlTQ+zbxj3J9XPKX5ne5mTXKnjDl0jHoeWTQ +gIPgSCI/j96MdArQwF2AAJcLUZuKngqsfma1gYSP2nCKSi3t40G6gLdlAafQoHOjDii pLgYIDIjDVcflPfHU457b41wyn7TEPwCDl4CwbBDEll3/hh9OwXkF5a02a/LJlueDaFE FcjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JzdXdUe2; 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 v11-20020a63d54b000000b004df0d68adf2si6849783pgi.629.2023.03.13.08.41.35; Mon, 13 Mar 2023 08:41:50 -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=JzdXdUe2; 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 S231713AbjCMOvM (ORCPT + 99 others); Mon, 13 Mar 2023 10:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbjCMOus (ORCPT ); Mon, 13 Mar 2023 10:50:48 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F8835BA; Mon, 13 Mar 2023 07:50:08 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32DEngJX044512; Mon, 13 Mar 2023 09:49:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718983; bh=xDr7Pvji9JKHAiVQxH6IsyfNhpqWt97bltmNKB/R4bw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JzdXdUe2vf4qtxVoU555Bx2DX5A+XxzgSrjK/PMt5kfzV7AZGBlZYPdyaq1ycUUb8 wFl5kIZL2cygp6MuCgwM6ZHpV6EQDXCfsaw5C3hnK8YNRLwXq20WhXXcaHzbBvc+Ze xhGMwlu6t1tJkHXVouT6xYU5YjSCajIVJJSl+Un4= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEngA9127726 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:42 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:42 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 13 Mar 2023 09:49:42 -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 32DEnfeo005291; Mon, 13 Mar 2023 09:49:42 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 3/6] arm64: dts: ti: k3-am625-sk: Enable audio on AM62 SK Date: Mon, 13 Mar 2023 20:19:32 +0530 Message-ID: <20230313-mcasp_upstream-v5-3-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3509; i=j-luthra@ti.com; h=from:subject:message-id; bh=qbZwv830evAh8S1QTh/60C26lc/AuC9RZaa+Vn7mrt8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbUlhPE4H8JRmYEVz0xHicKnc6BuJOJ89EYR tzcKIcBDbSJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821AAKCRBD3pH5JJpx RVJrD/0UC98f+FkkJoydZOrMdGuvtgZbWHPikkWv+6H8v+6JHTBN23lJbx/F1K2fXu9y9oLqBol iCdD89tuZ+3feHqxKsbV33cqvQjU0DATGhEcZDIXqsR39Db2GxoPQ1nyTwJvQEf/XSljCr8OmN7 ycfu1aO33N3cxySSfUhcM/C+6OC2Lh1xPfPZ6n1X2rfHvHDf1dhWc5a8KF0BqPpkd+7D/qsIcov KSwBtzuZB0T49JoJsTbIBazqSTZRAM9UeL5WSwgGxF/gfyTnnljQM2Bqa0pbMroRZ7wc1nFboUX AfhR9TzxZ+NHF+sAJFT16ZYOHc52/IQaRuofmZQCVGhwAqAbrkRXqv+BuEMJlXSveKV37gbEiFf A7Zbjtaj3sNCCLwA5iIdghwDetbKE6JDsdNaTQewBlh0R+3Hw6lps+zdasKOXlnxTtnDC1kG8j9 yjmts8oIs3d+6aCrHKgCeQf1uPPSbtZ/MRioOnAxeW0k1TB7K3VaKY6+Syx3YfwbR/NRS3kCtz3 fqOUMOwsNefhhnEEqrfeTnIk1cJeC1hWMOt/2TKEu/lQYpcYL3ewaZ/Jg1DMbWomOoFKSZYXyIp Exe9A8s/S7d1zU/kdrjCzFYrmCEp1o73Z4R6pkIFSlZucHyJzWS/fLtxWaYz6ZFKKixPqzcSyz5 X6UeFrEV+nDMMpg== 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760267715208939413?= X-GMAIL-MSGID: =?utf-8?q?1760267715208939413?= Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use and update pinmux. Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am625-sk.dts | 88 ++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index 6bc7d63cf52f..3199042f3687 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -141,6 +141,52 @@ vdd_sd_dv: regulator-4 { <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; + }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + 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>; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -292,6 +338,15 @@ main_usb1_pins_default: main-usb1-pins-default { AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18) USB1_DRVVBUS */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x0090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */ + AM62X_IOPAD(0x0098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ + AM62X_IOPAD(0x008c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */ + AM62X_IOPAD(0x0084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */ + >; + }; }; &wkup_uart0 { @@ -349,6 +404,19 @@ exp1: gpio@22 { pinctrl-names = "default"; pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; }; + + 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>; + DVDD-supply = <&vcc_1v8>; + }; }; &sdhci0 { @@ -406,6 +474,26 @@ cpsw3g_phy1: ethernet-phy@1 { }; }; +&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>; +}; + &mailbox0_cluster0 { mbox_m4_0: mbox-m4-0 { ti,mbox-rx = <0 0 0>; From patchwork Mon Mar 13 14:49:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 68883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1230594wrd; Mon, 13 Mar 2023 07:52:39 -0700 (PDT) X-Google-Smtp-Source: AK7set8Jj4z6dL6niDzqXkSJyJhWfJzDhqn5hW9pUEUwbAi+BSBVo+rFdS5SatLWsOY+kBO20Wha X-Received: by 2002:a17:902:c407:b0:19e:7490:c93e with SMTP id k7-20020a170902c40700b0019e7490c93emr46845241plk.63.1678719159141; Mon, 13 Mar 2023 07:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678719159; cv=none; d=google.com; s=arc-20160816; b=fiDQ3fhv9OVZpw53UPW2NGHqfPz8d9ei60/8CR7dzK/XISvES8OU6O4Bmhx1Z2cwj0 PobqmBMBXq3ftQb75w3TI7560DQzi9qDysYUo0q3RZwwgh2nutMbYQAfhXFm6MEhsmzE ZEEKgwr7j6Y3vS65ocVB00TgJ4aGtgWhVvvP3jkbzctT7L823D2LC1dxw7tNA4MwmxMo nQnPOqit6bhT1++yvk9de8hdNRmAZshqmQznvvoInnqyRuRMrqcrJPfx4/PgqlRlgkeD WKARlDeUz5hEiy88I9ypvmbnp2ZvgUSe+ya3DRH4N/TiYif/HurjzmkMYqeYuYFQYXaz x3XA== 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=jgN5ONbG040NbFS8/BZLIr5Dl3xsg65QWBAIodV5mi0=; b=m/mDbeZbB/k6K4cc4vU/j0FBdV6SrYJ7O896pccOTVq+HMWVUMTqteZHCqfmPLO89d wpDI2BhDXvNM4aQfvs3Wxba/QB5o4dusa7Il9tfWcpeVMda7VOyJOI1UCopI2AJo604L PZCwJRWsJtiLV2MDd1Y14M3lb48l5uyUHBWr45uedXxE5a5Wo1d+PfLB88UBVEjOIRne FVbKLQqLlV9Cx+GV3wKktSpm1ZLTShdjMWaKJ5BxS/GNl/+wfYIdeSGnLGeyTkIbdBXW 782rHq79jLQ3zHdMW9nXg/mM35bMSpNd/tVBESvFrLaq4+oA0O0Q5l4l4kGizpFaR7X+ 9XbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DKjLu8zZ; 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 x16-20020a17090a789000b002340f45c0ffsi6372311pjk.90.2023.03.13.07.52.24; Mon, 13 Mar 2023 07:52:39 -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=DKjLu8zZ; 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 S231687AbjCMOvP (ORCPT + 99 others); Mon, 13 Mar 2023 10:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbjCMOuw (ORCPT ); Mon, 13 Mar 2023 10:50:52 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FDB51C7EE; Mon, 13 Mar 2023 07:50:12 -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 32DEniPx044517; Mon, 13 Mar 2023 09:49:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718984; bh=jgN5ONbG040NbFS8/BZLIr5Dl3xsg65QWBAIodV5mi0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DKjLu8zZXsNznrTX2p9z66+gvQvgtBXHnLJcTdm5W8StCp4u8wlQI8C/c8/B35z3e q9nNdrWYJRwhGIXgL2UhiZNc30YXkCzmoC9F4toj5tolomU1H+e9YYc05RuhVQQiaS Fp6HMpbsH2FmSnk3n/SjJXd0WpaU1JJmSsmKSsRs= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEniOD012183 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:44 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:44 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.16 via Frontend Transport; Mon, 13 Mar 2023 09:49:44 -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 32DEnhHI122973; Mon, 13 Mar 2023 09:49:43 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 4/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP Date: Mon, 13 Mar 2023 20:19:33 +0530 Message-ID: <20230313-mcasp_upstream-v5-4-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2567; i=j-luthra@ti.com; h=from:subject:message-id; bh=AHQ+upU3Yvs9g6FKaLLd7vmmT7/6vuQDLA/v3ncpTGQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbVbzQbVvMZD9JUmjwBhNW2nbRgUnURSzQxv dL7cD3j5qaJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821QAKCRBD3pH5JJpx Rc7VD/9LobVaU8dgCCukxbi9zQlOb/HtPcyT39YVoCHhJxU4YKqM93eQdpx+bA4AZ5A7ONrT7BR jYheJkXjjAVBD/OFqY1dKEW6ZdAZYNj1AXE5rFLExX+v6TqyOhGw2Zcae6PpqBaZfdhWuB6Ecz5 CJ7W67vq7U6KTdfr6Mpkfr2mrMr1+BqGB2vqCpeyL0S3zaOpYCRGdWc6PGhbXxZjwUthrznxKrf xXTuswuPeOqd+G3GKfnxB7lhny4lkZ9ORqi6UZVbSvJFZblZFq2IUq1Rq047Ok5q3/GzNnS8mjG +58h3niWr/qVv+PWKFSDI3g0e+ut7AO/qrieeC36s4psh1dWLmuxZW8YMTSQFgR7Z+gT2zGRiH2 k1d7RswfzaEByWzb3TrJUHxFLLPElomC5wTczZPaICfMmOyhG4Dkt50Yo36UxAMP73JsBRdXopn eT67UkVoIBVgn+Z7jXb5SD//7ttvRdQF4KCCl9TR8PemKKUqNPOJY8zpI9KumwZ1J3E3bADin8F zDUXJ4vRvrjtY2tMDmn/FRt3lBF/c9zS02ZU8UGE4bZ8a0rt1ADIcRJFvhhMmVpaXfX5GC4I+p/ DseLiqeigSMtTj7O2UMGT2WOwosOpyFBzLq5+ElbiZlGcX0d4voa+apx6kgWI75H6NqoydSxwl+ Nrd30zr1H9cyZKA== 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760264620972036530?= X-GMAIL-MSGID: =?utf-8?q?1760264620972036530?= 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 --- 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 393a1a40b68b..7b20c07fab77 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -660,4 +660,64 @@ ecap2: pwm@23120000 { clock-names = "fck"; status = "disabled"; }; + + mcasp0: mcasp@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: mcasp@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: mcasp@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 Mon Mar 13 14:49:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 68887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1233205wrd; Mon, 13 Mar 2023 07:59:10 -0700 (PDT) X-Google-Smtp-Source: AK7set9/IQUbnERD0GszNYRJHlyhC5R1mmy0TjBjK4V7mfxWf3Nb2PRN+9FWPPIYThMZhrLxPLDm X-Received: by 2002:a17:902:e892:b0:19c:ea4d:5995 with SMTP id w18-20020a170902e89200b0019cea4d5995mr42729766plg.68.1678719550121; Mon, 13 Mar 2023 07:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678719550; cv=none; d=google.com; s=arc-20160816; b=xkGfft9E/HhggAj0hjf4BodSebjcJTFLlVFo+ltRDHWixTTuoCNYoLjaMexHISlRYL EInsEz44vseymCbYQks8QjzqYMauh7D1yu7cRsTqwgLkPAFljAfg3tH8JaNoikJnzSvE 27bje0jgcfmnY2yvSrM4Es3UhCSKebekPiOw5Am2QL/oAVpCV9R6ivLQUgVtm8eQeJuy u9zGJ8CWWxJVp4qC1u4fIQ2Z5OhumX+RaBMpOvuxs1iz4Jo/UARSqOkYMkwhN5a6APjU iqH//bP2VtjvzjgHKT0prKr1OB8+IFIx9NaoJDt6cMuvrs9W3v0hpEhavEeGps2mdScs 7EtA== 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=Cm4fxL8aqP+M/xiJppfBdfZbTdZp5e43WLIPjo0QZ38=; b=onkZiSR8N4SKLnLh5ULXqYrr1M7m7lqBvm20wq8H3qJ9ITC5MgU7bgCX3mciR1kmLd bxoPn+ODGxDrgILO5nuD9ReXEZvtFmf1TH0ITEIrZQI13THTXyrpmZg43KL/fbOxn9Zx 60VCFnXxNvjRw8GFiFPmDK+92SCHpu7lMbYb/KVOGgA4sig4VJkG6YouagsKRD/NuIpv 0dMertDQYvOhtMIADPZBR3YVwGWYEfsgw7uhrPvTLjOPRg4UM3zmcbVotRnnT3qF1Wsr XNNr9Je+MF6YDovEgano5+wAsZz1+CMu1Qbqid4vxCHQJ2uN6XK/YbVIrzK8FO8koXKP XDIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oMKDdwaP; 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 o15-20020a170902d4cf00b0019cd640c3f4si7795943plg.206.2023.03.13.07.58.54; Mon, 13 Mar 2023 07:59:10 -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=oMKDdwaP; 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 S231604AbjCMOvE (ORCPT + 99 others); Mon, 13 Mar 2023 10:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbjCMOuq (ORCPT ); Mon, 13 Mar 2023 10:50:46 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6ACE6A429; Mon, 13 Mar 2023 07:50:05 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32DEnjW1049188; Mon, 13 Mar 2023 09:49:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718985; bh=Cm4fxL8aqP+M/xiJppfBdfZbTdZp5e43WLIPjo0QZ38=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=oMKDdwaPvkeQL+WKydMkJyqLIqKzIt0tXvTxGiIKCzPvDngdiO/7WVJAE4u1MFfJ4 5ijWXb8Algbme+BWU53IA4y2o71R1vBERrfUyoE0uQT1/jgNCDB0iETQIA71yHqtuz ZZlhyRqysq1GewOO1nfO+/7fEFQrevkHE3l4UM+k= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnjwf127745 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:45 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:45 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Mon, 13 Mar 2023 09:49:45 -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 32DEniDJ010691; Mon, 13 Mar 2023 09:49:45 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 5/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators Date: Mon, 13 Mar 2023 20:19:34 +0530 Message-ID: <20230313-mcasp_upstream-v5-5-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1387; i=j-luthra@ti.com; h=from:subject:message-id; bh=8FGf5SMnjUpyVTelFPfg4Qsiky79X6LMQvgpym9Ks7E=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbWhY5Br2DuJyYgMrLp6KbL8hSICDZc4JsI3 zH7pmFxlkuJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821gAKCRBD3pH5JJpx RY/JEADWFB0xBeszY03V6z82hBrxGooUW5O40v2maBDWV6y6lTl6wV4hFA//qkIAMa5gyCdPVSL IejfuBTcs18w3TOgaSOtCwokTtQzR8PN8OQeo5y/gQ3O1efxK1Qub15AY+kKbCy40H+yeLYE86T /XoASTnU06VT7PMBlachv0fZjuXAMcKa8vf+Se6s6XqdMgk+dbfGfTJnhkCTQbrEp72HawctSI1 KtDHHG/0BumtNs58XURTk3wgbTgIMSZzKsPGJkoPXYxhKSqz5dCfCJIwOU42c3gWF5w+mg2c9fp D75S/1MpCVCPVg21bFcM13+9nxoIeSva2zOci7yVy0ItxG6znys1PkwJz3OQfVpHvsBW3NMjaUA KiXEQI03Y5QUGK2NXqXIUt51uK6fnDQXkEj1u3NoR3SfetsbVvQrUl+CKjnIbo2qCxF0ZbGoX3k cQyiKG3O9CZdfm9l99xLF9n2PxsEUF/i5LjLvJGomJmsj1mQTXuUCl0YfSnHdx1Bu/T/xWQ+u0U Lh8+lgrS2xdFvkn86ylnadegMsVVEthfi7JeDQNSooIby3t+OpNVmUUJtxcOV/saQMYjIcYoK7g 1BjKmmVqlMqBnMj8BQFxAfYzS9nVwveQ2KbtwfabxJJc/qWpipf+7//LrFJI4OR5P70OGVwzV63 9tSsy7EAqDnvzLA== 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760265030877885199?= X-GMAIL-MSGID: =?utf-8?q?1760265030877885199?= VCC_3V3_MAIN is the output of LM5141-Q1, and it serves as an input to TPS22965DSGT which produces VCC_3V3_SYS. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 5c9012141ee2..063e69e45163 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -76,10 +76,10 @@ vcc_5v0: regulator-1 { regulator-boot-on; }; - vcc_3v3_sys: regulator-2 { + vcc_3v3_main: regulator-2 { /* output of LM5141-Q1 */ compatible = "regulator-fixed"; - regulator-name = "vcc_3v3_sys"; + regulator-name = "vcc_3v3_main"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; vin-supply = <&vmain_pd>; @@ -98,6 +98,17 @@ vdd_mmc1: regulator-3 { gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; }; + vcc_3v3_sys: regulator-4 { + /* output of TPS222965DSGT */ + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3_sys"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3_main>; + regulator-always-on; + regulator-boot-on; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; From patchwork Mon Mar 13 14:49:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 68884 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1230772wrd; Mon, 13 Mar 2023 07:53:06 -0700 (PDT) X-Google-Smtp-Source: AK7set/E8BYnpQfq06O5VWjOtgrP8Ehr9NymnbkiWrV1ZEMFWTu0XEPVMeC3414vZ3JsxZPP1nNz X-Received: by 2002:a05:6a20:bf11:b0:d3:565c:9f44 with SMTP id gc17-20020a056a20bf1100b000d3565c9f44mr7854495pzb.38.1678719186362; Mon, 13 Mar 2023 07:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678719186; cv=none; d=google.com; s=arc-20160816; b=lZNucp1vur7ZjAJHAsUCcbxwioZ6XyiH+866bO9iCG1lUYeTSHJjgimHlYla6O/Zec PxO9TkFoypnEQPG3RPx1AmwLmumTLSkpxf7GWnTF/2WmaP4kUpzLWKSljjal9/JoAYBh vWEN9Rtwc46NunhLtKYCgxj6rwxmVAhYtf0tOXPLXE+SRdk3Tm5jCgwJiOMsKTgTSkZt X4uyIIFAHL9GqGiHzJHsAA3bBe51am5c947y2bFsxTXbHgR9TZu6fUQZQlKF/Jkur8QQ xejZFLgs4/55CxMn1h5Fy675EgANIYumY0VI54W/sWg4W5t1Yq7PwHGywaILl5Yhu/8X v2pQ== 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=M9oOgXpy7VJsV6og9C3G518iHqPrz1pxGesdLOm0XXk=; b=Em4qzY+alLx9bqpoUPP/f0wP9Jjb0cn0hA4ZWLe9j+6vmWmB8EYOvvGyaVvGXxk4DJ Quoj2sOA5v+BeerIBJxY26OHljLb/20/TK1xxYdzhuZIe6yXd7ZQquqEHQlqWw+F/8np 5Uzi7B/ViLx1jiogWz9cr06N3ubQteFItg+UuqmW1xjcgoQycShf8v/lNg2l51KTQFGJ dbIrRkTKp4JT/U2S+euKoQlNhnLP+D5DciwYYSyesOHWDzWpqsmbh07Xu17adYBfryeA lgiaioCp4tL9jh9N956VL0lL5aAC4XcTtDd2njKlEXY7PBDNhP4m1y0duhwtjI8ARqRr tu5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aQyd0xzx; 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 e21-20020a656495000000b0050318a4a5casi6604217pgv.408.2023.03.13.07.52.49; Mon, 13 Mar 2023 07:53: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=aQyd0xzx; 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 S231671AbjCMOv3 (ORCPT + 99 others); Mon, 13 Mar 2023 10:51:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231669AbjCMOu4 (ORCPT ); Mon, 13 Mar 2023 10:50:56 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A56738BD; Mon, 13 Mar 2023 07:50:24 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32DEnl0G098652; Mon, 13 Mar 2023 09:49:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1678718987; bh=M9oOgXpy7VJsV6og9C3G518iHqPrz1pxGesdLOm0XXk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aQyd0xzxpQsh5u3jdoKM6M3PYnj10FG4/56uWrIUt8BwLV00IYZd/SfGNwBK6IrQN Rwv6/WWUoU34THeqgQTC7a0jCMA08QECxnEhWAFZWY2ym5/kdWlDEIbNX27djucOgX FqGNj6rA1LvKI4xwz9RVuy69YIOQx7bEccrYOALE= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32DEnlgj123692 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Mar 2023 09:49:47 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 13 Mar 2023 09:49:46 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) 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; Mon, 13 Mar 2023 09:49:46 -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 32DEnkOC005381; Mon, 13 Mar 2023 09:49:46 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Mark Brown CC: , , , Jai Luthra Subject: [PATCH v5 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A Date: Mon, 13 Mar 2023 20:19:35 +0530 Message-ID: <20230313-mcasp_upstream-v5-6-d6844707aa8a@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> References: <20230313-mcasp_upstream-v5-0-d6844707aa8a@ti.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3124; i=j-luthra@ti.com; h=from:subject:message-id; bh=e0XqG1n85p5rfGQ8c31UUUGa4/j6/dGgmGuUYExZ8Ok=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkDzbWHCsj+mR3HmGG6neUPrlEPfrjErffXZIG1 OpecTjEp62JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZA821gAKCRBD3pH5JJpx RbMRD/sH6pQfqs0i5JoEQ0U9031GIJfnNJ6vKBj6cb4dHbDFv9//1/cjEF8eYfeYRzQ5bRAxPn1 sF1kkUigh85xwcTkXQfT3WuafJQYf2UtSZGv6DaAXJb86zAur8Qw8e/rgBXbSiHFaQWg7xcm+JN Kab7/Sn5KNB6uBUOtwHGMHCb7yq6gdRuEGY8UqPl7Vhv/71Qd2w+JzLRpeBALGlgQ2LfgYNBQQJ E/+E//B/1veWZfC/qU+BIZhX5iGPUOvpLf7eQdkgtkH5ksNonW0bgcxwrVCMLHYrT/pnUUL0x9z vNaebMRtO8DVPT6VGyXyDClQvQTIvOVqoXiuylww8pSM1Gr6PH89JhBxYuMCerJJ5zuUeblovYY khMIJ9N6rPltOEndUeBFvC9G18Es9snoH4W/tlImUVzI9SDjy8FQBHmgTxFeSLCupGki24ZlDVs CrwYZ5gQw7YYAOBnIqsWeJ/da0g6L/8A1lOi+c610H5QmsNqHJ8s970+3uNjTyzV0pAHKJzyF/W CftLyigWalAZp4js58hKhGXvA687VZCzrAckohSSAKDCHi3/DvAB7GkVtb78bVXJmsN5CZq/2tL dpUxrHNsuH3SxRBFMqazFs3nY9TooEzJxGpzWN8AtL3NDmZHfmhTVrGRSQiFcoXpiMP2vsMiNLG ayaFu8AJ0uGbabA== 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760264649193248508?= X-GMAIL-MSGID: =?utf-8?q?1760264649193248508?= Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use and update pinmux. Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 77 +++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 063e69e45163..1775ed154aff 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -122,6 +122,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 = "AM62Ax-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 { @@ -200,6 +235,15 @@ AM62AX_IOPAD(0x130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */ AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62AX_IOPAD(0x090, PIN_INPUT, 2) /* (L19) GPMC0_BE0n_CLE.MCASP1_ACLKX */ + AM62AX_IOPAD(0x098, PIN_INPUT, 2) /* (R18) GPMC0_WAIT0.MCASP1_AFSX */ + AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */ + AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */ + >; + }; }; &main_i2c0 { @@ -234,6 +278,19 @@ exp1: gpio@22 { "MCASP1_FET_SEL", "UART1_FET_SEL", "PD_I2C_IRQ", "IO_EXP_TEST_LED"; }; + + tlv320aic3106: audio-codec@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x1b>; + ai3x-micbias-vg = <1>; /* 2.0V */ + status = "okay"; + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + }; }; &sdhci1 { @@ -302,3 +359,23 @@ cpsw3g_phy0: ethernet-phy@0 { ti,min-output-impedance; }; }; + +&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>; +};