Skip to contentSkip to conversation

dt-bindings: usb: xhci: Allow "iommus" and "dr_mode" properties

PATCH New Rob Herring (Arm) 1 participant 2 messages Sep 19, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/2 dt-bindings: usb: xhci: Allow "iommus" and "dr_mode" properties

Allow "iommus" property as it's reasonable for any XHCI controller to be behind an IOMMU. Allow "dr_mode" as an XHCI controller can be part of a dual-role controller.

In particular, the Marvell Armada 8K XHCI controller uses both of these properties.

---
 Documentation/devicetree/bindings/usb/generic-xhci.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/usb/generic-xhci.yaml +8 -0
index a2b94a138999..8875911b43cc 100644
@@ -53,6 +53,14 @@ properties:
 
   dma-coherent: true
 
+  dr_mode:
+    enum:
+      - host
+      - otg
+
+  iommus:
+    maxItems: 1
+
   power-domains:
     maxItems: 1
 
Signature · 1 line
2.51.0
author maintainer
#1 lore raw

PATCH 2/2 dt-bindings: usb: xhci: Add "generic-xhci" compatible for Marvell Armada 37xx/8k

The Marvell Armada 37xx and 8k platforms compatible property don't match the binding schema. They are compatible with the "generic-xhci" compatible. The 37xx does have a quirk for "reset on resume", but that's probably not required to function in all situations.

---
 Documentation/devicetree/bindings/usb/generic-xhci.yaml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/usb/generic-xhci.yaml +5 -2
index 8875911b43cc..62678abd74b5 100644
@@ -14,12 +14,15 @@ properties:
     oneOf:
       - description: Generic xHCI device
         const: generic-xhci
-      - description: Armada 37xx/375/38x/8k SoCs
+      - description: Armada 375/38x SoCs
         items:
           - enum:
-              - marvell,armada3700-xhci
               - marvell,armada-375-xhci
               - marvell,armada-380-xhci
+      - description: Armada 37xx/8k SoCs
+        items:
+          - enum:
+              - marvell,armada3700-xhci
               - marvell,armada-8k-xhci
           - const: generic-xhci
       - description: Broadcom SoCs with power domains
Signature · 1 line
2.51.0