Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6187154rwn; Mon, 12 Sep 2022 23:36:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GfhuZapmwPpsnSQ/OfKDl+NowRjysrl9Y+TOmODhJzSEGjC4ijER8JLzGRdx/sp4IPScK X-Received: by 2002:a17:902:7204:b0:172:663f:80b7 with SMTP id ba4-20020a170902720400b00172663f80b7mr30813009plb.115.1663050967257; Mon, 12 Sep 2022 23:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663050967; cv=none; d=google.com; s=arc-20160816; b=AEb6epc4DEqqpneJgInUn9vEb0YQX7ppTw5HG3sDsOCSqtW6sIV3xddR70QfUvWHrU ++w19qkD1fC+EEyKrIHqO9fQzX6ziB0+UFS4wrqTStyy1lJrtnXaZrVl5cEl/G16n5SN YF+NIniNMM5zuERcAX5qdtWWtOSewbDaENV0+VIBTap1AQVzwGE42nN3woHU+Me3QNcZ Qn9vLtVEaj30vxxe8CZI/wgypZvZPkUH2MwDyrGKdvvO6hh3CqtH9f+Hd/LsNint7YkT TWmaxS3sBo/yrHcqJTjNtx8qDb9kSXXHN/kPtwt/Or09EMmG7ZpgMhM5yMZAtq2YO6DV KOJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=BkU0QN86DJwgcVuXYkBLFx05g7OxXCcrOHXHdeHhmx0=; b=XCJ+BS44vYEITi3dyViA+KgQq3IvVJqiLeHRDL5/apE6ws6S5kfpVsJ2FW0wD1dzOp aUwAjvJgmAG2wTr8HCOyhk+GX+EEHZUgzUINQ3M5WPgIXMJIm/nSBXwgt/zvARRawD5D wJkeaknASQWAue8qiuwdbQS9MjXv8UxQ78sMo6upX6FHrAN5rUoDxMkNjVlMVKPIl0kI XFb1ln9DcwjRsZDtFlBu7TxAUGZDyIugik3B4aI/YEIeWiQDUFEcC5evuEd2sf0SeuzP 0CD5I3e0SHPylzSMZogdTv1JGGdCm7pMVNDTS0hhXaxzrpQvkxDGavuuPKmtUXuaaLVG 4eAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=byruooSX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a170902e98900b001782926f1casi6946555plb.384.2022.09.12.23.35.55; Mon, 12 Sep 2022 23:36:07 -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=@sifive.com header.s=google header.b=byruooSX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbiIMGSi (ORCPT + 99 others); Tue, 13 Sep 2022 02:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiIMGS2 (ORCPT ); Tue, 13 Sep 2022 02:18:28 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C310546220 for ; Mon, 12 Sep 2022 23:18:27 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id f24so10794452plr.1 for ; Mon, 12 Sep 2022 23:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=BkU0QN86DJwgcVuXYkBLFx05g7OxXCcrOHXHdeHhmx0=; b=byruooSXjxanC2WKqwYGjjup7+zSxnsY6qM7gRY7oF8vX+RlTHULq4L4HqHoFA/YU1 BFhkc0GKe7oG1ktodZpQo9u1Kma0LUeLmCW2mCrABOPYNpNMS77fOY33Sw6b4ikYLNKV qB+H5bxtAep3WFbBbTKuCrmRCDLQlNf6Xk1fhvg7YWV3V7syjwhVXG5UWuz8j6A+j3VS m9CtJfKL4ihqkkLEQJcUSKZZvxjIx1GW6PWNedr5CUl7qoGqYFUaPFiYm0/0nJO/SErc QSzAXwSBAfz5loaizCaq4+vSJDekrVd8K18Ry8aoxDrnaD88hG+jUPFwQQUTnLzhTYaw JsUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=BkU0QN86DJwgcVuXYkBLFx05g7OxXCcrOHXHdeHhmx0=; b=Q+pbiimISfm34ejpF4mn/YMsFEVaRDEOR646CwUMVU7QNfbFxvK6GS8KQk68Kk1lWT tF8TWdJI6BVCQUMyBIhiQbDF/5KqJVy10KKcmWqanpf8tFxaZkBcTnTTCmgNSlxlCY9d RoKKA3JgrFvudJx2IzkRlV9KA1VTiNVjf6bkqvdQ5qVid+Ts23MQvgZA/Psbt28/5lnI O06kBJxtbeK6SMZ6OU02RBcXpYKQeX5rmUQeyeQjhA+IqdML9BDEnr9Iay+jLf/gAhkt Y/9xkt/7hEvWdWh8hbxPIhHJwM1fgck6b9RcxhQHLdgfRE2Kg2+HzGltRaFrLD3Pgk9J Ipsg== X-Gm-Message-State: ACgBeo18q48+hwDxUv1kAOnDflHHEbd8/MxrgGWdasiAX+t3qEBAyoJs qFXJys+WisOuE3lT/wyRyms6qg== X-Received: by 2002:a17:902:6b4c:b0:171:38ab:e762 with SMTP id g12-20020a1709026b4c00b0017138abe762mr30297830plt.42.1663049907158; Mon, 12 Sep 2022 23:18:27 -0700 (PDT) Received: from localhost.localdomain (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id z11-20020a170902cccb00b00173cfaed233sm7296332ple.62.2022.09.12.23.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 23:18:26 -0700 (PDT) From: Zong Li To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, greentime.hu@sifive.com, conor.dooley@microchip.com, ben.dooks@sifive.com, bp@alien8.de, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [PATCH v5 1/7] dt-bindings: sifive-ccache: change Sifive L2 cache to Composable cache Date: Tue, 13 Sep 2022 06:18:11 +0000 Message-Id: <20220913061817.22564-2-zong.li@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220913061817.22564-1-zong.li@sifive.com> References: <20220913061817.22564-1-zong.li@sifive.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Since composable cache may be L3 cache if private L2 cache exists, we should use its original name Composable cache to prevent confusion. Signed-off-by: Zong Li Suggested-by: Conor Dooley Suggested-by: Ben Dooks Reviewed-by: Conor Dooley Reviewed-by: Rob Herring --- ...five-l2-cache.yaml => sifive,ccache0.yaml} | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) rename Documentation/devicetree/bindings/riscv/{sifive-l2-cache.yaml => sifive,ccache0.yaml} (83%) diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive,ccache0.yaml similarity index 83% rename from Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml rename to Documentation/devicetree/bindings/riscv/sifive,ccache0.yaml index ca3b9be58058..bf3f07421f7e 100644 --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml +++ b/Documentation/devicetree/bindings/riscv/sifive,ccache0.yaml @@ -2,18 +2,18 @@ # Copyright (C) 2020 SiFive, Inc. %YAML 1.2 --- -$id: http://devicetree.org/schemas/riscv/sifive-l2-cache.yaml# +$id: http://devicetree.org/schemas/riscv/sifive,ccache0.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: SiFive L2 Cache Controller +title: SiFive Composable Cache Controller maintainers: - Sagar Kadam - Paul Walmsley description: - The SiFive Level 2 Cache Controller is used to provide access to fast copies - of memory for masters in a Core Complex. The Level 2 Cache Controller also + The SiFive Composable Cache Controller is used to provide access to fast copies + of memory for masters in a Core Complex. The Composable Cache Controller also acts as directory-based coherency manager. All the properties in ePAPR/DeviceTree specification applies for this platform. @@ -22,6 +22,7 @@ select: compatible: contains: enum: + - sifive,ccache0 - sifive,fu540-c000-ccache - sifive,fu740-c000-ccache @@ -33,6 +34,7 @@ properties: oneOf: - items: - enum: + - sifive,ccache0 - sifive,fu540-c000-ccache - sifive,fu740-c000-ccache - const: cache @@ -45,7 +47,7 @@ properties: const: 64 cache-level: - const: 2 + enum: [2, 3] cache-sets: enum: [1024, 2048] @@ -115,6 +117,22 @@ allOf: cache-sets: const: 1024 + - if: + properties: + compatible: + contains: + const: sifive,ccache0 + + then: + properties: + cache-level: + enum: [2, 3] + + else: + properties: + cache-level: + const: 2 + additionalProperties: false required: -- 2.17.1