Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1919181lqe; Tue, 9 Apr 2024 04:47:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPi9ZdfwXMsJcA1ZxLnNHFDR+dL6LS6WFsHKUvmZiHjEZWyev2QkW/PZ/MqcCNhcFJsqnWStuKADK3qVgBeDH83qsZ7KXNyki8suU/fQ== X-Google-Smtp-Source: AGHT+IFH1QlTHKqYkVh5XktlL5i+Tt3IrByLSNwFF7ZbrspN/DsIIaHd+J0pKuFmOMTnRp8B6kYy X-Received: by 2002:a05:6a20:d80c:b0:1a7:7fbb:2621 with SMTP id iv12-20020a056a20d80c00b001a77fbb2621mr5998985pzb.48.1712663245500; Tue, 09 Apr 2024 04:47:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712663245; cv=pass; d=google.com; s=arc-20160816; b=P+yN5ejw51kbOjkhVND4w5qQVHeF/Eh3Z0uZ+hxuDq1ylcapP6kIl+UP5xupXiVY1U ToOIZwz9C31/JEDP8aqAzH23liQBeub+HQdvWG4uJscVSsePRvwJfh7TgqkCFGvuXYyv zykUiZWyNTKBsEuJeOZBqSTfPaXvfJRxD6D0yp3OkYiI++mevMjtr09HvObPOEHPnvo2 yIMDF3p4H+m6RTV9UEzHCLULNRW6Kdbm7jHL/oZ6e6VkC9ACZr291iDu9QUOzx9eUyKd tiTFfJLgWurNC3R1cA3fTWHR3oh3c9UMSPg8Q85wZwv5fi9xhpbcJ/vxDWVtv1idTBn3 uOxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=R/V8Ctn/36MDmxUjqJ+s9GUAb4WE7E2xMqfJ0WjSN2I=; fh=X0EN0SaE7jgJGoPlLblapAtwt7fvPDz5YRrvBmtAdxY=; b=A3bA9+Q/5C84iK9L2pqKcxnBhG4Yd3YCi7oc7LIlz8y/xrQ55XTWQM5sCV+rTnQ4vz jrKmZso12+LyC1w1LxKHNTHsOzCnSoHp1ZYY4BDAkvgg+f4QGre3RWRDZitPoEPNGx54 y9ZM8PX8AJbrtD8Mw2jvJq806o/LrbMMDOAY+ulY7tv3ZpuNpr94+dyc/+7n7dh78v3U p1/JeheUVH3H+x2pmkxcL9l6J6eA9VhSFLI9tAiBgCS00Yi4O292NSSFtzjXkK0KUUUS s/h16s4+Bo99cVsW2u/TGeKDpnvwmnGf9Bozkq+JAyW3s3qzz6bSeBmmhVN55y60BNYO fG+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=5WhdTDlk; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136803-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q3-20020a656243000000b005f077dd1deasi8323753pgv.66.2024.04.09.04.47.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 04:47:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136803-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=5WhdTDlk; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136803-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C818628BDE3 for ; Tue, 9 Apr 2024 11:43:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16FF612DDB8; Tue, 9 Apr 2024 11:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="5WhdTDlk" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9172712C53D; Tue, 9 Apr 2024 11:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662953; cv=none; b=f8979kyauVXADIrkzCSvwR9BYkq6w7ItSvmDNFT80oXqMj64RYFjGGNHqL4iI1x4vLSs4Urujn+vxNQVdFcbq5RPw6Qsh/DKXYk3drnI7tIwGcEq3xOMIxLOB0jRWpABu2/PFwdbGlra5d/s/IvzWhc6467UcfAVN2BH58Q9XMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662953; c=relaxed/simple; bh=lRpaqbeDxkCxJuVuV7wFw13Xw8Co2VG0r3GNWGlOryA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tivd7ovWBizi5A/i5affPsXhDG7Xs10wcgoVcy979mQZ4kR/ANtx2jwNJ5JJWIvtSIAILs9A3Q+cCB4uxoHfzrdR4gyM35hpKE0Pl1JYmw3tKxmJeZCLZWHuLueqUl7MmXYjHhi70t0fW1UHEozNq6G3j7iL8d0L0KwS8GTSAgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=5WhdTDlk; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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"; }; -- 2.44.0