Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2187213rwd; Thu, 15 Jun 2023 23:53:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7llGraMsEXGCr/2ua10h3GcF/IZNQjOy0wbPw6v80/3S7YB4WI9OTiKq1RZypf6WWY2sun X-Received: by 2002:a05:6a00:cc8:b0:666:7eb0:12d8 with SMTP id b8-20020a056a000cc800b006667eb012d8mr1554230pfv.12.1686898419025; Thu, 15 Jun 2023 23:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686898419; cv=none; d=google.com; s=arc-20160816; b=OzBUHHGeXsg/5AIFsXVrUY3KZ8zGZ/NmJjwqEFzM02QuZR/iS+TuKIDkSI+OkAX0xv KzOO7brYyJrZT4VXLReOTUkbm5QDijdBgZk9J0ErdzF9H/mQKgj4BMuzY3YxNlLgA8cD fCdasGb43uiblyeRDCRPoQnQjZFJyh/7Iz40NOerkZebyQzUZZHa3i1CTJRcX5xEFyG3 sReODyKc87FcI8bEq5owPLoLu5IKOFYRcG3LgSFGXgiKQT9HGqaU6PR581w0g05Qq3Pe 5B612HDK6237pR6jCcMa1UiMB8PY+fNKQdWEIaEGgIaQ9z1BBvwdzJLTQrchgMLYbnnP GP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+E9GNUVpev13YAg9DBkxIqHR4HyT2vWr1j4jNPBgL6s=; b=wdgBq7PmZjLFgaqHPqSwH33t6gOAA3R42WHG5cxvm0bND1LdV8sj7HZsuzwmWxL3B2 igKdWOAhmUu8z4vx6IBv5ttVmolmiu1wXggyrx4wxMARL/L2nRBLv+xOVpj0j36j7YOV trKDpC3y4KX2MUIKVCD9b0sDnjR8NUT8XdAhV8HeIcPPfRYOzwZ2e3tqhe5B5QbOa2tb /Kakj74t1x3z4MJXGWTCGx0jbfAIGiTMMOdpFiYXQVoA/Fv3PvUsEzEouy9NRbyse2hs lMN0WmPNUXtSYKc7ztIlIST8anqtVJdunOaopJ6FD2MmO5Gm7TR6HDATb20SXNpVj8+O fGIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bZE3yEb4; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u192-20020a6379c9000000b0054fa5ecb3cdsi7224591pgc.443.2023.06.15.23.53.26; Thu, 15 Jun 2023 23:53:38 -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=bZE3yEb4; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243668AbjFPGdf (ORCPT + 99 others); Fri, 16 Jun 2023 02:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242794AbjFPGdX (ORCPT ); Fri, 16 Jun 2023 02:33:23 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073DB2948 for ; Thu, 15 Jun 2023 23:33:22 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1b4f8523197so11640155ad.1 for ; Thu, 15 Jun 2023 23:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1686897201; x=1689489201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+E9GNUVpev13YAg9DBkxIqHR4HyT2vWr1j4jNPBgL6s=; b=bZE3yEb4sbWGRu5PWYoEkhv0ZERLgUP1HmCsCGGPh270f/mYXpWtkHpOQtb5eHnQRf AfyibpT6bBu0TbdxD6Oy60lR0/Ccf/VOmVii6vt1dCBQT+zqn16499+oMEw75PNVuT6I o59WdRbKIO/KexXHUiWXdgmq1OG44e4RnZiU0EH8mKd9pCnqOC+fezodViMU2rEFQVYf bdG8TGqnpy4wHXYMPttBzJw8LQE3unM3f9ORI4DL1HfxnWut+AfKirXU1HFOoXCB6j91 R19uQzzAkEuF1YbyIwkyYv8sy2xOOMyLtdRb3ROivlfTluJYUfdyb9cfrIeUuVnpIzL3 4nJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686897201; x=1689489201; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+E9GNUVpev13YAg9DBkxIqHR4HyT2vWr1j4jNPBgL6s=; b=cq4hWJuRtrkm5I0Gfe6kYFFEmVcbD1FA6tmkf7f9HjbY28Nzr6N8QyYc9HDwWz0CpW yaGTuffMqGqQIcJZ+6HxywfF3kw4XMKCSQXwyCSApZCaW5BiEu/Hl94uWKn7ULsx/W/O +mYhbDjJBYmf7T2Vva/7Nw+I0L8MwYRX+kxDadQ2KSTlGc+bKl1N2s5sA+wQ8qRqb8Vv SvbiHNhTCF5bnEtdod4aaJ+wqaGCxvvOxQvJN1mAit/tENLyrxNCrmFkzOtVo2y+OXXj KBxGcsP/+VgBFqfQ8mOLl24xt/fS6kDApMr1pEjSccqoYnhQPkgRtuzgg90TTadjcETk 6Q4g== X-Gm-Message-State: AC+VfDzb7JvCi4Y8jWyc2pCAsDLHnoQ3zjtilh4YxMF167noK7rqlp1Q r0CXnIqWnSl+PP6WZDGrtTb2Dg== X-Received: by 2002:a17:90a:ad89:b0:25e:a9d1:8ad4 with SMTP id s9-20020a17090aad8900b0025ea9d18ad4mr1319918pjq.17.1686897201373; Thu, 15 Jun 2023 23:33:21 -0700 (PDT) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id u11-20020a17090a410b00b0025023726fc4sm617596pjf.26.2023.06.15.23.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 23:33:20 -0700 (PDT) From: Eric Lin To: conor@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, maz@kernel.org, chenhuacai@kernel.org, baolu.lu@linux.intel.com, will@kernel.org, kan.liang@linux.intel.com, nnac123@linux.ibm.com, pierre.gondois@arm.com, huangguangbin2@huawei.com, jgross@suse.com, chao.gao@intel.com, maobibo@loongson.cn, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dslin1010@gmail.com Cc: Eric Lin , Zong Li , Nick Hu Subject: [PATCH 3/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Date: Fri, 16 Jun 2023 14:32:10 +0800 Message-Id: <20230616063210.19063-4-eric.lin@sifive.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230616063210.19063-1-eric.lin@sifive.com> References: <20230616063210.19063-1-eric.lin@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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 This add YAML DT binding documentation for SiFive Private L2 cache controller Signed-off-by: Eric Lin Reviewed-by: Zong Li Reviewed-by: Nick Hu --- .../bindings/riscv/sifive,pL2Cache0.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml diff --git a/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml b/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml new file mode 100644 index 000000000000..b5d8d4a39dde --- /dev/null +++ b/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2023 SiFive, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/riscv/sifive,pL2Cache0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive Private L2 Cache Controller + +maintainers: + - Greentime Hu + - Eric Lin + +description: + The SiFive Private L2 Cache Controller is per hart and communicates with both the upstream + L1 caches and downstream L3 cache or memory, enabling a high-performance cache subsystem. + All the properties in ePAPR/DeviceTree specification applies for this platform. + +allOf: + - $ref: /schemas/cache-controller.yaml# + +select: + properties: + compatible: + contains: + enum: + - sifive,pL2Cache0 + - sifive,pL2Cache1 + + required: + - compatible + +properties: + compatible: + items: + - enum: + - sifive,pL2Cache0 + - sifive,pL2Cache1 + + cache-block-size: + const: 64 + + cache-level: + const: 2 + + cache-sets: + const: 512 + + cache-size: + const: 262144 + + cache-unified: true + + reg: + maxItems: 1 + + next-level-cache: true + +additionalProperties: false + +required: + - compatible + - cache-block-size + - cache-level + - cache-sets + - cache-size + - cache-unified + - reg + +examples: + - | + pl2@10104000 { + compatible = "sifive,pL2Cache0"; + cache-block-size = <64>; + cache-level = <2>; + cache-sets = <512>; + cache-size = <262144>; + cache-unified; + reg = <0x10104000 0x4000>; + next-level-cache = <&L4>; + }; -- 2.40.1