Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ho Jie Feng <hjf3108@gmail.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Felix Fietkau <nbd@nbd.name>,
	Lorenzo Bianconi <lorenzo@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	Russell King <linux@armlinux.org.uk>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	Gleb Pesin <dormancygrace@gmail.com>,
	Ho Jie Feng <hjf3108@gmail.com>
Subject: [PATCH net-next 05/13] dt-bindings: net: mediatek,net: fix the ralink,rt5350-eth constraints
Date: Sun,  6 Dec 2026 01:21:44 +0800	[thread overview]
Message-ID: <20261205172152.3142989-6-hjf3108@gmail.com> (raw)
In-Reply-To: <20261205172152.3142989-1-hjf3108@gmail.com>

RT5350/MT7628, under ralink,rt5350-eth, have no ethsys syscon and no
WED, and fewer clocks and resets. The binding still requires
mediatek,ethsys and at least two clocks and three resets, and allows
mediatek,wed.

Only require these for the MediaTek SoCs, and disallow mediatek,ethsys
and mediatek,wed for ralink,rt5350-eth.

Signed-off-by: Ho Jie Feng <hjf3108@gmail.com>
---
 .../devicetree/bindings/net/mediatek,net.yaml | 29 +++++++++++++++----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml
index 6bbd83c6aa..a7291852bf 100644
--- a/Documentation/devicetree/bindings/net/mediatek,net.yaml
+++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml
@@ -31,11 +31,11 @@ properties:
     maxItems: 1
 
   clocks:
-    minItems: 2
+    minItems: 1
     maxItems: 24
 
   clock-names:
-    minItems: 2
+    minItems: 1
     maxItems: 24
 
   interrupts:
@@ -58,9 +58,11 @@ properties:
     maxItems: 1
 
   resets:
+    minItems: 1
     maxItems: 3
 
   reset-names:
+    minItems: 1
     items:
       - const: fe
       - const: gmac
@@ -442,12 +444,30 @@ allOf:
       properties:
         compatible:
           contains:
-            const: ralink,rt5350-eth
+            enum:
+              - ralink,rt5350-eth
     then:
       properties:
-        mediatek,wed:
+        mediatek,ethsys: false
+
+        mediatek,wed: false
+    else:
+      properties:
+        clocks:
           minItems: 2
 
+        clock-names:
+          minItems: 2
+
+        resets:
+          minItems: 3
+
+        reset-names:
+          minItems: 3
+
+      required:
+        - mediatek,ethsys
+
 patternProperties:
   "^mac@[0-2]$":
     type: object
@@ -473,7 +493,6 @@ required:
   - interrupts
   - clocks
   - clock-names
-  - mediatek,ethsys
 
 unevaluatedProperties: false
 
-- 
2.53.0



  parent reply	other threads:[~2026-12-05 17:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 17:21 [PATCH net-next 00/13] net: ethernet: mtk_eth_soc: add support for RT3883 and related SoCs Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 01/13] net: ethernet: mtk_eth_soc: reset PDMA TX completion index on ring setup Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 02/13] net: ethernet: mtk_eth_soc: move PDMA TX ring registers to the register map Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 03/13] net: ethernet: mtk_eth_soc: add a per-SoC TX done interrupt mask Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 04/13] net: ethernet: mtk_eth_soc: complete PDMA TX on the right MAC Ho Jie Feng
2026-12-05 17:21 ` Ho Jie Feng [this message]
2026-12-05 17:21 ` [PATCH net-next 06/13] dt-bindings: net: mediatek,net: add ralink,rt3883-eth Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 07/13] net: ethernet: mtk_eth_soc: use BIT_ULL() for the required clocks Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 08/13] net: ethernet: mtk_eth_soc: add RT3883 support Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 09/13] net: ethernet: mtk_eth_soc: allow building for RT5350 Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 10/13] dt-bindings: net: mediatek,net: add ralink,rt2880-eth Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 11/13] net: ethernet: mtk_eth_soc: add RT2880 support Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 12/13] dt-bindings: net: mediatek,net: add ralink,rt3050-eth Ho Jie Feng
2026-12-05 17:21 ` [PATCH net-next 13/13] net: ethernet: mtk_eth_soc: add RT305x support Ho Jie Feng
2026-12-05 17:28 ` [PATCH net-next 00/13] net: ethernet: mtk_eth_soc: add support for RT3883 and related SoCs netdev-bot+sinfo
2026-12-05 17:49   ` Jie Feng

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=20261205172152.3142989-6-hjf3108@gmail.com \
    --to=hjf3108@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dormancygrace@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux@armlinux.org.uk \
    --cc=lorenzo@kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=nbd@nbd.name \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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