Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9835855rwp; Thu, 20 Jul 2023 10:19:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGHdBWltSIyThEKZeXecokt+t1SqZur+1KR2fFbYLm9G2sKl4joJZRxEfITFOHhH4lIdspV X-Received: by 2002:aa7:c3ca:0:b0:51d:a483:6089 with SMTP id l10-20020aa7c3ca000000b0051da4836089mr5386624edr.24.1689873585182; Thu, 20 Jul 2023 10:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689873585; cv=none; d=google.com; s=arc-20160816; b=Db5wvmW0jhyxiQGp2VY7kpOsP/A6HKZqHRoXai9Gw/vhNkRwpZhpDBRbDGicj3cAjs PjlZfXObn8sH/tW1T8IHGvBuSnuacZ8IQI+dJsk/FtKIOVHDJ+OQzvBnBikwSrSyux/Q cbkED0YJx0hv3v8ew3eD1vtPhugYJayjhIXYVRqIHKtngRsqfu/2wmsa5ovLFF+7HKVA 1PnOhmDel+YYizJjhBuhsb0NNrHppDwjWeQ9poVpCfENCbeWL1nCYmoZ2Qo8QTU1ZZm4 xOyDQM9p0pG/L7q8APp16maN6FSJTwUgqfLrk8rmvZuEQ+pFH9VXNUoEZHuMV6Joa3sE HTQA== 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=1FOv52Dans/ti8PD8k0eb4jooHGa+4b2npNxRFc7kpg=; fh=9UTi1VjYy3jzqfw5Blsi86jSWTQUAr941mPy0K5QSLU=; b=q2Eo55YC/6XGWb2+zKQqNRLcx2UXWxrx1oxz5EZMX4295l6s4zrLAjYO47BWeEjTBQ 2sWd6NnJKwVLl2J2n/ivqYvJ7ltQ/X/t3VSqhPm1e2jWVphR2yK9Kb5X8bIH4f6sOnkK PHXgVG59u7Kj1d6SjkNgbkKmg354RuYV5xJHRnkPoH+Syp3WmgSskZQDCAqOO3p8MZVd wSSkjTcPpqRHWQ6kIfM/0/MXm0I3BmM/RX3dE1rcNNRm+y+nHB2zbYlVuvXvVJO0Kkpn 3/xX0b3ibgOVMWI6D9PmvjCKZ4d4R+B1iSEYE4pga9qH2xe8TAgiUrxlPqwPYEP38FYx 4REQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sCqSFh7c; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a05640203c800b0051e065bbc1dsi1078380edw.36.2023.07.20.10.19.20; Thu, 20 Jul 2023 10:19:45 -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=@kernel.org header.s=k20201202 header.b=sCqSFh7c; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbjGTRK7 (ORCPT + 99 others); Thu, 20 Jul 2023 13:10:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjGTRK6 (ORCPT ); Thu, 20 Jul 2023 13:10:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA77AA; Thu, 20 Jul 2023 10:10:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8786F61B8E; Thu, 20 Jul 2023 17:10:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1115C433C7; Thu, 20 Jul 2023 17:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689873056; bh=+axwopYxss32R/v91aEDYuikl4wHxlkypTqI8kD6aso=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sCqSFh7cyVmHDASsdStKBK/jH7esg7iLSu6bLcPd91ldXFqCSEsYMXMx0aC9kwDWp sITE99JryYqoKSZYx++BRhsOwJ5wezc4UPhubd1g+sil3QUmCfCPlJH/yuA38WHeQ2 lczEfsclUrTRRGS7+IKJyza/pVPRM3yC7SKnSR5soJ1T5Sq0PpmVrq7mhrHIBErTAI asmw06YlY9p1uAAH17JIKZnsJ+iNgqilbvYbWAgfpt42Bfe3fHCl4JBZ1w2BI+CaUW WfhGAhm6/iUJPCrOM+O1wZQTv9cNTtvG+WBEGhK5HgYpFgnumgNq3rFWp/NuR+quqD vNL2WCOxpDkUQ== Date: Thu, 20 Jul 2023 18:10:51 +0100 From: Conor Dooley To: Eric Lin Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, will@kernel.org, mark.rutland@arm.com, tglx@linutronix.de, peterz@infradead.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, zong.li@sifive.com, greentime.hu@sifive.com, vincent.chen@sifive.com, Nick Hu Subject: Re: [PATCH v2 1/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Message-ID: <20230720-slept-guru-216e2803061e@spud> References: <20230720135125.21240-1-eric.lin@sifive.com> <20230720135125.21240-2-eric.lin@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DXW+N7LgbdadIzwt" Content-Disposition: inline In-Reply-To: <20230720135125.21240-2-eric.lin@sifive.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,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 --DXW+N7LgbdadIzwt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Eric, On Thu, Jul 20, 2023 at 09:51:19PM +0800, Eric Lin wrote: > This add YAML DT binding documentation for SiFive Private L2 > cache controller >=20 > Signed-off-by: Eric Lin > Reviewed-by: Zong Li > Reviewed-by: Nick Hu > --- > .../bindings/cache/sifive,pl2cache.yaml | 62 +++++++++++++++++++ btw, your $subject should be "dt-bindings: cache: ...." rather than "riscv: sifive". > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/cache/sifive,pl2cac= he.yaml >=20 > diff --git a/Documentation/devicetree/bindings/cache/sifive,pl2cache.yaml= b/Documentation/devicetree/bindings/cache/sifive,pl2cache.yaml > new file mode 100644 > index 000000000000..ee8356c5eeee > --- /dev/null > +++ b/Documentation/devicetree/bindings/cache/sifive,pl2cache.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (C) 2023 SiFive, Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/cache/sifive,pl2cache.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SiFive Private L2 Cache Controller > + > +maintainers: > + - Greentime Hu > + - Eric Lin There's extra spaces in these lines for some reason. > + > +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 > +properties: > + compatible: > + items: > + - const: sifive,pl2cache1 > + - const: cache You omitted the pl2cache0 from here, that needs to come back! You'll end up with 2 items entries. Either way, I can't take this binding without a soc-specific compatible, per sifive-blocks-ip-versioning.txt.. Thanks, Conor. --DXW+N7LgbdadIzwt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZLlqmwAKCRB4tDGHoIJi 0tcuAP92m51JnHz7NPdeF4+NU14NEqDIZzYAshCe+QYlXCRcRQD+NRNK1FrLyftL 6Ff62D6y4p7pPTuYG+5nJ0phZ28ntwA= =QjrL -----END PGP SIGNATURE----- --DXW+N7LgbdadIzwt--