Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5362640rwd; Wed, 24 May 2023 00:07:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VNTKYecfE2PBJ3oh8X5MPCBU4krLd8ZTJMLI2n/kJxOV7o1+VOk1u3S9qb9lkD+hvoDkJ X-Received: by 2002:a17:902:7d8d:b0:1aa:d971:4623 with SMTP id a13-20020a1709027d8d00b001aad9714623mr14136241plm.38.1684912056488; Wed, 24 May 2023 00:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684912056; cv=none; d=google.com; s=arc-20160816; b=jvFIoB515ngfwxh38LiNMQm0/aSWmos4fOvBlzGUnOdrg9ATopluWMIgr/7NcOom1t kVzcm4pHQukzDyXC4e/bCJgqPa3/aMscCs9ER8x70iHhDEDje6XgxjhkAFDHG2Jt1stA aZ16eKi1W3ZxhWuGQjUP3FdZrs8Wfl52GbDsdL3tnwOirldT/fU4aF4Dk0SMsTRjDVhE g17D8FqINdWaO2H6PNaWuN+8dsndBDAqT2bB4FKt7+FtS2BDWmc49rNCLpt6Ipie55V6 zxUi1qrkT/NuThYbn7nkWymE3vZ3qehtGjAIY7R7/HcYp9D1lptr7B+7WF/c9WGshhb5 gh0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kvmgNlWuGlztEicMuZu433lwifgbARl64frIWz+xXhs=; b=MNcJnMy2YyruF7O6Xjn5zY+uBmmcH1neBQaQg9qJ14n19bl/vbXH7JAIRk1GRFg+Sj gx+qTYoMJ+UQ+fwgFPHffUMLgFrPV/1m2YkLrW06eU1G2PdLmz6q1Qf6rQ5uNyjLun0h jAdqb4AULtaYIv/Ut97C0IvA4Y0PeXFLoD5sKuI9re/62ximzwIW4cUsCCj7Rh9MCFlP 43OjGZ+FHAg6VLtj3AcKsnkzBo5WL7p4r/Yx2PeMgUADoE1kcAq1T9zx3sRbPzz6EMhY RQqhstw/LloMjj4Ss7q2BAALece7TdoIcRwK1hjpBN9P5aoK2UUTLv8VMTkkUBS1e8ae rGKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=OBKcukZF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd21-20020a170903261500b001ab0a26d275si3508075plb.221.2023.05.24.00.07.24; Wed, 24 May 2023 00:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=OBKcukZF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239833AbjEXG5t (ORCPT + 99 others); Wed, 24 May 2023 02:57:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239573AbjEXG5T (ORCPT ); Wed, 24 May 2023 02:57:19 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C134E62; Tue, 23 May 2023 23:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1684911412; x=1716447412; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+2R1S8BzLBMD1ztIM0yjR1EZHQXg518QCyvLKtAnHR4=; b=OBKcukZF+S+Sto0Iw2uNs/L+M7A9SFDwxh3cPmpExPp98nTbkABAdZwz r+tWwGXub2t+Fb7syp0a9iKfGVsHCRitXs7SVbOm4EhAX7Dx8DsKJrnW3 1gNdY6Pz2Uy4WNmsjQrp0oxWav3ToTgm8ICxIUHKDKQgMtSFprrw/HWNx HIhHmXPNsv55i8otYJSz6XMBuX+ZA6Y4vrO4uzf95Y/0YZ073JZ0iDWmf SjrYvf4iebngVu9IoQ2ngxuauYycrrwhfNP/XzlBYftd1ndAC1ohxaEna BRFNnkTW9sH3hPQh5gQs4SwY1NPHCnK2fvFVfpsTbrciHnelJluJoGQ3z g==; X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="asc'?scan'208";a="226743876" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 May 2023 23:56:51 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 23 May 2023 23:56:50 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 23 May 2023 23:56:47 -0700 Date: Wed, 24 May 2023 07:56:25 +0100 From: Conor Dooley To: Justin Chen CC: Conor Dooley , , , , , , , , , , , , , , , , , , , , , , Florian Fainelli Subject: Re: [PATCH net-next v4 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller Message-ID: <20230524-resample-dingbat-8a9f09ba76a5@wendy> References: <1684878827-40672-1-git-send-email-justin.chen@broadcom.com> <1684878827-40672-3-git-send-email-justin.chen@broadcom.com> <20230523-unfailing-twisting-9cb092b14f6f@spud> <20230524-scientist-enviable-7bfff99431cc@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oixSSIk8//11vX0i" Content-Disposition: inline In-Reply-To: <20230524-scientist-enviable-7bfff99431cc@wendy> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --oixSSIk8//11vX0i Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 24, 2023 at 07:51:07AM +0100, Conor Dooley wrote: > Hey Justin, > On Tue, May 23, 2023 at 04:27:12PM -0700, Justin Chen wrote: > > On Tue, May 23, 2023 at 3:55=E2=80=AFPM Conor Dooley = wrote: > > > On Tue, May 23, 2023 at 02:53:43PM -0700, Justin Chen wrote: > > > > > > > + compatible: > > > > + enum: > > > > + - brcm,asp-v2.0 > > > > + - brcm,bcm72165-asp > > > > + - brcm,asp-v2.1 > > > > + - brcm,bcm74165-asp > > > > > > > + compatible =3D "brcm,bcm72165-asp", "brcm,asp-v2.0"; > > > > > > You can't do this, as Rob's bot has pointed out. Please test the > > > bindings :( You need one of these type of constructs: > > > > > > compatible: > > > oneOf: > > > - items: > > > - const: brcm,bcm72165-asp > > > - const: brcm,asp-v2.0 > > > - items: > > > - const: brcm,bcm74165-asp > > > - const: brcm,asp-v2.1 > > > > > > Although, given either you or Florian said there are likely to be > > > multiple parts, going for an enum, rather than const for the brcm,bcm= =2E. > > > entry will prevent some churn. Up to you. > > > > > Urg so close. Thought it was a trivial change, so didn't bother > > retesting the binding. I think I have it right now... > >=20 > > compatible: > > oneOf: > > - items: > > - enum: > > - brcm,bcm72165-asp > > - brcm,bcm74165-asp > > - enum: > > - brcm,asp-v2.0 > > - brcm,asp-v2.1 > >=20 > > Something like this look good? >=20 > I am still caffeine-less, but this implies that both of > "brcm,bcm72165-asp", "brcm,asp-v2.0" > _and_ > "brcm,bcm72165-asp", "brcm,asp-v2.1" > are. I suspect that that is not the case, unless "brcm,asp-v2.0" is a I a word. s/are/are valid/ > valid fallback for "brcm,asp-v2.1"? > The oneOf: also becomes redundant since you only have one items:. >=20 > > Will submit a v5 tomorrow. >=20 > BTW, when you do, could you use the address listed in MAINTAINERS rather > than the one you used for this version? >=20 > Cheers, > Conor. --oixSSIk8//11vX0i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZG21GQAKCRB4tDGHoIJi 0sO/AP9cRQ7+VO/SYpcRQ4CrYP3yQKQE6FbJdUJJekywN8ZxsQD/YqL7dDng/AoJ XO0iNPz9c8Ma+pbj6hsXOiqs/AvLHQI= =/k6/ -----END PGP SIGNATURE----- --oixSSIk8//11vX0i--