[PATCH v3 1/3] dt-bindings: usb: starfive,jhb100-dwc3: Add adapter register region

From: Minda Chen

Date: Wed Nov 25 2026 - 03:38:15 EST


Besides the DRD controllers, the JHB100 BMC SoC has DWC3 device-only
controllers which are not connected to a USB PHY. Each of them is
connected through a PHY adapter to a port of an xHCI controller that
is exported to the server host over PCIe. The adapter has its own
register region that software has to program.

Describe the adapter register region as an optional second "reg"
entry and add "reg-names". The DRD controllers keep a single
register region.

The adapter is only present on the device-only controllers, so
restrict dr_mode to "peripheral" when the adapter region is described.

Signed-off-by: Minda Chen <minda.chen@xxxxxxxxxxxxxxxx>
---
.../bindings/usb/starfive,jhb100-dwc3.yaml | 37 ++++++++++++++++++-
1 file changed, 35 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
index fbabe99e9d5c..3ebf39616bd1 100644
--- a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml
@@ -10,17 +10,50 @@ maintainers:
- Minda Chen <minda.chen@xxxxxxxxxxxxxxxx>

description:
- The USB DRD controller on JHB100 BMC SoC.
+ The USB DRD controllers and the USB device-only controllers on the
+ JHB100 BMC SoC. The device-only controllers are not connected to a USB
+ PHY. Each one is connected through a PHY adapter to an xHCI port that
+ is exported to the server host.

allOf:
- $ref: snps,dwc3-common.yaml#
+ - if:
+ required:
+ - reg-names
+ properties:
+ reg-names:
+ contains:
+ const: adapter
+ then:
+ properties:
+ reg:
+ minItems: 2
+ reg-names:
+ minItems: 2
+ dr_mode:
+ const: peripheral
+ else:
+ properties:
+ reg:
+ maxItems: 1
+ reg-names:
+ maxItems: 1

properties:
compatible:
const: starfive,jhb100-dwc3

reg:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: DWC3 core registers
+ - description: DWC3 device controller PHY adapter registers
+
+ reg-names:
+ minItems: 1
+ items:
+ - const: core
+ - const: adapter

interrupts:
maxItems: 1
--
2.17.1