From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 546F948C8C0 for ; Tue, 5 May 2026 17:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778001148; cv=none; b=NFAcrH0pl9sQlU6o7ghho8pD7TK4loQba6hFSJTRhZM8TyLPaID1z9E6czwtqwRvEKc7QUjT0v5C6riJ3WojRqGHoWxPGdQU05UYR0eaQNIOVvUVI1OuLVcqvAJ9AcoByAVrSFjlo8Y9UBqprUFOKl6jpfAuwJSf6Ud7zkrPyDo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778001148; c=relaxed/simple; bh=FR+PvpOu7SGvraeDWlTcHC94TEWDxbc9/hyNEhc1Vm4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=snyj5fCi3KFxXFqMwzTNvurDqEdO/3EgxY5CrYBr+ZP7fhC0VStypIKL9luJcnwqqLDlKJua4ETc6ZZ6HLLywPYmA8alJF1elqBYVL3ub+jYMUlKXwRxNEB1AGp1RU0dMMdsuROSnTcxOZS6edATFHgTlo6Ym8WXt7g7d4hCZBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=O8/sNvnP; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="O8/sNvnP" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type; bh=I+abTBmbB8/piaQpd4nBLbfx6uLiJ0tuzxThZfR9Zig=; b=O8/sNvnPsRvzC3YGkftsWhmo+m g/3I65a2RulhRWVWE4WwNqhVwBAEZ/lDewGFA79BAcTC4ef2G1Fe/zyfbowvBiJRmmkxL4lAWNahA MufFMRzx0UgHQXbCJ2J20nY9XGCAe2YBYIzopZPbB6tE3KcWalXQOIO2ZQaoBl6pSQUbXtrhONWvn kDEbXmKvaFuZdFp0N3siftFEhvGVcqlZppiFnqTZJC23sbNWzrlqEq3OiInis4AygP/C7wL+yR9ja cqz9iF/g0hXvsnpsjiGutXFpn6w2jC1eMRai42ERAW/oY8Ocd67aL3TVkYp3zX8r1DIHjfIo8JyfQ 4W8saUwQ==; From: Heiko Stuebner To: heiko@sntech.de Cc: jonas@kwiboo.se, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/5] arm64: dts: rockchip: Enable USB ports on Radxa ROCK 2A/2F Date: Tue, 5 May 2026 19:12:06 +0200 Message-ID: <20260505171208.3267387-4-heiko@sntech.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260505171208.3267387-1-heiko@sntech.de> References: <20260505171208.3267387-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jonas Karlman The ROCK 2A has three USB 2.0 Type-A HOST ports behind an onboard USB hub, and one USB 3.0 Type-A port. And the ROCK 2F has two USB 2.0 Type-A HOST ports behind an onboard USB hub, and one USB 2.0 Type-C OTG port. Add support for using the USB ports on Radxa ROCK 2A/2F. The onboard USB hub handles OHCI so only the EHCI controller is enabled. Signed-off-by: Jonas Karlman Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3528-rock-2.dtsi | 17 +++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts | 13 +++++++++++++ arch/arm64/boot/dts/rockchip/rk3528-rock-2f.dts | 13 +++++++++++++ 3 files changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3528-rock-2.dtsi b/arch/arm64/boot/dts/rockchip/rk3528-rock-2.dtsi index aedc7ee9ee46..501a91f4c23e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3528-rock-2.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3528-rock-2.dtsi @@ -166,6 +166,10 @@ rfkill { }; }; +&combphy { + status = "okay"; +}; + &cpu0 { cpu-supply = <&vdd_arm>; }; @@ -291,3 +295,16 @@ &uart0 { pinctrl-0 = <&uart0m0_xfer>; status = "okay"; }; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb2phy { + status = "okay"; +}; + +&usb2phy_host { + phy-supply = <&vcc5v0_usb20>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts b/arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts index 0b696d49b71f..e23ad1763bc8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3528-rock-2a.dts @@ -79,3 +79,16 @@ usb_otg_en: usb-otg-en { }; }; }; + +&usb_host0_xhci { + dr_mode = "host"; + extcon = <&usb2phy>; + phys = <&usb2phy_otg>, <&combphy PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + status = "okay"; +}; + +&usb2phy_otg { + phy-supply = <&vcc5v0_usb30_otg>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3528-rock-2f.dts b/arch/arm64/boot/dts/rockchip/rk3528-rock-2f.dts index 3e2b9b685cb2..e15cae28dde2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3528-rock-2f.dts +++ b/arch/arm64/boot/dts/rockchip/rk3528-rock-2f.dts @@ -8,3 +8,16 @@ / { model = "Radxa ROCK 2F"; compatible = "radxa,rock-2f", "rockchip,rk3528"; }; + +&usb_host0_xhci { + extcon = <&usb2phy>; + maximum-speed = "high-speed"; + phys = <&usb2phy_otg>; + phy-names = "usb2-phy"; + snps,dis_u2_susphy_quirk; + status = "okay"; +}; + +&usb2phy_otg { + status = "okay"; +}; -- 2.47.3