Skip to content

Commit 1642bf6

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add USB2 to rk3588s-rock5a
Enable USB2 (EHCI and OCHI mode) support for the Radxa ROCK 5 Model A. This adds USB support for the on-board WLAN/BT chip, the two USB2 ports, the USB available from the 2x20 connector and the lower USB3 port (in USB2 mode). The upper USB3 (further away from the PCB) uses the RK3588S USB TypeC OTG controller for USB2 and USB3 and thus is not supported at all at the moment. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20230712165106.65603-5-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 488fc7a commit 1642bf6

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@
6464
regulator-max-microvolt = <12000000>;
6565
};
6666

67+
vcc5v0_host: vcc5v0-host-regulator {
68+
compatible = "regulator-fixed";
69+
regulator-name = "vcc5v0_host";
70+
regulator-boot-on;
71+
regulator-always-on;
72+
regulator-min-microvolt = <5000000>;
73+
regulator-max-microvolt = <5000000>;
74+
enable-active-high;
75+
gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
76+
pinctrl-names = "default";
77+
pinctrl-0 = <&vcc5v0_host_en>;
78+
vin-supply = <&vcc5v0_sys>;
79+
};
80+
6781
vcc5v0_sys: vcc5v0-sys-regulator {
6882
compatible = "regulator-fixed";
6983
regulator-name = "vcc5v0_sys";
@@ -292,6 +306,34 @@
292306
rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
293307
};
294308
};
309+
310+
usb {
311+
vcc5v0_host_en: vcc5v0-host-en {
312+
rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
313+
};
314+
};
315+
316+
wifibt {
317+
wl_reset: wl-reset {
318+
rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
319+
};
320+
321+
wl_dis: wl-dis {
322+
rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_output_high>;
323+
};
324+
325+
wl_wake_host: wl-wake-host {
326+
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
327+
};
328+
329+
bt_dis: bt-dis {
330+
rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_output_high>;
331+
};
332+
333+
bt_wake_host: bt-wake-host {
334+
rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
335+
};
336+
};
295337
};
296338

297339
&pwm3 {
@@ -650,7 +692,43 @@
650692
};
651693
};
652694

695+
&u2phy2 {
696+
status = "okay";
697+
};
698+
699+
&u2phy2_host {
700+
status = "okay";
701+
phy-supply = <&vcc5v0_host>;
702+
};
703+
704+
&u2phy3 {
705+
status = "okay";
706+
};
707+
708+
&u2phy3_host {
709+
phy-supply = <&vcc5v0_host>;
710+
status = "okay";
711+
};
712+
653713
&uart2 {
654714
pinctrl-0 = <&uart2m0_xfer>;
655715
status = "okay";
656716
};
717+
718+
&usb_host0_ehci {
719+
status = "okay";
720+
pinctrl-names = "default";
721+
pinctrl-0 = <&wl_reset &wl_dis &wl_wake_host &bt_dis &bt_wake_host>;
722+
};
723+
724+
&usb_host0_ohci {
725+
status = "okay";
726+
};
727+
728+
&usb_host1_ehci {
729+
status = "okay";
730+
};
731+
732+
&usb_host1_ohci {
733+
status = "okay";
734+
};

0 commit comments

Comments
 (0)