Re: [PATCH v2 8/9] riscv: dts: spacemit: enable USB2.0 controllers on OrangePi RV2

From: Ze Huang

Date: Sun Sep 13 2026 - 04:33:51 EST


On Tue Sep 8, 2026 at 5:48 PM CST, Junzhong Pan wrote:
> On OrangePi RV2, usb2_0 is connected to a Type-A connector at host
> mode, its vbus output is controlled by gpio 126. And the usb2_1 is
> connected to the USB2.0 connector pins onboard.
>
> Signed-off-by: Junzhong Pan <panjunzhong@xxxxxxxxxxxxxxxxxx>
> ---
> arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 28 ++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> index b907a1396b21..32d1aafc88f7 100644
> --- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> +++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
> @@ -64,6 +64,16 @@ vcc5v0_usb30: regulator-vcc5v0-usb30 {
> vin-supply = <&vcc_5v0>;
> };
>
> + vcc5v0_usb20: regulator-vcc5v0-usb20 {
> + compatible = "regulator-fixed";
> + enable-active-high;
> + gpios = <&gpio K1_GPIO(126) GPIO_ACTIVE_HIGH>;
> + regulator-name = "vcc5v0_usb20";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + vin-supply = <&vcc_5v0>;
> + };
> +
> leds {
> compatible = "gpio-leds";
>
> @@ -341,10 +351,28 @@ &uart0 {
> status = "okay";
> };
>
> +&usbphy0 {
> + status = "okay";
> +};
> +
> +&usbphy1 {
> + status = "okay";
> +};
> +
> &usbphy2 {
> status = "okay";
> };
>
> +&usb2_0 {
> + vbus-supply = <&vcc5v0_usb20>;
> + dr_mode = "host";
> + status = "okay";
> +};
> +
> +&usb2_1 {
> + status = "okay";
> +};
> +
> &usb_dwc3 {
> dr_mode = "host";
> #address-cells = <1>;


Works fine on rv2, thanks!

Tested-by: Ze Huang <huang.ze@xxxxxxxxx>