Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp131957rwb; Tue, 4 Oct 2022 01:32:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6IvWbMFRYAN4rJYeZRX4yVckjv6Pq3Zccwbh7I7nRf9b6A5Vs3TF7nbUEJT1ANFylLhs4B X-Received: by 2002:a63:b12:0:b0:44a:d193:6b16 with SMTP id 18-20020a630b12000000b0044ad1936b16mr11746380pgl.604.1664872327023; Tue, 04 Oct 2022 01:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664872327; cv=none; d=google.com; s=arc-20160816; b=d9PXGQWQnD/ADwIcY0QbdWWa0WENsWbl4D29V8hWnZowhWz+MrdX0oEWgwZ0lkfsK6 j2ouWtS3OU0Polx1XKz8I4rsSXvI+e2yjwMMpbYvU2re1ONNgu34Sn/hWXZroF5Ifel9 b7lKYAHH9DxTAMt4xVrCh9ytcWkD6epcvTC9WYwyHGLA5oQjjn7H9JAF7WQcuitYK8uD zU8oLAR3ZxUUe4UYg0RFjYpLKKQKwRXvilR7BBR880MotgEWz8nazTGvnwJlUVnofuTK tSZLtq9fEQvf7dQOW9u0YZCXf9mW4LxB7xZoZsQq3B9Jt7bjfgK4qMXsLE6nB66C48LD 9RTA== 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=mjLTHDGNVUqBfE+wDjjc5nFHSzFUj17w17FjNuG/oAM=; b=M+7zAV69DLeXUeJqXH47/vddmDUMkNTIqOKcHuiFMIyDqn+FPNGmxHZ3jCKgHgxA6f TO5qvUQluGr9SRLizM8RBy8VCakZd2YycPEwtLczT3xfGvHEE8t+RsFwKhv9QFHZyl1v ORIT5uYrevecse2ch7XwHnAb3PfFXOv4N3Ru5g/p/oAkQD2hvByFvLMGtTQl9PZfcUPv q1UtV1R6nRa3HTPGcIniDJBsMkZE6pTHx8xonMKr3F1D2H8npDImlTxN36RALpm7+0N6 TWHtjySVlI6FGrgdAaZz43WRmE7cenYm1crmFJmc9qOHYTOHhCWYYJklMkogiRdCPi4M eMCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="eUf/w4HI"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020aa78e55000000b0054d5253e7d7si10777166pfr.190.2022.10.04.01.31.52; Tue, 04 Oct 2022 01:32: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=@microchip.com header.s=mchp header.b="eUf/w4HI"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbiJDHds (ORCPT + 99 others); Tue, 4 Oct 2022 03:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiJDHdn (ORCPT ); Tue, 4 Oct 2022 03:33:43 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6369041D22; Tue, 4 Oct 2022 00:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1664868822; x=1696404822; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=G5KIpEIDhqaUWyMXWoDFVdVD5/ppaS/z+I6O/1nD/cE=; b=eUf/w4HILBxAsknaeuHx2o1x2hJ6IdN4NbHCWx865HKnBZoSyd2dHoTb kLawZsEf8mkCfyZZCUlmEJgwCpOsXPxuOg/bmeBMGHKDiYrP1p5Qn2rRO YMarEi3f2R37UBdDBTp40QEdjn6GRuywm7D7L+SkeGO7z8jzZHq+QQ3CQ BYgDqnlNGrYR0/Sa04vMoebBDyjUKF++rMlkd456R3mKf0CvvhF6Vq0jl 41S3w03D1zwOiyQfo4m35Xc59xPGOSpdBqT6BNbzFruBoo9x8Lcf7kDmF 2Q5lzmobamxsdvW1VsyR3wuimMYfDp9brhXMxKWWkF5B/82xCK4DodErH w==; X-IronPort-AV: E=Sophos;i="5.93,367,1654585200"; d="scan'208";a="193695323" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Oct 2022 00:33:41 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 4 Oct 2022 00:33:41 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12 via Frontend Transport; Tue, 4 Oct 2022 00:33:38 -0700 Date: Tue, 4 Oct 2022 08:33:16 +0100 From: Conor Dooley To: Prabhakar CC: Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski , Magnus Damm , Heiko Stuebner , Guo Ren , Philipp Tomsich , Nathan Chancellor , Atish Patra , Anup Patel , , , , , Biju Das , Lad Prabhakar Subject: Re: [RFC PATCH v2 1/2] dt-bindings: soc: renesas: r9a07g043f-l2-cache: Add DT binding documentation for L2 cache controller Message-ID: References: <20221003223222.448551-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221003223222.448551-2-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20221003223222.448551-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 On Mon, Oct 03, 2022 at 11:32:21PM +0100, Prabhakar wrote: > 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 I think preemptively adding a "renesas,r9a07g043f-l2-cache" here is a good idea, just in case something crops up down the line. Thanks, Conor. > + > + 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 >