* [PATCH 1/4] dt-bindings: usb: vialab,vl817: Use usb-hub.yaml
2026-12-03 20:50 [PATCH 0/4] Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
@ 2026-12-03 20:50 ` Igor Velkov via B4 Relay
2026-12-03 20:51 ` [PATCH 2/4] dt-bindings: usb: vialab,vl817: Add VL815 Igor Velkov via B4 Relay
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-12-03 20:50 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Greg Kroah-Hartman, Anand Moon
Cc: Dennis Gilmore, devicetree, linux-usb, linux-arm-kernel,
linux-rockchip, linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
Reference usb-hub.yaml instead of usb-device.yaml, so that a board can
describe the downstream ports of the hub and the devices wired to them.
Drop the peer-hub definition, which usb-hub.yaml already provides.
Limit the port numbers to the four downstream ports.
Signed-off-by: Igor Velkov <iav@iav.lv>
---
.../devicetree/bindings/usb/vialab,vl817.yaml | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
index c815010ba9c2..01c4acb810ab 100644
--- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
+++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
@@ -10,7 +10,7 @@ maintainers:
- Anand Moon <linux.amoon@gmail.com>
allOf:
- - $ref: usb-device.yaml#
+ - $ref: usb-hub.yaml#
properties:
compatible:
@@ -29,10 +29,19 @@ properties:
description:
phandle to the regulator that provides power to the hub.
- peer-hub:
- $ref: /schemas/types.yaml#/definitions/phandle
- description:
- phandle to the peer hub on the controller.
+ peer-hub: true
+
+ ports:
+ $ref: /schemas/graph.yaml#/properties/ports
+
+ patternProperties:
+ '^port@':
+ $ref: /schemas/graph.yaml#/properties/port
+
+ properties:
+ reg:
+ minimum: 1
+ maximum: 4
required:
- compatible
@@ -40,7 +49,7 @@ required:
- vdd-supply
- peer-hub
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 2/4] dt-bindings: usb: vialab,vl817: Add VL815
2026-12-03 20:50 [PATCH 0/4] Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
2026-12-03 20:50 ` [PATCH 1/4] dt-bindings: usb: vialab,vl817: Use usb-hub.yaml Igor Velkov via B4 Relay
@ 2026-12-03 20:51 ` Igor Velkov via B4 Relay
2026-12-03 20:51 ` [PATCH 3/4] arm64: dts: rockchip: Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-12-03 20:51 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Greg Kroah-Hartman, Anand Moon
Cc: Dennis Gilmore, devicetree, linux-usb, linux-arm-kernel,
linux-rockchip, linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
VL815 is a 4-port 5 Gbit/s USB hub, used on the Kobol Helios64. Like
VL817, it shows up as two hubs: a USB 2.0 hub with ID 2109:2815 and a
SuperSpeed hub with ID 2109:0815.
Signed-off-by: Igor Velkov <iav@iav.lv>
---
Documentation/devicetree/bindings/usb/vialab,vl817.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
index 01c4acb810ab..cd48ba03edb0 100644
--- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
+++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
@@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/usb/vialab,vl817.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Via labs VL817 USB 3.1 hub controller
+title: Via labs VL815 and VL817 USB hub controllers
maintainers:
- Anand Moon <linux.amoon@gmail.com>
@@ -15,7 +15,9 @@ allOf:
properties:
compatible:
enum:
+ - usb2109,2815
- usb2109,2817
+ - usb2109,815
- usb2109,817
reg: true
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 3/4] arm64: dts: rockchip: Fix the USB hub description on Kobol Helios64
2026-12-03 20:50 [PATCH 0/4] Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
2026-12-03 20:50 ` [PATCH 1/4] dt-bindings: usb: vialab,vl817: Use usb-hub.yaml Igor Velkov via B4 Relay
2026-12-03 20:51 ` [PATCH 2/4] dt-bindings: usb: vialab,vl817: Add VL815 Igor Velkov via B4 Relay
@ 2026-12-03 20:51 ` Igor Velkov via B4 Relay
2026-12-03 20:51 ` [PATCH 4/4] arm64: dts: rockchip: Make the fault LED the panic indicator " Igor Velkov via B4 Relay
2026-12-03 20:59 ` [PATCH 0/4] Fix the USB hub description " sashiko-bot
4 siblings, 0 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-12-03 20:51 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Greg Kroah-Hartman, Anand Moon
Cc: Dennis Gilmore, devicetree, linux-usb, linux-arm-kernel,
linux-rockchip, linux-kernel, Igor Velkov
From: Igor Velkov <iav@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@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@1 stays unused.
hub@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@1, add hub@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@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@0 {
+ reg = <0>;
+
+ usb_a_j13_top_hs: endpoint {
+ remote-endpoint = <&hub_2_0_port1>;
+ };
+ };
+
+ port@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@0 {
+ reg = <0>;
+
+ usb_a_j13_bottom_hs: endpoint {
+ remote-endpoint = <&hub_2_0_port2>;
+ };
+ };
+
+ port@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@0 {
+ reg = <0>;
+
+ usb_a_j1_hs: endpoint {
+ remote-endpoint = <&hub_2_0_port3>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ usb_a_j1_ss: endpoint {
+ remote-endpoint = <&hub_3_0_port3>;
+ };
+ };
+ };
+ };
};
&cpu_b0 {
@@ -976,25 +1057,93 @@ usb@fe900000 {
#address-cells = <1>;
#size-cells = <0>;
- hub@1 {
- compatible = "usb2109,0815";
+ /* USB 2.0 half of the VL815 hub */
+ hub_2_0: hub@1 {
+ compatible = "usb2109,2815";
reg = <1>;
+ peer-hub = <&hub_3_0>;
+ vdd-supply = <&vcc5v0_usb>;
#address-cells = <1>;
#size-cells = <0>;
- port@1 {
- reg = <1>;
- #trigger-source-cells = <0>;
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+
+ hub_2_0_port1: endpoint {
+ remote-endpoint = <&usb_a_j13_top_hs>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ hub_2_0_port2: endpoint {
+ remote-endpoint = <&usb_a_j13_bottom_hs>;
+ };
+ };
+
+ port@3 {
+ reg = <3>;
+
+ hub_2_0_port3: endpoint {
+ remote-endpoint = <&usb_a_j1_hs>;
+ };
+ };
};
- port@2 {
- reg = <2>;
- #trigger-source-cells = <0>;
+ device@4 {
+ compatible = "usbbda,8156";
+ reg = <4>;
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ interface@0 { /* interface 0 of configuration 1 */
+ compatible = "usbifbda,8156.config1.0";
+ reg = <0 1>;
+ };
};
+ };
+
+ /* SuperSpeed half of the VL815 hub */
+ hub_3_0: hub@2 {
+ compatible = "usb2109,815";
+ reg = <2>;
+ peer-hub = <&hub_2_0>;
+ vdd-supply = <&vcc5v0_usb>;
+ #address-cells = <1>;
+ #size-cells = <0>;
- port@3 {
- reg = <3>;
- #trigger-source-cells = <0>;
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+
+ hub_3_0_port1: endpoint {
+ remote-endpoint = <&usb_a_j13_top_ss>;
+ };
+ };
+
+ port@2 {
+ reg = <2>;
+
+ hub_3_0_port2: endpoint {
+ remote-endpoint = <&usb_a_j13_bottom_ss>;
+ };
+ };
+
+ port@3 {
+ reg = <3>;
+
+ hub_3_0_port3: endpoint {
+ remote-endpoint = <&usb_a_j1_ss>;
+ };
+ };
};
device@4 {
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 4/4] arm64: dts: rockchip: Make the fault LED the panic indicator on Kobol Helios64
2026-12-03 20:50 [PATCH 0/4] Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
` (2 preceding siblings ...)
2026-12-03 20:51 ` [PATCH 3/4] arm64: dts: rockchip: Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
@ 2026-12-03 20:51 ` Igor Velkov via B4 Relay
2026-12-03 20:59 ` [PATCH 0/4] Fix the USB hub description " sashiko-bot
4 siblings, 0 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-12-03 20:51 UTC (permalink / raw)
To: Heiko Stuebner, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Greg Kroah-Hartman, Anand Moon
Cc: Dennis Gilmore, devicetree, linux-usb, linux-arm-kernel,
linux-rockchip, linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
The red fault LED has no trigger. Mark it as the panic indicator, so it
blinks when the kernel panics.
Signed-off-by: Igor Velkov <iav@iav.lv>
---
arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index 64b7a3ed7c75..15bd5bb384f8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -143,6 +143,7 @@ led-1 {
label = "helios64:red:fault";
gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
default-state = "keep";
+ panic-indicator;
};
led-2 {
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 0/4] Fix the USB hub description on Kobol Helios64
2026-12-03 20:50 [PATCH 0/4] Fix the USB hub description on Kobol Helios64 Igor Velkov via B4 Relay
` (3 preceding siblings ...)
2026-12-03 20:51 ` [PATCH 4/4] arm64: dts: rockchip: Make the fault LED the panic indicator " Igor Velkov via B4 Relay
@ 2026-12-03 20:59 ` sashiko-bot
4 siblings, 0 replies; 6+ messages in thread
From: sashiko-bot @ 2026-12-03 20:59 UTC (permalink / raw)
To: Igor Velkov; +Cc: linux-usb
Sashiko has reviewed this 4-patch series and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-h64-usb-fault-leds-v1-0-8d2ff6b6c742@iav.lv
^ permalink raw reply [flat|nested] 6+ messages in thread