Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3502103rwb; Mon, 3 Oct 2022 16:26:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4V9n8qPDszYEsuqZu2l+Byv50i2ud29ZdRdvp77gnwMZmgdADlzR5dEaLNjVOdgiLpL67Z X-Received: by 2002:a17:907:3d8e:b0:783:c8a5:f472 with SMTP id he14-20020a1709073d8e00b00783c8a5f472mr16441512ejc.566.1664839617000; Mon, 03 Oct 2022 16:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664839616; cv=none; d=google.com; s=arc-20160816; b=GoBoIS5AwhsCpASWWkQ1g/Fr8nCyahmtP+Nv+PeImwxAffyxPFTcTPB70o/Nq+mRfv SQWxiTpQ3ErYh9EKdBYDgBGa8awVT6snJv9nglMU8qayvVQNxSumSoxMW0GCJI1laVQV 4VSflQ6hh5BuhV5xqowKmkFuInKANyMiH/Z7DX0BOOy4sF7usTtBORMvIqqcDCk2smj+ UDOGxg+aP1cUoS1PK5nuvCWGZZPmoYrxSZl85dyt2a2RtYVjEhs+/enX3RunKryH/7Gx n0qJ017AjI+Z1fMwzMVno53VjRgn6k5VB+2aq6iDF7lwtI9FKpv0K96lIo9yhHZXeEMl P4Mg== 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=XSXor89wvMD5IbxoY6sxhht7eSGoSZ1Ew/JcVOWsAPg=; b=ardxP9QVOQv76RNM4SFNkqHBLz0zt+Jp9ThZfsgjzVPryUDBSaCCN/t7CX6AS9DwlP gssmArSCDbieDQHGCbxoWgKSKfYCpuf/GAE3/eOGZbuTkpGxsVq8ruR/0kAWE5iKoAZQ VmhV/o6/nVt7O/MIvrneNX1IQhMMNOm/BGdLe29zM04vrXtZa18wa+iVffQweAkO1sFu I5O4j3fqt+eXAy/k+yhpawOtPNaEG44X3E0eLzngPVwaVfO1kYaCwXPiPJnZoqVIspqj dwHRj2oMmygm3ZGtTjAwwnC0aTa0ty+wgdalugbPrgBkr9FCWDo+nbILqTBNE2kG4Zsy RnEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Pvz8y4NK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg26-20020a170907971a00b00781b52cd62bsi9794705ejc.462.2022.10.03.16.26.31; Mon, 03 Oct 2022 16:26:56 -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=@gmail.com header.s=20210112 header.b=Pvz8y4NK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbiJCWct (ORCPT + 99 others); Mon, 3 Oct 2022 18:32:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiJCWcr (ORCPT ); Mon, 3 Oct 2022 18:32:47 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21F1B558E6; Mon, 3 Oct 2022 15:32:46 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id iv17so7866160wmb.4; Mon, 03 Oct 2022 15:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=XSXor89wvMD5IbxoY6sxhht7eSGoSZ1Ew/JcVOWsAPg=; b=Pvz8y4NKbKjMNfIDOpelT+9qJ3evjx9PctMQZkAVVk0/0mLz9A4jDMpyiuuwENsoxq wB2AFMgZkXJR4whgW5h02M/8UK9yCTo5vsqAmpNYC2rZU5TZm223cKdfBjp2lWIFXsP5 9fB9qseBJ76wAMB8+/UqXV71Sfkyz2DBUbx2u/DsB5JLlRtjwUB0H6RZ7i5i4OicNkwq +ZoSpMhfa/QktYQrqJGhvTH+FwAvThsIvRH52NMHcFFNdYjynIrCT2fXvll6OPed/PLE EmS1n9fs9rAMK23s0GpVQBNKeBi3CgIOp2HnbSTsc2xRQkOlrgSoXefcbB3zG9s22hUx w4Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=XSXor89wvMD5IbxoY6sxhht7eSGoSZ1Ew/JcVOWsAPg=; b=DB4UOksf8jZy3z88KtbloH0oIqW92+uGpSe8movYSn4+jXeZZPwaNQ4tKVUf443yr0 Ww/cK59jPKlBdPu0ujj6z2WluvsodH0n8ZfxGkH7qwsa326FSBrlr60+TgnHo7iklbiA QEZaGyu3jwkV1KXfckh2ruBhbI5POuL5Oq2iUv+z1DV5hmJAnVSm5h6yxUDxqXNvEXEI K8RMCqtfC+uGXJCW6n1EJ+MbXB5GJtwirdtHJ8xAqk/waF2j0GVwztlH/iCfOOjJC9/e 9x5eGdjYFjZO1NkvZ3wYFMmSLWZR//6AXtbMS9Fg9EvwdLD3umIXTIDEj/Cei0hKyBuT BMRQ== X-Gm-Message-State: ACrzQf3JPSu3c/r3O5oocpFV/DU64DYS7T/VQsp+dlxSSGd9POWItbUw 4EpIrpu03JzZwaE0SmC5ybwplr2pdwwkKQ== X-Received: by 2002:a05:600c:1990:b0:3b4:c326:d099 with SMTP id t16-20020a05600c199000b003b4c326d099mr7888667wmq.19.1664836364460; Mon, 03 Oct 2022 15:32:44 -0700 (PDT) Received: from localhost.localdomain ([2a00:23c8:2501:c701:34b9:36fa:3827:d20]) by smtp.gmail.com with ESMTPSA id m64-20020a1ca343000000b003a6125562e1sm12884871wme.46.2022.10.03.15.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 15:32:43 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski Cc: Magnus Damm , Heiko Stuebner , Guo Ren , Conor Dooley , Philipp Tomsich , Nathan Chancellor , Atish Patra , Anup Patel , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [RFC PATCH v2 1/2] dt-bindings: soc: renesas: r9a07g043f-l2-cache: Add DT binding documentation for L2 cache controller Date: Mon, 3 Oct 2022 23:32:21 +0100 Message-Id: <20221003223222.448551-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 From: Lad Prabhakar Add DT binding documentation for L2 cache controller found on RZ/Five SoC. The Renesas RZ/Five microprocessor includes a RISC-V CPU Core (AX45MP Single) from Andes. The AX45MP core has an L2 cache controller, this patch describes the L2 cache block. Signed-off-by: Lad Prabhakar --- .../soc/renesas/r9a07g043f-l2-cache.yaml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/renesas/r9a07g043f-l2-cache.yaml diff --git a/Documentation/devicetree/bindings/soc/renesas/r9a07g043f-l2-cache.yaml b/Documentation/devicetree/bindings/soc/renesas/r9a07g043f-l2-cache.yaml new file mode 100644 index 000000000000..f96eeffa58ce --- /dev/null +++ b/Documentation/devicetree/bindings/soc/renesas/r9a07g043f-l2-cache.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) 2022 Renesas Electronics Corp. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/renesas/r9a07g043f-l2-cache.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive L2 Cache Controller + +maintainers: + - Lad Prabhakar + +description: + A level-2 cache (L2C) is used to improve the system performance by providing + a larger amount of cache line entries and reasonable access delays. The L2C + is shared between cores, and a non-inclusive non-exclusive policy is used. + +properties: + compatible: + items: + - const: andestech,ax45mp-cache + - const: cache + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + cache-line-size: + const: 64 + + cache-level: + const: 2 + + cache-sets: + const: 1024 + + cache-size: + enum: [131072, 262144, 524288, 1048576, 2097152] + + cache-unified: true + + next-level-cache: true + + pma-regions: + $ref: /schemas/types.yaml#/definitions/uint32-matrix + minItems: 1 + maxItems: 16 + description: Optional array of memory regions to be set as non-cacheable + bufferable regions which will be setup in the PMA. + +additionalProperties: false + +required: + - compatible + - cache-line-size + - cache-level + - cache-sets + - cache-size + - cache-unified + - interrupts + - reg + +examples: + - | + #include + + cache-controller@2010000 { + reg = <0x13400000 0x100000>; + compatible = "andestech,ax45mp-cache", "cache"; + interrupts = <508 IRQ_TYPE_LEVEL_HIGH>; + cache-line-size = <64>; + cache-level = <2>; + cache-sets = <1024>; + cache-size = <262144>; + cache-unified; + pma-regions = <0x00000000 0x10000000>, + <0x10000000 0x04000000>, + <0x20000000 0x10000000>, + <0x58000000 0x08000000>; + }; -- 2.25.1