1
0
Fork 0

Enabling USB 3.0 port on Orange Pi 5 Pro.

The regulator vcc5v0_otg is always on and is on when the kernel boots. THe vin-supply of the regulator is vcc5v0_usb but vcc5v0_usb is connected to vcc5v0_sys, which is always
on boot(refer to documentation). Hence, this regulator should be on at boot and adding these lines, made the USB 3.0 port work for Orange pi 5 pro, which was missing from the beginning.
This commit is contained in:
dvab-sarma 2025-12-12 02:39:36 -06:00
parent 8ce39d4a14
commit 884f440851
2 changed files with 6 additions and 11 deletions

View file

@ -202,6 +202,8 @@
regulator-name = "vcc5v0_otg";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-boot-on;
regulator-always-on;
enable-active-high;
gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
@ -767,9 +769,6 @@
pinctrl-names = "default";
vmmc-supply = <&vcc_3v3_s3>;
vqmmc-supply = <&vccio_sd_s0>;
//vqmmc-supply = <&vcc_1v8_s3>;
//pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4 &wifi_poweren_pin>;
//pinctrl-0 = <&sdiom1_pins &wifi_poweren_pin>;
pinctrl-0 = <&sdiom1_pins>;
sd-uhs-sdr104;
status = "okay";
@ -782,7 +781,6 @@
interrupts = <RK_PA0 GPIO_ACTIVE_HIGH>; // From wifi_host_wake_irq
interrupt-names = "host-wake";
pinctrl-names = "default";
//clock-names = "lpo";
pinctrl-0 = <&wifi_host_wake_irq>;
status = "okay";
};
@ -1206,10 +1204,8 @@
&usb_host0_xhci {
//dr_mode = "host";
dr_mode = "host";
extcon = <&u2phy0>;
//maximum-speed = "high-speed";
status = "okay";
};
@ -1304,12 +1300,11 @@
device-wakeup-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; // bt_wake_gpio
shutdown-gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; // bt_reset_gpio
pinctrl-names = "default";
//pinctrl-0 = <&bt_reset_gpio>, <&bt_wake_gpio>, <&bt_irq_gpio>;
pinctrl-0 = <&bt_reset_gpio &bt_wake_gpio &bt_irq_gpio>;
pinctrl-0 = <&bt_reset_gpio &bt_wake_gpio &bt_irq_gpio>;
vbat-supply = <&vcc_3v3_s3>; // Optional regulator (add if available)
vddio-supply = <&vcc_1v8_s3>; // Optional regulator (add if available)
status = "okay";
//uart = <&uart9>; // Link to your uart9 node
};
};

View file

@ -7043,7 +7043,7 @@ CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_OTG=y
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not set
CONFIG_USB_OTG_FSM=m
CONFIG_USB_OTG_FSM=y
CONFIG_USB_LEDS_TRIGGER_USBPORT=y
CONFIG_USB_AUTOSUSPEND_DELAY=2
CONFIG_USB_MON=m
@ -7418,7 +7418,7 @@ CONFIG_TYPEC_DP_ALTMODE=y
# CONFIG_TYPEC_NVIDIA_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers
CONFIG_USB_ROLE_SWITCH=y
CONFIG_USB_ROLE_SWITCH=n
CONFIG_MMC=y
CONFIG_PWRSEQ_EMMC=y
CONFIG_PWRSEQ_SD8787=m