Skip to content
Snippets Groups Projects
Commit a4895cce authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Sebastian Reichel
Browse files

arm64: dts: rockchip: rk3588-rock5b: add USB2


Enable USB2 (EHCI and OCHI mode) support for the Radxa ROCK 5 Model B.
This adds USB support on the M.2 Key E, both USB2 ports and USB2 mode
for the upper USB3 port (the one further away from the PCB).

The lower USB3 (closer to the PCB) and the USB-C ports use the RK3588
USB TypeC host controller, which is not yet supported upstream.

Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent f7b55f1e
Branches
Tags
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include "rk3588.dtsi" #include "rk3588.dtsi"
#include "rk3588-rk806-single.dtsi" #include "rk3588-rk806-single.dtsi"
...@@ -47,6 +48,20 @@ vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2 { ...@@ -47,6 +48,20 @@ vcc3v3_pcie2x1l2: vcc3v3-pcie2x1l2 {
vin-supply = <&vcc_3v3_s3>; vin-supply = <&vcc_3v3_s3>;
}; };
vcc5v0_host: vcc5v0-host-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_host";
regulator-boot-on;
regulator-always-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_host_en>;
vin-supply = <&vcc5v0_sys>;
};
sound { sound {
compatible = "audio-graph-card"; compatible = "audio-graph-card";
label = "Analog"; label = "Analog";
...@@ -133,12 +148,53 @@ &sdmmc { ...@@ -133,12 +148,53 @@ &sdmmc {
status = "okay"; status = "okay";
}; };
&u2phy2_host {
/* connected to USB hub, which is powered by vcc5v0_sys */
phy-supply = <&vcc5v0_sys>;
status = "okay";
};
&u2phy3_host {
phy-supply = <&vcc5v0_host>;
status = "okay";
};
&u2phy2 {
status = "okay";
};
&u2phy3 {
status = "okay";
};
&usb_host0_ehci {
status = "okay";
};
&usb_host0_ohci {
status = "okay";
};
&usb_host1_ehci {
status = "okay";
};
&usb_host1_ohci {
status = "okay";
};
&pinctrl { &pinctrl {
sound { sound {
hp_detect: hp-detect { hp_detect: hp-detect {
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
}; };
usb {
vcc5v0_host_en: vcc5v0-host-en {
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
}; };
&combphy0_ps { &combphy0_ps {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment