From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06553CCD183 for ; Thu, 16 Oct 2025 11:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xzowT/ct2LAT4w5Oy0mpG5IWiJ3ac9LzH0ZWE6JDIFY=; b=oQd7TAWYFsBDVtXD84TG9i4Wjv 6RXRznYrgWs9q+FiPgAXp6onujWnA4zSM6LN750CexezYvxwjr8x+mE60AS2Nk6ncUOfMqkDCcWMI DCmoUtOk6+1NgrK4izCmj7R7Yt9uBL7Vl0+ol0sERHICQpVwBeEPkB2NplyN8PvZfRryIHiBUIAht 5ykEH1c+kPrehGMRlqzT/LkJjDuFolgz6+rNGAEPcnSji0jVmS0vSQsGhddDofXC+lf96LikNBp+6 M5g/vxeLVSBAqQ8gOoZgHyene6cxhZdx/uhS2N5/6GPgGItHAJhboeTtOP09UhIaX2NZeZ4LpsQr0 7DVy/bBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9MAP-00000004Yck-2zbE; Thu, 16 Oct 2025 11:29:09 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9MAL-00000004YUg-0UIp; Thu, 16 Oct 2025 11:29:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1760614143; bh=BPA7Ao4Fqy8fEZQZyIBHfPwMiJe3jfH+OsQSSw5hw/8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=e6LvruAJ9tFLUmLLRK0OTnqCIn9iRTA/tk9844dbLHGo023FqNfdQ7u4uWJ5VR7zb xh8wvG0/aWCfKVhLV68YXX8o9v7Rfe1i2YqrXK2gBaW/IRU/BOyREu/uL1l+Yh0vcH hcVR24QYEhVTKXFqifnbFs4a/ZaR7msGw3N7B/3mHbzZra1yexJbu/rJVfjcIk0iaF OAqMi0dss1MNyf6aGxMcTffSfR0lEXwdzq5Gttvrv4F6xl4neer7i4z53MCqrOryyl 3Wi3a3O1tU+t00sZNmz5O8eKd+f2UUoYOvdqRPelxqbPCSHbIC7UDFYbdSE6aZ/N3Q BxJZSGGRtLKIA== Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by bali.collaboradmins.com (Postfix) with ESMTPSA id EB39817E153A; Thu, 16 Oct 2025 13:29:01 +0200 (CEST) Message-ID: Date: Thu, 16 Oct 2025 13:29:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/15] dt-bindings: net: mediatek,net: Correct bindings for MT7981 To: Sjoerd Simons , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Lee Jones , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi , Felix Fietkau Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, Daniel Golle , Bryan Hinton References: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> <20251016-openwrt-one-network-v1-9-de259719b6f2@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20251016-openwrt-one-network-v1-9-de259719b6f2@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251016_042905_316257_A9EB10A6 X-CRM114-Status: GOOD ( 13.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 16/10/25 12:08, Sjoerd Simons ha scritto: > Different SoCs have different numbers of Wireless Ethernet > Dispatch (WED) units: > - MT7981: Has 1 WED unit > - MT7986: Has 2 WED units > - MT7988: Has 2 WED units > > Update the binding to reflect these hardware differences. The MT7981 > also uses infracfg for PHY switching, so allow that property. > > Signed-off-by: Sjoerd Simons > --- > Documentation/devicetree/bindings/net/mediatek,net.yaml | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml > index b45f67f92e80d..453e6bb34094a 100644 > --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml > +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml > @@ -112,7 +112,7 @@ properties: > > mediatek,wed: > $ref: /schemas/types.yaml#/definitions/phandle-array > - minItems: 2 > + minItems: 1 If minItems is 1 here > maxItems: 2 > items: > maxItems: 1 > @@ -338,12 +338,14 @@ allOf: > - const: netsys0 > - const: netsys1 > > - mediatek,infracfg: false > - > mediatek,sgmiisys: > minItems: 2 > maxItems: 2 > > + mediatek,wed: > + minItems: 1 You just need maxItems here. > + maxItems: 1 > + > - if: > properties: > compatible: > @@ -385,6 +387,10 @@ allOf: > minItems: 2 > maxItems: 2 > > + mediatek,wed: > + minItems: 2 > + maxItems: 2 > + > - if: > properties: > compatible: > @@ -429,6 +435,10 @@ allOf: > - const: xgp2 > - const: xgp3 > > + mediatek,wed: > + minItems: 2 > + maxItems: 2 Analogously, you should be needing just minItems here if I'm not wrong. Cheers, Angelo > + > patternProperties: > "^mac@[0-2]$": > type: object >