From patchwork Tue Mar 28 13:29: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: 76089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2224632vqo; Tue, 28 Mar 2023 06:38:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQkgqc+6LUCNekLSPdNQJCI7znlKJQQuVbSBmomZ4diAAlJ6nvPiYyBqgMY+IphWbgwM2t X-Received: by 2002:a17:902:f693:b0:1a1:e397:bb58 with SMTP id l19-20020a170902f69300b001a1e397bb58mr17664437plg.29.1680010735374; Tue, 28 Mar 2023 06:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680010735; cv=none; d=google.com; s=arc-20160816; b=kD239T3SbGNkYCNantYRk/q94OrWmr3ZGQKSu9SiYr3YT4TUo+PO5tcPUCX14qhOVM LxWpZF+HrPnXbPGImLMmNYEOI17WDhFxuS89+UETc1WhaGtt0VkVJZev4kASYAoOOWA3 BVE16r9yK42XNB4jxJzU7bU/BQzMaM6jxlxFAHZ5bMJljL4zSE4lrm4+qtSy+5Aoo+8J tNJCTXSgAT9xBvm2QRrB6LAVVx0Rsjj1uCl0UOTJfb/esu8riMy5oPrZK34xHpCrzhTi X4aOA4qGcQY803nGuh1oLmDclyNl0wQU8S0YYzyvIEYm3rh6kNM21HdfzLt5EHznZm/9 q5Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=1GtChf5uKiuwn7OvNybLChaTrFxr5FfqKFgP6cHU+XU=; b=QQb1oWdu/RxSCiXY7/WKMwbQ1NNS9Jt3gsg6oZTfMRjtIj/lhnTAwXdqxec3LkWaFU Ys4NB/Fh/RRDfFW8Z4BsWHJ28USvq+UdaWDCiC7wDInytFodpzV1y5u7bQFbh5bCkd1d zR6qFPaBnL1bZFsplHEAzDjm3TlJMuIh1lihP26JmU0gDft6++Sw7iq9YYbUQFcBh1/a tA4HJDP3EeTwBW9LFxqA6/ovhfwGM7C0JgPh5K9AL8reWvlT0yclAtmbbVKoeP5l0eBn toPZS/Mdhg+7WBLq1G4ZkKBFwR8c/99u1X3MAW+YqyP01X5uO9hjmyUt9utni0ZXk+3+ zeAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="RaPe6qr/"; 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 u11-20020a17090341cb00b001a18307d78asi31907007ple.491.2023.03.28.06.38.42; Tue, 28 Mar 2023 06:38:55 -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="RaPe6qr/"; 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 S233142AbjC1NaA (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbjC1N3s (ORCPT ); Tue, 28 Mar 2023 09:29:48 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A815BDC8; Tue, 28 Mar 2023 06:29:44 -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 32SDTWO7039861; Tue, 28 Mar 2023 08:29:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010172; bh=1GtChf5uKiuwn7OvNybLChaTrFxr5FfqKFgP6cHU+XU=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=RaPe6qr/eUSvgdq7gdaINnE89PcLw8rXJh8J9n4lNS8tCuN6ebgQPKrlClSap3x9d D0yrmOB1f7LlNbHVjh3dOxIsSTcHI6y4TMQArgDyYjJX5jlkJapbIqcCTv722GAUQj /V/Cs3q6Vv3RYV/esgxEqUr6dNpgjMGjo4oXCL3U= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTWBV125950 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:32 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) 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; Tue, 28 Mar 2023 08:29:32 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:32 -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 32SDTVRG007386; Tue, 28 Mar 2023 08:29:32 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:19 +0530 Subject: [PATCH v8 1/6] arm64: defconfig: Enable audio drivers for TI K3 SoCs MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-1-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=888; i=j-luthra@ti.com; h=from:subject:message-id; bh=wZfBiEbhTUv8dcdW1NR4C+wvCaboQpeHbYEligjEsOw=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu1Y3gBEMt3pQZinkVQlD679Ouwg8mvAq9SG 4uaam78UuOJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtQAKCRBD3pH5JJpx RSnCEACqiRCaXfxy9vr4bhwJd70MUgE8Uw1vn8X4Xp3Uxj6MrjYCzzmBdEkTrV8hphRGHZclGNl MlR9240I2sqK+fNHgboZY2fKNNWmBzhifxaSzvWbsKMJdMJ7/tp1LioYJAxSj5HyWSV7enWGExM Vbxpl2ZX5jpABKqjtK4JD/7OPzdlfVVIDFcVAUCu/aDnLPNKVMkcts9KGM9FatIcMAumSBNbvhK NEGYGll5O42Yw4SPnjNWhEXulVrZtZE6EA6J3fd/AhvaRUN3ffok1ne1kkOF/Q3faPzCr1W9Po+ tDrwvhxkg0tDz+i2rWZIB0oqMOjjnHWUOLAesCNoGjxATI+fBok4X6tCxkuZ4erHHMAz2uMFkzo mQFBNMcDbuCpdBDruigcM2kMKaj1Z/1YUEPlcxakmj+dnTkLzxdGQaDta5ZcJZUNHIDLaD4dmh8 Y21WtBs7LCQoEZ1fahv/FfxdnEXvRXSbpv7IC10nJipId7AUKxFGqZuaXcZQByARbdyqiM1Ecwc emqpAZWuY2zN38Fg3sHhIYmGwb/ktBM5k4h6r8dcArzKb77JukE+sbosHYxDZjKjunrAqRH4uCl 77iXGE3+M6Rad0s58GRETaCN0xmzECiZ5MhW7siRpkQ9OMp89klHg2I5mmqAGTmzO7uMyoytkg8 yWrnRN6ywonRMzQ== 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?1761618936914758913?= X-GMAIL-MSGID: =?utf-8?q?1761618936914758913?= 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 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 Tue Mar 28 13:29:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2227850vqo; Tue, 28 Mar 2023 06:43:43 -0700 (PDT) X-Google-Smtp-Source: AKy350ZdEd1uE7+Q75w2akZ8LA+paAjjke2yWo8k4fmnkdflZU+rzYD38oHkA7uZFy/fGQi6kWUv X-Received: by 2002:a17:906:74b:b0:8b1:3a23:8ec7 with SMTP id z11-20020a170906074b00b008b13a238ec7mr16018272ejb.43.1680011023438; Tue, 28 Mar 2023 06:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011023; cv=none; d=google.com; s=arc-20160816; b=P9V3dpGPqkCetVQ/i0JsLzzDBLJTTywBLyrZcue3NA1gsWBr/BHJz071dOAE+XeXkm dE78rEHcjjFEXj/g++9MJwqKzYbfP3FeaJxrpbPn67S8CZ3/VZ/pHe410m1/xbFk6PT9 r/scQfbXXuohaznP878UW30ltwtVivnplP8cFrVn2vfQXZoynS6h2tR3Eqx+6KjYhUg6 tDn/F9iql8BWW38v+M/5lFtfVT1xaSC8Uos3/t6o7ZANvwz/GrWMV+jyJnlWNQx93hi/ YlfJVO67qpCNG4abXj7Tr2Vq6tmtmiD7Ih4fPkWhxTYON9LL/MFDd3DcH7P0mXQfo1oo NB8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; b=lSqpRvVMPILuozDSGCqB+7U9fu6rfYLoYYI8Fzht97D8jkqr+ihSigxOMnSxHwVNE+ NpwIN0Hgs6d+dwLavTMrYITyBL0xS8Xeh5BxRAgSBclf5ExX/L51PkLWv9IqfNnXogwv MkfQgilJR603QcDo5KoM346NJwz+pHAC0Dj13JKFWbY46CqU5DKU0UTHPKN48MopaRkI YKXHWmkjMhTbYpYW8OJ3uXPOHcTElprtcULrXQbk7ZUGSRLSCh762Qo8FYkfs8CbLtn2 382+g6wNbcegEBRt7JCvWm/Zem3+PduaBtA7pa32pV7JZm/lnhNRxjmGP8hWExsJeGR1 dSoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=o40KxPQo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mb6-20020a170906eb0600b009236817e43asi26666059ejb.380.2023.03.28.06.43.19; Tue, 28 Mar 2023 06:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=o40KxPQo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233176AbjC1NaG (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233125AbjC1N3s (ORCPT ); Tue, 28 Mar 2023 09:29:48 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A788BDE6; Tue, 28 Mar 2023 06:29:44 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTYaS039874; Tue, 28 Mar 2023 08:29:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010174; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=o40KxPQoZMJ7l8BhPysSbHna5TNykYuH0QlvU5ktgqPyJo2pW/UPwkFOMUW3vLpty 8ITH+2q16W35gij7HzDH6P/CoG0euqolwNIGbODIsgMFraW3d3Co0G4y8cf3f3vyGU 4U7pCGKJFH+0JqOqlUVpKM346fQqa7aP/Z2Yh9+4= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTYa6007668 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:34 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:33 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:33 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTX49031399; Tue, 28 Mar 2023 08:29:33 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:20 +0530 Subject: [PATCH v8 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-2-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2740; i=j-luthra@ti.com; h=from:subject:message-id; bh=3YQ8iDFX2K1gkT2KWC73dpEyDkmFbkpNff4cJhstfZY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu2sUumGGllyRYCduia9i8fP+YZoVTAWWfSo fudc40jPxyJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtgAKCRBD3pH5JJpx RSDSEACZZ+5iIekhm5klw6NeU4H5AHv1T8TVpmZMrRuFZIV6JT0AxDUemL5i3y+EJ0taEutJEf0 kBoGX4HprkU00yx9pbNt4SN1ftH8j8NzYcjjS/GfELf4K80FySBRbo3NzgAJ6OXJgYyE0Dhr/TT CVnXLJ3UWl41p7c0Bdd5RLBTdgLsE4nX2UcpANI83nQT64HN+5axfcbaCYOCBncHpTyJX5Y9mfW rAfCi+lYqjEPB/C3HTiizTDV0w5N2g7s5ecKnEH5bHgTDDIih2h35+rDN1j52xD/HZGUOMPM/yR LPxPwec0hYo2kms0kCejJa3t67UN2fraujj8eRFg5Ph2p5f7heGA9h/XboQ6NDpIuPp/bxfH4k7 Kn+0KyCdWdFzvYmlG/5/8z8mal22uOcJ3qvXQjEw7ugvVcnEZYs++A1rot1NdM208By2QfeQlm5 kJHlfbmOIM6kKvjWzhC0Yjs4V6eKJj5EGOM7VWeZbS0HRc4LF3964Ls+6rCKWYrDQYwjhMs0yjn ep3KrdmO/wRjs6NReNEx3l/exriKwQgFjPM5J3zpeqOul44csY01elH4mhF1S/zZUm2MZUA3SWw N8UBLFrL3dVByeMucpftU53juRPMB38jr+WLIN4QgDwtCGfyrC9ZCJPO70EWaW5d7C/aKk4+BvQ VVVEgjqtaReHpag== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761619238957889127?= X-GMAIL-MSGID: =?utf-8?q?1761619238957889127?= From: Jayesh Choudhary Add the nodes for McASP 0-2. Use the audio-friendly 96MHz main_1_hsdivout6_clk as clock parent instead of the default 100Mhz main_2_hsdivout8_clk source. Signed-off-by: Jayesh Choudhary Signed-off-by: Jai Luthra Reviewed-by: Andrew Davis --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 16e14863d7df..b3e4857bbbe4 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -832,4 +832,64 @@ epwm2: pwm@23020000 { clock-names = "tbclk", "fck"; status = "disabled"; }; + + mcasp0: audio-controller@2b00000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b00000 0x00 0x2000>, + <0x00 0x02b08000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc500 0>, <&main_bcdma 0 0x4500 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 190 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 190 0>; + assigned-clock-parents = <&k3_clks 190 2>; + power-domains = <&k3_pds 190 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp1: audio-controller@2b10000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b10000 0x00 0x2000>, + <0x00 0x02b18000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc501 0>, <&main_bcdma 0 0x4501 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 191 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 191 0>; + assigned-clock-parents = <&k3_clks 191 2>; + power-domains = <&k3_pds 191 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + mcasp2: audio-controller@2b20000 { + compatible = "ti,am33xx-mcasp-audio"; + reg = <0x00 0x02b20000 0x00 0x2000>, + <0x00 0x02b28000 0x00 0x400>; + reg-names = "mpu", "dat"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + + dmas = <&main_bcdma 0 0xc502 0>, <&main_bcdma 0 0x4502 0>; + dma-names = "tx", "rx"; + + clocks = <&k3_clks 192 0>; + clock-names = "fck"; + assigned-clocks = <&k3_clks 192 0>; + assigned-clock-parents = <&k3_clks 192 2>; + power-domains = <&k3_pds 192 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; }; From patchwork Tue Mar 28 13:29:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2228454vqo; Tue, 28 Mar 2023 06:44:43 -0700 (PDT) X-Google-Smtp-Source: AKy350aRLMynalUzfdMtmSCOtIxwASOzyKgdyOdsqgLuzAlNldsbTSzjNPJATIF/Bu9W0gGqeIf0 X-Received: by 2002:a17:906:5288:b0:932:3d1b:b67a with SMTP id c8-20020a170906528800b009323d1bb67amr16013865ejm.41.1680011083357; Tue, 28 Mar 2023 06:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011083; cv=none; d=google.com; s=arc-20160816; b=OZr1GvVCFQ/5K3GgHLSc5U8XlRfm8KWJcyaTw2Br0+7uL/13SyQBQu8TQiShHF4+V/ krlHYbrRZDemKyA4/KoTpdsBPXc/zyq99CT/IQFHjik31Ab87S9igjSA2cVvAryN1O// Edlmsp4Yt4SsX6FWSvTKDHGT4jW0sRsiMtgL0qFe2wXr/8gzfX5hgc164GL8aWCX89ad 7bo1YyYWSxfkrYEFO5gb8D6yRQjABzi7XlPAtblxlNplAr07dU2tiroPCToDV2FGOLMF 75DIIjyKl63a+EsFRihblhCi23EAW0rk3g6b5xUMR+9A1/4g+79p65I+fucDCD1arpD7 H/Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=GcjcK0aiufr3pNfevNc1Fajnc2tfgJ/plgHPTJwi63o=; b=FW/XHkF7kL5+nxqsE3uGcGKRebeQTnkXDVUtt1kajA3jxdP8p31MfjRhm21/e3IiCD LXJ07lD239zQ1dPVO6QMnaxtj9pXvg13Rzcv7GIe3F4/C8KcB9YJbZcaQUOkG3wJZpQO thVpxYyzM2xRlQ6k7KRSYcoD12JR+ZWvlCZNWvE9NaiIw+AOZhjhrU5W8Rdbq2cn05So 5uuzBrSKjJGsjNwpm0sIQlf/BhQb7LvdEBi+QGWWtn555lGgREypEhz5ECVrWUnSibAe ypTUxT3yHJaEGPM/1jvpnXXoZj3AQ3lN2iyn1WY/pK44sV7UcI2Jr0Z8MGDsEx5WS/Co 3q2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kisIOWDM; 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 m15-20020a17090607cf00b0092be3f07851si27422524ejc.141.2023.03.28.06.44.17; Tue, 28 Mar 2023 06:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kisIOWDM; 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 S233193AbjC1NaO (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233165AbjC1N3v (ORCPT ); Tue, 28 Mar 2023 09:29:51 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 760DFB741; Tue, 28 Mar 2023 06:29:48 -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 32SDTZeX005659; Tue, 28 Mar 2023 08:29:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010175; bh=GcjcK0aiufr3pNfevNc1Fajnc2tfgJ/plgHPTJwi63o=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=kisIOWDMXNUOKro/l1wAMFLJwHKj2JHDxNZs4O3byXnthjFmxJh/1L5wnLF3UABOf WKMZXGma3XsoD4KKwJFY+DK5e5FE3HZnNk7NkQoevIBWfi15k9hdabHMdRocdoaNxe 3p1i0xFSyX2JkYTwYr80oanEeTS4zSX2RqkxXDWQ= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTZH9125973 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:35 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:35 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE102.ent.ti.com (157.170.170.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; Tue, 28 Mar 2023 08:29:35 -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 32SDTYT1031408; Tue, 28 Mar 2023 08:29:35 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:21 +0530 Subject: [PATCH v8 3/6] arm64: dts: ti: k3-am625-sk: Enable audio on AM62 SK MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-3-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4839; i=j-luthra@ti.com; h=from:subject:message-id; bh=vzGrfqEKlhkGfNdmuVqiHcQV4XDMwCqemhlXKuW2nWE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu38nQDmUJFnGxu025sMntWQe2D85Y6IA4nW ZKtAM2ZNL2JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrtwAKCRBD3pH5JJpx RfGSEACcaRzresD2Ah/N4SUh81VX9cqCKpgrdRCSttCFWn61kQax3OTpFvNie3R0DdbXxkb/Snv NUdqp8GRWWrYl41ttIZPJhulRcjJIuQNYi9D58ENV2SotK7iYF2dwezno047l079aA+58d3oKeD 7pU1WiKUpBpLY5WZi4eCw+WFxhBF4s8+75593RvBhZayN73lk9VqTuMiSKjpIapEjn7dAWjrLuz RCIMq8/eHz0FVvc5GHJGPQhgueyUq7F/4edEIc5jjpfpzdgKUWYk7xV0ITARrUKgzhyP68IRWra 7gFc32lwDejBe7NN7nsEbgOamDhCeSAEzwaXdCjCe7GQXmDczSwQkB9/xfY5K3HWlGxaJFN6Gme KUD3PhHJiHwDfuWKZeSRCb4dHtuL2mLSWnWdVLw4T/vVtVZczL87qI9Uo83BtBVbkCAu1qifhIF 7bnmMuxnMxyu877hFw8TSN0i+xX4MPeYGnH8TBwCAUql3qsME9KidBRdYJGvuL/ft5Xh7b9K8lg db20kfNbpjtTdF5Ab93EfL9ADCLHnEq5ilaGTEUiWA7Kv7pEqkG1m5E7pfP/tsj/zxxybglghtx N7kRSYA1KkR1/IKnzxlwouOQNeH/7GbFNYzw8/R4s6/hxbHsfdvb2ZUXtyTI9XM2D2S5TnsvDbI z7INRFwk29d/Z8Q== 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?1761619301875922380?= X-GMAIL-MSGID: =?utf-8?q?1761619301875922380?= Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use from SK-AM62 E2 [1] onwards and update pinmux. Keep all audio related nodes in the common dtsi as they are exactly the same between SK-AM62 and SK-AM62-LP. Link: https://www.ti.com/lit/zip/sprr448 [1] Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary --- arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts | 11 ++++ arch/arm64/boot/dts/ti/k3-am625-sk.dts | 11 ++++ arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 77 ++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts index b2ca19e3042e..5ed6b1abe87d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts @@ -70,6 +70,17 @@ vddshv_sdio: regulator-4 { states = <1800000 0x0>, <3300000 0x1>; }; + + vcc_1v8: regulator-5 { + /* output of TPS62824DMQ */ + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3_sys>; + regulator-always-on; + regulator-boot-on; + }; }; &main_pmx0 { diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index cdc0858dd1b2..2b861681e548 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -87,6 +87,17 @@ vdd_sd_dv: regulator-4 { states = <1800000 0x0>, <3300000 0x1>; }; + + vcc_1v8: regulator-5 { + /* output of TPS6282518DMQ */ + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3_sys>; + regulator-always-on; + regulator-boot-on; + }; }; &main_pmx0 { diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 54318a07d50c..2500cb9ba323 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -81,6 +81,41 @@ led-0 { default-state = "off"; }; }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + codec_audio: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "AM62x-SKEVM"; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line In", + "Microphone", "Microphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLOUT", + "Headphone Jack", "HPROUT", + "LINE1L", "Line In", + "LINE1R", "Line In", + "MIC3R", "Microphone Jack", + "Microphone Jack", "Mic Bias"; + simple-audio-card,format = "dsp_b"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + simple-audio-card,bitclock-inversion; + + simple-audio-card,cpu { + sound-dai = <&mcasp1>; + }; + + sound_master: simple-audio-card,codec { + sound-dai = <&tlv320aic3106>; + clocks = <&tlv320_mclk>; + }; + }; }; &main_pmx0 { @@ -175,6 +210,15 @@ main_usb1_pins_default: main-usb1-pins-default { AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18/E16) USB1_DRVVBUS */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */ + AM62X_IOPAD(0x098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ + AM62X_IOPAD(0x08c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */ + AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */ + >; + }; }; &wkup_uart0 { @@ -205,6 +249,19 @@ &main_i2c1 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c1_pins_default>; clock-frequency = <400000>; + + tlv320aic3106: audio-codec@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x1b>; + ai3x-micbias-vg = <1>; /* 2.0V */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + DVDD-supply = <&vcc_1v8>; + }; }; &sdhci0 { @@ -272,3 +329,23 @@ &usb1 { pinctrl-names = "default"; pinctrl-0 = <&main_usb1_pins_default>; }; + +&mcasp1 { + status = "okay"; + #sound-dai-cells = <0>; + + pinctrl-names = "default"; + pinctrl-0 = <&main_mcasp1_pins_default>; + + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 1 0 2 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + >; + tx-num-evt = <32>; + rx-num-evt = <32>; +}; From patchwork Tue Mar 28 13:29:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76094 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2229938vqo; Tue, 28 Mar 2023 06:46:58 -0700 (PDT) X-Google-Smtp-Source: AK7set9Ea2h7NksVs/dO/aqSVJNbG1z78Puc+VOS0NyK3P0+byFMGqRyXdiI78sU1IgY4H4u4S6O X-Received: by 2002:a05:6a20:c10f:b0:d9:84d2:7a9f with SMTP id bh15-20020a056a20c10f00b000d984d27a9fmr14213713pzb.24.1680011218339; Tue, 28 Mar 2023 06:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011218; cv=none; d=google.com; s=arc-20160816; b=A+L6EruHYVuJ/vMuiAd25vt9FwRnm2pZanHxg2+RuIhP9CBYMo98/OlattXilfMC6S u0i8ovaLXH3XpgBu+6l57D5q3fKis8UR9FiboTIIaf3U5+KB5AyLw9wreJEkY7hABXA3 tm42B8FL9IBFqonP+L/DX2CrH8klWvx9TUkGM7vCAbFmile7HCl8lblzAcFX1HYIeImF vQVOL96u9D22KhzcJK+rL4TzJ5kgjUvCYEO2N20nOw+MGck76gVjpcZTYq/H0Dl09xbN CxIVr/a7zF1dFPhCtIj+ICnjEKjQqFzxS07lLgT4bu5xlRin3UbDAauBvEZiDaTjMf0b UVdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=kVU3fxPuN+E3YCIbaYl85jZLwsmV6nxyeKf/SyfMpTk=; b=gw1GbtQ+VWeRZQ4RreyPCstARW/kXmIBX1v+Qp7l7rgazeyRL6fGrV9O6XW/wTGxEO oLXtIiUegff9hV4gU/OjbdeDEjtyV9Q+TnUreFNHzywOnIoSI79LiIKJI7NX8B/66Ua5 TAMu9IiET2B7/6jCmdcZWMFx+cUpLprQswnieCoK2jlVK/FDtaaATopHXzkS7Dt6yvHQ OALorjHBu+lEtpwPq0vnG47lb5J6bzeHuXIJogO3dzKa3P13L5a4IGCjElLR56QfdWKk 8jdt9hAdoWD7AYztvFi/w6kuAUeaIsJXpxB4PYkn9QuepPZfurPADPEnURAKDwSc6Wi4 +EGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="h/4GOfCE"; 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 u9-20020a056a00124900b005a9cb7d4781si17941735pfi.258.2023.03.28.06.46.45; Tue, 28 Mar 2023 06:46:58 -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="h/4GOfCE"; 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 S233187AbjC1NaL (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233162AbjC1N3u (ORCPT ); Tue, 28 Mar 2023 09:29:50 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EFDAA5FA; Tue, 28 Mar 2023 06:29:48 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTbHY005664; Tue, 28 Mar 2023 08:29:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010177; bh=kVU3fxPuN+E3YCIbaYl85jZLwsmV6nxyeKf/SyfMpTk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=h/4GOfCEMADPPKJnVzfdMB7xZWesZot0qUsFban3pJ13gPVFPOt/MKmnk0jppCVc+ DN7DM9CDSeAm92IOZ5I4f4OGmkS2ANNuWzON5YglGrnCfhStIn8izZj5c3/W6F5yNH oGENRHHyI0DdZtx0e9t/s8nYxVA0IJuOE6EhMQFw= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTbYA113910 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:37 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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; Tue, 28 Mar 2023 08:29:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Tue, 28 Mar 2023 08:29:36 -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 32SDTZxD122345; Tue, 28 Mar 2023 08:29:36 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:22 +0530 Subject: [PATCH v8 4/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-4-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2667; i=j-luthra@ti.com; h=from:subject:message-id; bh=R63VlF5mAlSgoaVYF/ip213cmqYqKxSlEFrCk2GElqQ=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu4FZwNzu/Xl8V1VV6/puk7SB4hinnK7NtQv +UY4nGm0uaJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLruAAKCRBD3pH5JJpx RUcuD/9PPXlYjU4x3rfNseJ+1KSdk6Wz7acnKxj5M4hbM8CuuJDprWcCBbuS1L78uvjrIQT22BJ cee1io2ZK9CYn22+P1fG9cStQ9oqdR6prwzvlWFMSKZttXfE5c3PqH+mDVg7KRYXIqOzDB7w3CD rbsIt0dKMMLQAQ5fh3+DQOkMzLg5k2kHg2d/wYJJeSWp0DYpBFArzFiw4mYZEPzNcyt1xJ0z706 RuI7FCZhlvmMS3i2e3dWhE0WDJKjnnHGPox9oSyTBQWCeAOPs6kJAz0VqO7DzDx3NmD56/Xnt1N TNYBFpflVdtZvSYSkaSOfqB6I91FUX0LosYR0zZAOTdbzbxl3eTP/1i7aUy1Xd4632IUQ3Ld8+y b8H2Yf5ZqfgPIrSUcbMmwIb94rKuju0RRCzvUN4syR2BG2I8knB95sGoRThhJLb4m14iR5MCzhA Q6NyOgAzBHSCS1mAu31He93G94e3gNJlLXfnBTE7pgBb7+EioFtVqlDExz7NRY4KfKVVffL+EoD LIXDkWEKf6RWjnalhXbOl3qZ329tE7IeZhBWCTelMytAt1h1rvgYifSwPOffaWXUXihF/ERooJ5 J6vNcDDpGgNtfzmnz+nGJyUd+aQIgHTgBEaxnUudVMQ8zcIJt+3KgqJbPD/0zLr6c+hpyt6iWVi u79LtkNkAUg35rQ== 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?1761619443043502908?= X-GMAIL-MSGID: =?utf-8?q?1761619443043502908?= 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 Tue Mar 28 13:29:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2228715vqo; Tue, 28 Mar 2023 06:45:09 -0700 (PDT) X-Google-Smtp-Source: AKy350a2xFAZbARxd0imvTKcAz/r3mwIJCL7bvF1gsQRKfKENlIn2cvMlAba6Uhk9dZcQrD2Yecp X-Received: by 2002:aa7:c145:0:b0:4fa:ad62:b1a0 with SMTP id r5-20020aa7c145000000b004faad62b1a0mr14012191edp.41.1680011109523; Tue, 28 Mar 2023 06:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011109; cv=none; d=google.com; s=arc-20160816; b=Cu93jBDwWJFjYO5U8NAThB19ie8w8AOpVRyPyYw26o7O+rC7mkeDH62M+63jk9fq7G 6jCo8HPPNdPHU6S/i8VyU9TXDPN+2bB32PkbOgEptiNiJs8d72mpu6tWp4IYWcsItzUi pBaHSoEl8IK03h9Hw95JV20jI5NFXFQq54AVZCF5g2I2hqJH5CbrEKzGMqDxWaVriyNf JfVyzJ4YYSbqaRQGnywICOkU6Y19/KiKdW7tVsLMkUzOqM955gUAQvS/BNH+SWdDFU7k d6lLTB22BbavQwp0K7PPt4Z+F0Lzj1MZFeLNN8YjJ+zwInGaMfCS1/I8sROqPA2bwugK LL0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=iex5qyliMq2Kt/A4FkjflgasDUlNCyGEwIwcs3aI2A0=; b=r2YX9YFGl5R0ohAYhBdvLR15Ko+ePwprcQZoUIipEQQPdrvTe4MaudlimZ7cqMd9VQ p8cQ0Yr6tFPAkD+kMbyQQK6sFMW/KVWEb/OZ/6Ovh6W1b4nniGYi3NoUa1uJpSS//q2U grZJ8W94HDqOYk9QrhgGWYRWQtERdGKxvubRsuyuJSEyXDkl0APahCZGpBy4CNQaDC/G p54g0NnWPmeQ+bqELekWzOF63uLcN4TDCAlEJ8kGm4QqbdYlPTODeal6jaGDBkfo8snY +KFZDKOPyerWTfeoavOpJCb229byOZBSNQ1C8B7yBNtBytbgamMBr0tgN1sj4nO652i9 GmSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="L5BC/RdI"; 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 w12-20020a50fa8c000000b004ff081c3880si32628301edr.475.2023.03.28.06.44.44; Tue, 28 Mar 2023 06:45:09 -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="L5BC/RdI"; 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 S233205AbjC1NaV (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233170AbjC1N3w (ORCPT ); Tue, 28 Mar 2023 09:29:52 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03E7AAD27; Tue, 28 Mar 2023 06:29:49 -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 32SDTcdk082681; Tue, 28 Mar 2023 08:29:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010178; bh=iex5qyliMq2Kt/A4FkjflgasDUlNCyGEwIwcs3aI2A0=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=L5BC/RdIJ+IsOG4i41VFRKI5I0ohRl7o3dytozwyBnwksLNauBAaD1f3qFX/WHguZ bOcT/GAjORut0/mxlU+F2qYsSzNwZpvCV4+88YeTuJDN7at6ZdyJ53YwCmMySwen4i Zsrm3oIN/SULVpKk/a3UkzcoKA3gJOBpjnCu0Hio= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTcJu113914 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:38 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 28 Mar 2023 08:29:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 28 Mar 2023 08:29:37 -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 32SDTbJr122365; Tue, 28 Mar 2023 08:29:37 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:23 +0530 Subject: [PATCH v8 5/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-5-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1485; i=j-luthra@ti.com; h=from:subject:message-id; bh=89iMQQ1UzhGpsP8Ub7JZE+Zeru9HloZUwbHrSaYxdwE=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu5u2YFb4DZkiksybL+9twOtvWuKkVfrnIu8 i7cKG0ItReJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLruQAKCRBD3pH5JJpx RQEWEADNob/dQDlWZURDtb0nPvQTFMNlyBF+VXUeu4PFS4FyesDKBCW9Wn1UjSEC4dnB1lDGYB3 D6rDmjynw9CzFcDjWaK+BhDazgl5lrHEWRrhnfcfPbsaRJ9HKAi4ZMyAkbAhUjoZceuqELjoIJn utZRtF8oMYu8ckG2j5apRhYlaVArdUVz0LLv8fmIknvNlbNbUFaMJzbEzDAF3AsrlzkhsZ+Ct6n veTxfsXsX4DKpFb0g1GYsybv6qMx8jAABHlpCtFbuCt7g8KB9PDxheTdkiK0OKn/CYlbF4gBUP2 6lg4hKYVGZ7rTICw4i/jhgblJQJK2hlR6SA1sXZfvJEXfD3hDvE+g1aS23JVc4dCIJKDnT6IwTD xzhzg8HmKcNHrfTQonm4yD4BCLE0Ya92RKqKBUmHwUBelcDY344WqbO+2WIe16oPrwTyK2N3vGw Kcl8n3ZmIzCJJ3LEN39/FHBUQPsewwWUpfsW75btF3LhUS9BfM/pA1/GwD9eScnus+TJWaoqww7 uxXfxpVw0LBpa8fJiqdMjFlBaAeF0kwinK38iv8BC6839W9YtLjEsYDp9nhD3dj90n/hvKTEUaW O5NU+/OA61rpIAeCVLeO7qncR6IblWnQMQM2f84V2zAFowfB8B+Nm88XFXZPFO3BCCTVgjU4c1h 03nv0Z+C6RUH0mg== 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?1761619329155591610?= X-GMAIL-MSGID: =?utf-8?q?1761619329155591610?= 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 Tue Mar 28 13:29:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2227828vqo; Tue, 28 Mar 2023 06:43:41 -0700 (PDT) X-Google-Smtp-Source: AKy350YBXm8eW2gF2I6CLkegY2XZGFcJkAWYIjUCnbc/I/Bri+8QimDMkjlvYKFpwCt8agNe2AD9 X-Received: by 2002:a17:906:13cd:b0:931:2306:f363 with SMTP id g13-20020a17090613cd00b009312306f363mr16681084ejc.21.1680011021674; Tue, 28 Mar 2023 06:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680011021; cv=none; d=google.com; s=arc-20160816; b=LfCCZD8ZJ7yZz1G4J0fkzFtu+sDhSBHY0YqfjIuOKzDODNnPgoZW3JkfpXry7tdqqa jPvgEH90Z+iSqAViBcYSK1cgPQS1FsttkzBV/fqIpACRhPPex4i7K7myIaN5EgWaJJYY ILkQ91VSbltBFXrjpfG1/CkuouKYk5YsOybB84yCVr2ePQ25UaH5RVwOrFiLWRPEL6nQ WmAjwCPTAxi6ikkJxnfWbVwxISe4nFhHKEdLDVIL8jK5xV83FKjvefMZvOiroADCBskL YT+jy/VBRt5DpnoWhFKqZ6AgR06OETpFgk9uNBmpSVgQyAZiOB39qGS9SXM1dl4aZNVM akag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=lV+HXvD7QcdmJmzElwDez7tC33GDs2nZ7rVEaoUKP70=; b=ZCVdySGs3xOfXlzCU1PIPk1nk56bz65owb3SrgDG5aqCtCIf+0T35lM5cdfFdQsVEn tcy6JsfaWcg7vK7mJtPK+hLG9h7IehxE9ZASjkEPh2O1dUje5ph8CxWsmp7GbM+3ZhVQ HzdxOO+sdXhb0+aoV8w/TWCim0x5iC3RJHS9S1hDsjgLY9xf2JyG/SpNAAhoDYjL1CPM yBnjBZ60JtLx96en8ykaqyfB+Eqcz72NeGJgCFsWilroM31h8GYij19XBSuHpUTuZXaY XaJ94B6xRSGuJ8+hRkA1ynijMj6Kxq1PPBuVbvISoWBwjwGTu/JsmHqMOE348b4w6Tyu nJlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ix3C9UIa; 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 qa37-20020a17090786a500b0093af9e3ac1dsi21671141ejc.46.2023.03.28.06.43.16; Tue, 28 Mar 2023 06:43:41 -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=ix3C9UIa; 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 S233200AbjC1NaS (ORCPT + 99 others); Tue, 28 Mar 2023 09:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233167AbjC1N3v (ORCPT ); Tue, 28 Mar 2023 09:29:51 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6523A273; Tue, 28 Mar 2023 06:29:49 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32SDTdXo005670; Tue, 28 Mar 2023 08:29:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680010179; bh=lV+HXvD7QcdmJmzElwDez7tC33GDs2nZ7rVEaoUKP70=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=ix3C9UIaEpSKpamTaQSuPXDSkP30LkpHS2EKK4sBBIBkrlRF3EDUfPb1KbjnT/Xnu WmqXxNyxuf4BgYetmGpsKVf0yRbr5kuUaQXbQ4ZTCdNV/y65PhCsnG3b88z+oKQPe1 4SHa/5cMmD3eNizzECwv+KkONvZcS6cxoUNCbIQI= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32SDTdlk007693 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Mar 2023 08:29:39 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) 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; Tue, 28 Mar 2023 08:29:39 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Tue, 28 Mar 2023 08:29:39 -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 32SDTcSC122376; Tue, 28 Mar 2023 08:29:39 -0500 From: Jai Luthra Date: Tue, 28 Mar 2023 18:59:24 +0530 Subject: [PATCH v8 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v8-6-4408134eb2f3@ti.com> References: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> In-Reply-To: <20230313-mcasp_upstream-v8-0-4408134eb2f3@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski CC: , , , Aradhya Bhatia , Devarsh Thakkar , Jayesh Choudhary , Andrew Davis , Jai Luthra X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3461; i=j-luthra@ti.com; h=from:subject:message-id; bh=GBSLCEn9irDxaEIQSwlX3uqzJq0b8qmTn/M8uqYMMDI=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkIuu6yqEOh1VCnvYA/vYRiDQZ8ZGi9Mkg0/kP5 Mpk2ICscuOJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCLrugAKCRBD3pH5JJpx RR1yD/4/aoKVBEdhxTihzM/wH2D7Br17mIokHUM59qnV8FuNW0npvlHTBkozXmZfe6G7gkSmJUF GK9JNGypYr7czzbORRfy9rk4ugwUTc/6GLnv1oy5hEj6+YQ7i2gDsPStMShgnC/S3QP9qc4UGo/ dYhbMXKq7/WOz9q+MfrxbmSFS9Bz1ue1NDRZzeuLtyhn567M+4Eb/GK2VeGhNbBZCci6Fx9U2t0 VCuST3HXQJElIyEnbWzi6Rk77MnHX2f0sqPFgimhzJ685QANlDuwXUNMyeZOrF7Ql0jEN+M4YbU JnDPvoH3X98SIrDYJf+u9wmDEb9pa8A9lgkNAqVpWvEjjitAT4eZe6Jk9JWkyArPFGeeZdGRIzx z+OpvLW04tI7OtQjm4YEPHz2cUqyFU7ZzM8E7gaKFQCV3N0cGSUW138d2VYn8Ryq4MSFfhf9yvB gHFaP/cJsXi5bEgxK3sKlhzXVWOoW7rSwS3Ze0whEOWoovE51OeMLIHeffGNJRHCuzOPGpwjO0m NGyswSgp/chDo6gwVbKv88PwJN/h1i4/0arXDbx9er8LSr3OV6Bm19f/BzjbzA+fzt+m3nl+lab tJb8MJV6HWgU9J2w3f8AaBc0nh1qyz15s9p/FuRwKcRPgEIOIDtpaocZVnnab6vbIHF85z4NwE6 tf0k/G9e+fvkhsA== 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?1761619237058899682?= X-GMAIL-MSGID: =?utf-8?q?1761619237058899682?= 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>; +};