]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dt-bindings: net: snps, dwmac: update reg minItems maxItems
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 20 Aug 2019 07:57:41 +0000 (09:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2019 22:41:57 +0000 (15:41 -0700)
The Amlogic Meson DWMAC glue bindings needs a second reg cells for the
glue registers, thus update the reg minItems/maxItems to allow more
than a single reg cell.

Also update the allwinner,sun7i-a20-gmac.yaml derivative schema to specify
maxItems to 1.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml
Documentation/devicetree/bindings/net/snps,dwmac.yaml

index 06b1cc8bea14f83f91671b35eefde1c21242d6c3..ef446ae166f34a4e637b962588c79dffed7ccfdc 100644 (file)
@@ -17,6 +17,9 @@ properties:
   compatible:
     const: allwinner,sun7i-a20-gmac
 
+  reg:
+    maxItems: 1
+
   interrupts:
     maxItems: 1
 
index 76fea2be66ac556deed2bdca695bca76f1309806..4377f511a51da06aca21c371dfd8b0d27cd610e3 100644 (file)
@@ -61,7 +61,8 @@ properties:
         - snps,dwxgmac-2.10
 
   reg:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
 
   interrupts:
     minItems: 1