From patchwork Thu Sep 28 09:24:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13402390 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 2A50FCE7B12 for ; Thu, 28 Sep 2023 09:26:02 +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=Sdv3/VkS0n5yfc JcTSGZF77pG5ahA+oHfkJ3Zf53FFC6SYEDUSjImvP1VLKGFDXkQayCfB20oHiP5m8QLiNX9bFToex +3+liPHe2HEa+6mLCZxXjFZPeiRCUK3wGrb7Tfj4xOPLFK36OTlp2XfkK7q3nHbU8XxWLCa5armcQ lcZtbcoQWLWwD7RktvXe1wWe3PK+8sgEgTcsPwaNyuq3KFrJiar2yx/1AsKQ+c5o8M6OVFAlSVxF8 QLlrS9vloeSEBX6tGRRWtTysEMNKmtjudvCkKmFUYCdD8/+OG5ZwxNub3yTNvnyuXr4RmMZvJxlJ5 XmTWxa83UyOM0iKPprWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlnH1-002jBc-2G; Thu, 28 Sep 2023 09:25:31 +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 1qlnGl-002j0V-1S for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 09:25:17 +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 38S9P3fd069043; Thu, 28 Sep 2023 04:25:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695893103; bh=P9o4tq79uA35dbYJVQYuXuuWplStgOw/NJTItLt8iuk=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=H0cHi6ePX9OIo9v4qddocyrXGHv0MMp8MFMueJvJY5wqOdRCx5rqnauhcJDdkYeCX 1Kx2mL4qAXqgW3v9OtIxDo7YTjTWiN06SuvTTUxwkfOjtm/NSxLQCO+Rs+ve84APEn l+A7yhOC646SU+IrLBPTzLb/pv5BviP2ouvfyCZg= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38S9P3DD013012 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Sep 2023 04:25:03 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) 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; Thu, 28 Sep 2023 04:25:03 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Thu, 28 Sep 2023 04:25:02 -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 38S9P1pY090139; Thu, 28 Sep 2023 04:25:02 -0500 From: Jai Luthra Date: Thu, 28 Sep 2023 14:54:26 +0530 Subject: [PATCH v2 1/6] arm64: dts: ti: k3-am62a-main: Add nodes for McASP MIME-Version: 1.0 Message-ID: <20230928-mcasp_am62a-v2-1-ce9f0e1ba22b@ti.com> References: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@ti.com> In-Reply-To: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@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/ZANAwAIAUPekfkkmnFFAcsmYgBlFUZhnLmWY1gkdjpYkGupilQzHrolEFlysUCQb 8/fHYwcHOuJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRVGYQAKCRBD3pH5JJpx RXAtD/9zAhbKwGEn+nq21jbBkrSD3LKHFqKhjLZVcFOU7QaA/d0y1BdjJSzZzu4fIZg5J1RAga4 Rvfw4GSJ2FVzBZR7M+KDLoNdhECiAxSUKolXt6hKGtv7ql8lfVCfXqdvS20kpiby/LerHhX5cyp j1tbUXy/zt01CqbYK8hH6VHgh16WC8rwFURpWA8TlGLExamfH+TgQA4iCsaJ+suHbZQbhg73ENe sfMjeJf1fJDsM7tS8qtCYtJkEhrhYNL+cWQ/H7BT0tOJ9TKLy2EhI5djOvARj71LIpZ3ps5nRGj /tvwUaVcRljWiA2pRCSu1xZ4nfy4cTh96CfcNMy0P6HqFqcZvY1JJfxHsvh68fdNjntyqtwG6Xg cjG7hHlqBZWoMg1aUi/0mg8UA4bW5bn5hlKnw+n6hpIc49wHPAnSvLMh1ywuEygibEcqdsUBO2E syomPS8Yq0FiwoNkDv9WoWx6f/l04Wda/EA1p7wZdJ94xX4oBY25rQ0Kxb6qM/Pxo2ip/yITrsr f8O06KDjWLO73YUzXTSIG39DpcXEOXTLkGB1uFV+8Ld6G/aVZpczxG/xlNMlm4cZrflouKOBqe9 SzKvOSRohGcSAlHhZROP2RNGtttoK5mZSzZMNdn1ZDrEloP5XbDeoiQURuhDAUP5K+klgAJ2cjj ZriXtYHE83a2OAw== 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-20230928_022515_614540_3C393EA5 X-CRM114-Status: GOOD ( 10.03 ) 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 Thu Sep 28 09:24:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13402393 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 B6B66CE7B11 for ; Thu, 28 Sep 2023 09:26:06 +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=Rv7dlQBq0uyyCF rpUXfI04Vp9/D/ZGvRGVgmSP1AUKc2xLyhymFMAM9ZOEJmRBziwrTrkMZkCHS7LUL5SsHhvGo1k+D JVKYi3j23Rly2EQCKvVibvXP4hD+snc8G/Dcl6nMJ15/tlkX+HetYSb0lQgVkFbowHbYqOfNwxHEF JntSLEeTRSJHSpZQ0aX2LJnjiyXXRuhtxCkb1ND3xeG+6JxFzfS6WnIVa7TK7xXiyAp4lDV9pRHG6 z7hmAngMjM3DPEnKv+yr9iYpqSONlrWS0fnnw6ouBCZKgHAbuEfymHCYzCzJMZdI82rafqmf0hyS7 sJ5LR1TTbhSBc7oMhwJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlnH5-002jE4-1d; Thu, 28 Sep 2023 09:25:35 +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 1qlnGo-002j36-2H for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 09:25:20 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38S9P4wG104284; Thu, 28 Sep 2023 04:25:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695893104; bh=VOgmZjppaNHRvb+fq7iB4eyXgEBm+n29yek9u6VmbPM=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=M7WdNJwK1s5Vd7sGKOy2TrfBhWTyz0eO7OuYvtS6Pr79vZcjAlXoKnARNDntseNbs tHKM4/4/j6mYwUJRGwIoHlbnQnR3iHVZ0QGRJ5nsIakjquuDn6bx2KBA3HbX29IDMh 0wM3XFelrN8rg6jsnght5MV9wqtXgQ1OBMypjmjM= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38S9P4ss006600 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Sep 2023 04:25:04 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 28 Sep 2023 04:25:04 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 28 Sep 2023 04:25:04 -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 38S9P3tj090367; Thu, 28 Sep 2023 04:25:03 -0500 From: Jai Luthra Date: Thu, 28 Sep 2023 14:54:27 +0530 Subject: [PATCH v2 2/6] arm64: dts: ti: k3-am62a7-sk: Split vcc_3v3 regulators MIME-Version: 1.0 Message-ID: <20230928-mcasp_am62a-v2-2-ce9f0e1ba22b@ti.com> References: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@ti.com> In-Reply-To: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@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/ZANAwAIAUPekfkkmnFFAcsmYgBlFUZivrZAvboxWYTPt/uQfEC9X/DYuWAvKBMNa D/89vc5DemJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRVGYgAKCRBD3pH5JJpx RXdeD/9Q4KaKvu/CVwubxurKDwYapnMFCs+mLI9ktR0E3ILIn5+gVWEKLhnvx87OZkXmkx7W5qK NuLlQ8eHGLLQrebVtjlt2c7IvzSqZgoVNy7Wi6gJUSbi/EnC4Ml7kAtjJuAQDNjnDN3K4eQhHn7 hdSaLFr1Y6o3CMoPVI3S5TQ2KS/90DogpCwoeHJ6cM2s4Bf9oJHkJzEMvaLsaXRlOIKty7JlcSw Hc9xWfduyR8i1KFJvTwLylFapic0e/nOIlWorr5/0Ms12WVPvwW4iDJIQ3/eQn6Cp1Oji6wfkoW Dbd8TSVFPynSJy6B08/3dB0u9jq6N6xnXVow37JwfIv+uB+pxkBIWhIcgUdL5Ui+KUSvegpSsv5 myQ6lwJnovgPwzQCVb/B+pKgzUVEjQQ8fluybgDvFag4KapxncsxxeUuXLCcs6vMHh1mgfCIXcs 8K1uyo7FWszMcKDgLDCR7l4mA6l29BsZUZwGK5UqonPfokt5usEEvmDewxXMvGzaVJgaenpLomq VaqpNZybZtEDYE3JPdQFdptRSj7YKguLGmompAy8VSSw8DsM2RZ0zJkuty3oxn5EbqHg1g5vbRs Xpi8alxtd5ikSGkTj8LthvOWw81kzxpJQUV+CQGt9qaUmnCPxGNPC7sIqUyHug2kRaeJnrh89+A 2HpiSQKzB6yAAKg== 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-20230928_022518_974547_B361E74D X-CRM114-Status: GOOD ( 11.40 ) 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 Thu Sep 28 09:24:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13402388 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 C4180CE7B11 for ; Thu, 28 Sep 2023 09:25:58 +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=otjZGWVHbt6GfqmsABSTD5rMD8QXdIfgvXCyQ6jjAJ0=; b=Cbyc9fDjMH7pzz GXh4bmOOfDu6TcYFB586ZmKvi6T2kB+AQRoqIk9fjV4T+GUzW0l5N0lTdBfAdN9HKw9V31Cs+Tlzl ++gnkp79EGK7fjkNhIyYZN/aHkcEKgzlX7GfQLAAvZniUOAGB62EOgH7Rn060XM0QTSSlyVs7ojrs ylL6FwVk/I2vyGcS2fY9fDksbX/Sb+PwHRreJtIZEgAy0hA3W/mdWp/22QFRANGOBPl/mPqNtdC61 w8z9jNXEO1veoVKVtx9xh+x1NrakLMlmawoi/w4uO72COTHEPB1An8tdOMyBujI5/5iZVboqwEH5E WF/KJd52X64Y2IcNosJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlnH2-002jC6-1l; Thu, 28 Sep 2023 09:25:32 +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 1qlnGl-002j0s-1T for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 09:25:17 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38S9P65O069061; Thu, 28 Sep 2023 04:25:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695893106; bh=CpTQhz6CzpXT4DLoSwddHTVxsIKxiCg1g6FnlCBYdeQ=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=OnYHrAHsSMLfiAl/k5mTKtvsMGLbhD3ZDtwihmsBHXnM7hU7w6TSEc5uHU1+lq5Lm UcQFfAZTF5DcCEBHBCMlsrdMT8e8tmTGEPh/lOMkS1156r2nDUdq9ilGKhNHTCinbt Fsw3VRI0KhnhoenlvzUtnYwwRJ8LF4vadTJwXySw= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38S9P67u006622 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Sep 2023 04:25:06 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) 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; Thu, 28 Sep 2023 04:25:05 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Thu, 28 Sep 2023 04:25:05 -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 38S9P5Rb022111; Thu, 28 Sep 2023 04:25:05 -0500 From: Jai Luthra Date: Thu, 28 Sep 2023 14:54:28 +0530 Subject: [PATCH v2 3/6] arm64: dts: ti: k3-am62a7-sk: Drop i2c-1 to 100Khz MIME-Version: 1.0 Message-ID: <20230928-mcasp_am62a-v2-3-ce9f0e1ba22b@ti.com> References: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@ti.com> In-Reply-To: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@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=1007; i=j-luthra@ti.com; h=from:subject:message-id; bh=kIS3ZLOQp1627tfZHv/33mM01dpsIXBto944wmubaH0=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlFUZjJdY4gaFWroFOHK0yOVfcmElw2Lo5JJ8d/ D6MvNu61i6JAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRVGYwAKCRBD3pH5JJpx RXDQD/9O8JUwmOBhP1Ig193pqbn412hNWLwz3seFWiN4OJHgQnUZxfQTrWreIMjbtjWAZ7GLqo+ ZzLgGLwm7RGOwx5v9KvqoUA2A0MSU7jztzVO5CuCsd+Qm7LTibwZTeuizC4bUPquSh3EL56NtM0 6sGCwTJub1hcnDl6aSx0xP3eY1klcq5xO8Zi9C26AlAPhYoUTjK6PVrlpxVIjBh82fztKGDln+0 JYhD/5ptCWWLjbRP7wrzcCxpKWXPaq7UvzGIvkVwKrZFNE+q3Z9S9JCKOrsDWiHKE1hNz4OKRY9 kVy4a7kKFBxaqxu9NGKlCKV+lLyiCqA57zyQJsdlU6Ty4hoistdN4EGzGBohZ0Ha9gb+hIpBHIA W7MZ33RF70tlbiw58gHKrJOm3U8ypu6yd/qV+n+/r/xxnbyRxiuqbx+fhU2Y34ZLx8KgiQcQpNS 0e6yHRTQ4qOTW2z7OlYM1HSvX5xO44zkd8d+aGcwUrn3cBZlkvYVsTrIRjz8zinYFeqFsPQxjvN rZdZSv0/qh8fSpIOZ89tnLKsgMyrvq2TUnh4gKNckgCujgSTcfmkvc/o/PVTEgtPFYsHaTsChyY og87AFze2GP+hQWtgBdwcR1kvTSfcbITkFtClg6ZgiQr0o0KO65ZOxIDDDJBRgXTqT7LSoH0lHU Q5q4wB/6jkAwJdg== 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-20230928_022515_694316_23AC80F4 X-CRM114-Status: GOOD ( 12.76 ) 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. Reviewed-by: Devarsh Thakkar Signed-off-by: Jai Luthra Reviewed-by: Aradhya Bhatia --- 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 Thu Sep 28 09:24:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 13402391 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 49B07CE7B12 for ; Thu, 28 Sep 2023 09:26:05 +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=CS3EHN8RjjBN1u Qty+Iece7Q/XKsayjqqHTs1rxvqmTLo8Poo9KavHVvlReqKSnC8Zzd5LMTJd4Ybx5qHh1+NrOpC/y FtKpLF+N5nH5vZg/Ly21rh1c2TfIpBsk2vU/A/nPmOkhU/Yr0Q58DvoVLXxT+q6I5JcMSdHHnpezW x1azOZuq+mX7e2Vtl/phMfLSD9SQh6QjRFJsTNYpPioOl2UA9+PTba+1VBkQErEaPY/NZSnTN6aus I2pfM5q2i6C3lEg8BN3vL8nAXRfAp7Fji/1qXfB/jMA83pyObX0+ACl7ca56tfjSJdKgDhdKS5y0m 2cg3jxSJNHmbLfB6t1hQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlnH3-002jCw-2U; Thu, 28 Sep 2023 09:25:33 +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 1qlnGn-002j1v-2Q for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 09:25:19 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38S9P7Mm017395; Thu, 28 Sep 2023 04:25:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695893107; bh=THpNGIXD7z+n0ObTIdk4Tqnh5fvfLcLedV5S/VNCL18=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=HyOAUN8BfaIbivr2L/DUVasCSaLM6itpsXOARoYzwhq0iL6L8CEdLwuDOIB4h8NxP aKxF9+1cRGNnHijqy3ZXwZMH28+APJFr6onOrf0gkT1JvbsH60a9EYerd2cL93XQLs t6GmQ2USGrd5nhhl36KrFipjfw6D7xnIzw5D5dxk= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38S9P7j0012950 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Sep 2023 04:25:07 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) 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; Thu, 28 Sep 2023 04:25:07 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 28 Sep 2023 04:25:07 -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 38S9P6Wk090442; Thu, 28 Sep 2023 04:25:07 -0500 From: Jai Luthra Date: Thu, 28 Sep 2023 14:54:29 +0530 Subject: [PATCH v2 4/6] arm64: dts: ti: k3-am62a7-sk: Add support for TPS6593 PMIC MIME-Version: 1.0 Message-ID: <20230928-mcasp_am62a-v2-4-ce9f0e1ba22b@ti.com> References: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@ti.com> In-Reply-To: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@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/ZANAwAIAUPekfkkmnFFAcsmYgBlFUZkkcVOT32WfAo8D1XYHzejxrgOaurlKEs7t OBuI9YkuESJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRVGZAAKCRBD3pH5JJpx RdgID/40uEya1aJv/r3tI1H9yzn/1wUf60ejnHkS+/JPs5ok6n2ENC0Vb93sb3ChTmdCglhknWK zkc04+jeLOsBJaAOhMxiwnP9bGMrp/af36jAUhpYWIsixBCokQYJADWAk/Y7esPQERYpBAP+qL7 he18iRC7rYG9JUawVBflh0q/s6aSv5OjUV85Fdy+pmqBoUjLXy87w+ovxsPvwvuc4gQWef7T0At wXMS25b+hPbLSSnJSha4kX6taGOQkSM4yfkMnigx67sNnQpqQJxyKlmzCY9VcaHms79g+szFjkZ jK7/Lg3dr8Euyh3ugSIZ0wJkj1z81ft8d9jwkGQ95SdGmKTjplY0y3DPOByoct7VJNYedYSRuBz 0KMkZK9MdgDTuw4dvScN5KxNwULdo0I/M64Fa/wfPzHtisyjxaxA+j/THzKAMExRYKlXyY+v96h BYiKtu1sLeTlRAdcdj4iwNYfq8NM8VIpF1siQPfkBOgI14DkZox/GjwMZVtCSxs5gpxarJE+B59 5g/Zi4A+6o5xZo7D0lAW/6KQ1681VDt4M5IjTJyWFMn0pb2rU0qaydm96NwGUs3UfDEKN21kA6k spY/owav335pTCGyDWoSawYN6h3xH18IjJH/CxjW3swhwTlxfTYCJdZ4pKL+/2L5sCwCvKxJo30 V3iX+xIBPz6iL2Q== 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-20230928_022517_969034_F33ED6E3 X-CRM114-Status: GOOD ( 12.76 ) 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 Thu Sep 28 09:24: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: 13402387 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 4A8EFCE7B12 for ; Thu, 28 Sep 2023 09:25:58 +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=dhtLGm/ME3JUbQXIBvG+Co2zVq/avqsud1JGqroL9Qk=; b=LwE8DPeB7cw9Ug oSVI0XYlkawwm3rhsAUY9JkHEhNChT6HKkctGhmZzUyt/1JouRS7iHIcd3vuv0q9L5acUEWJ38ukZ n71syOoHFNa3qV6gjTmXlnTzUKymk913y2KqgHuFl/ZA3QNcsTCmMDmxOSKqvPmT2tBoxlstXXMon RNcYlDa5vTIwiMfjxqqPyLf6WdcR7dlnLtIYmB6MUtrAQVEZwvkSYPr94befGcTAH1j4ghz/01fOu L6UHsbwPurIt49e6vqrd6cLktrPOZp3wxyXycdDhuX5HwkJDJg2vvY+imVN35JIZKqxxnzbm1uTIx 9SEdFWV6XNATqY7NVqYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlnH0-002jAx-22; Thu, 28 Sep 2023 09:25:30 +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 1qlnGk-002j1g-3B for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 09:25:17 +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 38S9P9CD118943; Thu, 28 Sep 2023 04:25:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695893109; bh=QldHW5aQ92qfFoxi2g/iZZDJsi0V5jj+6uN5TcYh0Ls=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=NdWtzcAgsM2ehwMy8oWeuNQGMc7d8c7QRr4ynBX6H4kSLTx4g/Lm69D5Lej3/z8ti pFvecB2rbQpvOol+rRMZa5MkpFWCZyGdHYWoUk2xEFdM1V9SvtwoHnEd40de0i7Nrc yHyJTbRgaF8+kNOglY7HbuSaANBIOgcrgj7zqwcc= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38S9P9DM077544 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Sep 2023 04:25:09 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) 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; Thu, 28 Sep 2023 04:25:08 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Thu, 28 Sep 2023 04:25:08 -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 38S9P8Br020218; Thu, 28 Sep 2023 04:25:08 -0500 From: Jai Luthra Date: Thu, 28 Sep 2023 14:54:30 +0530 Subject: [PATCH v2 5/6] arm64: dts: ti: k3-am62a7-sk: Enable audio on AM62A MIME-Version: 1.0 Message-ID: <20230928-mcasp_am62a-v2-5-ce9f0e1ba22b@ti.com> References: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@ti.com> In-Reply-To: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@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=1F4EHY5Ra0+GiPN+5tdT3P1uireAl68KMG4dSOF8F/s=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlFUZlskkClleRXBjtrwy0RhB1Z37N3XiAO4III yNn84nP6vKJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRVGZQAKCRBD3pH5JJpx Raw+EAC/IdZeFuyj9C9mBNczBedtWwNiSgGHO3fJXGwpvB363dgH6DhkGZY8j5JYqv1byKu4+KF IqjB8LguodXvT0/La07ZnwZMeFCj5FQRw57X1NXXIqpDzO5L2zuR1sNli6mIu+fg3zykUoKrogk PIHb0DYYLG5rFFsTofo5aHJr0Q30Jyq/CEYw44yvbrclbXBci+uRzHiyld0eE+evlcOdlf6THwp 9TJTr9bVRqLtf4axQxpGGP4RudKFVM+GDZCkr3BYINSjZbKHPmsyV2OVYiYpB4VMcDPrLI8qP0p nP9Vfbs3nV0dAjdTWlTuD83yma4RvG8mTYFpW9B+fq+rd6HNnnsC0HhamjPQEvI8lP+ZeaIo+ei n8wwIdhrqB24/81LFTfJ/9WOu/lDNairnz9Dkhjy5UDqsE4LjhwRjpV0S3SvN/Ly3V8/vtaM4Mg RA2Fr1lBhItVo0FtnZQ6yfcokc77suK7Y8Zl0bSyKpUl5eVNJMbyx7uMbLuQvEG7XYnoL4eOSRD 2f11dR27x7SXz5rBZ06uDn+o7wCfrwTyhA4GKKUMvXeO3Zb6SjDuBNU+fWiKnYZQQ8nph3vam/N X5SF1onhSOx62+AswsPjYpxKNCawRr+tZc5FJz5/3xvGhTZpG49x0629kex37nnu4JmrbYq/Jln boQYvTzywjFW6PQ== 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-20230928_022515_123558_9A5FCAD3 X-CRM114-Status: GOOD ( 12.58 ) 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..694eb36b4eb9 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 { @@ -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 Thu Sep 28 09:24: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: 13402392 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 49B3BCE7B14 for ; Thu, 28 Sep 2023 09:26:05 +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=sk4ffHn0RDuT5p w9xElMreMSo3oHkckSMcQRpTQFOBzAS6eii3Wh39vElkKecmw7kil6audu8a3wSqzgypogtPlGW3Y 4WGvsmGgh350KsCNoBsN3UgX5d4PvIIoZlrZX+PnhohJAnm46jp9GXGS38h1Dd+fTf1OXuZsSGzHF bUnQ8AUgyz0Ca3HCtj+IKla/5b7RH7R/CJ/WgI4L9HF1nItAE5d6lwI7tvcKGm9A8Ijq8XKDhJfyg mf/Hd+/hb6izTWYy60sOMwCCkV3CElwbl+J5mH8JW4ZhRDSAyNG0jAGTfxcKHyBuC9IUh8puQGu83 2E/HE3S5Tx/Emc3l2+HQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlnH4-002jDS-1y; Thu, 28 Sep 2023 09:25:34 +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 1qlnGo-002j43-2H for linux-arm-kernel@lists.infradead.org; Thu, 28 Sep 2023 09:25:20 +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 38S9PAwD104297; Thu, 28 Sep 2023 04:25:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695893110; bh=o0ED1kfJG1RufpI9CAgyV1TxWurfgTv4TIBc7Zp6N1g=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=s6kvyYv0IrHovbvZq9KKX2JghoGppsy0vNEtq24IJg1qLNZEasa1rg5nDk/kB+8u/ l0z7yKul1coqQvnm9QF0evvpSs0SdiYu9rFd/It1SjnUIk6PGMGFYGPAxyP5Qkjamk 4KW9JLeedi/00MWhYoG860BqDdcH0dl7i7v5gqZY= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38S9PAc7013142 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Sep 2023 04:25:10 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) 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; Thu, 28 Sep 2023 04:25:10 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Thu, 28 Sep 2023 04:25:10 -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 38S9P9Xx121283; Thu, 28 Sep 2023 04:25:10 -0500 From: Jai Luthra Date: Thu, 28 Sep 2023 14:54:31 +0530 Subject: [PATCH v2 6/6] arm64: defconfig: Enable TPS6593 PMIC for SK-AM62A MIME-Version: 1.0 Message-ID: <20230928-mcasp_am62a-v2-6-ce9f0e1ba22b@ti.com> References: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@ti.com> In-Reply-To: <20230928-mcasp_am62a-v2-0-ce9f0e1ba22b@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/ZANAwAIAUPekfkkmnFFAcsmYgBlFUZnbUw5nSwPtomUBH4NLaw//CRnbWv9s8MaE 8Ep8DCTFZWJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZRVGZwAKCRBD3pH5JJpx RWIZD/415zV3mz8jK19pj5dxOhPYqM0c67jMJwr5iixRKbcVt3R4kFTonmnPI29S/zTV4s7iymZ /tBLBJ7Un4U0F+VJZ+0kiUjnhUKlL555Yxp1VXSSvJTBlKfFbMGPfE6vIaCG2hXeubsor6CTNup oh3HFiSiI5+Eb09j+EjEXvB9BGAfunZPLqtSQzOphscNH8asVepBhOeUCyLvgtbXEAYD3AKo3+g zX9N6eK9G8XHk5dOr/CWeJWmp4gvB6GkNZpNUXz756WRzCxWHWuADPuzeqVDAGxys6EF2vN3jqQ e4DEaSXII37lEJKEbACNNO3QC9anuNTAHGWiXLwpuW3bt4WycyubMszGQYsm+AqE5fUAIKAA8Dc zCDOUF338oGZryzEm44mbI3zKDBQnk/HiAZfkmzEd5WJH6X8kkHnRK97ULyEkdSAc5Q3isHZx9n 9oCRR6igYNf8x/OIm6TocVTUqdpdH9FPGEAEcQ4G4XW9k9a+qqTy+wc15uZTM1p0CYMggUDIDs+ 2iNPCA7cqzTgpihleTGh7XsTJA3JC5fTx9SmyBpPGSYlLcYZ84gauWOQDv9hgapXrlYePHTT2IY SpVInTK3+eLtBz6DfXslBHU9ENXWhpoMzLuX34gHrbQJ/Qy0/8WEmKFoykFdGtFG/mWG12s562a mOm6IXDmCkH3olg== 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-20230928_022518_960124_AC568697 X-CRM114-Status: UNSURE ( 9.56 ) 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