Re: [PATCH v2 4/4] riscv: dts: spacemit: Enable USB3.0/PCIe on OrangePi RV2
From: Chukun Pan
Date: Sat Mar 14 2026 - 04:00:21 EST
Hi,
> + regulator-usb3-vbus-5v {
> + compatible = "regulator-fixed";
> + regulator-name = "USB30_VBUS";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + gpio = <&gpio K1_GPIO(97) GPIO_ACTIVE_HIGH>;
Is this true?
> + enable-active-high;
> + };
> +
> + usb3_hub_5v: regulator-usb3-hub-5v {
> + compatible = "regulator-fixed";
> + regulator-name = "USB30_HUB";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + gpio = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>;
Although GPIO123 is labeled as USB_HUB_EN, it actually
supplies for USB3 vbus.
> + enable-active-high;
> + };
> ...
> + peer-hub = <&hub_3_0>;
> + reset-gpios = <&gpio K1_GPIO(124) GPIO_ACTIVE_LOW>;
Really? GPIO124 is floating.
> + };
I still insist that the regulator name of DT should be the same
as on the schematic. This will force us to review the schematic.
Thanks,
Chukun