]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: dts: spacemit: enable USB3 on OrangePi R2S
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 18 May 2026 10:00:30 +0000 (18:00 +0800)
committerYixun Lan <dlan@kernel.org>
Wed, 20 May 2026 08:17:48 +0000 (08:17 +0000)
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 <amadeus@jmu.edu.cn>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://patch.msgid.link/20260518100030.2354606-1-amadeus@jmu.edu.cn
Signed-off-by: Yixun Lan <dlan@kernel.org>
arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts

index de75f6aac740553da3dd0596819d89c66990c819..1ecc40749e5ac10717a2e3e83363b4e1e8ee08fb 100644 (file)
        chosen {
                stdout-path = "serial0";
        };
+
+       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>;
+       };
+};
+
+&combo_phy {
+       status = "okay";
 };
 
 &emmc {
        pinctrl-0 = <&uart0_2_cfg>;
        status = "okay";
 };
+
+&usbphy2 {
+       status = "okay";
+};
+
+&usb_dwc3 {
+       dr_mode = "host";
+       vbus-supply = <&vcc5v0_usb>;
+       status = "okay";
+};