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: 13622389 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 A1F7DCD1284 for ; Tue, 9 Apr 2024 11:42:44 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aqZIpgiNRwWROyadrFbqwQ+CCQdV/VCwp0+Ir9VxI4A=; b=k8ryDCZMxr9I64 AAs/ZfjrGEDA/1lacnY+uhHXMETqZgqHlfBwKnY8bA+EuzmOHMoRB1aPfYFsePZA316ZAMyuCMYrX XLPYfOuVYKZ7mIUCVsuH+azZAATC+HZZl2ovEbZ6x4yGzO+l4yVBL/ERnlvEnLx+LJ8HO0Bzrvg9j ZN7pteduZ3jnxmPdrhZdO+TAkZXhQrndu4ddSceOkiZZTyQHxW3LhF6mObYrXh/1awfsiHuQWvR9W 7ECsi/nTf4t21uCzU4eFQ+VIuoy6khZ7W7bu7miaM6k090dpQBCzWVHWN/51XU7yRxfIjzlXb+l9u 6ecqGn7FRXjxH+5ueGcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9s3-00000001kki-1thH; Tue, 09 Apr 2024 11:42:35 +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-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 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: 13622390 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 DCDDCCD1296 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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rpvozrktYVLEINEtIE8z92zyATJ+wi9jDwlRPd2LTZA=; b=DP52inr1TWtQHq JBTggNvkKbSM1mWEj+W9jBoorSIVoMvgJJ6CFv31jaYtXiAezvuPOTQ7LEcbkpOXWCVUAD9giTLMJ LzO9S673kE/0CoxwhF/I5nbzaDiSWkGCaOFgTA813PQSjChI7AwMs50orlci14kB4FWnYsSiNtzJ/ s6RtEfLCxdwJexMeeuCdR9JKy7hyUL5WctK2GNSOAU8V/hXOSSgh8G4mpxj7P5tSK/JaFSxA9GNuY Hr+lWgVpObAvt6CPtJ6IhRjeUCRJDDzGnN1UieITo+x9YdkqTXviz+RyHbcnrW9S8G4pdtctWguC7 e5fi+c2X+CEIbAwmyFdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9s5-00000001klf-0qUE; Tue, 09 Apr 2024 11:42:37 +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-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 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: 13622391 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 1CAB4CD1296 for ; Tue, 9 Apr 2024 11:42:54 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U7P6s8QY//nkVzu0MgT3w8NAABuO6nSsgHgQJhF0oWs=; b=prG/bFsogq9gUC Nfnwo5s45notNCUBg7lub2nEuwc+hziulFQtQs6SnwwNTb82fGb/pm39yW4FH3wz5xjMm9gxvLXn8 GOJ9ZlP3EqMO7WTgmsSFC/MAtxCztVS6DfLJS2yL/ebdKBOF7TUA8mcmjrVz6NUJZnFkLyELxQx+/ pftsorgY/AfayoazhlC3ecxyaCGEgNrwN4KVIlU63N8NbA5k/zvHQ4TKjBgsiDR8ddcK/RkZlhd74 xQkUEMzsuHeegVW12jpIs3x4w+8Snbjry0dcyGmr4gwG/Q7ZxwyiLuaW0dx1suUlBhdVHP7VPgOQb 1lUXcjNB+pzJezklFChQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sB-00000001kqd-3X6Z; Tue, 09 Apr 2024 11:42:43 +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-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 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: 13622392 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 0327AC67861 for ; Tue, 9 Apr 2024 11:43:00 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nj17LYR9ajz+T5vDng7v03ZY+noayiwLXCTjB4Dg5cI=; b=rXrWSI2q2+l/Bl q9bAFhbPSBNFxbCQY2O14I3sOir6VSEn6dc8QD/3XkcWl4n84E+SjXs52Fo782gLitnZ9bH2Vp3yc 84KqoMJKMOqPZzbT/wDllaxYpFq1ZqNPAcTMBBHgy/Vpw2dadwCPyxGOx1v8I30F9ezpui0O2U/rs FqcySgLezCHYeqBoofDuyYG5TrVqsca/qMEGVy/zYHLf5o5ZcmwsmE7YH3VtMlacWugFKI2EGday4 /K7SILg+fWMl3dBPcnAQx/bPKkomkImTjto/eStMqOVVru95srXI/OsDZpo0BoghYkGJgO9MRdVhd +B+q4Req6sO1327Z/CaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sG-00000001kuO-2jBL; Tue, 09 Apr 2024 11:42:48 +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-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 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: 13622393 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 D140FCD1284 for ; Tue, 9 Apr 2024 11:43:04 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bin0/9w3xlGjx+CbYc4ayFONZZcSSnrGKCQKg5aImJk=; b=YqPMyx6498K6vL 9u19r1O++jRaeIkMCuI3OS+Jx1OQHoP1Qtdm/RLKWnciGirMalc+mH+7/r6bJcYVBofZWxCioWPlG TK4sEic2SoIynZ5Sm3YsQKXP/2h6uaMuOiVW6L+t/d0/ZsUsvRGRXtCpmQ052loSN60Jlc8ErdxLR qOjYhknZo5z3cVvtdoXw8GRtn26n1lTmfjfepH4e34x9e8SUAeUbeK4/sREpBtr+WyY80Z/Vq55V4 b91pSVx6X79DhkaOz/dAS87srJTFwEaYByvw9cz6FGVutRg20S5rdlEaKifdsROz2DwS3xltoYIvg AB3tI7hGQ0ZsTG5ZMaGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ru9sL-00000001kyq-2R8s; Tue, 09 Apr 2024 11:42:53 +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-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 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";