Skip to content

Commit 488fc7a

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add USB2 to rk3588-rock5b
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: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20230712165106.65603-4-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent e39da10 commit 488fc7a

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@
4343
#cooling-cells = <2>;
4444
};
4545

46+
vcc5v0_host: vcc5v0-host-regulator {
47+
compatible = "regulator-fixed";
48+
regulator-name = "vcc5v0_host";
49+
regulator-boot-on;
50+
regulator-always-on;
51+
regulator-min-microvolt = <5000000>;
52+
regulator-max-microvolt = <5000000>;
53+
enable-active-high;
54+
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
55+
pinctrl-names = "default";
56+
pinctrl-0 = <&vcc5v0_host_en>;
57+
vin-supply = <&vcc5v0_sys>;
58+
};
59+
4660
vcc5v0_sys: vcc5v0-sys-regulator {
4761
compatible = "regulator-fixed";
4862
regulator-name = "vcc5v0_sys";
@@ -201,6 +215,12 @@
201215
rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
202216
};
203217
};
218+
219+
usb {
220+
vcc5v0_host_en: vcc5v0-host-en {
221+
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
222+
};
223+
};
204224
};
205225

206226
&pwm1 {
@@ -564,3 +584,38 @@
564584
pinctrl-0 = <&uart2m0_xfer>;
565585
status = "okay";
566586
};
587+
588+
&u2phy2 {
589+
status = "okay";
590+
};
591+
592+
&u2phy2_host {
593+
/* connected to USB hub, which is powered by vcc5v0_sys */
594+
phy-supply = <&vcc5v0_sys>;
595+
status = "okay";
596+
};
597+
598+
&u2phy3 {
599+
status = "okay";
600+
};
601+
602+
&u2phy3_host {
603+
phy-supply = <&vcc5v0_host>;
604+
status = "okay";
605+
};
606+
607+
&usb_host0_ehci {
608+
status = "okay";
609+
};
610+
611+
&usb_host0_ohci {
612+
status = "okay";
613+
};
614+
615+
&usb_host1_ehci {
616+
status = "okay";
617+
};
618+
619+
&usb_host1_ohci {
620+
status = "okay";
621+
};

0 commit comments

Comments
 (0)