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 7F43ACCD183 for ; Thu, 16 Oct 2025 15:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ipou3KT61swdt6PjDIksFS2KDjBGVpNqveQ1rU3dFSw=; b=B9le9WI1verIQ59cpfsPRY9xye /7LtLETpk00CPLg/5YA7LiJd6g5BhfyhH9YULAHFTWKjxO5m7EaOufUz/XsaCou2A2ke5X3tCDtOX TAskp7TcqLzB4l3JGbuVPVsGq/498FZ+FVmvKh/cVWuewWl3LnXvwW+5W9qv7r24K7uTG/6fumAkz lEZVZsFacEJBKQoonBcZfMzhHsa6BVmYrT/c4zhFccEm6qIITt28t7t1+yjb7nr+V6tshaWvX4XyU bUl0wuu3sHJr+e7pKDeUzNJYpy2hpNhDqgllvno9BpPM0mgGrR+LbISzSsoEbLT4aZo7V5wxnKAWU h7wQqgZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9PtZ-00000005BiQ-0Pcj; Thu, 16 Oct 2025 15:28:01 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9PtW-00000005BhC-0tsJ; Thu, 16 Oct 2025 15:27:59 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 6DAFC416AE; Thu, 16 Oct 2025 15:27:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8377EC4CEF1; Thu, 16 Oct 2025 15:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760628477; bh=OkslPl/BfgU+xJGaHNwPTb7HL57jgw9At+2ouWVRKQM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z/6ZxPhY+IJgaqAqHS4IHGqJR8EHzqAgmlKKH3OmylShBjDYAJC4YOdSX1W7nPSer /YpcYNlThilc8xv3hD/XhYJE3PvzUVLFCqpNa61XTEESU38234B4gpuxx1Gn3RJqtB md44x2aLYUv0QTarqnJ+62MALgYpoUwrJj8KopDSfUAbohnEMW0RSNeYCQAW+iITS3 1NPp00+ffS7+z0VfCASHpzLz9wX5iuT28sKloVVoE+/mKtio5HLphfvVj6Vrim2OzA t2msJry2Zyz8pu3cdiPw5Wg2jOBDOdBhzxsXXid8xF7qMcI5ev3MADZ6h59X7Izx6B 6m2XKt2uVkSxA== Date: Thu, 16 Oct 2025 16:27:49 +0100 From: Conor Dooley To: AngeloGioacchino Del Regno Cc: Sjoerd Simons , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?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 , 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 Subject: Re: [PATCH 09/15] dt-bindings: net: mediatek,net: Correct bindings for MT7981 Message-ID: <20251016-squealer-neurology-5bf32360e5bf@spud> References: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> <20251016-openwrt-one-network-v1-9-de259719b6f2@collabora.com> MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251016_082758_319025_EEF7E5AA X-CRM114-Status: GOOD ( 19.42 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5087587549992754318==" Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org --===============5087587549992754318== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KThuiYHY98QAsVsP" Content-Disposition: inline --KThuiYHY98QAsVsP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 16, 2025 at 01:29:01PM +0200, AngeloGioacchino Del Regno wrote: > 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 > >=20 > > Update the binding to reflect these hardware differences. The MT7981 > > also uses infracfg for PHY switching, so allow that property. > >=20 > > Signed-off-by: Sjoerd Simons > > --- > > Documentation/devicetree/bindings/net/mediatek,net.yaml | 16 ++++++++= +++++--- > > 1 file changed, 13 insertions(+), 3 deletions(-) > >=20 > > 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 >=20 > If minItems is 1 here >=20 > > 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 >=20 > You just need maxItems here. >=20 > > + 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 >=20 > Analogously, you should be needing just minItems here if I'm not wrong. Yeah, you don't need to duplicate constraints that are copies of the outermost one set in the definition. I dunno how it is actually done by the schema tools, but I like to think of it that every constraint that's possible is applied at the same time. pw-bot: changes-requested >=20 > Cheers, > Angelo >=20 > > + > > patternProperties: > > "^mac@[0-2]$": > > type: object > >=20 >=20 >=20 --KThuiYHY98QAsVsP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaPEO9QAKCRB4tDGHoIJi 0hB8AP0WbwLBXfaFxwsMo5BvlMRztESdk8TuK8HVUS2Q6TWmTgD/WTWk4/gsETsu K0xG+ZNiHz8uOyLf4AObjEBnftGY1gA= =Hk7g -----END PGP SIGNATURE----- --KThuiYHY98QAsVsP-- --===============5087587549992754318== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy --===============5087587549992754318==--