From patchwork Tue Apr 9 11:42:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13622383 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 5778DCD1296 for ; Tue, 9 Apr 2024 11:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fwMVX8nXGR7G4+mZdwTLKL5GcVQpmgj1c5em2QOYGBc=; b=kNpabpEi4Uu9FrnHqFCmxE6tqM GYUWzgRPdUSpUhsJq0e7YBcfviQYKRMhQ/KunXs12vikyc/HS/zyk+rsE1OHc6ss5mLFWyZwQ5R1d I89hs6exOEw28JJZ0BN5+4mg4hPFFs/Yum8o0hEN9ORa8Oc9NCvOXxNqynYL8NuaPpNG3u3qwe4Go ywPvWlJDWbQbOXB7S11et6/kOuvVwPGoQu9I3wDDE0JcAeTh21gEkW8jnPWBRABHjqY7aLZL2jK/6 gCxIfEcFdRcQ7u5fRuMjZ3O3os19cHVEu0cmBzoKUi0LczSaDqs05Z2JNCeU+rNDGz+IPAG4zLTwo m2dO4pdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9s9-00000001koR-3Kl1; Tue, 09 Apr 2024 11:42:41 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9rv-00000001ket-43VT; Tue, 09 Apr 2024 11:42:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662946; bh=v4vUCuSjUww6FJAfXwVkRyRenCihx6Rkh72bQi4n8MQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h15vBCMvFNJEepnXxpT1jZtNp37p8f03FkdXhLd6AzvvZzYAyBdNIQe0ud6IUbmO0 4b8wLG80kk1IO6NjPAPdt+zDxDJjUJwyFExAjOndiHRuvqUoTgZbUinholQ6qOREcP A+jcnFPaC9ybm48SJI0490KddvghK4WSXzl6yfveRumMB+bwqrY9QCL2kTTswpW6WY OcUFE44wOpTEAay1FNyiIrpgvLA7YmrxD7UFM/QS+njM1IRuqc7NvIt4ZgGK7TuPcl henBVapu+v0hMtt/owY6KG70Ws24yHsvLw3ReFrBJhBbLU+xlrW8TJ1CuRXXv87vjf M6R8dzWKUYntw== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D4F2837820F8; Tue, 9 Apr 2024 11:42:25 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 1/5] arm64: dts: mediatek: mt8395-nio-12l: Fix MT6360 regulator nodes names Date: Tue, 9 Apr 2024 13:42:07 +0200 Message-ID: <20240409114211.310462-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> References: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_044228_153001_48B9B580 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The regulators' node names for mt6360-regulator are supposed to be uppercase. Also, drop "-regulator" from the usb-otg-vbus node name to make all vregs to probe correctly. The alternative would've been to use regulator-compatible, but that's a deprecated property. Now all regulators are probing fine. Fixes: 96564b1e2ea4 ("arm64: dts: mediatek: Introduce the MT8395 Radxa NIO 12L board") Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index e5d9b671a405..18182cf073fb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -216,7 +216,7 @@ charger { compatible = "mediatek,mt6360-chg"; richtek,vinovp-microvolt = <14500000>; - otg_vbus_regulator: usb-otg-vbus-regulator { + otg_vbus_regulator: usb-otg-vbus { regulator-name = "usb-otg-vbus"; regulator-min-microvolt = <4425000>; regulator-max-microvolt = <5825000>; @@ -228,7 +228,7 @@ regulator { LDO_VIN1-supply = <&vsys_buck>; LDO_VIN3-supply = <&mt6360_buck2>; - mt6360_buck1: buck1 { + mt6360_buck1: BUCK1 { regulator-name = "emi_vdd2"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1300000>; @@ -238,7 +238,7 @@ MT6360_OPMODE_LP regulator-always-on; }; - mt6360_buck2: buck2 { + mt6360_buck2: BUCK2 { regulator-name = "emi_vddq"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1300000>; @@ -248,7 +248,7 @@ MT6360_OPMODE_LP regulator-always-on; }; - mt6360_ldo1: ldo1 { + mt6360_ldo1: LDO1 { regulator-name = "ext_lcd_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; @@ -257,7 +257,7 @@ mt6360_ldo1: ldo1 { regulator-always-on; }; - mt6360_ldo2: ldo2 { + mt6360_ldo2: LDO2 { regulator-name = "panel1_p1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -265,7 +265,7 @@ mt6360_ldo2: ldo2 { MT6360_OPMODE_LP>; }; - mt6360_ldo3: ldo3 { + mt6360_ldo3: LDO3 { regulator-name = "vmc_pmu"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <3600000>; @@ -273,7 +273,7 @@ mt6360_ldo3: ldo3 { MT6360_OPMODE_LP>; }; - mt6360_ldo5: ldo5 { + mt6360_ldo5: LDO5 { regulator-name = "vmch_pmu"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; @@ -282,7 +282,7 @@ mt6360_ldo5: ldo5 { regulator-always-on; }; - mt6360_ldo6: ldo6 { + mt6360_ldo6: LDO6 { regulator-name = "mt6360_ldo6"; /* Test point */ regulator-min-microvolt = <500000>; regulator-max-microvolt = <2100000>; @@ -290,7 +290,7 @@ mt6360_ldo6: ldo6 { MT6360_OPMODE_LP>; }; - mt6360_ldo7: ldo7 { + mt6360_ldo7: LDO7 { regulator-name = "emi_vmddr_en"; regulator-min-microvolt = <500000>; regulator-max-microvolt = <2100000>; From patchwork Tue Apr 9 11:42:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13622384 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 6397EC67861 for ; Tue, 9 Apr 2024 11:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KHjax8GzPpWW5MhmJxyFbVbN9F+mshV4y/CO+mDfdFE=; b=MRoQffblL7y82b3dWdfblVVY9t FeFAw1ifj1SpTsCn7TFlymDBzMlKsUJBSKuu0Ioo3+VJiNiWirYI7RhusaZruBXyEkuwpcoqYaBUK 0XhWgtR1oUhLAIYGxB8PacUB7iJUzKQWGwrXXBcD46sB/YjXt7NDKKBTogmzjRLdUNnW2XrmhPgXI f6g4Eiuw1hexdbzyNNzNgC99TMFXVbaKckyDfK/HawQrAxnRJvvYNMPQJSBiC4z2JL0esu4W74Vhh PqR+KMFAXUfQrgd3Qs7hk/CFmndhsE4Jl0tG8Zt46tdhKOidOHZCJ7sOQ8N3a1vxwmIWlWkPawVLj BIbuGfuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sA-00000001kpV-2VYs; Tue, 09 Apr 2024 11:42:42 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9rw-00000001kff-2ukV; Tue, 09 Apr 2024 11:42:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662947; bh=o1ZO250f2gq4FpmkK9DlGabPiZaW6bBFlLH8cfcJxfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vxz4zJaWymPrDOsrclq/ElwXrIy58HmDaaNpOunu1zE/lVlGv1flya+vlciMTeEpx Cf11bvlfux9qs2/iVPccNsq2G3Jx2AZyXcNehgB93I7jM/WVvPmKoGmMYVf75JmxSc UojyZl7vhlj5V8yT8sYkljQh0Oht6ZyqpnD3dCqxQq0+XvLxE4fcwqArti3neqT0y/ dvjLfqCoQ1r1cGS/TxRN3Cntk8oKtq7NENDZWzQ2nGUsj2tLBmkENn7mCAbI9HXDNv HYAOzjgl7p4k+2D3qXGf5pNqu5sy4B7KavgXJIIcCGVAa1XQkWdlE+Wd9F1GS/FjLF Es/HBEx5YbNRQ== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B999E37820FD; Tue, 9 Apr 2024 11:42:26 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 2/5] arm64: dts: medaitek: mt8395-nio-12l: Set i2c6 pins to bias-disable Date: Tue, 9 Apr 2024 13:42:08 +0200 Message-ID: <20240409114211.310462-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> References: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_044228_963204_1C000701 X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org GPIOs 25 and 26 do not support pull-up/pull-down when those are muxed as I2C6's SDA6/SCL6 lines: set those to bias-disable to avoid warning messages from the pinctrl driver. Fixes: 96564b1e2ea4 ("arm64: dts: mediatek: Introduce the MT8395 Radxa NIO 12L board") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index 18182cf073fb..86f7d4dd5eae 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -528,7 +528,7 @@ i2c6_pins: i2c6-pins { pins { pinmux = , ; - bias-pull-up = ; + bias-disable; }; }; From patchwork Tue Apr 9 11:42:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13622385 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 33644CD1284 for ; Tue, 9 Apr 2024 11:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nuyt1zn1E6u10R4RLD0HYmhIs7BJlMeZw5ShFyoFGJQ=; b=DGitVPXHfnOxptmZM5rnaQdWFr XApWE6mCEGu8T2ZrRi87ADk9jJfc8ooqG0bVeb7Vj3jgul51/+9WaZs2DUXZSsE1YxWlKataxuhCF bb7zy+cZHLf73tPl8dthdTAnAfEaFHaNldSI4WQD4TmJ9qZDwLkAq4iHuXcVOPb8WchPFU+5K3B1i QMnejJLBCRqDf6NBLLOvYXW39VnHepgJ3Ut6q5ZYfn80L9Q+ZPwLINRB/2r92b6udMM9p9HK8dcx5 hHWcKtQjvWb3spt/xXuadCiPKDrT23Y7AymxC5tbTdJ1fMryARFuZD8psl2Bv8mnmQdGK0Rdf+dUk 5nSx0ZVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sF-00000001kti-2ade; Tue, 09 Apr 2024 11:42:47 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9rx-00000001kg2-2ldp; Tue, 09 Apr 2024 11:42:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662948; bh=Xl9MIcf8lfZ5gHbLv/p0PZMszA5xQbjg2yFtG5nVZmE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PWxzLdINqOxTG6w44mrSRWESs5zyZcyU8dCPhaqQTlORHj8EftZOwEfUB1eDZ6fri QbbhGn0h8eMZsEtR9aEaY3f0i6W1v4LMBc9Gvb967Atequs1pm9qKwAOdqNxoicPyo xInbB2Ffchhmw22vBC3jYpkbl0rwsFJytZ0B4aKfD868OAhLs8/vkkIZuJqkCSBP2r RzFId9fbsr6TApp6Hwm7+VCEo2mbKJnc/YUVEZMFPxOJk5WjgTbg6BSf25tI7GaFWm fmVGsak3ZylO/6c67gzNuyeLEocc3sbYiqQ95LGv+cbWQJCH/z2g5otGMomlTtxek/ AveThPDNe34sA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 9D5B63782111; Tue, 9 Apr 2024 11:42:27 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 3/5] arm64: dts: mediatek: mt8395-nio-12l: Define RSEL in microamperes Date: Tue, 9 Apr 2024 13:42:09 +0200 Message-ID: <20240409114211.310462-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> References: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_044230_043261_BA156A3A X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The paris pinctrl driver supports specifying the RSEL drive strength in microamperes as well as internal bits definitions: choose to specify those in uA to avoid using hardware specific values in device trees. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index 86f7d4dd5eae..f699633659b6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -434,6 +434,8 @@ &mt6359_vsram_others_ldo_reg { }; &pio { + mediatek,rsel-resistance-in-si-unit; + eth_default_pins: eth-default-pins { pins-cc { pinmux = , @@ -509,7 +511,7 @@ i2c2_pins: i2c2-pins { pins-bus { pinmux = , ; - bias-pull-up = ; + bias-pull-up = <1000>; drive-strength = <6>; drive-strength-microamp = <1000>; }; @@ -519,7 +521,7 @@ i2c4_pins: i2c4-pins { pins-bus { pinmux = , ; - bias-pull-up = ; + bias-pull-up = <1000>; drive-strength-microamp = <1000>; }; }; From patchwork Tue Apr 9 11:42:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13622386 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 C67C5C67861 for ; Tue, 9 Apr 2024 11:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=R/V8Ctn/36MDmxUjqJ+s9GUAb4WE7E2xMqfJ0WjSN2I=; b=4SVic2Ah8p/fHLCdbokJ38BhBT VeQgQaek5HpNMc5NjIQ8/sqnduwIPTLmjCdxxx8XvgvNKtKo5oSu/qfw5/UrloeXO2wx3M5OZMmBw UKMSLThPGBwb8x9mMlb9gxoz2k1+YJ8r9oWmdFZasbS9ikdVKTPws17Wt4tlBP+gjfTHEQYxYg49P faqckfo97+az1LGJBA1DJj5N80XEaWq/qBJEbbN8oOCo5LLFlSNBSVeziiGtxVlskh9v+dGSk62Ab OLC/R54+0zt6DemRw1bxVPjakAPPv/9L4fG5bW+mvtJR08NEqiEGedAwiQDTfeHqmHjyXeEKjM6lC uCmWGsww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sJ-00000001kxi-498q; Tue, 09 Apr 2024 11:42:52 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9ry-00000001kgP-2gMh; Tue, 09 Apr 2024 11:42:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662949; bh=lRpaqbeDxkCxJuVuV7wFw13Xw8Co2VG0r3GNWGlOryA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=5WhdTDlkiKrSe2GfXSJrPNQond3nkwTpxc3x0pRZGKHszjxKRKNaLKFbBqv5BFXwj mxmeb/aHZw+z9+II0rBbBVPf0j8UE0tpWCkAzwm7c7emzG9sxXRVF35QhON3xDcsJX yig/p4HfQWJAnpgOOGwd0WHvuStK01CRWs9WMJLzPHpuBKeOX6zEazbD57ZOtQrZoc 0bBdD+82QH5P0aKthO5+wEI5aHOa646K8oItvS37R7sF2Tv68PrjOGJwEdIi78I8tr lsSMWjuKw0THnAX8DH8Kk0NXXPfLmendQOe+Xj+gs4fGQCAcrFY7+NSKm1Dn8cBRg/ kerNjyJAT6qIg== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 8149C378212C; Tue, 9 Apr 2024 11:42:28 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 4/5] arm64: dts: mediatek: mt8395-nio-12l: Enable PHYs and USB role switch Date: Tue, 9 Apr 2024 13:42:10 +0200 Message-ID: <20240409114211.310462-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> References: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_044230_940822_252324C0 X-CRM114-Status: GOOD ( 11.77 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Enable the PCIe0 PHY to be able to set calibrations read from eFuses, improving the stability and performance of the PCIe link. While at it, also enable the T-PHYs for both PCIe1 and for USB, allowing the USB ports to finally switch to gadget mode if needed, and configure the VBUS/ID pins of both USB ports for the same. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-radxa-nio-12l.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index f699633659b6..5cbe969da425 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -685,6 +685,26 @@ pins-bus { }; }; + usb3_port0_pins: usb3p0-default-pins { + pins-vbus { + pinmux = ; + input-enable; + }; + }; + + usb2_port0_pins: usb2p0-default-pins { + pins-iddig { + pinmux = ; + input-enable; + bias-pull-up; + }; + + pins-vbus { + pinmux = ; + output-low; + }; + }; + wifi_vreg_pins: wifi-vreg-pins { pins-wifi-pmu-en { pinmux = ; @@ -709,6 +729,10 @@ &pcie1 { status = "okay"; }; +&pciephy { + status = "okay"; +}; + &pmic { interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; }; @@ -776,6 +800,18 @@ mt6315_7_vbuck1: vbuck1 { }; }; +&u3phy0 { + status = "okay"; +}; + +&u3phy1 { + status = "okay"; +}; + +&u3phy2 { + status = "okay"; +}; + &uart0 { /* Exposed at 40 pin connector */ pinctrl-0 = <&uart0_pins>; @@ -791,6 +827,8 @@ &uart1 { }; &ssusb0 { + pinctrl-names = "default"; + pinctrl-0 = <&usb3_port0_pins>; role-switch-default-mode = "host"; usb-role-switch; vusb33-supply = <&mt6359_vusb_ldo_reg>; @@ -804,6 +842,8 @@ mtu3_hs0_role_sw: endpoint { }; &ssusb2 { + pinctrl-names = "default"; + pinctrl-0 = <&usb2_port0_pins>; vusb33-supply = <&mt6359_vusb_ldo_reg>; status = "okay"; }; From patchwork Tue Apr 9 11:42:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13622387 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 E9CCACD1284 for ; Tue, 9 Apr 2024 11:42: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+kI7a0RuILMPScmkILKeGMrOruhi9aXjtkHQ1/wVVqM=; b=v8lnLWJcaSjW/0evgekvRdX4jw lyFcb0eDiTQZbrlLDVmD/Q6lJnbLjskWMgrX5tGHlz8pTsyvB45XjDr8Qb0fLZtx5gEdA7m/+um7z boVHRezR7UcwLsBGiWdGl6/WJQYG1J+5YUyEjieDY4OBYGmq2X8taWYvzCLLQ4cx3iaotMaD5vmlF tgjt5/z3gBUVOWFmc+/8ye2qznMbk41FDDR1nMgsdSySO6/wctkTQ8m3rbWt0qb3jv494OJugVmUG Uil/qpcJk0KDyiILj4TaxTVqsXEpYvppmGWrwtZ+9N5joul1d13tT91r0IwYKYWvMLl5TczeZTpsw XtIDQPxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sQ-00000001l2l-0MMu; Tue, 09 Apr 2024 11:42:58 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9rz-00000001khK-1ESM; Tue, 09 Apr 2024 11:42:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662950; bh=1IKHkg+bFOK+XIFwPPhCXS2tjDgeASO3rycSgHf2rZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+nxKpPevPYF5KeaMrPZbMUBWhwIroSMLfrTCJAyZ2z7biBlV7Itac+bNYWXqg9AX x9wnbrJnbg1v/wRm9okRoXB/1y97SMuMIOJk/BzdVYBTIMDJACi2M91C3+Db5aN46G w82qJMCOha7zlg+40XhKJIEJ/P/nYP9AeR4jWR7qkPYMxOSupgAQlx28Y4P19FbU5p 5c9e7DVeJsBlD05j1N39auPKoot74PRZjF5/qGT5m4cANizhQH+lkaYXaJ3keqv8pn wJXxnr/dggeGXAdfslqaJxkLvB51wpJdFO1p0r28+YVn3m1Lo5WWZyMnq9E+ox/J8y cmG4JeFVEh+5Q== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5D3133782127; Tue, 9 Apr 2024 11:42:29 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 5/5] arm64: dts: mediatek: mt8395-nio-12l: Add power supplies for CPU/GPU scaling Date: Tue, 9 Apr 2024 13:42:11 +0200 Message-ID: <20240409114211.310462-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> References: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_044231_672807_DDDFF871 X-CRM114-Status: UNSURE ( 8.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add the necessary power supplies to safely enable CPU and GPU frequency scaling. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-radxa-nio-12l.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index 5cbe969da425..bf6b539e6c06 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -140,6 +140,38 @@ apu_mem: memory@62000000 { }; }; +&cpu0 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu1 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu2 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu3 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu4 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + +&cpu5 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + +&cpu6 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + +&cpu7 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + ð { phy-mode = "rgmii-rxid"; phy-handle = <&rgmii_phy>; @@ -343,6 +375,14 @@ typec_con_mux: endpoint { }; }; +&mfg0 { + domain-supply = <&mt6315_7_vbuck1>; +}; + +&mfg1 { + domain-supply = <&mt6359_vsram_others_ldo_reg>; +}; + /* MMC0 Controller: eMMC (HS400). Power lines are shared with UFS! */ &mmc0 { pinctrl-names = "default", "state_uhs";