Skip to content

Commit 720fe68

Browse files
WesionGraymmind
authored andcommitted
arm64: dts: rockchip: Enable USB for Khadas Edge 2L
The Khadas Edge 2L board provides one USB 3.0 Host port and one USB 2.0 port (connected via an internal hub). Enable the corresponding DWC3 controllers and PHYs. Signed-off-by: Gray Huang <gray.huang@wesion.com> Link: https://patch.msgid.link/20260507033541.2576335-2-gray.huang@wesion.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 8333fe4 commit 720fe68

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@
3030
};
3131
};
3232

33+
vcc5v0_device: regulator-vcc5v0-device {
34+
compatible = "regulator-fixed";
35+
regulator-name = "vcc5v0_device";
36+
regulator-always-on;
37+
regulator-boot-on;
38+
regulator-min-microvolt = <5000000>;
39+
regulator-max-microvolt = <5000000>;
40+
};
41+
42+
vcc5v0_host: regulator-vcc5v0-host {
43+
compatible = "regulator-fixed";
44+
enable-active-high;
45+
gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
46+
regulator-name = "vcc5v0_host";
47+
regulator-boot-on;
48+
regulator-always-on;
49+
regulator-min-microvolt = <5000000>;
50+
regulator-max-microvolt = <5000000>;
51+
pinctrl-names = "default";
52+
pinctrl-0 = <&usb_host_pwren>;
53+
vin-supply = <&vcc5v0_device>;
54+
};
55+
3356
vcc_sys: regulator-vcc5v0-sys {
3457
compatible = "regulator-fixed";
3558
regulator-name = "vcc_sys";
@@ -78,6 +101,10 @@
78101
status = "okay";
79102
};
80103

104+
&combphy1_psu {
105+
status = "okay";
106+
};
107+
81108
&cpu_l0 {
82109
cpu-supply = <&vdd_cpu_lit_s0>;
83110
};
@@ -531,6 +558,12 @@
531558
};
532559
};
533560

561+
usb {
562+
usb_host_pwren: usb-host-pwren {
563+
rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
564+
};
565+
};
566+
534567
wifi {
535568
wifi_reg_on: wifi-reg-on {
536569
rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
@@ -552,10 +585,24 @@
552585
status = "okay";
553586
};
554587

588+
&u2phy1 {
589+
status = "okay";
590+
};
591+
592+
&u2phy1_otg {
593+
phy-supply = <&vcc5v0_host>;
594+
status = "okay";
595+
};
596+
555597
&uart0 {
556598
status = "okay";
557599
};
558600

601+
&usb_drd1_dwc3 {
602+
dr_mode = "host";
603+
status = "okay";
604+
};
605+
559606
&vop {
560607
status = "okay";
561608
};

0 commit comments

Comments
 (0)