Skip to content

Commit a6ae420

Browse files
rwk-gitmmind
authored andcommitted
arm64: dts: rockchip: enable USB3 on NanoPC-T6
Enable the USB3 port on FriendlyELEC NanoPC-T6. Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com> Link: https://lore.kernel.org/r/20241106130314.1289055-1-rick.wertenbroek@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 5c96e63 commit a6ae420

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,20 @@
171171
vin-supply = <&vcc5v0_sys>;
172172
};
173173

174+
vbus5v0_usb: regulator-vbus5v0-usb {
175+
compatible = "regulator-fixed";
176+
enable-active-high;
177+
gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
178+
pinctrl-names = "default";
179+
pinctrl-0 = <&usb5v_pwren>;
180+
regulator-always-on;
181+
regulator-boot-on;
182+
regulator-name = "vbus5v0_usb";
183+
regulator-min-microvolt = <5000000>;
184+
regulator-max-microvolt = <5000000>;
185+
vin-supply = <&vcc5v0_sys>;
186+
};
187+
174188
vcc3v3_pcie2x1l0: regulator-vcc3v3-pcie2x1l0 {
175189
compatible = "regulator-fixed";
176190
enable-active-high;
@@ -607,6 +621,10 @@
607621
rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
608622
};
609623

624+
usb5v_pwren: usb5v_pwren {
625+
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
626+
};
627+
610628
usbc0_int: usbc0-int {
611629
rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
612630
};
@@ -1005,6 +1023,14 @@
10051023
status = "okay";
10061024
};
10071025

1026+
&u2phy1 {
1027+
status = "okay";
1028+
};
1029+
1030+
&u2phy1_otg {
1031+
status = "okay";
1032+
};
1033+
10081034
&u2phy2_host {
10091035
status = "okay";
10101036
};
@@ -1044,6 +1070,11 @@
10441070
};
10451071
};
10461072

1073+
&usbdp_phy1 {
1074+
phy-supply = <&vbus5v0_usb>;
1075+
status = "okay";
1076+
};
1077+
10471078
&usb_host0_ehci {
10481079
status = "okay";
10491080
};
@@ -1064,6 +1095,11 @@
10641095
};
10651096
};
10661097

1098+
&usb_host1_xhci {
1099+
dr_mode = "host";
1100+
status = "okay";
1101+
};
1102+
10671103
&usb_host1_ehci {
10681104
status = "okay";
10691105
};

0 commit comments

Comments
 (0)