Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1081230rwb; Fri, 28 Jul 2023 04:37:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYuc+k79id2KLJj1NCpqDJqiH6YIe9VdRLF6a5VPT6RSU3PxR8NcmdAAmDR+Thfv1ZrKBJ X-Received: by 2002:a17:906:29c:b0:99b:d178:f05f with SMTP id 28-20020a170906029c00b0099bd178f05fmr1759537ejf.71.1690544262044; Fri, 28 Jul 2023 04:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690544262; cv=none; d=google.com; s=arc-20160816; b=TPC5ZJDhQd4petTYhnaGG6Jd62oo07DjpS+PHRQJznbxYJt/adNbmEO/u6ViDf3Smv BHDJKfKSRRkkMRie++Wll4ZbYv4M9ADpxb+vAP2KFOVRRF3CuEVAyb2oMnuDLniS1x0X Ykp5If1pP6bVEpUm+i0kvTjp8LQtMe0NHdN6GYHLaSrSdekds8mvR2c69Ye5gLXkWPBx TNgiPyE45r162k6Jd7ZN/pdCWiRYIjUkIImmEOf+C5jNq8WCvhG/VyfkxyefVyl6NmwO 4MYfK1eJcK7BUlIhMfz0FahRVpIsGfhtv1C98kV2hIYTxdKbNmriZwf2oSYamsWPpvb8 BOiA== 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=2rihb9JRvfVBC9GvcIVI6/e5ATbA/2OQDOazr/kZ228=; fh=up0CX+/yyrH/RvR66Aw0pc1dXHAxPlN6JsrJ3ArEnlQ=; b=RJ+voza8i7kFS9XXiXwIR40agksvh4PxnZlBHGV3vwWFkSZIG+T0vMBteY/h+Xj32v YpIETt5jdBlt19CnMSNNCwhcNnyLU33oRxNW9TkEI7IXxhS+OILVNRkpOGzMwYxmIzDJ 497TGZdPpy2RjE04H+HUIP1F9pynIk37DdvwDoW5mGgNYgI+wB1BJaXEAew/yJOnaS8W 2uaXrHHfNe4uxEgUAcAB62Vwo3mb7E+7nNBTnX4SSg983KaYQob0+OtJz9I6+k2VH0u8 Xs6UcOvc9qP+rvVpuzunrf23zGaqpxbY/r9KkpNZEJhp4uLbIm7RPpYxOuttoCBGQ4RG dHWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=1Kfzbrru; 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 v25-20020a17090690d900b0099bc39cf3fdsi2410528ejw.848.2023.07.28.04.37.16; Fri, 28 Jul 2023 04:37:42 -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=1Kfzbrru; 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 S234277AbjG1LH0 (ORCPT + 99 others); Fri, 28 Jul 2023 07:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235025AbjG1LHZ (ORCPT ); Fri, 28 Jul 2023 07:07:25 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7BC2271D; Fri, 28 Jul 2023 04:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690542444; x=1722078444; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Aka8gvuYwnBE1qjG5Cx27//2rg7/9tsuBUh8r9GeeDU=; b=1Kfzbrru1N55O5j/yQvvKEQyQcgET5Jycy/5qjla6r+kJy1jL5XBYcui nuS+R+NrUFcQR8q9UwJxgoCXUWgpcVJl7mBLQ63JWiJzleRP22ol1TUE9 4Ell5CZuSfeGvirsVlJPYAPJW9XjG/ECDwtpJBcM31JPtPNvEqDjKdcCC 00SqKtJ3u/boypd3UnoxbJryyfMkR//9M3uekEujZPkT8wyCpHa5L+Hjx T46OBHGmf83QWpAH9HCZO8UzCePvD2rCy/NU1LauYO2WzzARn4I1Hk9ll Y2NLvgrB/J0E3xsRYruPLjebJqU8SKPpulVKrP5111k0jqvFBQSgEUfaC g==; X-IronPort-AV: E=Sophos;i="6.01,237,1684825200"; d="asc'?scan'208";a="226626857" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 04:07:13 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 04:07:12 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 04:07:10 -0700 Date: Fri, 28 Jul 2023 12:06:35 +0100 From: Conor Dooley To: Eric Lin CC: Conor Dooley , , , , , , , , , Subject: Re: [PATCH v2 1/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Message-ID: <20230728-corrosive-crown-54dfd6dd3919@wendy> References: <20230720135125.21240-1-eric.lin@sifive.com> <20230720135125.21240-2-eric.lin@sifive.com> <20230720-slept-guru-216e2803061e@spud> <20230728-facedown-husked-9813fa79d9a0@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Yr02wk+FfM9y0tjy" Content-Disposition: inline In-Reply-To: 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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --Yr02wk+FfM9y0tjy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 28, 2023 at 04:24:08PM +0800, Eric Lin wrote: > On Fri, Jul 28, 2023 at 3:06=E2=80=AFPM Conor Dooley wrote: > > On Thu, Jul 20, 2023 at 06:10:51PM +0100, Conor Dooley wrote: > > > On Thu, Jul 20, 2023 at 09:51:19PM +0800, Eric Lin wrote: > > > > +description: > > > > + The SiFive Private L2 Cache Controller is per core and > > > > + communicates with both the upstream L1 caches and > > > > + downstream L3 cache or memory, enabling a high-performance > > > > + cache subsystem. > > > > + > > > > +allOf: > > > > + - $ref: /schemas/cache-controller.yaml# > > > > + > > > > > > I'm pretty sure that I pointed out last time around that you need to = add > > > something like in the ccache driver: > > > > > > select: > > > properties: > > > compatible: > > > contains: > > > enum: > > > - sifive,ccache0 > > > - sifive,fu540-c000-ccache > > > - sifive,fu740-c000-ccache > > > > > > otherwise this binding will be used for anything containing "cache" in > > > the dt-binding. > > > For this binding, I think that the following is sufficient: > > > > > > select: > > > properties: > > > compatible: > > > contains: > > > const: sifive,pl2cache1 > > > >=20 > Sorry, I misunderstood your meaning. > To be honest, I'm not quite familiar with the usage of the select propert= y. > When should we use the select property? > May I ask, is there a document to detail introduce each property and > its usage like the device-tree spec? > I think it would be very helpful for beginners writing correct > dt-binding and it can save much reviewers time. You need this select because otherwise this binding will match against every other user of "cache" in the tree. It's explained here: https://docs.kernel.org/devicetree/bindings/writing-schema.html Thanks, Conor. --Yr02wk+FfM9y0tjy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZMOhOwAKCRB4tDGHoIJi 0gAsAP9n7SLd/UwEsj+M3d9jv2unEvtzM1+jOnjUIu5bDMSlkgD/f7qD0m5FiV5D klvEB4+xPiMifa296wZGHkTM5YhzxAc= =IuWE -----END PGP SIGNATURE----- --Yr02wk+FfM9y0tjy--