Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp743116rwn; Thu, 8 Sep 2022 08:12:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Qv57keS9VmqCQmt4mpKXsmylgKe5PcWtfA0FBhgYVHPGTMF57cOUlfYu4dg2L8y5kZ7KI X-Received: by 2002:a17:906:844d:b0:730:cd6a:a487 with SMTP id e13-20020a170906844d00b00730cd6aa487mr6178204ejy.50.1662649941621; Thu, 08 Sep 2022 08:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662649941; cv=none; d=google.com; s=arc-20160816; b=Yfg0zK/Qr5T1TNMWAU/I+CnjC6YkwXq9dgMxi/IvptuqzWx29B7wmCqI89wKwqNRbE tC6cSyXcP5Y3+qQfmpbneGVMvJ2GU8NBNwoxMmlRlpPLLMPrj5mGgHCkjpJGge7lFdiq sirvHRBc7JVoXY4AoOH+9XwoBAv6yEmJUpHWrCH2FQFugNbjZ5u75PBm13GsHr7PFadT 82g4MWL3WwXCARRLcvOa2yMyMfs06gJFOHHKmItpL7Y1KfO2V7fot3dTFBa9wdtC5u3k S5RPZWickZpJxRkctwZrv8WUGFDbqD6WRKwzWMKMloBr94O+84gRWwkGetrwvFS/WoU9 boiA== 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=1O4MLVbmX/2gc1Qfnxh9Du1G8eStsMcSf2LwqkEqzqw=; b=NymHvzEHV/RnPvdtwcAjZpxV+UZ87rldtHJ1NCKyLuAGVyb/foiUXr8qTZo2n5p1LQ FcdjmlkYO4MqL1eSDr0PKOv1SkNPGwD5SYvnKXP+XovWAfALsCPP3NPdFLjJ1HylYryZ JKscZ/T18bk+ckG4fKtO0/xkpkYrR10523YBPQgrkixZ3JJM3w9sPFES4NyY2qWxppgq gAO+Dx45opTP6XQLkS8kWs14HGz53vZuAswgqSh1AxbpmPilEU9BRD8l5mM+YH61B72j ISdVIfJ2L2PW1j4w3I7OfRiV3lFjzCI/uZNU5GIcwJbJyVPCB/oOQWne9G8CtUiV98rH 7abA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=CF4korFn; 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 j8-20020a05640211c800b00447b4d113a8si17151077edw.421.2022.09.08.08.11.55; Thu, 08 Sep 2022 08:12:21 -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=CF4korFn; 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 S232326AbiIHOos (ORCPT + 99 others); Thu, 8 Sep 2022 10:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbiIHOok (ORCPT ); Thu, 8 Sep 2022 10:44:40 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44953BDF for ; Thu, 8 Sep 2022 07:44:34 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id z9-20020a17090a468900b001ffff693b27so2698286pjf.2 for ; Thu, 08 Sep 2022 07:44:33 -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=1O4MLVbmX/2gc1Qfnxh9Du1G8eStsMcSf2LwqkEqzqw=; b=CF4korFnZ5botkl98V+ysIFWWuooEKPxVpYRIYrlQXlJ0Er70IRasrkpMnG9/WD29r HmURGNeghbycuovGIHa+Kk7xNgx1ZQ7pVJUGkziOtFTfkHzK1QKnaUKwx8c7n4DnEXFh snsW9yyPo7pirx0A4pfzQ388lif5TmabuC39IGnDsAkv48MP4jeXNi5Q4muEu58hq5lE j9cl1E/o3UnYAGZhRNfXt9dsXJ5prGoQXcHLDjvyA8HfCmrv4lAW0YKEFnlZNWvG5RB7 a8McQq+bWHVvIC5i3za6GWi1y7MuJkE1DV7ygt3EOvcpZIIRoBvRVzBKoB399ZUXkWkO mhaQ== 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=1O4MLVbmX/2gc1Qfnxh9Du1G8eStsMcSf2LwqkEqzqw=; b=YRW3a+cx38yupGqHt/v7HeP0GS5F7qbctXpgbOyMe1F0kzuYgQ302e1OYWXDBmZSrj vu+M6uvgcEAQ/7SIXmNFW3Xctts9CJ5NDgQLuASB+hhTWwOLashKQBe8bu2rt4jHidmO 90gwxCDuxUgnmrPlBu0Hw4hzYlZEmLv/smGst94RQSgCmw/K2mSa80LFltlzBeEDPDme ATLmusBSUATf0cQlDFaSo2OSicavQY5899fVXNr/TYzVW1TG2l3FHWr9oaKJM1JBuTkd EK9jh7Z3CfMYqgj14zvGSoMzSQXxbl/J+wNKbMDH2ksbQmHqRWbNEAZ6glDRHcZKku/O KCvQ== X-Gm-Message-State: ACgBeo3g06SpnfXKUJ4WGrgzuohaI6tMvdoeIJkawE9SmugM2cFbCvB4 ieDn977aFZqMB/PU3sM5tC4/qg== X-Received: by 2002:a17:903:264e:b0:176:e9d3:64b6 with SMTP id je14-20020a170903264e00b00176e9d364b6mr8255573plb.172.1662648273289; Thu, 08 Sep 2022 07:44:33 -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 b4-20020a170902d40400b001750361f430sm4484728ple.155.2022.09.08.07.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 07:44:32 -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 v3 1/6] dt-bindings: sifive-ccache: change Sifive L2 cache to Composable cache Date: Thu, 8 Sep 2022 14:44:19 +0000 Message-Id: <20220908144424.4232-2-zong.li@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220908144424.4232-1-zong.li@sifive.com> References: <20220908144424.4232-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=unavailable 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 --- ...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