[PATCH v3 2/3] dt-bindings: usb: starfive,jhb100-dwc3: Add clock number limit
From: Minda Chen
Date: Wed Nov 25 2026 - 03:38:05 EST
The JHB100 device-only controllers are connected to a digital PHY
adapter instead of a USB PHY, so they have no reference clock. Only
the "main" and "bus_early" clocks are present.
Allow two clocks for the controllers with the adapter region, keep
requiring all three clocks for the DRD controllers, and add an
example of a device-only controller.
Signed-off-by: Minda Chen <minda.chen@xxxxxxxxxxxxxxxx>
---
.../bindings/usb/starfive,jhb100-dwc3.yaml | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
index 3ebf39616bd1..9ed439c112c7 100644
--- a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
@@ -30,6 +30,10 @@ allOf:
minItems: 2
reg-names:
minItems: 2
+ clocks:
+ maxItems: 2
+ clock-names:
+ maxItems: 2
dr_mode:
const: peripheral
else:
@@ -38,6 +42,10 @@ allOf:
maxItems: 1
reg-names:
maxItems: 1
+ clocks:
+ minItems: 3
+ clock-names:
+ minItems: 3
properties:
compatible:
@@ -59,12 +67,14 @@ properties:
maxItems: 1
clocks:
+ minItems: 2
items:
- description: USB main enable clk
- description: DWC3 bus early clock
- description: DWC3 ref clock
clock-names:
+ minItems: 2
items:
- const: main
- const: bus_early
@@ -95,3 +105,15 @@ examples:
interrupts = <105>;
dr_mode = "host";
};
+ - |
+ usb@10600000 {
+ compatible = "starfive,jhb100-dwc3";
+ reg = <0x10600000 0x10000>, <0x10695800 0x100>;
+ reg-names = "core", "adapter";
+ clocks = <&usbdcrg 30>,
+ <&usbdcrg 31>;
+ clock-names = "main", "bus_early";
+ resets = <&usbdcrg 12>;
+ interrupts = <106>;
+ dr_mode = "peripheral";
+ };
--
2.17.1