Skip to content

Commit

Permalink
dt-bindings: net: snps, dwmac: update reg minItems maxItems
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Neil Armstrong authored and David S. Miller committed Aug 22, 2019
1 parent 7ee7f3e commit 57b77df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ properties:
compatible:
const: allwinner,sun7i-a20-gmac

reg:
maxItems: 1

interrupts:
maxItems: 1

Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/net/snps,dwmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ properties:
- snps,dwxgmac-2.10

reg:
maxItems: 1
minItems: 1
maxItems: 2

interrupts:
minItems: 1
Expand Down

0 comments on commit 57b77df

Please sign in to comment.