[PATCH 3/4] arm64: dts: rockchip: Fix the USB hub description on Kobol Helios64

Igor Velkov via B4 Relay devnull+iav.iav.lv at kernel.org
Thu Dec 3 12:51:01 PST 2026


From: Igor Velkov <iav at iav.lv>

The xHCI controller has one USB 2.0 and one SuperSpeed root port,
numbered 1 and 2. The VL815 hub shows up as a USB 2.0 hub (2109:2815)
on the first and as a SuperSpeed hub (2109:0815) on the second. hub at 1
matches the USB 2.0 hub, but carries the SuperSpeed ID with a leading
zero. The RTL8156 Ethernet adapter, wired to port 4 of both hubs,
connects at SuperSpeed, so its node under hub at 1 stays unused.

hub at 1 also has child nodes for ports 1 to 3. Since commit 82e82130a78b
("usb: core: Set connect_type of ports based on DT node") the USB core
takes such a node for a hard-wired device and reports USB 2.0 devices
plugged into these connectors as fixed.

Fix the ID of hub at 1, add hub at 2 for the SuperSpeed hub and describe the
adapter under both hubs. Replace the port child nodes with an OF graph
that links ports 1 to 3 of both hubs to the USB-A connectors J13 top,
J13 bottom and J1. The hubs and the connectors take power from
vcc5v0_usb.

Fixes: e92df2c61c10 ("arm64: dts: rockchip: define usb hub and 2.5GbE nic on helios64")
Signed-off-by: Igor Velkov <iav at iav.lv>
---
 .../boot/dts/rockchip/rk3399-kobol-helios64.dts    | 171 +++++++++++++++++++--
 1 file changed, 160 insertions(+), 11 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index 862df552a631..64b7a3ed7c75 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -382,6 +382,87 @@ vdd_log: regulator-vdd-log {
 		regulator-min-microvolt = <830000>;
 		regulator-max-microvolt = <1400000>;
 	};
+
+	usb_a_j13_top: usb-a-connector-0 {
+		compatible = "usb-a-connector";
+		label = "J13 top";
+		vbus-supply = <&vcc5v0_usb>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+
+				usb_a_j13_top_hs: endpoint {
+					remote-endpoint = <&hub_2_0_port1>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+
+				usb_a_j13_top_ss: endpoint {
+					remote-endpoint = <&hub_3_0_port1>;
+				};
+			};
+		};
+	};
+
+	usb_a_j13_bottom: usb-a-connector-1 {
+		compatible = "usb-a-connector";
+		label = "J13 bottom";
+		vbus-supply = <&vcc5v0_usb>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+
+				usb_a_j13_bottom_hs: endpoint {
+					remote-endpoint = <&hub_2_0_port2>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+
+				usb_a_j13_bottom_ss: endpoint {
+					remote-endpoint = <&hub_3_0_port2>;
+				};
+			};
+		};
+	};
+
+	usb_a_j1: usb-a-connector-2 {
+		compatible = "usb-a-connector";
+		label = "J1";
+		vbus-supply = <&vcc5v0_usb>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+
+				usb_a_j1_hs: endpoint {
+					remote-endpoint = <&hub_2_0_port3>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+
+				usb_a_j1_ss: endpoint {
+					remote-endpoint = <&hub_3_0_port3>;
+				};
+			};
+		};
+	};
 };
 
 &cpu_b0 {
@@ -976,25 +1057,93 @@ usb at fe900000 {
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		hub at 1 {
-			compatible = "usb2109,0815";
+		/* USB 2.0 half of the VL815 hub */
+		hub_2_0: hub at 1 {
+			compatible = "usb2109,2815";
 			reg = <1>;
+			peer-hub = <&hub_3_0>;
+			vdd-supply = <&vcc5v0_usb>;
 			#address-cells = <1>;
 			#size-cells = <0>;
 
-			port at 1 {
-				reg = <1>;
-				#trigger-source-cells = <0>;
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port at 1 {
+					reg = <1>;
+
+					hub_2_0_port1: endpoint {
+						remote-endpoint = <&usb_a_j13_top_hs>;
+					};
+				};
+
+				port at 2 {
+					reg = <2>;
+
+					hub_2_0_port2: endpoint {
+						remote-endpoint = <&usb_a_j13_bottom_hs>;
+					};
+				};
+
+				port at 3 {
+					reg = <3>;
+
+					hub_2_0_port3: endpoint {
+						remote-endpoint = <&usb_a_j1_hs>;
+					};
+				};
 			};
 
-			port at 2 {
-				reg = <2>;
-				#trigger-source-cells = <0>;
+			device at 4 {
+				compatible = "usbbda,8156";
+				reg = <4>;
+				#address-cells = <2>;
+				#size-cells = <0>;
+
+				interface at 0 {	/* interface 0 of configuration 1 */
+					compatible = "usbifbda,8156.config1.0";
+					reg = <0 1>;
+				};
 			};
+		};
+
+		/* SuperSpeed half of the VL815 hub */
+		hub_3_0: hub at 2 {
+			compatible = "usb2109,815";
+			reg = <2>;
+			peer-hub = <&hub_2_0>;
+			vdd-supply = <&vcc5v0_usb>;
+			#address-cells = <1>;
+			#size-cells = <0>;
 
-			port at 3 {
-				reg = <3>;
-				#trigger-source-cells = <0>;
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port at 1 {
+					reg = <1>;
+
+					hub_3_0_port1: endpoint {
+						remote-endpoint = <&usb_a_j13_top_ss>;
+					};
+				};
+
+				port at 2 {
+					reg = <2>;
+
+					hub_3_0_port2: endpoint {
+						remote-endpoint = <&usb_a_j13_bottom_ss>;
+					};
+				};
+
+				port at 3 {
+					reg = <3>;
+
+					hub_3_0_port3: endpoint {
+						remote-endpoint = <&usb_a_j1_ss>;
+					};
+				};
 			};
 
 			device at 4 {

-- 
2.43.0





More information about the linux-arm-kernel mailing list