Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2393928rwd; Fri, 16 Jun 2023 03:18:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xMi0aJCxeGK0wIj6EEPmclUDsJ2o7kStfmUiZptrwmYraWzM1Ju6mj7mvSxgSN4C8fsVa X-Received: by 2002:a17:90b:4a03:b0:25e:b5bd:a8a1 with SMTP id kk3-20020a17090b4a0300b0025eb5bda8a1mr815298pjb.40.1686910719106; Fri, 16 Jun 2023 03:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686910719; cv=none; d=google.com; s=arc-20160816; b=CoDctsKkNP0kuUhlbGDFfcyTJTy+9902nJ/brj5ZYENnewKE0/GOlkar8siOPpZMaj aXF6PEFK2e9PuuT5dSysgaX1EG/hHKdhmuIJxAIiBxBevO1mlzrsn5Yk3gFEk2Tao5sJ klXbQuY41DXTVCbEwg8mzwMF2602f2y73jEYwn0XtE5k8yOTxdzLcSZBMP/XX5S3jsBs PrlvtLY0WuhlRq3mZ9eXoP/9POG5iFFKvD14O4V+W80FIe1vrGZK90sURWIoxoGajhdK qF1CNL4sT4hc34MzV23AdILVBzFHUd7SJDyKEkay7tKI+N+hZ/VGYYgh232Rs8oiVTbV SfwA== 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=59sGq+Gti2h5zKdq5/szHvviZ1JzO30cKUF1c/wKbW4=; b=O9UvsYHT/7h3uTs89W0mGXC9TnSc4kmegZQMtED2ebcMe36yZJklhgWFl5rYiHEOvP A1ZMhbGLe9tfViWFeffwyu4IWQ1omQGJNNIWeqRpDIGhzGjTjTcJW4yaNjInKN9fk0Ut 1lpkba8Ey5OrQIJc6Q46NMIeopQyneZWsLxzLfjTuIrbJJ7WpnZuDvwws1ToD1N84Eg2 E07l0y8OwG8B/sOiZPy3X5QKgqfyjSNPDmY+bxT/LWplvSh2qNT+t2j31LpXGcisPJNt U5S0BjrW1Wcy5awBX/UUqHhCSbWe3047coilmZjfHrCSKYwupkoJt+Q2xmSpOk/Ofy8d BXog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=cgstJHhe; 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 h15-20020a17090a130f00b0025bf45ac365si1286555pja.82.2023.06.16.03.18.25; Fri, 16 Jun 2023 03:18:39 -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=cgstJHhe; 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 S234664AbjFPKL6 (ORCPT + 99 others); Fri, 16 Jun 2023 06:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232372AbjFPKL4 (ORCPT ); Fri, 16 Jun 2023 06:11:56 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3E75AC; Fri, 16 Jun 2023 03:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1686910315; x=1718446315; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8PTgZpEiLPMpSVSdcmzuYsdAeMPqe+xF/Qpo/bvYr4c=; b=cgstJHhezPetkHvG92uPdCNw4wkrhY8A6LrehgFQfFZ1pGR5gvij/qnl jiLquz+18Mw+NG/FEUMRrpdmN3ib2rNlJO4SyINFOJhXtgpdevPkONhmX xSa9SYyvQLmXfyDhB6eJZOM7E3V3g8UGMT4X4ettam+Ykb9jin+TOpBDs 3anUrMWzKWg4naJIc3xzRKjUmX8UjvCvzF3UNIbtcHzbnOtNkNB8JVia2 u3s3E2giDETGPSD5A2IgOf1h4+tf75fjf/eISAVLb+2U51vbRNJgszgX4 V39XYaRp92Skd+vYsEQUeKEVYMRquqJDBkV3ilGzL2Xb8h7nXEJpicQzU w==; X-IronPort-AV: E=Sophos;i="6.00,247,1681196400"; d="asc'?scan'208";a="157251664" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Jun 2023 03:11:54 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 16 Jun 2023 03:11:03 -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.21 via Frontend Transport; Fri, 16 Jun 2023 03:11:00 -0700 Date: Fri, 16 Jun 2023 11:10:34 +0100 From: Conor Dooley To: Eric Lin CC: , , , , , , , , , , , , , , , , , , , , , Zong Li , Nick Hu Subject: Re: [PATCH 3/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Message-ID: <20230616-renovate-country-12b9873b4494@wendy> References: <20230616063210.19063-1-eric.lin@sifive.com> <20230616063210.19063-4-eric.lin@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ssNWi0cU4z5MFoHT" Content-Disposition: inline In-Reply-To: <20230616063210.19063-4-eric.lin@sifive.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_NONE,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 --ssNWi0cU4z5MFoHT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Eric, On Fri, Jun 16, 2023 at 02:32:10PM +0800, Eric Lin wrote: > This add YAML DT binding documentation for SiFive Private L2 > cache controller >=20 > Signed-off-by: Eric Lin > Reviewed-by: Zong Li > Reviewed-by: Nick Hu Firstly, bindings need to come before the driver using them. > --- > .../bindings/riscv/sifive,pL2Cache0.yaml | 81 +++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/riscv/sifive,pL2Cac= he0.yaml >=20 > diff --git a/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yam= l 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 Cache bindings have moved to devicetree/bindings/cache. > @@ -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 Drop the alignment here please. > + > +description: > + The SiFive Private L2 Cache Controller is per hart and communicates wi= th both the upstream > + L1 caches and downstream L3 cache or memory, enabling a high-performan= ce cache subsystem. > + All the properties in ePAPR/DeviceTree specification applies for this = platform. Please wrap before 80 characters. > + > +allOf: > + - $ref: /schemas/cache-controller.yaml# > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - sifive,pL2Cache0 > + - sifive,pL2Cache1 Why is this select: required? > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - enum: > + - sifive,pL2Cache0 > + - sifive,pL2Cache1 What is the difference between these? (and drop the caps please) Should this also not fall back to "cache"? > + > + 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 { cache-controller@ Cheers, Conor. > + compatible =3D "sifive,pL2Cache0"; > + cache-block-size =3D <64>; > + cache-level =3D <2>; > + cache-sets =3D <512>; > + cache-size =3D <262144>; > + cache-unified; > + reg =3D <0x10104000 0x4000>; > + next-level-cache =3D <&L4>; > + }; > --=20 > 2.40.1 >=20 --ssNWi0cU4z5MFoHT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIw1GgAKCRB4tDGHoIJi 0gNOAQCIJoftwKLE7w2VWLh+kuM2k8LgVXAVjLDyCKgmSzTT0AD/deRzPJgKXPwV MMGvlTkxTrxIz9e+3MVzNEw/6+WpHQY= =Q4Dq -----END PGP SIGNATURE----- --ssNWi0cU4z5MFoHT--