dt-bindings: usb: ehci: Add missing 2nd register region
authorRob Herring <robh@kernel.org>
Tue, 12 May 2020 20:45:40 +0000 (15:45 -0500)
committerRob Herring <robh@kernel.org>
Thu, 14 May 2020 19:43:11 +0000 (14:43 -0500)
The 'ibm,usb-ehci-440epx' compatible has a 2nd 'reg' region, but the
schema says there is only 1 region. Fix this.

Cc: linux-usb@vger.kernel.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/usb/generic-ehci.yaml

index 848eea59bc0030e7845aadf9ac905f78dfecba07..37a818d72a74d13a48c1577b88bcbeb40717a6b9 100644 (file)
@@ -6,19 +6,30 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
 
 title: USB EHCI Controller Device Tree Bindings
 
-allOf:
-  - $ref: "usb-hcd.yaml"
-
 maintainers:
   - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
+allOf:
+  - $ref: "usb-hcd.yaml"
+  - if:
+      properties:
+        compatible:
+          not:
+            contains:
+              const: ibm,usb-ehci-440epx
+    then:
+      properties:
+        reg:
+          maxItems: 1
+
 properties:
   compatible:
     contains:
       const: generic-ehci
 
   reg:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
 
   interrupts:
     maxItems: 1