From patchwork Tue Oct 3 09:11:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13407300 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1DD83E75436 for ; Tue, 3 Oct 2023 09:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DRtEO5mPhmv/9yvbXzPl9VSAaHVzo+HuU75H483jQXo=; b=Zl4NInWMsWKsF3 T+lWOzOtRvjYtGT9Nt+uhOj3xpdgc39tEEtNrt1gu7RiyZJoyo9I2YcSS3iQfr08H8+9edFkryM10 dbNk4xF5cyy+n9mWdhTHY2LPxMz/2NF3rsfuFB8FGLBK2Q4H491pBCR5z4C5AUgcySf+qqci8hl6l UTK/DtqNDDpAMJh0UwB73ULCP86QU2pQVcA5IufJ0cWxrnO69t5x8tRt+KzH5XqgcwC7l0d3z0nrp MmSIm72U5aXjpHRtMmti2LsantG0Gzl3sK8tTE2RHH2w1B5E7DD3ONbZ7yAtL+ctTrGLjh6OfmX1f MhoJPeldzT7i03SM4u9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRn-00ECdE-1M; Tue, 03 Oct 2023 09:12:07 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRk-00ECaJ-1u for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 09:12:06 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3939Bqeu036026; Tue, 3 Oct 2023 04:11:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696324313; bh=P9o4tq79uA35dbYJVQYuXuuWplStgOw/NJTItLt8iuk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=zNieLKpsoPbJl98TGH50yK0uTxh2bOkMxmIdyaFO3SR84SC2Bd/8ZK5IAcftis5XX hBiJuJcd/JVcrLnC+0fwhi2avTep1vIGAEdxS64eKCOeQur8sbBeb7EJIunkjpAVgP z64BCAmkQkNrvrfhsBYqHskyRJoOJ2HV3ZYbREuA= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3939Bq4w000799 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Oct 2023 04:11:52 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) 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; Tue, 3 Oct 2023 04:11:52 -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.23 via Frontend Transport; Tue, 3 Oct 2023 04:11:52 -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 3939BpSY019173; Tue, 3 Oct 2023 04:11:52 -0500 From: Jai Luthra Date: Tue, 3 Oct 2023 14:41:30 +0530 Subject: [PATCH v3 1/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20231003-mcasp_am62a-v3-1-2b631ff319ca@ti.com> References: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> In-Reply-To: <20231003-mcasp_am62a-v3-0-2b631ff319ca@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=2715; i=j-luthra@ti.com; h=from:subject:message-id; bh=W0CFJHzCWlZGY7NHNntLX4dpZnlqu3OOkzLG1IBCpRA=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlG9rOd1ykTnAyNFVqC+Qii7y/QOOzUgaC545hC P9KHUhzH3KJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRvazgAKCRBD3pH5JJpx RX/sEADOwTJqn4VvUuXEnYg3pvYeg8Gw79vl0OYyGqb8LK14d19pdm/bbGQwW8JnOK+a+as1T3R /fUSpJSuJVBXNmM1XP+9ZLGS2s/BqNDZpw4RdJcrfceUcr6J/wyrHsoYnZPoJu1LwP+qZMnWsyC lXHA+BmE6Z99DjAL8ewtV779+vwBcWFgOyeNxFpFsUJQ2/QteBe0g2uALVukeM9wcu4vD0Vj2DZ ZGtMHE7Pryp8saOBWquuDKgNRVwNYkKRu6vCVlqsdSEndignmzpCO7nX+gwdsjAimIpxCo1/ec8 rLGboheFxS3v0q3GRzTzzwg7KopemTDm8U0lOqEn5zFC5heTXwR2w8f9UBB77Ejw/pTU8Emiyqs bC3PfZYy5eIOCDB3v6nhy3HWk7zEwXd+O3C9Gxvo+2tHfibNj7WeALr4yn0zCtF3fBW9E7BbnPv 2DKDYcur4wycC0q4V3VLya4XV7MH0Jnqu5ABbF6motXIR9sr5T125rGm0Au0d99MsUfK4BptGsd +C8VEPleUoZwjYZUczbrHXsqzZkxfLK4PXxa+4CqJJiAsqT0O2l1STCYUw7toKwVlwuM+o0kT0+ WkQDTD59IoebaQz1qfoKGRDhc/al+svS8bn9hPwJUsUVseKOHvuFocovp5HI2DYc+bdXqcNX94v 9vxy3PdDywiql0Q== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_021204_724646_62F54ADD X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Same as AM62, AM62A has three instances of McASP which can be used for transmitting or receiving digital audio in various formats. Reviewed-by: Jayesh Choudhary Reviewed-by: Devarsh Thakkar Signed-off-by: Jai Luthra --- 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 3198af08fb9f..4ae7fdc5221b 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 Tue Oct 3 09:11:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13407303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D64B8E75437 for ; Tue, 3 Oct 2023 09:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uGZdveyjAD87N/o/IhsGDQ/OIKbJpD2k42M0xOx4KLk=; b=2y+/YHlk9SyQE+ vC1QGH7q/pKpIq0m395LHgxzSkC3dMCPZLzo5+2gRtmMghFlS3tW5gDekyLMhsV4ldeZv2VbORcG1 ySUanSzj1AIKLmsggbiLPznr1E+SIFMM/Fmd8qjgek3lnrgB0Pu5u7uuWAU6FnToHHjkrnXfTKR71 KgKjvtqOUSfm6mtENCeSRWdqM4llRALpXVWqhTwplQ5pic5tsGPQ8pSbw/CGDVceFHtfjAjsnr5Qc 2Ti0fRy5tqFQ5BDYD7O0ZeQQdrN6MmDKp4oDhVmR4L6J8o3v5kmVhzuLTjzTtjYxcFEpOWRbcwYy6 hnblBgdTpr6lT7lmiFZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRr-00ECfj-2D; Tue, 03 Oct 2023 09:12:11 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRl-00ECam-2s for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 09:12:07 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3939BsjR034477; Tue, 3 Oct 2023 04:11:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696324314; bh=VOgmZjppaNHRvb+fq7iB4eyXgEBm+n29yek9u6VmbPM=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=U6GLRy3sSA3IQmg0dsP2JeU4Ip1EMozPNuPUONd5KawrJdBfaj5e9lxPBzeLQshNO 5ZftUf+e9FhNotICrJQQ+zfW3Z9c8Q7i64Vm7UbV097stSUBdU4Wj3KLTGAR8lagZ2 O3L72Vq9E0thQ39Hs04NCmYU5t89e4kvJth1RTGc= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3939BsLM000805 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Oct 2023 04:11:54 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 3 Oct 2023 04:11:54 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 3 Oct 2023 04:11:54 -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 3939Brm1019187; Tue, 3 Oct 2023 04:11:53 -0500 From: Jai Luthra Date: Tue, 3 Oct 2023 14:41:31 +0530 Subject: [PATCH v3 2/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators MIME-Version: 1.0 Message-ID: <20231003-mcasp_am62a-v3-2-2b631ff319ca@ti.com> References: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> In-Reply-To: <20231003-mcasp_am62a-v3-0-2b631ff319ca@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=1487; i=j-luthra@ti.com; h=from:subject:message-id; bh=8UdWpyx47NjH2sp2+nFjUjfUOYp2UBEB4/o9/Nf7fxo=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlG9rPSwxdUO8bLQX3ohrzKwxpNpRmouusi9bH9 0W+moZ6CwCJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRvazwAKCRBD3pH5JJpx RYShEAC4rYGiz/KujHAtFqUWNtM+EsDe4h4NUJTmlwrNAuYS50UmJCHnz+2G1oUglCuTXzmPC3+ XDC4Yn0FNr8/weAuYJsUmaL1JHEPYLuZb5C+Zfe6PZMJepCESvpAHMgr5xT/7YUksBFPmUBAtdK jVxOfk9WFFqLvDvNVPd9RDsgvSGrfw8THXrC7YcHu1xHzOBWX3cv55CL27uia4AOyWdfIcW6JL5 l20i4F14cFSJSQtihgMgPngtkcs7u7sZ2b9vA4O6Vg3/BKH+sLeY336CHqZbHZEj8S+UtlwOOG8 jSk03TygoH0hw/OicOm4XK9f+zpKhPSajLW01dAAkvwcH7zJsv7idXA4GhBfoCLEyUzihiyhXSE Iplbl7611FFRxbJtxGHghIhglrOro+pqapS/iUDesm9tpF2q7yzOUI6zv3rOqvtOZE66iOoVaHD 6G9Eq0+wtsc5Qut2rZhdxNibFht1ABsTU8aLJDass2HuYrQl6vYbgsPWPEb/1SyALF64imSMp2g pZx7IW/cpD6NsYE365qNmUSLcQTScPtET+c2ybusGbzZsfSZnmmbA8Wgyt4B/b5OnjX1Xlsm030 OyxqJ0z26ytN8j6P5zQvtpYdPU/ahOnJWN44afNizyl5Qkw4guzYlxBCkVm10uFX7JIvZn50/xR dO4kAChapdlqyHA== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_021206_032640_99C555BA X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 cff283c75f8e..c689d3da2def 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 Tue Oct 3 09:11:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13407302 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6E15E75438 for ; Tue, 3 Oct 2023 09:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Xql36wcglZ0Yzo4vetYAdVVTtkyEdGInQhMkVl2CU6I=; b=YzaIAiQHus40tK M9+pVhBVbvsKpV5oTdI2RTyiEJW5Wy+oOwipYIjEsBIMT0H5OVdAqnI3ytsLftRrgvLDdyUL+E7NO GfmEbMsZEPsCuuLr006GYVadRD06y1hqubRZrSk1CZYQTN8ACYjmTaVmrcesdK7eydbRw9SGWxpE0 /C70H7pH/k4Jti90ZCdhXUHQo3abaQmPlZAYLNKIFt4QllvpqAfzwC45vGIfPPuk7CLgWaTpPKq0T sVwjX4xhsJ/rSSQqrOlMc80xRNxxRB+N6PxhL8HSE/O14NQyK3OvgeRcOimC9aivurxOxOeos01NQ AJYcqReAl2Sgv/ojxLcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRq-00ECer-0i; Tue, 03 Oct 2023 09:12:10 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRl-00ECal-2s for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 09:12:07 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3939Bug4034483; Tue, 3 Oct 2023 04:11:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696324316; bh=hFOR+BafjthIcZVU9B2FFehUzOmrBZCSwFOWCdHH4CM=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=SP5g4MtfP7xNBpVuGnfK62Bdfnu9SDDBGGuec8u4+PKPfxVwWp4PLVirFmO9I2V0p R0J7zquEDl3aU/SL4QAT9DnW/osLokK+xUHVBuCRXgLiKHk14ZHF7bvuqWvqawXXyT n9R9Dw1b95BiLTWQuGctapsQ49gfUhe2SD7T208c= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3939BuJ3070546 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Oct 2023 04:11:56 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) 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.23; Tue, 3 Oct 2023 04:11:55 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.23 via Frontend Transport; Tue, 3 Oct 2023 04:11:55 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3939Bsmb074062; Tue, 3 Oct 2023 04:11:55 -0500 From: Jai Luthra Date: Tue, 3 Oct 2023 14:41:32 +0530 Subject: [PATCH v3 3/6] arm64: dts: ti: k3-am62a7-sk: Drop i2c-1 to 100Khz MIME-Version: 1.0 Message-ID: <20231003-mcasp_am62a-v3-3-2b631ff319ca@ti.com> References: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> In-Reply-To: <20231003-mcasp_am62a-v3-0-2b631ff319ca@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=1122; i=j-luthra@ti.com; h=from:subject:message-id; bh=1Ur1KQudJbK++tRz3iH5DYIRD+GMJnGmG/rzza0+qvs=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlG9rP14AGN+ESpxnUtkN3IGh5pe1aqFaMNa3hp znpQsVgzuSJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRvazwAKCRBD3pH5JJpx RUPREACG/MVLhLiALrS3cv+i2bUFLYlaIESEuqkmpisNAVZEDxR3Zz7ZB9VkPoSDM7XbkXi4lk6 LgaiogMRG//JGEVHisQ+y/bAi7sKSgAayhuXwBudfxjODQ/kvD9ElxAJXTMNCeYMxEOyunsqamY ThJe3sVJoJHA1rWDANcCS1u6Bxm8TKsdC7ZyXG2nfXoRbkbR22p20fv03tObLDH2LfJSWyGwtU2 ULsiiEgq+ByG2cgWo9cHvRdJZZmlSFLUel6ad5CRx2jFK1U8wAQLyH3qQb5cxrPTpuf3fCqlVwN 2L07LNOXezZth5FCGr3KAJ0BBNZBbFO7LddT90q1uD+baohT7V3cAlxX2v+bZ2YLSD1I9A62T1n QQTesR7bQmN/g1y9IUJllCx/UB4sjPAjbHjQYAGD2PkA4rOKEsasyUxpN5VFqDhNRGqI4hYnprh SF3BCaytorfC4dOgfKUPcV57Taekz1AxDyLAUKpRFDc7o/DYOlpzw4gwCh4q7+XAcU+8hY3oY0w mPb4QJYH8Q8u8gvjq/i3syi4NMsA05MhIycOmW9vvUT4JFmv8uIKjGvWNKqgF6c+uoVQKsSVCkK EFSwxCPiCy6fhnPHrUnSQMI/KtX0i5hmfOxcXG/XX3FERv3MI6xW8vu1zFBKgCQvNqLaUEMvcWx SMazXD5OggPqlVw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_021206_035332_A11E5D2F X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. Fixes: 38c4a08c820c ("arm64: dts: ti: Add support for AM62A7-SK") Reviewed-by: Devarsh Thakkar Reviewed-by: Aradhya Bhatia Signed-off-by: Jai Luthra --- 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 c689d3da2def..866b2725f775 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -261,7 +261,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 Tue Oct 3 09:11:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13407298 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1049E75437 for ; Tue, 3 Oct 2023 09:12:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gPUYN8em3V9YXQZFUOrzkrhY0ZtgCIuy4fkGsKNvHaU=; b=fF8o+YO01MwvSc fGTNZmlB5iO9/7b2mYrRDptss7Vi4gal47OIENBUFuTcvQmghdDsG8GaPv5dJVd3ZrcxnpBHOnDb5 4xUkDUzrT8LUik2KMXuiknbshsdakMeu4EUwdsrxtdDgOWInyUfG+UkSnTUHopsaasniBy0Pd7q3g h4vnEYgtdHbaNynlKzAdP+4YaQqHBZemxfctSPqX7qdhsddL3hqbkE04+1bHrqnqbSVwALrr8Ws9H JKEMbX54H8XJDSHDWQ9GIwwGej7AFwEhf57J6/pRnYsRFWrB2ANJqAo8TpvVYzpTppLQM4dxQcNQX 7uokABltYB5GuB7iQs+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRr-00ECfK-0O; Tue, 03 Oct 2023 09:12:11 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRl-00ECb1-0m for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 09:12:07 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3939Bvmo023098; Tue, 3 Oct 2023 04:11:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696324317; bh=THpNGIXD7z+n0ObTIdk4Tqnh5fvfLcLedV5S/VNCL18=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=WNbPW+n/ru9S54/xlRqC8kmB0+GL7T/niKB4Q47TOXWiAvh2oMKjtege1RdWdKqCk iepR68uu+ZAAfKFH/Jwk54fykVJ9syYB6EQc3Nw2fMMBSJxRoe+mnb4y/8AuneHWqi mXpd9BKB8nRb5U2ffK0dVNnRtlRlKnzKHYLzRrzA= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3939BvBc034717 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Oct 2023 04:11:57 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 3 Oct 2023 04:11:57 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Tue, 3 Oct 2023 04:11:56 -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 3939BuqB021429; Tue, 3 Oct 2023 04:11:56 -0500 From: Jai Luthra Date: Tue, 3 Oct 2023 14:41:33 +0530 Subject: [PATCH v3 4/6] arm64: dts: ti: k3-am62a7-sk: Add support for TPS6593 PMIC MIME-Version: 1.0 Message-ID: <20231003-mcasp_am62a-v3-4-2b631ff319ca@ti.com> References: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> In-Reply-To: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon CC: , , , , , Jai Luthra , Julien Panis , Esteban Blanc X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3367; i=j-luthra@ti.com; h=from:subject:message-id; bh=NG7CqYlIdoR8vAY96Pg9KSVZ+tMqM4J5Aya65nAaIic=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlG9rQ8gmDP8CuOTVqmB6M4NWqH5UxXf4TMY3PU OT34Sm86OeJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRva0AAKCRBD3pH5JJpx RUEPEADGLHS6u7cn2GVibdFvSQo5D7OEwFoGHXggSF0XLb/x2fVDZhGRJRntOhWYDAPUyfUN0wA rHbHEFnhKw5gSuR7RhehoIIDqEgdVkRJCRHsF390jxxwvfS5v5J1KV+Gvmmg4rFLcaOdtrWLnOF 87ZtwNkbS/4LZu24LKLeQ+EyqfYagZm6k8SlkcT0Qnldw1o9QvqsmAG+G4GvUlIV5zl3L1ZdmCb SbCmONVosQN7bFh52hrGqBt/qwep2lThmJTBi7vt9KNVDL+XAJDm0P7ZgS3VQUCU4fckI6qyyaL oH6Diz4c+vF2kpKdC3nMC+jPKzH0nY58CAmW3PWJQCmc1RkelkLzYcnA18nF9v/tvgIiV//NIXR IFyJ8FLUEzscqWhIaLsK4M48z1pHa18iqNMQqgS+CC73RmHYQMIAKRWC9MEliupWPqXKMUfByMZ NMotCC5kGTV7Vzm7guJfJUBy8UZ5PYUrg0cnSG5gXCj+RNN5veAYk9UsVRTtvV6LNP3EJllQfE4 phcgvvLPJY6GpOoPZIhRYbSmS86BWhnHnlkEvDPfT+wD+XzlQBfO20U9FxoqrKPCTt0pBhuoFzP 92VR9uza7yC63KeODTuSpaJc+HSybX91SW2ZXxOwFf2A4+j6tPSRiEvELJUq6nNQEbZSDZwTSh2 qwpCEjVvAhs8n7A== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_021205_360580_CC796990 X-CRM114-Status: GOOD ( 12.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Julien Panis This patch adds support for TPS6593 PMIC on main I2C0 bus. This device provides regulators (bucks and LDOs), but also GPIOs, a RTC, a watchdog, an ESM (Error Signal Monitor) which monitors the SoC error output signal, and a PFSM (Pre-configurable Finite State Machine) which manages the operational modes of the PMIC. Signed-off-by: Julien Panis Signed-off-by: Esteban Blanc Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 95 +++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 866b2725f775..377ab823bbcc 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -232,6 +232,20 @@ AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */ }; }; +&mcu_pmx0 { + status = "okay"; + + pmic_irq_pins_default: pmic-irq-default-pins { + pinctrl-single,pins = < + AM62AX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (E11) MCU_GPIO0_0 */ + >; + }; +}; + +&mcu_gpio0 { + status = "okay"; +}; + &main_i2c0 { status = "okay"; pinctrl-names = "default"; @@ -255,6 +269,87 @@ usb_con_hs: endpoint { }; }; }; + + tps659312: pmic@48 { + compatible = "ti,tps6593-q1"; + reg = <0x48>; + ti,primary-pmic; + system-power-controller; + + gpio-controller; + #gpio-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&mcu_gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + + buck123-supply = <&vcc_3v3_sys>; + buck4-supply = <&vcc_3v3_sys>; + buck5-supply = <&vcc_3v3_sys>; + ldo1-supply = <&vcc_3v3_sys>; + ldo2-supply = <&vcc_3v3_sys>; + ldo3-supply = <&buck5>; + ldo4-supply = <&vcc_3v3_sys>; + + regulators { + buck123: buck123 { + regulator-name = "vcc_core"; + regulator-min-microvolt = <715000>; + regulator-max-microvolt = <895000>; + regulator-boot-on; + regulator-always-on; + }; + + buck4: buck4 { + regulator-name = "vcc_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: buck5 { + regulator-name = "vcc_1v8_sys"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: ldo1 { + regulator-name = "vddshv5_sdio"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2: ldo2 { + regulator-name = "vpp_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3: ldo3 { + regulator-name = "vcc_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: ldo4 { + regulator-name = "vdda_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; &main_i2c1 { From patchwork Tue Oct 3 09:11:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13407299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C107E75438 for ; Tue, 3 Oct 2023 09:12:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Xc/tfrxb8stghAEiLhyS85K53pte7x/UuWROtbWiSTs=; b=nsVupWFjnP+EWi 07MJ1+LWfdCFTJob84hsLlrOJ91qSTbNdtCbHLQrqLq8s0PjGTybyOjhGFZUf1uG29+sTpD+3HruQ 8zXwdrIXiLYWsrURHXj2wKkszAu9+MEf3VQNvahlnJO0lT170im6Rzi3kop2HV3Vw5Q1uR/tZoi/1 IJdSg0SuEYJcyiCgpP8A9H6jKgKfG8swzhpjchp/MUKN3rwWzg0DSzHyZ5XWWwkjl5JU0QE2B9xNF GTcqVDUP/FNN1bzMBq7z7gqzcrYdaA0Cst8FjKFl6AqpBPNhYoHcfNemS0kwhyn/5BmZMrljmULhh KY8clauGyLOYiALZK68Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRs-00ECg3-0k; Tue, 03 Oct 2023 09:12:12 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRl-00ECb3-2s for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 09:12:08 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3939Bxgr034489; Tue, 3 Oct 2023 04:11:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696324319; bh=KKr+QvZEnvmd560G3Pi+nMek1mf67eakn+QhxahTASg=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=VHWf01ju3CwhKuJbNyYHwS/HWzY58xF+LTfEZYThKZU5F/7gF777NrbG/GC457EbD +z0/nA95c5i8sEqeUX7TFdSlikc37+M9dhzOW6WS7Hxf7fa+uuUxTBOtFIJZUwky0P s49l68mu4/CUBJn+2RUerHj8TrRn7VibUoPE9vtw= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3939BxxX000953 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Oct 2023 04:11:59 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 3 Oct 2023 04:11:58 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.23 via Frontend Transport; Tue, 3 Oct 2023 04:11:58 -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 3939BvKx021446; Tue, 3 Oct 2023 04:11:58 -0500 From: Jai Luthra Date: Tue, 3 Oct 2023 14:41:34 +0530 Subject: [PATCH v3 5/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A MIME-Version: 1.0 Message-ID: <20231003-mcasp_am62a-v3-5-2b631ff319ca@ti.com> References: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> In-Reply-To: <20231003-mcasp_am62a-v3-0-2b631ff319ca@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=3271; i=j-luthra@ti.com; h=from:subject:message-id; bh=+xkZpNOowzAe51tzMWmJuWhX5IV9tm2zm+W/RB+Jfgs=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlG9rRkPQktzC01NM3xxNT6+Ktj9stwSjGBiR0z zIqqClvPlGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRva0QAKCRBD3pH5JJpx Re9dD/sFpUi/UU9bWQcutcZAfMBkXbnl944K1gH2ZU6y3XpQyvhJnGAc6NBhPvQJl/dJ/ETDs+C N7V0NCRKqPxiXFlq1xa/I9miMRXdx9lVzIdfFRxiYx5aGpTiJ4MfZaSolV36AA7QnQPFpmp9ZDo ZpQwWVldsyyz2xgIbbtDTD9EhsCSbaBATJ/wTTM3/hHp36VfEg1mv0q9tCklfxDNWDK/W6+Yif2 vIpzLgHB2vWlaNgc+R1jYf8YaZwE+HFEuUsCt09jIGDTmuB7E9k5oPv2FREGWIY8Du9bTfVK/rj aTUzrbzmYf/HUC4VEyn5xPGe0wX8d2PrgrT4vWMXDJNdqMRgbZ4D5qCLNM5/rQ8PcVcQHRsWjzi dvsNWqfNSBOrSZJIG5G9bkXd+9tytdbnouM/yKu04ZtdFgIxv5BLqRWYCH5rscdd3PC6L+apsTE Z2Vg0oOJWDZL5IcErcyNba42DcYsFrjGOyY7rPRYTJVmVfsd8XUDIWpE0xIXSdepGbfJ8TpY9rV 6BPtkqYBI5wx6ie0cq+oqSs6/R9BOf2RSF83FH9s0Nm/nzqxiIt2Dk9fcN26CqU6ONrYcUz35KS 9YfVXYV/uZYc2dadpwGn3XzU1IdoPr3sOQMbhf3zPxrPutLFyTR7oF5KBg79jLg3mSradtr6OcI fMSOdmiVWr6oa9A== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_021206_014089_9D78AFD5 X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add nodes for audio codec and sound card, enable the audio serializer (McASP1) under use and update pinmux. Reviewed-by: Jayesh Choudhary Reviewed-by: Devarsh Thakkar Link: https://www.ti.com/lit/zip/sprr459 Signed-off-by: Jai Luthra --- 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 377ab823bbcc..8f64ac2c7568 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-default-pins { + 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 { @@ -377,6 +421,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 { @@ -467,3 +524,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 Tue Oct 3 09:11:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13407301 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B73CCE75439 for ; Tue, 3 Oct 2023 09:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jpeler82zcWPIXbv9EQT3heJK/Syj/BqhgUjUi3yaRQ=; b=anCwYr6YUjsTw5 9nxVaLGb78IsHtfXljARTxqSHu7r1nmSZa6VFN9ASe2NcAigHsP5iu7Tyw5U/7auz3JIPFzzIojgv BttZWgwmeomgHrVfcmlOiXpsw+eeNJk9haSi3ye6nIdYjtzkiRTqwbdsHvbH7XV8rVovH45532+aP 7YJd90hf3WmD9XZTUD0QQ5ZJS2mPaTIuTZODJSm725fe7jnmjmIgAxnDv9cKEGtfjqKXHEjNdwJeW zWCxR33aIazCWD6WyccZ8/gfAnvkbizhAbZhI6Vq23liQ/fNUS1vKLu9c2I90AlWLpeHvF35+Fg1V brdfHY6sGz0rRI1LaXXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRt-00ECgr-1I; Tue, 03 Oct 2023 09:12:13 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnbRo-00ECcl-39 for linux-arm-kernel@lists.infradead.org; Tue, 03 Oct 2023 09:12:10 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3939C0eU066359; Tue, 3 Oct 2023 04:12:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696324320; bh=o0ED1kfJG1RufpI9CAgyV1TxWurfgTv4TIBc7Zp6N1g=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=vmStWs+HGM6w0K3EsMxfA7VdsXP4O6Aq1CPdHrik6dybqVsE284HDd7oWxazPYnq8 vC0yn2p+8F5X+X71wHnhBAF/zL+JSOVsF7loB+0w+pVTD+5HzQNc0gh2jO7lrUgxAS hJoHaAk5UBQoyLGdBkqp6WikXrHvRJ5uQQ6PnMM8= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3939C05A034797 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Oct 2023 04:12:00 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 3 Oct 2023 04:12:00 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.23 via Frontend Transport; Tue, 3 Oct 2023 04:12:00 -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 3939BxV1036852; Tue, 3 Oct 2023 04:11:59 -0500 From: Jai Luthra Date: Tue, 3 Oct 2023 14:41:35 +0530 Subject: [PATCH v3 6/6] arm64: defconfig: Enable TPS6593 PMIC for SK-AM62A MIME-Version: 1.0 Message-ID: <20231003-mcasp_am62a-v3-6-2b631ff319ca@ti.com> References: <20231003-mcasp_am62a-v3-0-2b631ff319ca@ti.com> In-Reply-To: <20231003-mcasp_am62a-v3-0-2b631ff319ca@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=867; i=j-luthra@ti.com; h=from:subject:message-id; bh=/Lj5kyUdXlkA9yGStAcfh52IUoBdgRQoHn/afCOf6+c=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlG9rSoc7jBFiH69KKePPfR0TAho2Tyl8+v48gC YmXvD5K1CGJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRva0gAKCRBD3pH5JJpx RcVgD/9HqCgJDE8mu1VtzHLYBv0oo6PjkcesEaNZXOC7H/jEUVBLHxyVhaouICVlOXsGGRt386Z mJln2Oljvc4iaVOnBzAnWpK3hb3qaVSAYWZLH5VNuUkJjPqbpKLFREa2yu4EibhPQp9sdFJWsrh 0wlj8GonyFgEdhOp1OWcWRHa2FGoB/wY/N6qKa8IyK4dXb2O5f68AFVP+reQxZ5Od9R8R3LVlbc j0yF2FvX8DoZMMbOz00XozNbQMVa70ciMWKcINUuBdw+AewlkpSX7F7k7QIJUQvMU8EmtMMK5mh +tnuNVegNPuY0tw/hMv8K78vyF65NimxVCg4ROqLiBgs+MePMZcFujJGdg/R7G7OohIvPx20tB3 XK01dgLgj1FGIOU9LQW9g7d8y619poedhdAQD3qu5YUH6DFgNHeoC7SF+VIHtB63LiAtZo98Pz4 T8R2uEWcBdcKFBmvU1TTwnK6NKNYv37HVSb2RkRVWPIAjmqnzzATtmhBsMI7LQJgIs1Yylov6Aa EC5wOyS09ZYsU+MIG0KzCc1NOMt7l8JRomEzsNa87z9sbzFwrh1VQ9VozmwuyNS/8Cz0kytoBuE h66N+leHWbBoxlStpepxNFzy5bs7h1wGBUg6CpCtPgnxbt01tzIZfofGql4VMAPPO5xO1dr21MB 5KwZ++XS2UCurbw== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231003_021209_098989_434024A6 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Devarsh Thakkar Signed-off-by: Jai Luthra --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 66bfbef73324..38f0ce9cd2a3 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -725,6 +725,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