From nobody Sun Jun 14 09:57:58 2026 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 4EAD93DCD84; Thu, 2 Apr 2026 10:00:32 +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=1775124034; cv=none; b=XQK+KugW5GneuFbhGQ2HMBGcONgytkV7eY083F3gSePfQB5sRDmMRsfYo6YGPbzIgSFfl8KV4DX85/0F/zm2oa4dumzQYBgy3T1iLCpreQQKCzR3ym5p1ucXu+XfWSsfl+pTX/gfpZzR3RfIxtQN+xm+2Flo4QB3KetjR6U3Afk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775124034; c=relaxed/simple; bh=FA5prDIsct+aTQ0HpEa5jSd7yFSimPj/qF8W7Xrqp6Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mGNxPdmtHGN3cjgiGO2xN3B7z8E3RJ50BnMAoZLR0jaGae3wRgPzGIbLgzqieB+rFsg+HIXAH3L2jcs4yexKw9G1N7BGjujOXC4rvZ381dF8v+U+tt0k61k0ztTkjzfV/d4Lwcfio/3ClCpW5nlnaLeMZMO1wi7iNw0Yl1+Rm8I= 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 localhost.localdomain (unknown [116.25.95.185]) by smtp.qiye.163.com (Hmail) with ESMTP id 394e0eb00; Thu, 2 Apr 2026 18:00:20 +0800 (GMT+08:00) From: Chukun Pan To: Yixun Lan Cc: Rob Herring , Paul Walmsley , Alexandre Ghiti , Albert Ou , Conor Dooley , Palmer Dabbelt , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, Chukun Pan Subject: [PATCH v2 1/3] riscv: dts: spacemit: add fixed regulators for OrangePi Date: Thu, 2 Apr 2026 18:00:05 +0800 Message-Id: <20260402100007.110201-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260402100007.110201-1-amadeus@jmu.edu.cn> References: <20260402100007.110201-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a9d4da2fdd103a2kunmcba6113b55c19f X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDGE5DVk4ZSB1PQxpKSR5CS1YeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlKSk1VSU5VQk5VSkNOWVdZFhoPEhUdFFlBWU9LSFVKS0hKTkxOVUpLS1VKQk tLWQY+ Content-Type: text/plain; charset="utf-8" Define the power input and the 4V power as fixed regulator supplies for the PMIC and USB Hub. Signed-off-by: Chukun Pan --- .../boot/dts/spacemit/k1-orangepi-r2s.dts | 19 +++++++++++++++++++ .../boot/dts/spacemit/k1-orangepi-rv2.dts | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts b/arch/riscv/= boot/dts/spacemit/k1-orangepi-r2s.dts index de75f6aac740..409a6db269ae 100644 --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts @@ -21,6 +21,25 @@ aliases { chosen { stdout-path =3D "serial0"; }; + + vcc_5v0: regulator-vcc-5v0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_5v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; + + vcc4v0: regulator-vcc4v0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc4v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <4000000>; + regulator-max-microvolt =3D <4000000>; + vin-supply =3D <&vcc_5v0>; + }; }; =20 &emmc { diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/= boot/dts/spacemit/k1-orangepi-rv2.dts index 7b7331cb3c72..929b70d384b5 100644 --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts @@ -33,6 +33,25 @@ led1 { default-state =3D "on"; }; }; + + vcc_5v0: regulator-vcc-5v0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_5v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; + + vcc4v0: regulator-vcc4v0 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc4v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <4000000>; + regulator-max-microvolt =3D <4000000>; + vin-supply =3D <&vcc_5v0>; + }; }; =20 ð0 { --=20 2.34.1 From nobody Sun Jun 14 09:57:58 2026 Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101]) (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 F195D35F5FA; Thu, 2 Apr 2026 10:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.71.155.101 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775124034; cv=none; b=FESdnPJyFNE4sCXi1E9yIN4kQqFr0QC6W3h0W95xuCBOKf+o260zQSY0v+RBbppN6ite0nT4qdoiyTRVTaqn5YMWuweyrycCl1ykEWGaltmuEPYT4vUMnlg4mOjjLdjeK8KXk+jPKUeOY1iEbZ+vb3C1bC4hc4GVD/2o+Ht572k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775124034; c=relaxed/simple; bh=rLQhkgL7/DpR2/eMAnDzHILrQUxyU0OkFaCS3uF1FwU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hy5b7fTdYyBk+53vw2uE4XWYViu6vh6DDJ6gaViJSRUMRDdKGaJxwtAxaJ0Ftqd4swHxnFRcIAe4oc0kmsnzUtzv8E4/qywSpcoD/Gnls8ZTsWpqBs8LQZGB2l8UlSx7Lwld87TsYZqsuNniM0dIn8lECNrVAFwGd1LFR8dXucU= 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=101.71.155.101 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 localhost.localdomain (unknown [116.25.95.185]) by smtp.qiye.163.com (Hmail) with ESMTP id 394e0eb03; Thu, 2 Apr 2026 18:00:22 +0800 (GMT+08:00) From: Chukun Pan To: Yixun Lan Cc: Rob Herring , Paul Walmsley , Alexandre Ghiti , Albert Ou , Conor Dooley , Palmer Dabbelt , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, Chukun Pan Subject: [PATCH v2 2/3] riscv: dts: spacemit: enable USB3 on OrangePi R2S Date: Thu, 2 Apr 2026 18:00:06 +0800 Message-Id: <20260402100007.110201-3-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260402100007.110201-1-amadeus@jmu.edu.cn> References: <20260402100007.110201-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a9d4da3053103a2kunmcba6113b55c1a8 X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCTEJKVkJPTk0eQxhIHxlJSlYeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlKSk1VSU5VQk5VSkNOWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09LVUpLS1VLWQ Y+ Content-Type: text/plain; charset="utf-8" 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 =3D <4000000>; vin-supply =3D <&vcc_5v0>; }; + + vcc5v0_usb: regulator-vcc5v0-usb { + compatible =3D "regulator-fixed"; + enable-active-high; + gpios =3D <&gpio K1_GPIO(126) GPIO_ACTIVE_HIGH>; + regulator-name =3D "vcc5v0_usb"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&vcc_5v0>; + }; +}; + +&combo_phy { + status =3D "okay"; }; =20 &emmc { @@ -109,3 +123,13 @@ &uart0 { pinctrl-0 =3D <&uart0_2_cfg>; status =3D "okay"; }; + +&usbphy2 { + status =3D "okay"; +}; + +&usb_dwc3 { + dr_mode =3D "host"; + vbus-supply =3D <&vcc5v0_usb>; + status =3D "okay"; +}; --=20 2.34.1 From nobody Sun Jun 14 09:57:58 2026 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 4ED143DCD8B; Thu, 2 Apr 2026 10:00:32 +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=1775124034; cv=none; b=rkNobZPkHPKpkJaELCPVA5obvWBTOnKJEwiPtGbDiObExkTHgKhZwB+7Pecb9GfxuTNja+RdxrD8XD3MU+Jgkn9BS+PO6HPAF0UdRKT52VgjGYc2qXdNRzA695xFvuk8Dkx3HrJFobqm6WfsH1pzSYOgbBV2xLxd+oKNVXYDwbM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775124034; c=relaxed/simple; bh=JJnpY/87iMHeEp3faBQtcCAjMSkD8erttOPa5Eswg7Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Xa6WuDF+aZ72zVtKgzlNjaQJdVKZJ2YqDm7H7gq6JU+m03KE1HJwyuGIV1jqaD1cN3trPrqhNE4QoMw3OkCrW4mfn7YSxA479KWvgkRNr0msMXFv1saEHSvU9fN2JhjFI5giFAOOtl9kXYTolnkjB7OkYkQtak5RzYKU1rPhkcA= 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 localhost.localdomain (unknown [116.25.95.185]) by smtp.qiye.163.com (Hmail) with ESMTP id 394e0eb06; Thu, 2 Apr 2026 18:00:26 +0800 (GMT+08:00) From: Chukun Pan To: Yixun Lan Cc: Rob Herring , Paul Walmsley , Alexandre Ghiti , Albert Ou , Conor Dooley , Palmer Dabbelt , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, spacemit@lists.linux.dev, Chukun Pan Subject: [PATCH v2 3/3] riscv: dts: spacemit: enable USB3 on OrangePi RV2 Date: Thu, 2 Apr 2026 18:00:07 +0800 Message-Id: <20260402100007.110201-4-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260402100007.110201-1-amadeus@jmu.edu.cn> References: <20260402100007.110201-1-amadeus@jmu.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a9d4da3133903a2kunmcba6113b55c1ba X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSkIZVkpDTR1KQ0IdQ08eGFYeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlKSk1VSU5VQk5VSkNOWVdZFhoPEhUdFFlBWU9LSFVKS0lPT09LVUpLS1VLWQ Y+ Content-Type: text/plain; charset="utf-8" Enable the DWC3 USB3.0 controller and its associated PHY on the OrangePi RV2. The onboard GENESYS GL3523 Hub provides 3 USB3 Type-A ports. Enable the corresponding VBUS regulator. Signed-off-by: Chukun Pan --- .../boot/dts/spacemit/k1-orangepi-rv2.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/= boot/dts/spacemit/k1-orangepi-rv2.dts index 929b70d384b5..ab835c30dd86 100644 --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts @@ -52,6 +52,20 @@ vcc4v0: regulator-vcc4v0 { regulator-max-microvolt =3D <4000000>; vin-supply =3D <&vcc_5v0>; }; + + vcc5v0_usb30: regulator-vcc5v0-usb30 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc5v0_usb30"; + enable-active-high; + gpios =3D <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&vcc_5v0>; + }; +}; + +&combo_phy { + status =3D "okay"; }; =20 ð0 { @@ -111,3 +125,13 @@ &uart0 { pinctrl-0 =3D <&uart0_2_cfg>; status =3D "okay"; }; + +&usbphy2 { + status =3D "okay"; +}; + +&usb_dwc3 { + dr_mode =3D "host"; + vbus-supply =3D <&vcc5v0_usb30>; + status =3D "okay"; +}; --=20 2.34.1