From patchwork Mon Jul 31 12:44:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 128730 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2042684vqg; Mon, 31 Jul 2023 07:13:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+8zU9Q+dK8wPP5hcxLIFjX0T9kw0mRdVruYV1fuMXTVw4J9cAq4YnfR6Ft7IOyNTe1XKH X-Received: by 2002:a17:906:8a77:b0:993:d7cf:f58 with SMTP id hy23-20020a1709068a7700b00993d7cf0f58mr7364671ejc.2.1690812786040; Mon, 31 Jul 2023 07:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690812786; cv=none; d=google.com; s=arc-20160816; b=xOawjJJzyvWz8rfVEfSWxXepAOrFQNujc1iGlxHLqDVeVk92zsmLdj3M/Tetw6txwt wtWfuizspQ4q9L9qNVaeo2kBrGcbG1Fsiy8fTqcOklbbLZPS1b2W8Svrvv34npIERT7Z ynAj5BQcHpG9byDTvBV4DUYDhtIa0q1BqYKfK/ez2OKt76KlGL8kAUPgyw4qtNMulwDc hWl3MOiPmZhsbFf3lC1qHBeY9kjLok6vsiOVyKPlufBFmK3E2osAuM63IqhEHGARXXsP UNjjfpQa7hIkdk7v98ZPJ65yyehU7dHLS+0rcky1CXYs6lJpLa2JrLZJnerX2lLMkGl0 Zbew== 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=rFKxR4kiZsVXfWxPWYirF1uEHZrvGpRg31+yNWQjANs=; fh=wytEBRQSvsK3MbMJ7OHl/+WqtzW/MaQ8tR0AteMVY9o=; b=tJHU/KbizhG4xAvH1ByjHmCAcYIT7eorLYkB+k5Ff/mRXGjE2l2VRv6Li5xQdiuopa yazBZQC3DdQZkl7VuPH7bP/re3qSzCQqb2Dg34kRy5tEYVm/6iFaADw772VXob0LcPZC CDsnNfB3mb5xae8gR1OcWzUtIyYkWlf4OeQHzAKLzR5yGZRLEQap0pa0k8Fe4AMAoUDw oHw2h8gBqS5xGvO68scjdIy3bzbSuP4WTnT6G4DoDDMnuMC6N32aY/w+nxpkeO8kOcSI Z3ZqUlYY0Ruey+Apohod99D/1K1CsbXWYoFjNkHmJlBNAtKcUPGpFF2LpbWkgHtcaJw1 Te4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X1dcp8UD; 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 y17-20020a170906915100b0099a1f78de48si7075873ejw.638.2023.07.31.07.12.39; Mon, 31 Jul 2023 07:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=X1dcp8UD; 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 S232897AbjGaMp4 (ORCPT + 99 others); Mon, 31 Jul 2023 08:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232865AbjGaMpf (ORCPT ); Mon, 31 Jul 2023 08:45:35 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BB0B10DF; Mon, 31 Jul 2023 05:45:26 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36VCjEOi052726; Mon, 31 Jul 2023 07:45:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690807514; bh=rFKxR4kiZsVXfWxPWYirF1uEHZrvGpRg31+yNWQjANs=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=X1dcp8UDxNsGKjzClZhqmh+B261cSGrdmjixojeLWu6PNJO6BL+e+ydi/3m3Q6PZx Hwb1CmtYOP6Xjb8fS/5wMaALO341+m0D3fQTVyAqUJmmGD/ER2RLYBudarL23zQ8xB UKqvmXGUmMAG+W/qvvhMA/t1z0UC22VPkyjxPGW4= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36VCjEx8021140 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 07:45:14 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 31 Jul 2023 07:45:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 31 Jul 2023 07:45:14 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36VCjDPL053737; Mon, 31 Jul 2023 07:45:13 -0500 From: Jai Luthra Date: Mon, 31 Jul 2023 18:14:38 +0530 Subject: [PATCH 1/5] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20230731-mcasp_am62a-v1-1-8bd137ffa8f1@ti.com> References: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> In-Reply-To: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , Jai Luthra , Jayesh Choudhary X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2667; i=j-luthra@ti.com; h=from:subject:message-id; bh=OkQTiDuqGhIce7iYRKp2/z8wgqCBU984hPUcGGuIhW8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx6zW9GI6KUCKNKPhUfTQAQDV/qhscucteMhkD 3pWSofqh9iJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMes1gAKCRBD3pH5JJpx RebbD/sE9tnA1zQXexQPjH7L7J6YUk/37eZVlVgiioxUEWxA05QHxe1eK/U2y3bXvdDHhURC5ob OpTVzaLHFAJ+EKY2+N0Jv8RDcyUiI9Qrsz4oCTtcC8Mql3bNIamfmIn9x4RWs6ZzSvHW8r1iRSE /kqft0tsdZAhyoCVoLGv+dU/9xkMsZOudhQNDN4AGgx2aOhGCtURonh5jN2NNGKAsRloN1U0pKb fauXyxLRuEKASrfmU0FYcSMSfHHItEl8ePnYnO2Ij7YuUlrGlDnVD18sVDi6qOApy6sE0r8uvH2 RW6tgV+QchQkpW2FSOqLuAAmgsglfU+erfeHIX5sRCoz9mEoH2AYAIf5lhP+XWLvUGC69kCfmij jUXBv1ofRyDWOZqi6TXBh63v7fZ2IYrT3keIMHp09WaSd5AU4KXYTJTEfAEwf/pHO4Xl0tOf8zB a+CCbr1Cm/VuDuwuWbHXFzlQXr2ltGThpCwnmq3gknQhjwq2yAJtS13828v/sBxm8QZrOF7Zpil 6QPNrQ3VabL8Iw/b9jB7QIpnlThx+MY36PtiiWSjQTascvfBovdrgu4Ko5osD4d5h6GHREYaxvt UCiSsRc1tRTR/rJw5iObaqVXthfInTi3/0UpwSFw0tw9UM8T4RO0xENmVG39OCdFy4KSmOS+xCY Qn5YgSF+OBkyb9g== 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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772945707556851830 X-GMAIL-MSGID: 1772945707556851830 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 Reviewed-by: Devarsh Thakkar --- 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 8397cb80f559..e4ced2cc790b 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -816,4 +816,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 Mon Jul 31 12:44:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 128745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2047773vqg; Mon, 31 Jul 2023 07:20:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQJw2KzLSFlIyXs/O+3pWaqEF22n0DFH5+stMeQgrdLUiTfnMqRUNL7wxymadZvfOlgHHb X-Received: by 2002:a05:6a00:130c:b0:666:d78c:33ab with SMTP id j12-20020a056a00130c00b00666d78c33abmr11785851pfu.21.1690813226659; Mon, 31 Jul 2023 07:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690813226; cv=none; d=google.com; s=arc-20160816; b=Fdw4TDj7jOvHaRiIpv8/wldfdooH6AASxuNoUsQBpmgPKpzqfGMyCXx2YF5MMejp00 cDLgXm6VSUOlsdismDQqwMJyY5QTCSll7Xm9rsDQHm0TvNeNWaYD7xc9NvvtrW9o2/AQ 7R7ufuLdwSYZDhG47KGrIdDR11+qZKST+ikESuvyXbdiqXZTObcf1OPji22kwQdpY86L zVGuQ4YSOmgPDG8AyvcR5bd6HeQ0CszaxDiouIlqxeqnN6qab9hiIGkm52TAT7OPGa2Y BXO8LPcj04oKfFHHflG2gEQAfh6kwRdLun4z8H8WReNQlhyTcYr9ri716ZxCClDN8yis 4O5A== 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=eh6G0ASCqjw7aVLsjaZTovSD6uYBCw0N2aZ2dEim4zw=; fh=IlfNz42kXhl0cxWnYkIkzADSYIKE6c+3brjIhZzlbeg=; b=VQEenYiXs9CLhjZ2J73DoF1azHBN3ay8ZCN9rbPPr4rA73rvPY5TvQoJfn8Ic90GKc mVP7Cg3N408t0m6pNTnQ7G/w8NjEYr7uZ2021DUYL/KCm8DqFXUwI4yGIsY8x9eOHSwk KemEnjQVNWd/y3Vaz/oBMt+pyJzSP3v57fPgczQiIYWywHD5vrwFIMuevvbxGujIa2Ay lBgxiJdKySuTjMkvFaRnmOZj6uciVZeJlznFUWVHxPQgkYftEFzs58BBEog18pFy7EPb SQILXNkgRFE+3BqV/iVzBv94OC2VieBpjcos683r0hpOKenzH2uIQE0CRsIn+XE3/FjJ B6Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F00qhFfT; 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-20020a6540cb000000b00563e652b06fsi7212075pgp.893.2023.07.31.07.20.13; Mon, 31 Jul 2023 07:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F00qhFfT; 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 S232859AbjGaMpq (ORCPT + 99 others); Mon, 31 Jul 2023 08:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbjGaMpc (ORCPT ); Mon, 31 Jul 2023 08:45:32 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7619E10E3; Mon, 31 Jul 2023 05:45:27 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36VCjGf3110639; Mon, 31 Jul 2023 07:45:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690807516; bh=eh6G0ASCqjw7aVLsjaZTovSD6uYBCw0N2aZ2dEim4zw=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=F00qhFfTEc73ofkgO1DkfIeS5RJT++MewzL3OVSl5PBf9buyy829+GEMty+79iuxD Yyvl7WrZ5xKtSRI8iOSpE4aZJUJ/7YmsTLObywDXjpLBz4UTzli5yU0d1IocSNzIAJ uN20QG3/zTAMSIuaJlv+lhuNNdlPTbqsrXzmnGaM= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36VCjF2l031482 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 07:45:16 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 31 Jul 2023 07:45:15 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 31 Jul 2023 07:45:15 -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 36VCjESe025081; Mon, 31 Jul 2023 07:45:15 -0500 From: Jai Luthra Date: Mon, 31 Jul 2023 18:14:39 +0530 Subject: [PATCH 2/5] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators MIME-Version: 1.0 Message-ID: <20230731-mcasp_am62a-v1-2-8bd137ffa8f1@ti.com> References: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> In-Reply-To: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , Jai Luthra , Devarsh Thakkar X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1487; i=j-luthra@ti.com; h=from:subject:message-id; bh=qEugwhrLwpSo3Rg2CZ+bSuPr12FfFiZlbT7SkiRKxmA=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx6zX2f6kb9auEhv1S6L2PMBqEVSXDYRVSmfZc uQFv0I8WHmJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMes1wAKCRBD3pH5JJpx RRlhD/92OgSCvH1L21dBLLFxyxkRFl7J+DJTPXCdAvnEmDOZVv7BVfKdwCcHcle9mUFQMugZV72 NtfxFkv4WpoSjAnSOQwOO4jH41uwHD7dSHsg3NLVu0WrCeYrOmdtHQ+wIeEjRp8R1qmktemau0t FvhjUFvxXtboo20qJoGV5C76r+RShdDOaF11LzeKs4b63sOakiWnNduFRefwql1x1sNh0MI7DZI wEQrZlh+chhjeGND0Iuvc7cRfjdTGI8lgdPD+3u06hXPj1Vf7aqORVFSIpwHDuq7Ph2KO47KU2I H/CJa8+zHewz+hfFewuMQSiBdpImri9tVEr+Qh/7jNwxTGTeAmJ+jiAUwS9EjxMPVWNigInCYi7 W1dbOEmWwCegeQfFHHwuJfJv5AHumUy9vzBLCI6iwk/0hjUOtPZ5uw4G0U+L6tQ4B9gDZnmhW+B Q+AxQfvfcXQmS0fL9D+XXWbrBLO/uKM+DH/J7OPC3Q8xLJelwxYqij8hp3GVA9TkOtp6HymnBae YqG5WI8i0aI8qJzASASMzoxp6Fosg4AcV0wAbyLuvInd+WMaryI07QEtdvOQ95Kup/MNGaTda+8 NytNbOu5IQbnEuceFtjmnhxE9ZAfW0Piu7dveYRF8C4mZ0snUZxvTi/r4GBGPf1L944s7NYpALq m6jVOC1hK0gXpwg== 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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772946169956718308 X-GMAIL-MSGID: 1772946169956718308 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 133e32f7c6cc..9d34b8fe4ecb 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -79,10 +79,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>; @@ -101,6 +101,17 @@ vdd_mmc1: regulator-3 { gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; }; + vcc_3v3_sys: regulator-4 { + /* output of TPS222965DSGT */ + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3_sys"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3_main>; + regulator-always-on; + regulator-boot-on; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; From patchwork Mon Jul 31 12:44:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 128683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2015038vqg; Mon, 31 Jul 2023 06:28:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKACUROCMLdqkCIKdVYTBKgCy/qeiBpq8jdEeJa99HSY1BCCnhmTaQLFVcuNcA7xsje1Gg X-Received: by 2002:a05:6a20:748c:b0:12f:952:11fb with SMTP id p12-20020a056a20748c00b0012f095211fbmr10339916pzd.52.1690810133775; Mon, 31 Jul 2023 06:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690810133; cv=none; d=google.com; s=arc-20160816; b=iNn0cgghfvQgozUpmxygW6SmPz62n1KmYDt7zRE9OJJBLEO72szYtfilIbpxxTl6zI +Tyty3XXHASJvJZUEWCgMzN3+GNZUyIphFY4o0aMn2fHzc8Gw450hmqXQCmOe4+AONcY Tuy6I60yJl5zDvnrB3Zui3+9zgSKSpnm7d9ZjOBVMYxRUiJT0J3QcPw2eIcVFAVzW2Fj 7Dq8NhZ3We+oXlJp1FJgpYOCRcM07Ti5Oy10viT65WGadhYhuWeEIlwaUV/xTERE9frT +Cp9NjOtQ1/Ia/H6Zoy/JbLhv/CjDollvfYcHxf2I/dQPBg+XhmESEJgPjbLeIMPOn53 9kLQ== 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=Pcz6ABCUyvN0ow/G7gff5cRXMYJaFfXpriXkrpONG2M=; fh=1IG5zkeAHK+ysmcfaqa0uOHGjQfVGHd0dc1evae4y8Q=; b=KWEZROzUHdPiXVhsLpK8CZMTx4/YxfMVl9QEm+rZyayND2DIQ+TTCwidZKKjCZewJM 5CElpFYYQ1uWhdJLcMt0Ltzxec7H1esN8cLYzAYgFY0siyhbOZMrBYP1iCdKeT8zoVS9 r9Ca63xnkO9zGuTSmQnR9siWxJ9hlRikSAOVSDUrYbkg+9+1WH9RAn5ojkIQ8Lf/lmd+ 1mtzD3hc2PmoailfiShYe4+xCjBnWznj/95RB8whxnisT1Y6IOGsOsR3a7h94lKjOtmU E1purXzSAYnvh1Vw1ATzi5ZwOtE40/4XjrD47Bkk4WubJAIXeY/UzH8xFe0VJNlYGkuL fJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NIOdeyNE; 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 b17-20020a056a000cd100b006815bf78633si2940926pfv.315.2023.07.31.06.28.41; Mon, 31 Jul 2023 06:28:53 -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=NIOdeyNE; 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 S232812AbjGaMpt (ORCPT + 99 others); Mon, 31 Jul 2023 08:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232862AbjGaMpc (ORCPT ); Mon, 31 Jul 2023 08:45:32 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7624210EA; Mon, 31 Jul 2023 05:45:27 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36VCjHEa110648; Mon, 31 Jul 2023 07:45:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690807517; bh=Pcz6ABCUyvN0ow/G7gff5cRXMYJaFfXpriXkrpONG2M=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=NIOdeyNEsts3asU+1/mlG5a6xs+imJ7L7O3otboOUm7GDplJnWDpKDp7yIgvRYcQ9 RSC12DM6/qxZR5UQf1LFXHp2TuZPpVjHQVJ4Ql5y7+o3ztluyFiti/BYKBAESPWzpL 53NNkErVWjzNeAiFqJZw3A55nDLH64ySQ7ywSEPI= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36VCjHjA021188 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 07:45:17 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) 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.23; Mon, 31 Jul 2023 07:45:17 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.23 via Frontend Transport; Mon, 31 Jul 2023 07:45:16 -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 36VCjGbk053803; Mon, 31 Jul 2023 07:45:16 -0500 From: Jai Luthra Date: Mon, 31 Jul 2023 18:14:40 +0530 Subject: [PATCH 3/5] arm64: dts: ti: k3-am62a7-sk: Drop i2c-1 to 100Khz MIME-Version: 1.0 Message-ID: <20230731-mcasp_am62a-v1-3-8bd137ffa8f1@ti.com> References: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> In-Reply-To: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , Jai Luthra X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=959; i=j-luthra@ti.com; h=from:subject:message-id; bh=aTOqwZxXdBJogA2nRpSO8Kb+qxM8xYZ25pTWUKPJOR8=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx6zYYMwzfaFYgA8QP+a3aNyGfWTL8VdXfwv36 gqCD/+RKQiJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMes2AAKCRBD3pH5JJpx RQDrEAC5pvCzWw3YO1K2zS5NfpF9tyEZNvtbKZBhfCyr8Ji/FUXPd1qLvKuj3LTjjse2a/AEgjc 7fJA0/0nWOXNih/f8fJXHadwgtmDdpxijwBssBiXJJ61gQ+lsn0aWfRzTIy8RwxMr35MSm9YLPF PO7iukHXWx+lVj2UKHzUURRVDFIIkufGjGGi9LQrvT1Kr8Zaw3BKNpzNhte4gOaKI2R3IBdc4hr /lkdCq4MWO8Dc6u0x2tnfHyEjxJYWCccEfCw3Ns/Sn+MQA+bAgSbtk0jB7vuTO4Dvvu+A1seQwq Qu5hB5I8VUMtLnw2Nfz0J0zZD/2gCwwRr/z1mMixKJtYpXVRtd+QNcSsC60SY4v2SFSv2mgy71T MSWk1lC90H8tPdI9RgpZ2ihMOf7F2Akr6M6vFNERSTO/MKrGw2VKdSKDjvSpRaFX2knWYUmcYr9 m/B64bmDmbxxAI+PID0rBTAI7Fy/Y6Q9uK4aFJtzO8Yj6SpSX2Z4MdcuRf/rRzpQ2Pb5LexhM/X oRaDMhWb/wuBNkbhOa+apP+21qoWNDD1V6hMwQJ8Tz/oS30hKt21tAzN5uUC1ODnZxM/QLSRae6 WRGJRZU4X8DoRinNiHNEtlOaL8Kl/1u9vyqLtRsqkGlbw2+bHrcKKXkPenVCZ/PBDAqwrK8k2XK NsLFpw10vqMq9SA== 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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772942926550711101 X-GMAIL-MSGID: 1772942926550711101 The TLV320AIC3106 audio codec is interfaced on the i2c-1 bus. With the default rate of 400Khz the i2c register writes fail to sync: [ 36.026387] tlv320aic3x 1-001b: Unable to sync registers 0x16-0x16. -110 [ 38.101130] omap_i2c 20010000.i2c: controller timed out Dropping the rate to 100Khz fixes the issue. Signed-off-by: Jai Luthra Reviewed-by: Devarsh Thakkar --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 9d34b8fe4ecb..752c2f640f63 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -338,7 +338,7 @@ &main_i2c1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_i2c1_pins_default>; - clock-frequency = <400000>; + clock-frequency = <100000>; exp1: gpio@22 { compatible = "ti,tca6424"; From patchwork Mon Jul 31 12:44:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 128674 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2012359vqg; Mon, 31 Jul 2023 06:23:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlE1T4/t/UHOlIa1ekKqGuFRJcFB6BKzwHonn/SgeDfhH6pmKKTjfv5X6zrPTwlTK1P7bAPc X-Received: by 2002:a05:6a21:718b:b0:138:60e:9bb with SMTP id wq11-20020a056a21718b00b00138060e09bbmr9219266pzb.28.1690809829133; Mon, 31 Jul 2023 06:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690809829; cv=none; d=google.com; s=arc-20160816; b=CrlT7bdIkhtAd+/pFUFm6+w7pEIu3SiCOsWKY1JXqN626TzqjLWmPcaZlnDuUPIMZ1 jztq3r2gDgEyc2M4uVZV9AViDKUFRlpphDKr6HiwJrP9xeeShIl2El4ikf5oqALrxsnj XkFh0uwyz0h1/8+CHjWe+SG0uU3behRYkwBUYLwuWDxzEL4XjxYXlJjYt06nbzQRIjzd BnSSssU2MuiXYuAPD+Hm+ogkxQp5MySc3KNVvHFl29cPFN3ymBpRuE9LEBQd+j2p2wUI pDioAP3k9Nb4u3BOabFPR3uq7yTMRa4mqofzDs6qHxnafqBF//0Tiqqz3Qg9bPD0uq4/ 1v+g== 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=REWNbZ8SiItHavRu5Xr75liX4rtZu7yd+LUYVSVGB60=; fh=wytEBRQSvsK3MbMJ7OHl/+WqtzW/MaQ8tR0AteMVY9o=; b=cUpmcNHtmPsPc4AULn29G+kTpzfjQEQ2mWSZsxq2xb/fXvgbEScKwXzT33jRAEcbyE hg+hJMugBwH3M3gUehUVVvp1hA/AeV4j2T+L/Og5Py8oWYrrG3P6WCcg+aOivm9yiyXo HpAaJqyliZEgdEgfG2+dF/eOKzquadGw3N6O89SBHmnIGkmLCcIuEDM/ldIlQOElZ5Do LtqVfP8xQIyXtZ9DxkQxI5YcvS2APXgA1JjBFTiRD/lagozuPn6rDvmzWZERz1iQTMs1 c3T1j+GdxeNZFJ2M+PvbvW1bap7BlZpmddv13STGVApaF/dx8nEoefs98MdW1XTcRZYl B0dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Jy/oOn/d"; 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 j71-20020a63804a000000b0055beccef366si255652pgd.727.2023.07.31.06.23.35; Mon, 31 Jul 2023 06:23:49 -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="Jy/oOn/d"; 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 S232852AbjGaMp7 (ORCPT + 99 others); Mon, 31 Jul 2023 08:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbjGaMpg (ORCPT ); Mon, 31 Jul 2023 08:45:36 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2B7B10EB; Mon, 31 Jul 2023 05:45:28 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36VCjIjX093269; Mon, 31 Jul 2023 07:45:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690807519; bh=REWNbZ8SiItHavRu5Xr75liX4rtZu7yd+LUYVSVGB60=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=Jy/oOn/dfEp+4XB25I9VVOw/ZDspRfViImY9nchj7RRzrI2u1TeGatHccLgsuzPDQ /5hQAe2jZ4fudL5ukLRc1bhnSlKunrTQKfMfBAvuz37kIkAc1A9BNZespy6HMoXQzg 6ayDaG65QRT66Qco21b6bzslm+vVzKHt/FbBgzy8= 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 36VCjI8Y031525 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 07:45:18 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) 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.23; Mon, 31 Jul 2023 07:45:18 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 31 Jul 2023 07:45:18 -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 36VCjHxj007902; Mon, 31 Jul 2023 07:45:18 -0500 From: Jai Luthra Date: Mon, 31 Jul 2023 18:14:41 +0530 Subject: [PATCH 4/5] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A MIME-Version: 1.0 Message-ID: <20230731-mcasp_am62a-v1-4-8bd137ffa8f1@ti.com> References: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> In-Reply-To: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , Jai Luthra , Jayesh Choudhary X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3223; i=j-luthra@ti.com; h=from:subject:message-id; bh=dG2HlAj0l/1W60yjegoZ/2iv6cKF7jPAMqCN6mCOBY4=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx6zZGx5RcQzTMV6Ys4Bf4X3FQDRT0nblAoDK4 dvuUodt/KOJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMes2QAKCRBD3pH5JJpx RYAAEADUIHRRuii1SMVK3yeXk8VTimTs9TFeDAfkMFs7YSPoi21B5/TqqldLW5NYc5u9bUO2kg+ Cv1IzmAwIT4BbaAmIdgqp6kEYVenOlN0o/L4nAX5w41XDWb2zbnJgkxuxZO0NALxyG3daDQjwvx 36S5jIwZVq8ob56grsZ2Y8oo0Dt8h1WxaiXn5Gmvr/nU2F+Ajw4uWqzxJxT1Nihin4XDjSdDmVT XmluOBs/lpEPzqQU401rcCZb9rpQbD4HEeg2mhvXZQZiI2JXZRNtxFLwNbeu2SEgZc/jBe0XArN GllPi/JpHrlkhMc1ioKimjLGvUYPYDcZhh2TrCHLtMfM5BDfX+C1d3alG4zIBVXBWygduUqkL2h DSbBepUygYQXtobqTMdeye+q/GeR2blVwrVIo7FdNg/uDtOsz/EqS5ZjOjueqq7rDtT8W/Lg7Ha Azj5rF5OpO6BxAlrc3EEydRs1D8BnRASGxszHUn3XblNM8BBsyx5CvxgtPuw6NQWMSnX1SKYcw4 XaP0Z0Q5Yohg8Rg8eHzvTBFqQ404hEPcoXT/aDLFbCUyDRrkf4/XwK2JJgTrT3WjzDbZv+GDqKK 4CXqV/D0advWLb0oQ0DT16gYvVMaVvYmSRd8DnD0rZOSqopqYkXYBm7g3PZxeWuVyVDpOJwZ8jG BBQOJI47/EQgK3g== 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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772942607577868396 X-GMAIL-MSGID: 1772942607577868396 Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use and update pinmux. Link: https://www.ti.com/lit/zip/sprr459 Signed-off-by: Jai Luthra Reviewed-by: Jayesh Choudhary Reviewed-by: Devarsh Thakkar --- 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 752c2f640f63..5f68d2eefe0f 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -125,6 +125,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>; + }; + }; }; &mcu_pmx0 { @@ -230,6 +265,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 */ + >; + }; }; &mcu_pmx0 { @@ -359,6 +403,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 */ + + /* Regulators */ + AVDD-supply = <&vcc_3v3_sys>; + IOVDD-supply = <&vcc_3v3_sys>; + DRVDD-supply = <&vcc_3v3_sys>; + DVDD-supply = <&buck5>; + }; }; &sdhci1 { @@ -434,3 +491,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>; +}; From patchwork Mon Jul 31 12:44:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 128682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2015002vqg; Mon, 31 Jul 2023 06:28:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzhraExOzPApIGCZ+lBzf19SXhMkAyVEvRGjBHLPG8Io/GwH+AUzKfarsCpi3X7Sy4EPDL X-Received: by 2002:a17:90b:4f45:b0:268:3ea0:7160 with SMTP id pj5-20020a17090b4f4500b002683ea07160mr9266650pjb.0.1690810130595; Mon, 31 Jul 2023 06:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690810130; cv=none; d=google.com; s=arc-20160816; b=mD9RdBPWzWPdf2q1+8rY21Dq75egTPimOJtbnZQAAYsRlyX0kdBilNPBHyoWyzR8Im DsVWGlSD5ith29EfvxzN5x51NuXjAlfdWMqM3WMX9SV68m+h4wxerB2izkBMYD6BiHdT zdB/ouXFzMKQ52e6WshmeUKN6RiZD0+q7Q413nFAhdRh4PY/2CcdOrcmG1i6eFjcmzVS YhebGc433ptLqG33kMPLGf51+XIA3nbrwFg9OmYuO+COYpeJ+Xtu/ivInvV/gMeq1xTh Z01ASgF4utKWgYfmOMjBFtkWo8Lnq1jQV1WgoKOVI8neFrqrkHhna9tbrqtbDHH+eb7n o32A== 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=0SPxnqfcfXqJPJHs3ZuUuj1K0BeWP3lEXqx31mscRxs=; fh=1IG5zkeAHK+ysmcfaqa0uOHGjQfVGHd0dc1evae4y8Q=; b=mkJal5RDigBHpcSY6PsjmuEssZtb4aD9lnjqZ3fmmIkFdR7Et+6BFXj3fYjnPtHNWx ioSBkvFgPDri7VZKDS0wDhIpGM3+0ZgkMiaCA796QM/5KkD7e3iKJiS01cmRpiwiNGn0 IVaAHdx/I3kQAEyZCkGveJP+6mmgHInYMtpGgOBWwfmWP9xozfHq9q/lqzHahM5jARuF fdmeDE+SNhT5GRNxymGkqcGX93GT189bJcF56PseY3adU/dcTwghL+B5Q1xCd7Y4Ridc 22OsZq8byL3CKCON5NPHH475rh+fOGTM/ajbJv2ebCY2tbI5d1xlR2qRsYM3I+91swJt lqNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NWHNiKj0; 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 x62-20020a17090a6c4400b0025960d035c6si7449419pjj.138.2023.07.31.06.28.38; Mon, 31 Jul 2023 06:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NWHNiKj0; 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 S232919AbjGaMqD (ORCPT + 99 others); Mon, 31 Jul 2023 08:46:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232873AbjGaMpi (ORCPT ); Mon, 31 Jul 2023 08:45:38 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AAA81732; Mon, 31 Jul 2023 05:45:32 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36VCjLVG052749; Mon, 31 Jul 2023 07:45:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690807521; bh=0SPxnqfcfXqJPJHs3ZuUuj1K0BeWP3lEXqx31mscRxs=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=NWHNiKj0EA7uEIJz3quLOuXfpVBFR2EkLXL+PMM8ysxheJYi/g4MJTuR4ZCgx9cZN IHZGPw05uQfn84/PQhmXq0iteslspKCm0xu5TLMLBt0kV+sOjgrlSot432mX5pFh3X 9xKjzj2y6U2Br3NvyM/66dce6lvzXoTEs7JEpSz8= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36VCjLuP129524 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 07:45:21 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) 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.23; Mon, 31 Jul 2023 07:45:20 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 31 Jul 2023 07:45:20 -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 36VCjJLZ053839; Mon, 31 Jul 2023 07:45:19 -0500 From: Jai Luthra Date: Mon, 31 Jul 2023 18:14:42 +0530 Subject: [PATCH 5/5] arm64: defconfig: Enable TPS6593 PMIC for SK-AM62A MIME-Version: 1.0 Message-ID: <20230731-mcasp_am62a-v1-5-8bd137ffa8f1@ti.com> References: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> In-Reply-To: <20230731-mcasp_am62a-v1-0-8bd137ffa8f1@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , Jai Luthra X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=819; i=j-luthra@ti.com; h=from:subject:message-id; bh=0ijyOKlC5ndUpjhAONPKbgHmRC/lYyw8qmoHFT7gdmc=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkx6zaQrBUCUwdQO74KzDtYXrr5YpgT68L0VR/J v0FSy7sMzOJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZMes2gAKCRBD3pH5JJpx RS0eD/0QjulXmCkUghLeoQFqcpKeHNiDXqjyJ7oULO4akslP8vI1WvxjVyzt+7wvYsbNcqlJDEe lMdPSLO1A2NM3R6LQ0BvA5baX8qGvfeAuPV+k3GA/lnbzwPz62TABPU4s7CzrP425vdGvso529z /AjBA+tAh/HioHc957AatgMDJKUPtImLIFh6X2YPKmn6rpXnjq9nyyIJn2mqiUEo8heazSyIprG 2gR/Fhe4sN96CyBhpifckYcvb2zLLZUOZnuzi5nHq37jT/Y/ExP7/AbguGjmtLrbzPiTbDaflBx t15EySsAL4JMdSJDY6htUm2bP58HXNWKbPUlymec86N7s8+vDUzv4cN1x7Rq61ByDyXVP+JwC/8 NhoBRjbYfRypxsUHVSTR2TV5s/3ORC9zdRylISpYZXKuvZNFahExeJfM9Nn+6PqnocWcv8bptqP COUNLgdKijt+zzJnLr7NepMbj16CHUmrx8h72ZBQkNSe8cQTjJZCwmwxjQmL29LguUuv6j4xGDu zU1ph4x6YxZ3efvvz2GI1uKnSUv/VZyymhYLQoib4PrVj+0ZU002RxW6sDBT+CLSD6p7ZUR0Hri yCIwyoTKnf9jMsTDIjmUAWBEgfX2DiPFLH5eFIi7ys+mgd/o++kojGYyU/qRe9lCQQSNJgN4HHN 2Qr2w3WALwCNHpQ== 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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772942923382577361 X-GMAIL-MSGID: 1772942923382577361 SK-AM62A-LP uses TPS6593x PMIC (interfaced over I2C) to power the SoC and various other peripherals on the board [1]. Specifically, the audio codec (TLV320AIC3106) on the board relies on the PMIC for the DVDD (1.8V) supply. [1]: https://www.ti.com/lit/zip/sprr459 Signed-off-by: Jai Luthra Reviewed-by: Devarsh Thakkar --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 03fce1752521..9bcfa9b50876 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -714,6 +714,7 @@ CONFIG_MFD_SEC_CORE=y CONFIG_MFD_SL28CPLD=y CONFIG_RZ_MTU3=y CONFIG_MFD_TPS65219=y +CONFIG_MFD_TPS6594_I2C=m CONFIG_MFD_TI_AM335X_TSCADC=m CONFIG_MFD_ROHM_BD718XX=y CONFIG_MFD_WCD934X=m