public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Neil Armstrong <narmstrong@baylibre•com>
To: davem@davemloft•net, robh+dt@kernel•org
Cc: devicetree@vger•kernel.org,
	Neil Armstrong <narmstrong@baylibre•com>,
	martin.blumenstingl@googlemail•com, netdev@vger•kernel.org,
	linux-kernel@vger•kernel.org,
	Maxime Ripard <maxime.ripard@bootlin•com>,
	linux-amlogic@lists•infradead.org, Rob Herring <robh@kernel•org>,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH net-next v4 1/2] dt-bindings: net: snps, dwmac: update reg minItems maxItems
Date: Tue, 20 Aug 2019 09:57:41 +0200	[thread overview]
Message-ID: <20190820075742.14857-2-narmstrong@baylibre.com> (raw)
In-Reply-To: <20190820075742.14857-1-narmstrong@baylibre.com>

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>
---
 .../devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml      | 3 +++
 Documentation/devicetree/bindings/net/snps,dwmac.yaml          | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml
index 06b1cc8bea14..ef446ae166f3 100644
--- a/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml
+++ b/Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.yaml
@@ -17,6 +17,9 @@ properties:
   compatible:
     const: allwinner,sun7i-a20-gmac
 
+  reg:
+    maxItems: 1
+
   interrupts:
     maxItems: 1
 
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 76fea2be66ac..4377f511a51d 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -61,7 +61,8 @@ properties:
         - snps,dwxgmac-2.10
 
   reg:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
 
   interrupts:
     minItems: 1
-- 
2.22.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2019-08-20  7:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20  7:57 [PATCH net-next v4 0/2] dt-bindings: net: meson-dwmac: convert to yaml Neil Armstrong
2019-08-20  7:57 ` Neil Armstrong [this message]
2019-08-20 20:17   ` [PATCH net-next v4 1/2] dt-bindings: net: snps, dwmac: update reg minItems maxItems Martin Blumenstingl
2019-08-20  7:57 ` [PATCH net-next v4 2/2] dt-bindings: net: meson-dwmac: convert to yaml Neil Armstrong
2019-08-22 22:42 ` [PATCH net-next v4 0/2] " David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190820075742.14857-2-narmstrong@baylibre.com \
    --to=narmstrong@baylibre$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=devicetree@vger$(echo .)kernel.org \
    --cc=linux-amlogic@lists$(echo .)infradead.org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=martin.blumenstingl@googlemail$(echo .)com \
    --cc=maxime.ripard@bootlin$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=robh+dt@kernel$(echo .)org \
    --cc=robh@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox