From patchwork Wed Mar 29 10:30:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp319332vqo; Wed, 29 Mar 2023 03:54:16 -0700 (PDT) X-Google-Smtp-Source: AK7set+xAuwgFlyusDs9c7qUQoTMUcJyClmE3FqcrPVOg7UgqSP08JlIJbYkNX2C1RPJc08nwk3p X-Received: by 2002:a05:6a20:e13:b0:d4:c41c:24e0 with SMTP id ej19-20020a056a200e1300b000d4c41c24e0mr15104316pzb.20.1680087256542; Wed, 29 Mar 2023 03:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680087256; cv=none; d=google.com; s=arc-20160816; b=C+aHZ++9J5ZvUzqSnsOaaSj1KBlSYO1INP52FxYdz7tk3Vq6oFYVcVyNpsHiFz1eb7 naBhpxdub7IbnenLj7E/4+ANBON2u1jCYcI9xOlfAX6oD9mCQ0xTP3Tfl3VTxwot4BVf lh6lQj/yLI/KtoyOeyscB4fsCrgiIEJ/PkVpGggg1xhyLJNEC/YrV30H5fNGdiLLXOFn Dp+sqc1aNVIxklRPUqXUCCG887J8QtdrVlKk+SK/+TwwCxbqKZSrGWO1yYk1ZWkzpx3c 6xzoNa1LNeVpFXTewQZnnC4rzp74q/OoGHoO6gL0AJAqk4O8Qe55MsZaXY31HRttlJPx JEXw== 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=evH6NlSfC6ukDkHq1RYFqCNDtKO4XLbdcB7mFJAgoXY=; b=Dn8Q83NOk7ci08Ru4v98eE7TPGfplZd+LYxiMN3BG6M9VOT3SB3IjhMvCQn92tDu4/ SpnqrcYwzY+DUIsBaXB1Z49AhDPOBpK8Y2mvHofUHzVT7HC9/22eCdj5rrS+j5cwQXAe t/83AMhBGpKu3nVvOU4rGvZx98JtyzJsN+BiNo2qOZQjLMGL20Gk7278TF961NMlx/gf aRkQQ8oNx6IbWgVMS043CUT3OyqJBDOYudu11ZsQJlYYlQxA17ReXtNv13tXqIUDHDHI dVNYK8ytn7gwxLeUD0d+WGvxdm7BrFlsO0vwKf3IgMyBn68o2hdGKADsV+dqMLG4Q//x dptA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LNeGIa6D; 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 c25-20020a6566d9000000b00502fd84427fsi30924197pgw.482.2023.03.29.03.54.04; Wed, 29 Mar 2023 03:54:16 -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=LNeGIa6D; 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 S231588AbjC2Kbz (ORCPT + 99 others); Wed, 29 Mar 2023 06:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231502AbjC2Kbm (ORCPT ); Wed, 29 Mar 2023 06:31:42 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C215C40E4; Wed, 29 Mar 2023 03:31:40 -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 32TAVNFV098558; Wed, 29 Mar 2023 05:31:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680085883; bh=evH6NlSfC6ukDkHq1RYFqCNDtKO4XLbdcB7mFJAgoXY=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=LNeGIa6DCpDOx5hoqr5uBRKqPf3cSwD/Sh/vYnnrWVw8E5pu+cbD3kPMwu34zpdkv +UyC7reF7Z5wm6M4DWvFnJrgJjwzfBb77BiewjQa3wJ8QwEyplgHGFFdYHWb/rmEnw sZfI96wYQdQhw9A/NaGiOujP3N6cbl/MS860bkoU= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32TAVNlf082055 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 05:31:23 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) 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; Wed, 29 Mar 2023 05:31:23 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Wed, 29 Mar 2023 05:31:23 -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 32TAVMjt054052; Wed, 29 Mar 2023 05:31:23 -0500 From: Jai Luthra Date: Wed, 29 Mar 2023 16:00:58 +0530 Subject: [PATCH v9 1/6] arm64: defconfig: Enable audio drivers for TI K3 SoCs MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v9-1-6d937efe4ec4@ti.com> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> In-Reply-To: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@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=A/i+gSYF1tSPGzeqg5nnxVvjq+TjRkwOOWNkdTtifIo=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkJBN0lDMaLFz4ghbIuN2+Qg7hUrXUXd5dn4CxI /r8JOq4rUiJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCQTdAAKCRBD3pH5JJpx RUY+D/9wSf3SEuetdWEN7EvluYe3r0n4fLCDZGarnIA5dcjKtucfAIemFo7h4DU7KjpWH4GPQ/q G3Q75j74pxH7tuIViU5330n1pV475M2iHWCalsKk5mehsadY1n5gGIxC9NVgDVNFOb5bqJOs2hG rVYv7IrDvTApyQZsJFrhPH1xvpeVLaBaya5T7AEwcCoJarjvwj7hUPssC62fSRuQOH07PggJBQB tD6AfBi4z/c7X6+bXocuKEwwr2o6aVsY+95j8kX+eyCMSP35t9ynl9SkfNuQRcpYDBGbr63zhEt /XzKj5VZk+BTugLwQdG7213pEVNZF7u5onbb4nhwIYkc4YgqwfYPH12sikSHRMOSr0iSKzV82NB 9igDjqI8sj3hKX/pKNzMk1rLTodNF1hvLIv0MeaDTqtS335Y3eVn+2i87VpEa96tTOzPRdCBgSV xFZslPNTUu4FlQjIXs7Q6TBYwtqunrfyKFxZRr5kyagqP1sGalsHGh4k+TT43b18YsLq2d2A78W K0tca3picvwfsH/kSRc13ieN688CUh1HcvMyFzgwQ3j2Kk2fc/5nEWaNx6Lxx22nJ1Pa133glYH jOOxx6Uxy5jiGM0GSHSXbOXAXwPzXfBmRfPxL2c+HQSIaWyAdXXZjzKG3aHCOeIUkeKvf6WGJ5Y UzPedx4zheK1l3g== 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?1761699175002093057?= X-GMAIL-MSGID: =?utf-8?q?1761699175002093057?= 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 ca3569261713..aa36792b6822 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -904,6 +904,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 Wed Mar 29 10:30:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp318970vqo; Wed, 29 Mar 2023 03:53:22 -0700 (PDT) X-Google-Smtp-Source: AKy350akaZnEJPK0lkNOfrJwh5mVcwqnf4QT6b6cvtYBsQCOuQRyLGptRYocLVbN7ZXn1XyOwv72 X-Received: by 2002:a17:90b:3b49:b0:237:62f7:3106 with SMTP id ot9-20020a17090b3b4900b0023762f73106mr18807584pjb.17.1680087201963; Wed, 29 Mar 2023 03:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680087201; cv=none; d=google.com; s=arc-20160816; b=IxVSRlYVi8E3lFcmZZdz71MS5gHq1W+nlqjcigrNC+Qok+08I6Bku5jaYiDRBHZP4n Qp59uaq6qn3bpDLKZtB3+7jn8nSMV1WzL9vMJskGU3J9wBBK4sXmsRBguVXUuSMfcP5M zeGBenqgO07P8pAqHj15tLcW6IVYZkiXPrPWoP7FW9B45uBJL3wHGPIhPFDhi+J1sdc0 XTLBO5htBG9vhbZuTnWECFLYrNOGCy0FhFSwQmNcLipYtqZnhUYM3CboeTogjh5T5OWd s58SnHvF5Kv951AMt6cd3VIZ54fAdrUqdwD8TS+CK4AiaICQDBhopBuC8QeH5SNjNFrb OvAA== 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=WJ2wsqeNRDn7iqHcb5A2daGO8OrX2mauJfKyKIHcakXRjpBarZofR5eLFU0NES2qlo YVcExOu1C2XNRjF9fXVtWugPr/68r9jFyi3EdNH1D2+2Sdnsih2lIZp+X/iZHDlJlCIx UWf24TbkW7STrmBGJupK+8hl84DUB0e+yyS1hGRN1nS1dp5nSnd86brJsF1DURcFVg2E 5fRfPOlxbh5AWTXdKJv9+iZQRxWeyWBJUm2OVBzh7AKTbYXE1UHsYIleTgM/jsRmzSbv ICZ6X0B9/YTYbZ/j3VVnZcqwtgeapXkd7CRePJqbwHSfUKA1/VwKDjrHJjgdvBO0iGIt 75PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="P/STIhcp"; 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 t2-20020a17090aba8200b0022c5a147e9fsi1252764pjr.115.2023.03.29.03.53.09; Wed, 29 Mar 2023 03:53: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="P/STIhcp"; 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 S231259AbjC2Kbg (ORCPT + 99 others); Wed, 29 Mar 2023 06:31:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjC2Kbe (ORCPT ); Wed, 29 Mar 2023 06:31:34 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E76B31FD3; Wed, 29 Mar 2023 03:31: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 32TAVPaD025103; Wed, 29 Mar 2023 05:31:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680085885; bh=rWvpNNJ+up2PcEOCe8VmeF+rx0Zow6iaE7KoOS+Bk1g=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=P/STIhcpY0jfl8vkegNPXIvM23DUfAn2ya+KDI5q1B5ApuG/j1zypr+K3XrAr4oQb yyw9Wy9HDKCBSFbpoBkNQqwqaTNMkhfLBVaFSPncLOFZ4LQNJjiCZYdaFTYaLUPFUv rOJ6c1ko+K6UTaqjaNg1z2KYUOPp/81+CRGVC9I8= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32TAVPfd091299 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 05:31:25 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 29 Mar 2023 05:31:24 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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; Wed, 29 Mar 2023 05:31:24 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32TAVOnh017588; Wed, 29 Mar 2023 05:31:24 -0500 From: Jai Luthra Date: Wed, 29 Mar 2023 16:00:59 +0530 Subject: [PATCH v9 2/6] arm64: dts: ti: k3-am62-main: Add McASP nodes MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v9-2-6d937efe4ec4@ti.com> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> In-Reply-To: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@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/ZANAwAIAUPekfkkmnFFAcsmYgBkJBN1kjuCOtZrKHK2zbzhGOFDJzTrFTq6HAEz3 5iI+rkWtJSJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCQTdQAKCRBD3pH5JJpx RSsdD/wIQTiHOOHIbfPiLFhMUECamU44L21ta2ctu0mlNJMQdTcNGhzXQXW1iOjDJPlMljjBN0W BqTDMslU44w9I+opc3oSS8/ySU6aa8prj8h4BKVCUjXB287PSsXneMewg6APNYRGZjSu+CU+SUp KC+OTRXyv7zdxRx6LQTOqxQzp9p8FJ/lywKKwJB75LLYa06cbtFzvRxllmERTVfz+RJjhxPHOXd 0PmPjRXaEDrcKwn6zSRwY4+cGaEDi12sA93kJIiqKboC33ed6m2CISKsUyRmH3tZIvW7gvyAcrT tdDhG+aHITzHSdoU3XkHcMTI1AC6PikcXLSGCLMmPWFqSIVtn8lvcecULCfR/MX9Q9KDssCBv1p P7GbvdMShmzjY+r3fw71d1ZHoG0IJHGPuw0NNdaW5PKZKZtkqD5PRPWU3KcYNFcRErv14WEl2cq T/t0mdhzHrtD0ncTLNzPCe+ggfsIGJ0YwjOqL9HkHsAjOIcnl0d7Gkkd1tCn+T+yfm2Ki5JkccH B/DbyrH/XITucfMmWT1h0sWS2cs9V+t04NECShQdbV4HsAbuZFa+MzJNqj00nDqF3xQqYIUqn+6 vKBSVkpf+cTGfQsY/6K25h9lstDV8UD+nNBkHx9YmoV4dTOKpukNkq0BIgh5WCZLNnXyOp/RRYs 1V7z0we61YT0kjg== 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?1761699118117095523?= X-GMAIL-MSGID: =?utf-8?q?1761699118117095523?= 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 Wed Mar 29 10:31:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76520 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp320504vqo; Wed, 29 Mar 2023 03:57:12 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsxfpM65DE5TS8F/K022MwjaPYGUB8MoxU1WH4wN/hJaHPE4IudkSWIWGm2yIBFJPFYavS X-Received: by 2002:a05:6a00:88:b0:625:ceff:14ba with SMTP id c8-20020a056a00008800b00625ceff14bamr18058491pfj.25.1680087431845; Wed, 29 Mar 2023 03:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680087431; cv=none; d=google.com; s=arc-20160816; b=wGvdel5XmuKGRZT/pHSayoGOTPhO3SPSP3Y183uLifR4kiUyv/oAJ6SSiLEAV6a72p W4xKe/lDAD0lYDS6kTbA02QJcA4gAnLmPPJeWQ6Wn2aCpsPLho9n7mzn7s13uFtNS1OD ChWCv5Vvj8/sHgPTUW/z+u28ImK8zmfDtkV4zJphvf2afglgjDbT3p8uXMH16ygknYrH laU7yz2wMh/3AQBLfFua5yA6FsGZKF42mz32hkJR96cPheprgHuvl5DGMbr482GXLbQh IHhI2VOikaPU8+cAqm5UhPIRaaYfhVFCEVCqfEbZvZulFUWzF2j9k0OC57oFJWlapa+B 4S5g== 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=3S3tU/w76kbNj52BhpgOvsYc6Xh0PhtEwqIxgzS86gU=; b=a+VrgqP90Sfx7iagGV1xZIaEfKCO4L8kOkQDMkuxAy4Xvoe07NCWOgOLUx2dobeGtq Inqkdm+Gbabu9bpb8zsn1TRRjkMlKQjBw4GYvi5mVGbu5vJRWIiTpQ7jHypmENPZLGXU rOJv8FME4OS2ZN8PhhjN3HlZt0opuqC+tecbioxdcNfWBbPMNHwKTOHA7zWggvBRrqQo 9XZEGoxCIsJyAsIpSSOlWUZnHbWehcSYvBfdjJ9RaGNaRjoX+2VT0+oq3oZq+zrwkmXj xtYNwSxowgDmAibRTDHU5fiwaco4q3yn6F3hNptBoRSmtARkn2doK8izH+s4A1RRnAIa npIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hjTi1NQa; 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 w8-20020a655348000000b004fab9a24dddsi31136447pgr.732.2023.03.29.03.56.59; Wed, 29 Mar 2023 03:57:11 -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=hjTi1NQa; 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 S231580AbjC2KcC (ORCPT + 99 others); Wed, 29 Mar 2023 06:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbjC2Kby (ORCPT ); Wed, 29 Mar 2023 06:31:54 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CB3A421E; Wed, 29 Mar 2023 03:31:42 -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 32TAVQlg098573; Wed, 29 Mar 2023 05:31:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680085886; bh=3S3tU/w76kbNj52BhpgOvsYc6Xh0PhtEwqIxgzS86gU=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=hjTi1NQaalKR6Voig8xSZcr69XvnXUCwBYHCiKs4c6zoRoeKhZ17G/KfIj9PTrnVl HpwAMKpXez/HbINFqIOkHGJpKcjCAm1+zwWCf4RnBvcyxje8ni3G+Fxznqf3MlsYtz KcpUeLy6mtLIHYCbrv/AkFErHOmotOUU8dC3K66A= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32TAVQBK082093 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 05:31:26 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) 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; Wed, 29 Mar 2023 05:31:26 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Wed, 29 Mar 2023 05:31:26 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32TAVPS7017602; Wed, 29 Mar 2023 05:31:26 -0500 From: Jai Luthra Date: Wed, 29 Mar 2023 16:01:00 +0530 Subject: [PATCH v9 3/6] arm64: dts: ti: k3-am625-sk: Enable audio on AM62 SK MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v9-3-6d937efe4ec4@ti.com> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> In-Reply-To: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@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=4614; i=j-luthra@ti.com; h=from:subject:message-id; bh=snywC+u2eW5l7GHkT85YHwhh0I6PyjNVV1tmLjqUAx8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkJBN2SPYJshfhlZNh3JhaXRHv2DTz8XPESTdaw TBMmmJjnyGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCQTdgAKCRBD3pH5JJpx RfiLD/9JHUc80cbZvJEmqw/owuNa8UMwK0GicZfDsVyKa0ReKBQFVLZ9gXRFeKbjEXF9pflqxcu lvFawON0q3YuJNVXtC8dn/BLGcE0UKmn2jYfJysliUB8rehc/S9PbpF6SaUW1owCp7lZRMP8lPz 6tQLtsoodeF+6iLYdYYUA0GGkrbIaG1cP2ddWWHh6s4IIq9fzlQqGdsrbHDM0RZr0Nr8Z3H5jXD D0P0D4QI+8KPgGH+acQ6agRWP4Qzp5sRTtDGonUPSwSzDeWgiP1hb/wqQTlJ0cri0tOnZ16EX9/ k2MZcnQaFz5IYLHwmt8jfrMCCzPf8mnzYUuGM962jp/MX1nh16Wkhlf7vStJrJ8EcDkNuJnlpMs l2iLuJJhcWeE3ZkNPywG4CAQ5TT7ilAhfS/PtE9W/6dU66bnnT3mU/XnSnq86Wv9DgOkF+fls33 JCwwjLIIdM1XRMvyyPH5SXOKRfXoWoAas7SIr6UBtRcmoSOaiUMvcUhFer4tq49XWWvmQhI5x4c slp8fTgm73tcEkUGTEAaMmvCl9K2yam5dQojyFoyinaB6yUEDFBeKfWxcjM/TOelXdE8KclCdn5 igwK/mz7+YJgm2oc3ytvCTcyN3XClfiZscTjIgLv0p5AQ5RDU8Fou070BNz8kbE4HrIy6Osjw0q W7T48/dscJuo3/w== 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?1761699358785598357?= X-GMAIL-MSGID: =?utf-8?q?1761699358785598357?= 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 | 4 ++ arch/arm64/boot/dts/ti/k3-am625-sk.dts | 15 +++++ arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 76 ++++++++++++++++++++++++++ 3 files changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts index b2ca19e3042e..4b94f7a86316 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts @@ -225,3 +225,7 @@ ldo4_reg: ldo4 { }; }; }; + +&tlv320aic3106 { + DVDD-supply = <&buck2_reg>; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts index cdc0858dd1b2..2a1adda9bff6 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts @@ -87,6 +87,17 @@ vdd_sd_dv: regulator-4 { states = <1800000 0x0>, <3300000 0x1>; }; + + vcc_1v8: regulator-5 { + /* output of TPS6282518DMQ */ + compatible = "regulator-fixed"; + regulator-name = "vcc_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_3v3_sys>; + regulator-always-on; + regulator-boot-on; + }; }; &main_pmx0 { @@ -256,3 +267,7 @@ partition@3fc0000 { }; }; }; + +&tlv320aic3106 { + DVDD-supply = <&vcc_1v8>; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi index 54318a07d50c..e197ea5fa448 100644 --- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi @@ -81,6 +81,41 @@ led-0 { default-state = "off"; }; }; + + tlv320_mclk: clk-0 { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <12288000>; + }; + + codec_audio: sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "AM62x-SKEVM"; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line In", + "Microphone", "Microphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLOUT", + "Headphone Jack", "HPROUT", + "LINE1L", "Line In", + "LINE1R", "Line In", + "MIC3R", "Microphone Jack", + "Microphone Jack", "Mic Bias"; + simple-audio-card,format = "dsp_b"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + simple-audio-card,bitclock-inversion; + + simple-audio-card,cpu { + sound-dai = <&mcasp1>; + }; + + sound_master: simple-audio-card,codec { + sound-dai = <&tlv320aic3106>; + clocks = <&tlv320_mclk>; + }; + }; }; &main_pmx0 { @@ -175,6 +210,15 @@ main_usb1_pins_default: main-usb1-pins-default { AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18/E16) USB1_DRVVBUS */ >; }; + + main_mcasp1_pins_default: main-mcasp1-pins-default { + pinctrl-single,pins = < + AM62X_IOPAD(0x090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */ + AM62X_IOPAD(0x098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */ + AM62X_IOPAD(0x08c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */ + AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */ + >; + }; }; &wkup_uart0 { @@ -205,6 +249,18 @@ &main_i2c1 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c1_pins_default>; clock-frequency = <400000>; + + tlv320aic3106: audio-codec@1b { + #sound-dai-cells = <0>; + compatible = "ti,tlv320aic3106"; + reg = <0x1b>; + ai3x-micbias-vg = <1>; /* 2.0V */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + }; }; &sdhci0 { @@ -272,3 +328,23 @@ &usb1 { pinctrl-names = "default"; pinctrl-0 = <&main_usb1_pins_default>; }; + +&mcasp1 { + status = "okay"; + #sound-dai-cells = <0>; + + pinctrl-names = "default"; + pinctrl-0 = <&main_mcasp1_pins_default>; + + op-mode = <0>; /* MCASP_IIS_MODE */ + tdm-slots = <2>; + + serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ + 1 0 2 0 + 0 0 0 0 + 0 0 0 0 + 0 0 0 0 + >; + tx-num-evt = <32>; + rx-num-evt = <32>; +}; From patchwork Wed Mar 29 10:31:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76514 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp313020vqo; Wed, 29 Mar 2023 03:40:08 -0700 (PDT) X-Google-Smtp-Source: AKy350aRFHkHeuBPgn1qgh/cPUzfogEXTdibmC/mvQOmXxweNNBzUctupdMmBPR/+RPkKUOirdHS X-Received: by 2002:a05:6402:554:b0:501:d43e:d1e5 with SMTP id i20-20020a056402055400b00501d43ed1e5mr19244634edx.2.1680086408700; Wed, 29 Mar 2023 03:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680086408; cv=none; d=google.com; s=arc-20160816; b=K7LuiGx98wvZ/jk4qnwBJFrAVgLoMe/uBBsvWS2WaUfGsLtncG8HSfi/m4DXvqtCjk iPR5kYyFurrQd5sAThRwkasok9jGaFMQ7nYxYBXlAUwvPzsTQLh5Z9e85y2nbYjsnIxT eKBeG9Ei6Cb+9Iptd1PrdplgcxvCOn1i1x7muyIO7GAyLqlNL2UhOu0j9Nr26LXcdWI8 cfzmxaWrnCFBV8xHbz6h5EVaFKK6Im9wcYvoD8eQR4UM0JzaKAyMD8FFpu//urXgHU94 /+OgVOUxLCfvm6zZqD3JTwCH9PSItL1QdIWHKwxJjzTjIk3lW9LnwoSw5XAvATwWrdif nNjw== 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=WgccvDFFEacwnDagAanF5aPo/N4fqk1LpOrjJ7vNoIBjc7FXRgVEYHAhTxc4EMgEFM 3Gmvx4KSc9gL8NHNg0vbO3Nm+PZco8ZjN5R4oufO9BxFLrYAL1odonpMjfEIA4EPfMkf 4rnRN9kM39w+6Vtnj5ysJEHs+RkX2rcDcO0f/bO/NpfklNYHyS1PPuLgzrdwuRAYtzEP 8LRNYWC6Vqsyebh0G1xQQLaHgEHpak2l/al7CuyivzX8aQTvcu7dO4SvaEqLz7v+V2D4 XRmygq64/zDdlkuF7g/VrUSJPC/lsngS3BC5aUB7ThgcMpYehA8A9gB8CAn2iRjTpuNr Iovw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tKajyBBd; 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 f7-20020a056402160700b005020d1700a6si18454653edv.8.2023.03.29.03.39.45; Wed, 29 Mar 2023 03:40:08 -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=tKajyBBd; 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 S231569AbjC2Kbn (ORCPT + 99 others); Wed, 29 Mar 2023 06:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjC2Kbh (ORCPT ); Wed, 29 Mar 2023 06:31:37 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C9031BFC; Wed, 29 Mar 2023 03:31:36 -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 32TAVSOH025109; Wed, 29 Mar 2023 05:31:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680085888; bh=kVU3fxPuN+E3YCIbaYl85jZLwsmV6nxyeKf/SyfMpTk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=tKajyBBd+056wlQu6Mas+DSuJQe0C5y3OvbIfrA6Gz02bWhgr3b9w/8YDRLeVAvHF eIW4c6seQS9sgD3gu7Uk3E/AggfZLTbPgagCdsjnxkrTVXEn7vwTtgX8+rdIzhX+BA mVI1oPGmS5OSlbn8JynUu4b+da8hHTVegWwjzweo= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32TAVSc2082106 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 05:31:28 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) 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; Wed, 29 Mar 2023 05:31:27 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Wed, 29 Mar 2023 05:31:27 -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 32TAVRVd062172; Wed, 29 Mar 2023 05:31:27 -0500 From: Jai Luthra Date: Wed, 29 Mar 2023 16:01:01 +0530 Subject: [PATCH v9 4/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v9-4-6d937efe4ec4@ti.com> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> In-Reply-To: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@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/ZANAwAIAUPekfkkmnFFAcsmYgBkJBN3HHisb3XrmaCR0nOX2QtAFJhbUQRqrD7cu d6iTbJtmRWJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCQTdwAKCRBD3pH5JJpx RRRSEACCkd72n9Pahf3V8LjZbxBlt+h7G31S/UQQnEXTi33QE7kRSGs9dlzY5Yp2UySArtysuz8 ic62ldrCSqZp2Y7/M4C9EVkxDD0GIcnxzqN+EKiFSHioTZ1YVaakFVzdpdk0Eddrg6ncNqIiFRD 7iUUygfWF5PZN3Ow7xld1kcA9u/rH8kjIcsJOCVXN/8h7tbBNj9G9iXncutMg0ZUZ9QhhtKnz5f p/Efb7o+NBwoYgxyTlH8GKU69LxWNyFFjZgp1nUki9ntoydHdT+TWTEm6hx/m2x4GJYzYmEpqGF 3D6ubHB0kaNiaedbvAwis4Nwpqm9OkOie1en40u/rzIc5YsrOsKp1+vw9vqL52Aky3QvyIsdph8 xy5oflbaqMVeQqiZ0sh0eL5hQE0hZElELpPT2nYdUjOA5ZHNTW+Buhzr362g1zhULvwtznI6AJw P+9Hb3bAPdci2yZnrbe8td0UwuLV4Hs2HAPQYxtGbCEJvpex9Mdpjr+A6YjYon+aPiiVGiYOaEC E1JA8Pr5aYnribfeKEVgvPHVd4UKkUtmKl0u7ti7nQ6yJp+Ft6bJDd5mLEQN02IZXcemBNczpAx yWe4rcOy2lUBcvzcPCDJJtl9Xu4yKTCriHYEV/xSqGRsNXHT6FItUwR3EWkBXja6lFdXt1ZeZoB 84zZhS2lEYT8NuQ== 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?1761698285599184567?= X-GMAIL-MSGID: =?utf-8?q?1761698285599184567?= 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 Wed Mar 29 10:31:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76521 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp321419vqo; Wed, 29 Mar 2023 03:59:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bTI1cQk8BEUT940HzisUKP3Hqek/6bdhDM1Km7PSy+HQuL+dblWu7xVJu5OuVPPriemjAq X-Received: by 2002:a17:902:c44a:b0:19e:6c02:801c with SMTP id m10-20020a170902c44a00b0019e6c02801cmr13885546plm.14.1680087554541; Wed, 29 Mar 2023 03:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680087554; cv=none; d=google.com; s=arc-20160816; b=xL0u5kKHo3oBlCDIk+udrzJGExJxJMY0+af6wx+Y5CU0avSDPjOHnRa4Vj+A6mONNC 3/rQ0Bcamfka884iTgncOmL5IrWFfoRKDqGeqpQ5P4NTSPGtkMD+LAo40PFcmT+NH0CI ggfikfqnetfxEdMoDmQRUlMhDrYUp2B0KeMqqhsYnlQzdstHQn41BCQSXcD638YTZEvo qdE+kJTvETfJ3+4mKoibTggl1gmNllxHA2g2pvjeMFnvMD7h39PraVht1DNWACCJKy5q /eLEszLB8Z5eCrSAQMxU8jLiLpmdf+bGnPblw1bUvifI936DMkW4s5h98asN+YajuuSD JZnA== 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=ISliPc7kT68W+HS7ov4T5ap8Y1vSsu9X+YmT6zJptmwZ8e09Uwrvb2sdq7Kn/y6hfa mkpC0HJrlpN4/k0c021gcGYKA0P6I3bMcvBZlIL7tGn85fj/+H0epzcSShiqWSIcKZiL on27Df8m4TvxnMyDiOUORu852bMPj19p41qBWbrKayNoxPVhvBvclu9Vg8uNqkhWzNPV HusuEWLqTlRqbedhVU1+OCpNzkv7oYmoi+8RmYq0lwvSzokFsXuHNFe9HqxRBpArzmc5 u04YzewvmQGa3CpyFuOK6sJ88YHpR2e3B1mKxRDt78L53dG6lzdADA4l4kTbK58VvrEW hhMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yE6TyrKu; 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 l70-20020a639149000000b0050bebbffdc6si32229079pge.586.2023.03.29.03.59.01; Wed, 29 Mar 2023 03:59:14 -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=yE6TyrKu; 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 S231574AbjC2Kbr (ORCPT + 99 others); Wed, 29 Mar 2023 06:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbjC2Kbk (ORCPT ); Wed, 29 Mar 2023 06:31:40 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 935DF4697; Wed, 29 Mar 2023 03:31:38 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32TAVTBW053326; Wed, 29 Mar 2023 05:31:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680085889; bh=iex5qyliMq2Kt/A4FkjflgasDUlNCyGEwIwcs3aI2A0=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=yE6TyrKuwEwtY3v/tT+euE1VmgWyv/wPAXWY9iyOTcPGzQcAlB/nvOuE7Na6Xp1DS rS6FpceQ0T/exBq24wnJPPER2NihKvoUTzADbntmWZFgPyxMgvSGPRo3BSFsdVDFvy iUg1qO7XQs1toPjfjRpdpcxbXr/QiDovwTxtCtTI= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32TAVTfM050989 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 05:31:29 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) 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; Wed, 29 Mar 2023 05:31:29 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.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; Wed, 29 Mar 2023 05:31:29 -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 32TAVSgl020131; Wed, 29 Mar 2023 05:31:29 -0500 From: Jai Luthra Date: Wed, 29 Mar 2023 16:01:02 +0530 Subject: [PATCH v9 5/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v9-5-6d937efe4ec4@ti.com> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> In-Reply-To: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@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/ZANAwAIAUPekfkkmnFFAcsmYgBkJBN486rSmIyYtSoC4+gvR4Eb+E3cGi8Z15A1C OKjaxD7Gl2JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCQTeAAKCRBD3pH5JJpx RY9KEACxspX2GR8tmdwDDZEIzfFkxtNsqztb5vEWHZxgYWfT4ZDTye0S9X+UFHweiFJfujQQ6JI DyG6AYuaReuaFoLEs58BU3VSUVJM1qTwlV1kdVnS0FjPGYBAjkHZmabXxaUPlputXw1qvpV5rMs KbnFzXYJ43WmdVye6LI/h4QxoWpT6MolnF/q4yNFgFnTIqMK6jscJh3GSjTaSU0iRhRU6v650vl j9xKEQs0X+yUHLl7zW7ejFvFPRX37KO+vkcWYEbqZ07qPyOlqcm3AVADdDU2Zdghv5uA15+mN/A EoXNpFVgDL7CteffNF7cCIVMl6GcIz8ctIQzAzn9SJPRF6+u6Jd2KRyZ9myeEwYMEu/Jq+yYp/4 CqV5tVJzbL/EcLT149HrvJn36iWK7G7qUbgJEvJX2B37g3RTTGmG+0u31Co3uGbY4wupR09IUoG 5vKKgGY2mr46Ddte039s38MBwK3vcCQGLyXItY6dQ5HOzAlNMhRGm0s7x8WTcRSO40Pi8NJtynJ hn7Q0GRljUUnwzhVMN6DvOeu6JfW1K44xc9a3v2aE5/wc8AinQ31RitQDsPVJ5QBCr8MgyyscmA 1uVVK4icPXZRkSexqovdLUpH1M4e+9yyh9s3l7++jHNzNwHHvZ13L5SSUnzb40g6hkoH7ZnicDw 4EkL9evfRQ4JxsA== 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?1761699487419966725?= X-GMAIL-MSGID: =?utf-8?q?1761699487419966725?= 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 Wed Mar 29 10:31:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 76516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp318894vqo; Wed, 29 Mar 2023 03:53:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bNwobWvTf91GMO1TG9bOL32vySAQxmCQBFgia+6TVkeY3nhlDE1lfx2ZkIqw3lAJEoqu30 X-Received: by 2002:aa7:991e:0:b0:625:d9ec:51c8 with SMTP id z30-20020aa7991e000000b00625d9ec51c8mr17734056pff.22.1680087189248; Wed, 29 Mar 2023 03:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680087189; cv=none; d=google.com; s=arc-20160816; b=hc+K4GgQ+qPyGOjEwzI1DLyXT50dcKpmj+2giXPKo+lPFDTf7slWnZaPKPZ6AwJAuf +UHaTSONTty866iP9i4tEFZ/kINAt9yvaXwXyNEWKy/u6yZhUxVDG4ldJwOUI/6MmIOV pgI8vQf0h1JBphJJmu4rBy64OOvKzbe30pG+HvJ0KnqBGF/GV+z+pYK0MCJWriPpNTUj 28CsE55Ub05v7hyzjQs3DOsMDHs/pYFPKDH82tmS4LuVKNtmiplNDANNU3HiNc1FhsZj 6cwf6ml5A1+/yGIiPe4lhpyAsFqZH2jqghkbCGaWwV2cQMWr2Z70BN0jtfLZ8dwvGHtY 7zJA== 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=xJyO09vdUXP1mfRzMN50KsGLlcctyXqcld/dm8vgVBliTgJ/g7/x/+boi+OnxYGqQ8 1icgKrJcRDbb55wPt05O72iMgI9kVSqKeF+s64zKuJvcK90Ob7R4KbYCqrarG+sTpeuL QyKAIKTQj9iObpEzDJIBe2OFr1ytv4DMmZihSg6Z2+pu7QhqcDu6047ptya7q/JYMwYl PXGR3CiAdvuqHKw8qhQWGcdwuJXDKRC3TFOOmLptqdkn23NWtcQaeIS97/0rnkHl00b7 u8+Dr8YLQfzeuJIiLSS8CaJRwKcGKZ9SFiGgaZ4DD9wQlS1xij8wGvtpQzwNSGqX7SRB fJQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=txyvRP2L; 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 j11-20020a63ec0b000000b0050bd79d02b5si15860749pgh.113.2023.03.29.03.52.55; Wed, 29 Mar 2023 03:53: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=txyvRP2L; 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 S230046AbjC2Kb7 (ORCPT + 99 others); Wed, 29 Mar 2023 06:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231421AbjC2Kby (ORCPT ); Wed, 29 Mar 2023 06:31:54 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569C246B3; Wed, 29 Mar 2023 03:31:42 -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 32TAVVvN098585; Wed, 29 Mar 2023 05:31:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680085891; bh=lV+HXvD7QcdmJmzElwDez7tC33GDs2nZ7rVEaoUKP70=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=txyvRP2Lsov/pxFOBqyupEWnwbHES7DfwhmSApO/GBd3Ns9ng7AVATZcGWpEeV/TH D1Ad1V4gOSpgIzdrEbf5xMN2XVwm9rQR8/faUrgi/UlDq2vPNkdkScQ5tjG4YFYpTO X57DCqq7qKEyKJlxuTLiH/hvxV2Ngl+Ff8Fyb2iE= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32TAVVsN082151 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Mar 2023 05:31:31 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) 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; Wed, 29 Mar 2023 05:31:30 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Wed, 29 Mar 2023 05:31:30 -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 32TAVUlX054206; Wed, 29 Mar 2023 05:31:30 -0500 From: Jai Luthra Date: Wed, 29 Mar 2023 16:01:03 +0530 Subject: [PATCH v9 6/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A MIME-Version: 1.0 Message-ID: <20230313-mcasp_upstream-v9-6-6d937efe4ec4@ti.com> References: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@ti.com> In-Reply-To: <20230313-mcasp_upstream-v9-0-6d937efe4ec4@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/ZANAwAIAUPekfkkmnFFAcsmYgBkJBN51iZYomreIyh8x1rFsO0X7NpQeh33ZYLap 6Rk63VJ0bmJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZCQTeQAKCRBD3pH5JJpx RfBeD/9VsIfc9VA2vXJwaVfIlNnxo9XQFQPyRE3iKwG7rCffmhm+pYk+fz3rZTwSZFOX3tJoKHE 4OjTTg7IVExtrxa4Pu9k2H+8RxoWlh6Elgl3yWfVT+Jg7sxuOaaiJaSN8pmERPF3XkIRGyefgKs LGga8vWucKDUhwfzAnWqj1mSNQWYwjS0C/ro8e6Newn00GDQzxUpBUtXAayJGwqm0mg3rpv4kI0 +EOe1Xkt0/0m7CAIlrienqtmbnDXixjwuQqVpVkoA75hgHJwsvLYnJQPW9IPJgLRp4BwKYoHS/U LPN9UmnwAILOMy6JoQyZ3+wL0X6IYcchOqQRbYkqRmIPCnR4nOIHwRPQjkKknRj1D5u3O7kKg2d DXr+X8xdeHKfWjut5gCOx7U2ZAAlS/YlfvrIGu50CzaQNlWD4FElgojC0lDOGQGN+XGDYUPt2i9 7VdY84hxHbabrUPIEy9yBH7REryYdqnAiwhCSdqtaFvTJpFvmeMMjyhZrtnmzmqRP63s3Wk+EvW pQieDgmsNGjbI90gQ5+SkDAOAGVHA63+rdH+cUaJKn9N6ZGUDo/OGtFzTG/CFzSGme4TAA8U2Uu rGxscqkvXnE5GQCTmpw+A/qHWhlH4a6UyoItTEPc7jv1DPxsiVyaqiUAaQseIs/PirqV4uVZ5F7 9fPWJoeb6OJ2ZXA== 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?1761699104632713384?= X-GMAIL-MSGID: =?utf-8?q?1761699104632713384?= 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>; +};