Skip to content

Commit e39da10

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add USB2 to rk3588-evb1
Enable USB2 (EHCI and OCHI mode) support for the Rockchip RK3588 EVB1. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20230712165106.65603-3-sebastian.reichel@collabora.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent a684cb4 commit e39da10

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@
3838
regulator-max-microvolt = <12000000>;
3939
};
4040

41+
vcc5v0_host: vcc5v0-host-regulator {
42+
compatible = "regulator-fixed";
43+
regulator-name = "vcc5v0_host";
44+
regulator-boot-on;
45+
regulator-always-on;
46+
regulator-min-microvolt = <5000000>;
47+
regulator-max-microvolt = <5000000>;
48+
enable-active-high;
49+
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
50+
pinctrl-names = "default";
51+
pinctrl-0 = <&vcc5v0_host_en>;
52+
vin-supply = <&vcc5v0_usb>;
53+
};
54+
4155
vcc5v0_sys: vcc5v0-sys-regulator {
4256
compatible = "regulator-fixed";
4357
regulator-name = "vcc5v0_sys";
@@ -47,6 +61,26 @@
4761
regulator-max-microvolt = <5000000>;
4862
vin-supply = <&vcc12v_dcin>;
4963
};
64+
65+
vcc5v0_usbdcin: vcc5v0-usbdcin-regulator {
66+
compatible = "regulator-fixed";
67+
regulator-name = "vcc5v0_usbdcin";
68+
regulator-always-on;
69+
regulator-boot-on;
70+
regulator-min-microvolt = <5000000>;
71+
regulator-max-microvolt = <5000000>;
72+
vin-supply = <&vcc12v_dcin>;
73+
};
74+
75+
vcc5v0_usb: vcc5v0-usb-regulator {
76+
compatible = "regulator-fixed";
77+
regulator-name = "vcc5v0_usb";
78+
regulator-always-on;
79+
regulator-boot-on;
80+
regulator-min-microvolt = <5000000>;
81+
regulator-max-microvolt = <5000000>;
82+
vin-supply = <&vcc5v0_usbdcin>;
83+
};
5084
};
5185

5286
&combphy0_ps {
@@ -142,6 +176,12 @@
142176
rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
143177
};
144178
};
179+
180+
usb {
181+
vcc5v0_host_en: vcc5v0-host-en {
182+
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
183+
};
184+
};
145185
};
146186

147187
&pwm2 {
@@ -767,7 +807,41 @@
767807
status = "okay";
768808
};
769809

810+
&u2phy2 {
811+
status = "okay";
812+
};
813+
814+
&u2phy2_host {
815+
phy-supply = <&vcc5v0_host>;
816+
status = "okay";
817+
};
818+
819+
&u2phy3 {
820+
status = "okay";
821+
};
822+
823+
&u2phy3_host {
824+
phy-supply = <&vcc5v0_host>;
825+
status = "okay";
826+
};
827+
770828
&uart2 {
771829
pinctrl-0 = <&uart2m0_xfer>;
772830
status = "okay";
773831
};
832+
833+
&usb_host0_ehci {
834+
status = "okay";
835+
};
836+
837+
&usb_host0_ohci {
838+
status = "okay";
839+
};
840+
841+
&usb_host1_ehci {
842+
status = "okay";
843+
};
844+
845+
&usb_host1_ohci {
846+
status = "okay";
847+
};

0 commit comments

Comments
 (0)