From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) (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 E70E337AA97; Fri, 10 Apr 2026 10:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775815231; cv=none; b=EhReBsy7mjcoJjsdUHARNGinENhVSFAi5O4ZsAlIEvEqiXZOd9i4w3x6s06E6mJlN7HnI8QTjO43HPy3tpvqKvhfZaEyQEzWU1K4O//0LXQw9iRN7lytNAyM/RLT5PgSbsuxHIY67ldLFfxKFHr1lE/35v7CrKF0+ZJUU2jYW5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775815231; c=relaxed/simple; bh=rLQhkgL7/DpR2/eMAnDzHILrQUxyU0OkFaCS3uF1FwU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Zu/OqcmHDsBtvgWEf91nb/aLOcpM/c1SQk0vYOHSkBlCvrwXxJtR+QRcwLWmdKZyP8858xme9pXpcJDrHu6opWUCI9RCo6p9ipMVR+/mm/akLIoSYZxMgnNBUDLomHOwfsCe1VSL/VxEESU0WyqFDvGw9HzpTI69oUT8UVbTGIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from Vostro-3710.lan (unknown [116.25.94.53]) by smtp.qiye.163.com (Hmail) with ESMTP id 3a3f23e97; Fri, 10 Apr 2026 18:00:20 +0800 (GMT+08:00) From: Chukun Pan To: Yixun Lan Cc: Rob Herring , Paul Walmsley , Alexandre Ghiti , Albert Ou , Palmer Dabbelt , Conor Dooley , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, Chukun Pan Subject: [PATCH v3 2/2] riscv: dts: spacemit: enable USB3 on OrangePi R2S Date: Fri, 10 Apr 2026 18:00:10 +0800 Message-Id: <20260410100010.1197804-3-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260410100010.1197804-1-amadeus@jmu.edu.cn> References: <20260410100010.1197804-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Tid: 0a9d76d5dc1903a2kunmc24b7d52bd027 X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCTUkaVkNPShgYSk4fGUoYS1YeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlKSk1VSU5VQk9VTkhZV1kWGg8SFR0UWUFZT0tIVUpLSEpOTE5VSktLVUpCS0 tZBg++ Enable the DWC3 USB3.0 controller and its associated PHY on the OrangePi R2S. The USB regulator provides VBUS for USB2 and USB3 ports, but the USB2 ports are handled by a separate controller. Signed-off-by: Chukun Pan --- .../boot/dts/spacemit/k1-orangepi-r2s.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts index 409a6db269ae..bc68721e6263 100644 --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts @@ -40,6 +40,20 @@ vcc4v0: regulator-vcc4v0 { regulator-max-microvolt = <4000000>; vin-supply = <&vcc_5v0>; }; + + vcc5v0_usb: regulator-vcc5v0-usb { + compatible = "regulator-fixed"; + enable-active-high; + gpios = <&gpio K1_GPIO(126) GPIO_ACTIVE_HIGH>; + regulator-name = "vcc5v0_usb"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc_5v0>; + }; +}; + +&combo_phy { + status = "okay"; }; &emmc { @@ -109,3 +123,13 @@ &uart0 { pinctrl-0 = <&uart0_2_cfg>; status = "okay"; }; + +&usbphy2 { + status = "okay"; +}; + +&usb_dwc3 { + dr_mode = "host"; + vbus-supply = <&vcc5v0_usb>; + status = "okay"; +}; -- 2.34.1