From patchwork Fri Mar 24 08:55:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 74433 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp472990vqo; Fri, 24 Mar 2023 01:56:53 -0700 (PDT) X-Google-Smtp-Source: AKy350b/8YDMOoiV52UuppWFBBQZ/IRBhtdxjBXoojMvtOfwXIQRViON4/yhL/BTzhVJwWWxmavN X-Received: by 2002:a17:906:e294:b0:8b1:32b0:2a24 with SMTP id gg20-20020a170906e29400b008b132b02a24mr2019989ejb.47.1679648212902; Fri, 24 Mar 2023 01:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679648212; cv=none; d=google.com; s=arc-20160816; b=kvKfpmitDHHaR89x6uCOWmWBcyqLaCkRFtfC6HMwnyWEY38NFc2gSpQALU/fDefOB7 ZTun9QteM5HRBAXWg1EUu7WO6ocFL8Jxve9BuJqIkAQ3VoA7hZZ2Klrrly8zF+ujlFyx NMqXbPeVNnrGHfsO9IeU2dT74VxcmvS3PBm1krWQmM9dq8qMHF95Xwn8Tl72mIOoOz1o mfzsV+/bCrDpWi+PFPOKudei0SqawTNPDwNAMItUCIi08GVy52UAB24Nnc7TvUJeD3FW IaSkmoUe8xiURE6002K8xu5qUwP9SavqpSUHycQI6IDycKqSIwccmpTZEXdYGNDcii2Q x8yw== 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=DxU0T2hXjJm5KDnQGJfy7ceGai8k87bWNWNnCsPtSsg=; b=hp9T4MIhng+FXSUWrs1cFYsMbHIVxybVnIF9WoVAffaxxAmjpKLyiD9/lQUGaKybYb vmD/YOotCM/0kCvmKoihnxZrNNsPUfBcWanYVdhIFIMUf8cJq8NJVkKKsKmDBfJbFQHN zD/Ic9z46Nq9wcOkNzdvJCrxdRg4F4/0V5wjsBw9o+SRPmCKqJO+uaI+V35a76mAF/2O yJJ15smTSxxxadBOcFUlxJUoEP7AaZQu0FYpnFXxn2ZPP6whmiTB/JPL0wsXIIljb6VB CyijJStxlHnscUjD/Hs/LUHZSU76P8DTvIVJjFZ8VAcuT68WTnfyCsCf7G6Jt+giRbgP tzDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vE4cCgVy; 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 e11-20020a056402088b00b0050203525481si3622110edy.188.2023.03.24.01.56.29; Fri, 24 Mar 2023 01:56:52 -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=vE4cCgVy; 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 S231908AbjCXIzh (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231831AbjCXIze (ORCPT ); Fri, 24 Mar 2023 04:55:34 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B24ED1C307; Fri, 24 Mar 2023 01:55:33 -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 32O8tMlS036541; Fri, 24 Mar 2023 03:55:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648122; bh=DxU0T2hXjJm5KDnQGJfy7ceGai8k87bWNWNnCsPtSsg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vE4cCgVyUGVvZ+s5UtXpRT05sY3Wu9WNSKwNxMCg106jLYCwW82u7DMfvzDxh/T56 W4AlwLwT8qJylchKk9pq1N/4HTvvv8vj9kiaFY5EQSXpqp5FX4DVuSS2cNooSKxn/9 l1dzCRk2W/ncXfT5+aOsA7qIJCwFOlXYkzDPKmKI= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tMG7063738 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:22 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 24 Mar 2023 03:55:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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; Fri, 24 Mar 2023 03:55:22 -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 32O8tL1L035697; Fri, 24 Mar 2023 03:55:22 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 1/6] arm64: defconfig: Enable audio drivers for TI K3 SoCs Date: Fri, 24 Mar 2023 14:25:15 +0530 Message-ID: <20230313-mcasp_upstream-v7-1-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=888; i=j-luthra@ti.com; h=from:subject:message-id; bh=hIQSN4mjS08ZYCycYNHfEzTIDOJFDZotIHYpiJLGHB0=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSF4WBU+dLnvhwy7tPDpExx5s5Kzb0yL+8Tq 3uNkbwMrAuJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1khQAKCRBD3pH5JJpx RVo2D/4xazMXS3XLaWaX/2OPuKKlxw+27je+ea3tRojiVMSzqXzWE/fHVu0inpMgr0BMkVmoMWa ZHoCKjMuk+LB92G3hUenguYbFLHPMKer918cEx4TlLYmmGUHxBmjEqoJOy+B2uRMjCMqpDT5Qnx cuVsTG5aSmyoN9EKdohfywEnl1dNhdUNbOmDsXbpZp4F9YhEDYBHxE+nbFCp8Afwc+jtZS3SsiK LJTDiJA2HkEKBnLOvy4IRJ00qOFyaoP8o5HLDdWQxx+BkeBiG30TS/M1kLuhuNq5uas7Q8GcirE bnQHcocq+2exuZKwbU/MeW+enr6V/V7AKH2vVkKRAp8HJKcht0S3lH/jNBMVy4N2tzA/Qj88vEH gaoypgghWfCs0mQl/v/N3m7TTqmb2c4rRMaZ8uk1kTIUcuh2fC67OEdXJgMLs7/pTfKjvoBQLk+ NnHfIoSmGhsubQ0W6sVMQo6tT6PvlHf9zK4COhgxX+/68IGV0UNZZeTPqrLI2OPiTo3R+LqDs8o lZsHruYYtfNZUkr1gDBjnWPdz8MteGT2WWnxiaCGrpUqymWq/Sg5Aj4AscgiUGnnhHA+ZNUqaMC QYQqyj9WussvvWbpn5o5hlaBXWQ/lUdUzgcyTqAINq8xqPJ02b+qkpa00XKoS5npdBEG187pLTq eDhnpfc1THDNhcw== 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?1761238804340750755?= X-GMAIL-MSGID: =?utf-8?q?1761238804340750755?= 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 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 b6e437486537..f3b004cb2500 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -920,6 +920,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 Fri Mar 24 08:55:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 74434 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp473041vqo; Fri, 24 Mar 2023 01:57:00 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrMoqQ2fwi5uJ/9iQXS7IfGSVExnHszwg86TSWkLpbJgYPVQe7C+8380NyTSpiy6yRbNZW X-Received: by 2002:a17:906:aad0:b0:932:365a:969a with SMTP id kt16-20020a170906aad000b00932365a969amr1954156ejb.8.1679648220513; Fri, 24 Mar 2023 01:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679648220; cv=none; d=google.com; s=arc-20160816; b=z98jsNwy+42HMGAEanmYNsQ9tEjIPiOKn90hU+yZZi5NQ3eGbmyUrGwbjBhQrGKCK0 6gh03mkkMS0VDy7j7IoaAQPJi/odQsL1phxz3OHlR58mGLldDjra0C3JcQPMhZlKStmM l3YQbIa/0oF3F0g4UyHNdQfLxeIT1+GcbSvb4V/BJmYH+zqO0VbFDIiKgFQBYHBZGUeK dlGyu39GIFB36NxE0mzP24HNPXhxR4m82GLEjed2bQkUt1/32a9yi/Tv0igRaMugCzVK /pwASmitc6p69tOVB/A9RC+zfUGKlLY8PPHGg9JXCJkFhxp1xVaygHq8FpYULpm4+8ZW e0bA== 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=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; b=00m7qTRupvhNSI+c3YyBwgGSfLR59dwXtzPeUKM8t+nniF/hMdl0zyMCmV5+SiNIoM E3AM1FTP+VOsKRJb8Q+HgAxJnm6EsptXPr0NFk1TIOIFoRl24izy7QkFUMVPwrHp6W7a Cn5SfrNHKQqtukAkA8/gKRxJxzba0ODaypV6ugkdpOjn28P/GD2SnuSKzUpJs+M6OC1W ZzN4sMQ4dBuMBwZJh3v1gGSjyNvWAAStcjhXW1KO46XwwGJZc6/JwcNyNUO/nJifW9WY 7qP19tTcENhka+Tzn7mSXVIZpVW/M9NnVtVFJgOmZ0/t0B+pTAuxsZ5TrnDcM/8Hyb+6 9OOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=N7YXPHTV; 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 cw13-20020a170906c78d00b0092be69b4288si12642361ejb.381.2023.03.24.01.56.36; Fri, 24 Mar 2023 01:57:00 -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=N7YXPHTV; 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 S231920AbjCXIzj (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbjCXIzf (ORCPT ); Fri, 24 Mar 2023 04:55:35 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B39241C9; Fri, 24 Mar 2023 01:55:34 -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 32O8tOpd128166; Fri, 24 Mar 2023 03:55:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648124; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=N7YXPHTVHKdVEs8BAwDtGyJ+NFr3NkZ1f6MYzNzNDM9vdv5R1waIYwaLB8wO2cmeW Y5q1f5q/8fcImg+qh/mM09ZD6EHmhnB6LufyttDnRmxe1GPsdQzHXyqovcyLlCgita RWibhkwll2ScsaQ6zOBJo9MXN+Tksgv8q7lsIwik= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tOpM000355 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:24 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) 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; Fri, 24 Mar 2023 03:55:23 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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; Fri, 24 Mar 2023 03:55:23 -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 32O8tMxp027170; Fri, 24 Mar 2023 03:55:23 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes Date: Fri, 24 Mar 2023 14:25:16 +0530 Message-ID: <20230313-mcasp_upstream-v7-2-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 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/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSGuqRtW3GhBgUwi6H5Y8rGvXkHf5pW7IPvA wr88PkEyPeJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1khgAKCRBD3pH5JJpx RaW7D/9xBeuOOjQsa6OIa6nQsKEzmcFgTQ7ZAeWJSIhRSO9RJUwzXcASzGLCxuaTU3cOGnX6NKh omRAjCmNZHYhafK5sJYs6otKkADvBBeKoeuU8bHesWIQTIC4XKwwVI5FeAWvKgBbiwYu1nzjeyq hQmDO16geKfIgRMrNgNXVwCD4VQxT/1ZwyKBnLUZSW/HlRocklDybOO9C16RdVX9toY+Z17DtJg cCyd+4wj2tliprHmLfF04V2mkOWt8+aGxXA82m3hPCqXO+5AKjrcyISBWYW/5qmALsSRY35I7Zq VQNPumQ8q/eLCCYcc3vyUZHquE4eXMNHtYyMPude0RmmuzvFFXHJ40gEtX6bK61An0gds1LzA8S WKlpSUjiDlbjQeoh/515BpIxniMSTKAaLKOb6k6BOSKUGXJc6a8WQPAIlF2U+yxBKS2ltLcTjfd nhrdhb0RFPeT3cPlWQl2L3Jf0G+VR69DJc7UDhRl5/Z9kLIzinowKIth+L3GbSAUf2ao3JOPvL1 0tkglbBgkw3+qEKy4IZHox0Fk5RGwEKa7V5JE7HrWJ6y222SkcM2WIjZOiQlp97ULs++myyCGLP dhjwUj3lsZTvKHAPjmrtZXm7dFnbzI1DIhSylgFPJRbB01o/LkqH/qSpaD3j38XQWrGT9OWCnBC BZJqiXN5OkmBo0Q== 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?1761238812324534319?= X-GMAIL-MSGID: =?utf-8?q?1761238812324534319?= 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 Fri Mar 24 08:55:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 74438 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp479570vqo; Fri, 24 Mar 2023 02:09:21 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsnVn4ZlH0lSF7DuT91g2aonoChiDgk7hY3dVskCoUe/FMzjw7wmy+TzPJiW+LrwAKLkn1 X-Received: by 2002:a17:90a:b88e:b0:23e:cea5:d37e with SMTP id o14-20020a17090ab88e00b0023ecea5d37emr1989950pjr.46.1679648961443; Fri, 24 Mar 2023 02:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679648961; cv=none; d=google.com; s=arc-20160816; b=gbq/cymjpMi7KhjF1LNyhqf+OOZEo2LXhDksqtdLuKYv+kFnf4c0fHaxT4Ld3MJMed hKpaWDp3Fkk51/o7Ql0ewpmFbEK61TwWdd9TNfgBsPopUIVkUdRdnS82J5QOIaQKZ5uO J1AC9tnLkSE9e/DCHhW6zm+Oy2VMOX1/GD8RqbSKag2Ae0iWuRcMw3kr/emz4HrL9Rda lppbPBaJHewXRqIFvBQ8ZV4rHeIMPhGJjyg4C446apZdo03nSoHJLbbm7hStqLILJSHX +MA5AaY1c0ldB6V5XEmQKSYyjRY4YjDYFKtC4upKHlDKcKQbIFd7n+TprWPVPqx6ayGn +JCg== 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=WWOP4aRIWd/jh8+ZcCgCIjPJAKEXKhQ2HMU/ipW9sjU=; b=BCgPayI2pYig2q4uMvVOJDKqBEBzJLgS0OtCIqKRLP5xl6/qrKEFGjbZ6a4lhtH0eM gbJDMmUo7vCkxTqG0dCAZ1MAQHa7MIcApyWCpN7/BQuiIFRQImIYf4k7yLxg/eYbSciB FZMCJwl0SPb8Nv3fZswr1OhS/K6rDrNPrrTKJQ0bK7tTV6Wp94cAFIV4lZYZS6UqS1hq y26Txica9gqDaoXUsJTs/zWm8QUs59i6heZvZeGDXqoHr3UIs5YRsaGi0sxOog8J4Q2C sM/j9xTxTWhA/G1CTc/UuI3EvTXwZZXRPPWLV3Vjk86HeF6zfa+eEsZ6hAEEaUhfhycG Cz3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J9srIS5D; 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 s8-20020a17090ad48800b0023f14c9a5fesi3825561pju.100.2023.03.24.02.09.09; Fri, 24 Mar 2023 02:09:21 -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=J9srIS5D; 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 S231939AbjCXIzo (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231890AbjCXIzg (ORCPT ); Fri, 24 Mar 2023 04:55:36 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DE926846; Fri, 24 Mar 2023 01:55:34 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32O8tPXI128171; Fri, 24 Mar 2023 03:55:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648125; bh=WWOP4aRIWd/jh8+ZcCgCIjPJAKEXKhQ2HMU/ipW9sjU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=J9srIS5Dx5pVUVTK+J27fPa3wMuhto3BHBqcJMqu/mQSNCF8W2elJdUV5chSW6lk4 /UEohCfmFRuJrt8gs7k6fJ/OKd2NlOF5CzO0C7ZnYVfLTOYsp97HwvD3L0ZvIot/q0 4Lyy3jp73EhoFXcwpawCEGpdlhS4ecSBI7LG2aZg= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tPYc008999 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:25 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) 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; Fri, 24 Mar 2023 03:55:25 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Fri, 24 Mar 2023 03:55:25 -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 32O8tOqN027180; Fri, 24 Mar 2023 03:55:24 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 3/6] arm64: dts: ti: k3-am625-sk: Enable audio on AM62 SK Date: Fri, 24 Mar 2023 14:25:17 +0530 Message-ID: <20230313-mcasp_upstream-v7-3-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3645; i=j-luthra@ti.com; h=from:subject:message-id; bh=Jfmq2hTI5D+agV3PMHzp8o/deZ6uvAoCjMXmJAjsZhQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSHFTX+mW2B7VKg/e7oIxXrIEI7SFRgnv2D3 +i9Px1XNnWJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1khwAKCRBD3pH5JJpx Re1ZEADBwCQ4iMrl9T+GNzWHza6hw1RyKTPISP7a4S9CQn2a3kgdSeb/pWt5r7+vYHEwQoAaPRU ybwy0LFz+VTdZzjCeAaaEt7mZkcavLZ8YU6LFFU/pLigaxUpkVnNt9RYE4owFpZGIQcF7ecASGQ vy/RAVntP9uTNN7mCtf0g026DHCeWVGHHaMYSxTlOOWSEV3nBF2LKJNgpBhYyMLt6i382VcsDs/ Wr3R/ZtIo85/nL0AwmFxe0WTG7BBkTAgKdYdWu7YxNxdhSCp4/UkJtLOESoVFLaYllE2n9Irwqu 5NYiLOoKtFJ999TVc1d+Try+GDs9hr6UUyWejMC9lKuHreaFV/a24A3+ClYcSQ88kc4rDdL7iib O9N4cubSKQ/hgWxDZdsgKfyAhzJ0iJgHyVWpA84AwBni+oTSVjwTalUlzW6ETvSd4w6R1f6RJxr E2NnZkJhr+9HRsedBYpss9vcEGHOO5QSEZVVwCANqWTKzdrmfiQGHF6XOQxZvOlBwy92+K1aYHb 44lZf/4PusNBIR6flkNqoUXB5lO6V14AHwrx1l4AE6Iin4uNlpxYSy2S+TlAt4zj4jcsogrja3z zBXNEXLglsLE78IYYmOQ4d6C9tUhu/gu++SR18icAOqGFk2dFoMmJjZYF6VU5Nb/eiQW2nwpf6v AyYMubys5UcH/VA== 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?1761239589312904843?= X-GMAIL-MSGID: =?utf-8?q?1761239589312904843?= Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use from SK-AM62 E2 [1] onwards and update pinmux. Link: https://www.ti.com/lit/zip/sprr448 [1] 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..2727a3c81e93 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>; + }; + + 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>; + }; + }; + 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(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 { @@ -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 Fri Mar 24 08:55:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 74437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp478783vqo; Fri, 24 Mar 2023 02:07:40 -0700 (PDT) X-Google-Smtp-Source: AK7set8j3xmXZM+C4zZnf9CW/qAD82D/yyznqrD8NqUJG0NQoGYvFcU9SFBDmkEySjHqwU1rFAar X-Received: by 2002:a05:6402:cb5:b0:502:2cb:dd10 with SMTP id cn21-20020a0564020cb500b0050202cbdd10mr6996578edb.6.1679648860632; Fri, 24 Mar 2023 02:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679648860; cv=none; d=google.com; s=arc-20160816; b=XICUXn3SzmUsGXj33EgI3kJcFjumHyJusm97m1fd2RFfKoU98PxDwXgtTxfjC/MQJc 7Hw8DuJZq3E5nFF8E4t0E1RGxUkUZY4L3amXEfz0Mf5Zh/DQ7+gjZaSq6Gx/0EDQXfvn gevr8PB44HeLnJZVPa8qc3LFU2fZH0yUvAkzrjVcPlo4sbZ+41txn0wcmpyq9Hs3V9KJ af8mZl29GcdnpMOQcsijGnsHvv8YPWVckxxBzxDlMeIDARBFVdDy4ax31XoO6WZxJlMZ 8yyotFZPNJTm8IrhvjJlK6WRtv9PzLmHiC4sBkpv4jPmVW0vKg+Br09fWolG0w21sGq7 V6Ew== 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=kVU3fxPuN+E3YCIbaYl85jZLwsmV6nxyeKf/SyfMpTk=; b=Lu4ru5lN+wSQeURdzw1YL0jrcNeMNyYoeAjwibMj/RKENRUrrahf/F8Gu5w3zmwMFx G7rv8BQ4KmW6IXCzldvOI/szfV2Gf/nUqns6jwvVAsGj3lPsXZyureAQZhANCQpkQ2ys T7BLS6sAblTerKN/qvwfARgiocip6AKNQqTyy6DQS6jbN7DozPpxlzx3CKcHxyK0eF/m N2vixLIfRJvIad1P2zTfScXrzw2THYUikPNH4KA+xQYVfXBnfgm0lqMxZSNtUHDK26wu tFF9OqaGDaMNiFsjAOi8AAHHsSLUeIpXYwPNHxbP4x1hm/uVow4RA/eWD7zTqXr6BUN2 RO/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WXt9eqYe; 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 b2-20020aa7c902000000b004fe96b95bbbsi20081337edt.570.2023.03.24.02.07.17; Fri, 24 Mar 2023 02:07:40 -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=WXt9eqYe; 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 S231966AbjCXIz5 (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231919AbjCXIzj (ORCPT ); Fri, 24 Mar 2023 04:55:39 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D5A427488; Fri, 24 Mar 2023 01:55:38 -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 32O8tRRY109212; Fri, 24 Mar 2023 03:55:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648127; bh=kVU3fxPuN+E3YCIbaYl85jZLwsmV6nxyeKf/SyfMpTk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WXt9eqYe59gNYfRB+3YXYCgRfBi8Lw7rjzoFj/3tNkuCF1B0B3GZsRlvduxt9VjxI NuAagPOJSDuhBYLEuEr8S7K2CUlRiOLoL6ham4bwEEnWvmuddjzZOzW26im2RFezBx UGPttihiCAkwbgipW1O/K1xb05rZkIkUP6tSJIxA= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tQ1C009006 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:27 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) 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; Fri, 24 Mar 2023 03:55:26 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE102.ent.ti.com (10.64.6.23) 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; Fri, 24 Mar 2023 03:55:26 -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 32O8tPLN035746; Fri, 24 Mar 2023 03:55:26 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 4/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP Date: Fri, 24 Mar 2023 14:25:18 +0530 Message-ID: <20230313-mcasp_upstream-v7-4-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2667; i=j-luthra@ti.com; h=from:subject:message-id; bh=R63VlF5mAlSgoaVYF/ip213cmqYqKxSlEFrCk2GElqQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSI5i/+IIQ5VyWoX/UFqZpdb/WD+8IwUDFR9 6NmRvK7yRiJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1kiAAKCRBD3pH5JJpx RSCBD/93JeCwg54WoVfmPssaJJpTzZCGw87uhXxbLrubwUPwAOn7V0Hqj0b5qweTLcjRQhRB6xD wfUjRdMNlT+sTdbfrRmpuJGCVn1X/vTHefC4eRgsfYJ1MOPqSNG3ZJgUNhMOfmcHivMNYDL8XuL hxyPaxQCQMBb0MEOTyUrS/M0FUg3suhocVEUAsE2mXE26DkPHcFFhxhDuHweienh24z7C7W/t0o sidikkYAALHOOe5npJnqqEhS9RKGl1T0jAwjY3Vx/mSEFirARzRGGq063u7YWTwwtdbbOkxzxtY mbJIKN/XfnsXbHtdEj6Arf4XEfSLTYf6vYvV/Ys57+iN5VtPt0m01NBzKzUOkhZNYShDdf77tzm cQe1b99xKSXdEtu4pCnzQx/AnFk6U7a8hScA33fQQpEIm3gnGXeOB1E/aEHXOdUCLlmyWJ4xYzr 7YpNnq1tHDNy7vItmk2Bn4WuycBzEIuXGi+ItFQ/HXvVHBq4GQ3NXoowoXTjhAYXCH/Ev0ba1T9 9ERKV66rfg+5rLY7OCp6A4O0HMGhjKA0ogJoJVjQJ18kFOfq/x8Mc/LWL1pI4zgRjMvKj/qBP3p kUh1HhlNhQ3cdFM2vKIMuTMQNdBTpN1wLSR73veKnuM846524xnmyUko1BYZqNMIYYCcpZ8T2eI ncVpV7cEccjKRfg== 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?1761239483365567675?= X-GMAIL-MSGID: =?utf-8?q?1761239483365567675?= 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..50e4fcb1d678 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: 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 Fri Mar 24 08:55:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 74441 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp480193vqo; Fri, 24 Mar 2023 02:10:47 -0700 (PDT) X-Google-Smtp-Source: AKy350YvM8TovGjwfwEqbTpahthRXgUUVshQQskD8bwm3vkwtFT9fvDNFrcPMFCF9HWaLujWz/0Y X-Received: by 2002:a17:902:f9cf:b0:19c:b7da:fbdf with SMTP id kz15-20020a170902f9cf00b0019cb7dafbdfmr1806927plb.26.1679649047726; Fri, 24 Mar 2023 02:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679649047; cv=none; d=google.com; s=arc-20160816; b=wWe3yx7Mm8qs1ri5nloN5IHQJTZBejHBX8rOqFc/k00G3CL7pp3Gb0Q01yRBHsT+g2 tNIFBIsFG1uu7e2j9G4bO7odndjBp1hm+M6Pf1PsQs57UqP5624zBsQuXegcC92I7hxn gM7jp0TZFMMxT5sSSOwJ2Yvd30BejC4QNcIzBapj3eN638MCWjQd2d0pSiAGxSnNgIni ZeTbkJH/ZyMtNGlUE4opkrExs5v4EEVzLi2rRrgYYb7y22dIEey1/iYl4gXIu+BpuinE Bo+5m//1knD/qGuPZYqG18tyffGPLtbh9qyLqODSe8MpCZ/4kDb2OkByqkKhoVQ5XAep 8tpg== 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=iex5qyliMq2Kt/A4FkjflgasDUlNCyGEwIwcs3aI2A0=; b=d0mkzSjWdZ0VSfClM/dKt1CBYFqPqwhGKywAnnywu99fzbA0/RyffVlD593MWASop8 LAHXo3Gi4VAT/E3ukerN2RR/EAKUwSutktESF6p9Jp86G6ejzO5vt/KTMcytrbkCSTzv azgta1WwaDApQFK+3VIc8/uRlSChgFdsMbQ0tBSrOZiutJCahJf8E0jUsnHqjFP7iaZk YOQQHkPlqoLRfRUWS3pI2AWJOiM1DJ/c2ogI82GqEjNWLgkOFs105O1DYz8wf1kSFEV5 rUNPOyxOJGKTW/J2jafgSl88fo8rq2pOX2iY+z9Mowe0WV16tTQ3MiZtSLkcWsSQuxbf fPDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VtllT93a; 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 kr16-20020a170903081000b0019e88453482si19621914plb.306.2023.03.24.02.10.34; Fri, 24 Mar 2023 02:10:47 -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=VtllT93a; 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 S231954AbjCXIzx (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbjCXIzj (ORCPT ); Fri, 24 Mar 2023 04:55:39 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB4C1CBF2; Fri, 24 Mar 2023 01:55:38 -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 32O8tSQ2109226; Fri, 24 Mar 2023 03:55:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648128; bh=iex5qyliMq2Kt/A4FkjflgasDUlNCyGEwIwcs3aI2A0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VtllT93aQuIB/+kKofQdQpZAJ9cbQhcJS/h48E0X5tU/d2fanG17m18nmkKy8Pc1P 4V8KXDII6TJq2o1Ll+Axf4jGHLZH6N+QGi/hKFwH+QEIIIs/07qAxmfnJp9EjtPOJm p08oRKxL5uu23c26VIZh7FzayPChL+5wllR3sHEI= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tS9j009032 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:28 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 24 Mar 2023 03:55:28 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.16 via Frontend Transport; Fri, 24 Mar 2023 03:55:27 -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 32O8tR7w049526; Fri, 24 Mar 2023 03:55:27 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 5/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators Date: Fri, 24 Mar 2023 14:25:19 +0530 Message-ID: <20230313-mcasp_upstream-v7-5-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1485; i=j-luthra@ti.com; h=from:subject:message-id; bh=89iMQQ1UzhGpsP8Ub7JZE+Zeru9HloZUwbHrSaYxdwE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSJ+0wvbsSLXIYgJpleGOcV9B2CgUJ5UxPb5 nqtZv21CtCJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1kiQAKCRBD3pH5JJpx RWIoEACGWTL2bOtTS/k2p/K3I8dLcnEShGKI4sHyZUUWNaAQUVOuBS+XuVEB7QHs1Z72MYt24WF dK7zCYJlDi770dfjCYknaNDbSuLah53CiiMuPi6gNz08VWspwVjIrBszPdUIi1nsJlYE8OYe2cH mWNDw5t9r7F+crxM0gKRPyRj2w9UmnxvtsEAtv77yl/j//uyh6fxPpZE70cnU7AbUAcr/23QftF cruendclHoraLU4S2/8gQZXV4JtBdpiWKgLnS0I/Hw3qMWZuA39uj/KRTAXDgsST0Gb8S1FVqqN QLdkLrfih77gGyCnpq2gE5Ru0kulL4Z9/Lk//RCUkQzCeto375oxL5YvcfpKi/qXR3n8s9cl2lZ APAaNHCwoq2NKRBGwWYQgNF2kgYPVnbffVJFug3pBlT/IcIgyRqd0pF3nIY2lMPobEHtVH3tlav TEko6QmNMe3/JUktHe2A/0QbK0YdH/XzMsmyM9Mshgnv7yYf38oddt7frgQ9DxBxktKrqHY/5qO lZNHpf8INVXQzr81CoonaR87v1Y0dLBhhe4sAQRGu3DehJeKPksYNs5SHsA6t7dTHZyuWR2N12B bGrWRq7e4RGuZxrfH84tp0LHYGE73X4luBHNw+Njrfau54N/HPi7tJ+b55hwRxSK5daV3EsMWL/ NlJZIVNsQFOO8FA== 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?1761239679743796848?= X-GMAIL-MSGID: =?utf-8?q?1761239679743796848?= VCC_3V3_MAIN is the output of LM5141-Q1, and it serves as an input to TPS22965DSGT which produces VCC_3V3_SYS. [1] Link: https://www.ti.com/lit/zip/sprr459 [1] Signed-off-by: Jai Luthra Reviewed-by: Devarsh Thakkar --- 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 f6a67f072dca..2296d656323c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -77,10 +77,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>; @@ -99,6 +99,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 Fri Mar 24 08:55: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: 74443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp481823vqo; Fri, 24 Mar 2023 02:14:26 -0700 (PDT) X-Google-Smtp-Source: AKy350Zx9Izp5eNrCGta0rAUTDL2jbW5boMfS3VssFfaTPCHXtmxSEdBvPIfHEP3qh1v9LPydGmp X-Received: by 2002:a17:902:ecd1:b0:19b:64bb:d546 with SMTP id a17-20020a170902ecd100b0019b64bbd546mr2183733plh.18.1679649266229; Fri, 24 Mar 2023 02:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679649266; cv=none; d=google.com; s=arc-20160816; b=vU4HL8rfIgiJboWvO7EPROVIV2WZSd5e/F7kfZgZeGC5Q8djoDBRIoyhFoDUECwQJd T+WccgciyfSJiqjvcmmB2RkgA8kLP8ypC7cp5tSKyC06AYywPkqtNTw8sr+yHh4lcgkb ec7Nr446liUTZHn0Wj+IcddPm7ylDDUBW6AzrkN2fSyxT9nCn3x8denbQ4mPrUz8afsW J/DRJPuCKvhDjHlBk83OudveKFvkIMQPIvQgCjFh6jaa7Lh7O+E1VMQpfvMxl11u09Gt UcZhmOZNZ1uk3TbNlrbySDFW33acr+23nwXClOjKxZCybj/l2GGbtqCMhSvCHrSDnutu OoeA== 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=lV+HXvD7QcdmJmzElwDez7tC33GDs2nZ7rVEaoUKP70=; b=zUf05MNa88kmCKtUTe1g+xWy2VjqYdXSmwlwwrusFEjVDuS5sKaU+jS738Qo5V7cbV hEj2+NVbh1jORh6xYRjxAEmuwxO6TrVXaM/8rduymYlcpQpv79cGpGyQvwvZBzOteWq3 N/R//lc5xj44Dt1ziFQloWUd+6s1wku8lwXy51t2fpk4mjOIJ0xX7zWwB/wExVokHVE0 A7okA9JsCkSYL1RR7OSMKajkA9eQYGVstsUnkuCaHeVWCMqgNkQYnmp7G+iYSrxmUik4 XBzJJAvV7Vj2ikzGR38ycY57cVXnJ5QIV+Slf0Uh3UmaplZttNbN17zip7GfPupgfjvK N3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rEgB8SWp; 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 c12-20020a170902848c00b0019ca3e987dbsi19326065plo.631.2023.03.24.02.14.13; Fri, 24 Mar 2023 02:14:26 -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=rEgB8SWp; 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 S231974AbjCXIz7 (ORCPT + 99 others); Fri, 24 Mar 2023 04:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjCXIzn (ORCPT ); Fri, 24 Mar 2023 04:55:43 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58E62241C9; Fri, 24 Mar 2023 01:55:40 -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 32O8tU0Q077432; Fri, 24 Mar 2023 03:55:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679648130; bh=lV+HXvD7QcdmJmzElwDez7tC33GDs2nZ7rVEaoUKP70=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rEgB8SWp+aFINKlmfVUHmWKgA/0BfvP9p7VQ/gbNX/LthGHZgi7nDJg3pkR+1FK+I Vop71CBOhZzWs3crIxsiH06SUtRiDgQ4Nfj2APjbxZzLflXaXzcjWtLfIWUAVEx3ze jm1BSLy8uJ9kMv6SRJRui8X8+soO+4sGB7zy1HF4= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32O8tUoo063786 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Mar 2023 03:55:30 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 24 Mar 2023 03:55:29 -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; Fri, 24 Mar 2023 03:55:29 -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 32O8tTCe035786; Fri, 24 Mar 2023 03:55:29 -0500 From: Jai Luthra To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon CC: , , , Andrew Davis , Jayesh Choudhary , Devarsh Thakkar , Aradhya Bhatia , Jai Luthra Subject: [PATCH v7 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A Date: Fri, 24 Mar 2023 14:25:20 +0530 Message-ID: <20230313-mcasp_upstream-v7-6-88168d0df9b8@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> References: <20230313-mcasp_upstream-v7-0-88168d0df9b8@ti.com> MIME-Version: 1.0 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3461; i=j-luthra@ti.com; h=from:subject:message-id; bh=GBSLCEn9irDxaEIQSwlX3uqzJq0b8qmTn/M8uqYMMDI=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkHWSKFS06xQ9UaZeV7f0LdY3MzfuIEB82Gvje1 6BM2FXaht6JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZB1kigAKCRBD3pH5JJpx RZRCEADSrdnFI2KyybklEeVMcD8m4EdkL2h1zIVm2VxpRhlkkYkXJ6nAB5d0mnU8hV9RhNJ5o1a tFQ2KXMldmUew8RgQLf17byuL6crN0qQ9cT4qUTm2w7Fo0V1cTEXmc+UbB/5K6/rZARajnc2GhV HmGPGm0KbHu5hzkXh/5ZZgCr9XPsQPut8dFcV0xWgP93mvhTIIHp9LrU9Y3hgfQ1v6MpcHJnUx6 sOjDDCLADiDqtaQFc7lxfNS7Cu4T17z0LppiYx05VqXIfyT6KATSWHOEVHST6dxR9JCamV5Z7jx 3zT8tV6t1lKPiycXOysNuTNBY6hZ1S3B4/TgL/CAsluUZzkwG9G7M4AgrJa90cvYDjnMvhi4UA+ zIcXw3hhXqYvn3Ap2077RHn3SRYudS0mHSBPICVuSo9Wut5xRlZX+xgY+t0Elk5OX3AxYHP0YJV cJq2m3QYD71kQG41zYciNR1TJ6AE7FxhM+I4UKPt3Kdg9RU3V2XIP5PutlbQ934so+n6GWCevwZ yCHpEP610xZCNm/KXz8m2VsNLQFmgN+Tm9DFDNQL42MNiXpQs2y9clEfY2WP+/mIahOm7Nq4FdK WRVy1MGwde9tgYSIQytjZao93X8KPDiPTBtjV3qn5+f8SDv0idJfWkadvuw9JziAywORXq5e2hY cpfb8dsWEYIUoDA== 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?1761239909216807645?= X-GMAIL-MSGID: =?utf-8?q?1761239909216807645?= Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use and update pinmux. The codec (TLV320AIC3106) is also supplied with a DVDD 1.8V supply from the PMIC (TPS6593x) on the SK. [1] As the PMIC driver and devicetree node is missing, skip describing DVDD for now and manually set the OCMV voltage. Link: https://www.ti.com/lit/zip/sprr459 [1] 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 2296d656323c..8d7087e5f9e4 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -123,6 +123,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 { @@ -201,6 +236,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 { @@ -235,6 +279,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 */ + ai3x-ocmv = <1>; /* 1.5V */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + }; }; &sdhci1 { @@ -303,3 +360,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>; +};