126 lines
2.2 KiB
Diff
126 lines
2.2 KiB
Diff
--- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
|
|
@@ -413,6 +413,48 @@
|
|
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
|
|
sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
|
|
op-sink-microwatt = <1000000>;
|
|
+
|
|
+ altmodes {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ altmode@0 {
|
|
+ reg = <0>;
|
|
+ svid = <0xff01>;
|
|
+ vdo = <0xffffffff>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ usbc0_orien_sw: endpoint {
|
|
+ remote-endpoint = <&usbdp_phy0_orientation_switch>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ port@1 {
|
|
+ reg = <1>;
|
|
+ dp_altmode_mux: endpoint {
|
|
+ remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ port@0 {
|
|
+ reg = <0>;
|
|
+ usbc0_role_sw: endpoint@0 {
|
|
+ remote-endpoint = <&usb_host0_xhci_role_switch>;
|
|
+ };
|
|
+ };
|
|
};
|
|
};
|
|
|
|
@@ -940,6 +982,10 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&u2phy0_otg {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&u2phy1_otg {
|
|
phy-supply = <&vcc5v0_host_30>;
|
|
status = "okay";
|
|
@@ -954,6 +1000,10 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&u2phy0 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&u2phy1 {
|
|
status = "okay";
|
|
};
|
|
@@ -966,6 +1016,29 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&usbdp_phy0 {
|
|
+ orientation-switch;
|
|
+ rockchip,dp-lane-mux = <0 1 2 3 >;
|
|
+ svid = <0xff01>;
|
|
+ sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
+ sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ usbdp_phy0_orientation_switch: endpoint@0 {
|
|
+ reg = <0>;
|
|
+ remote-endpoint = <&usbc0_orien_sw>;
|
|
+ };
|
|
+
|
|
+ usbdp_phy0_dp_altmode_mux: endpoint@1 {
|
|
+ reg = <1>;
|
|
+ remote-endpoint = <&dp_altmode_mux>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
&usbdp_phy1 {
|
|
status = "okay";
|
|
};
|
|
@@ -978,6 +1051,21 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&usb_host0_xhci {
|
|
+ dr_mode = "host";
|
|
+ usb-role-switch;
|
|
+ status = "okay";
|
|
+
|
|
+ port {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ usb_host0_xhci_role_switch: endpoint {
|
|
+ remote-endpoint = <&usbc0_role_sw>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
&usb_host1_ehci {
|
|
status = "okay";
|
|
};
|