Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1979626pxb; Sat, 21 Nov 2020 04:59:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNkSJkYnY+8nZrt9iKalry5AFhYPQBOVFXLMMD/kXj1EVTr3GcP991JIqtYCzEs4h19ZNE X-Received: by 2002:a17:906:888b:: with SMTP id ak11mr35931859ejc.278.1605963544323; Sat, 21 Nov 2020 04:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605963544; cv=none; d=google.com; s=arc-20160816; b=PVdbRIKtsXGlrOAZ7E7Jl0aDcDigJ2XVCCOTfQzFmxx8ec9xTmV3nA2GnJlbiQPP37 fcqGm4iVdAvF/QIdRtRaeNgXHYgLMk14gglrSodEkbKGT1OxrTBra0awvCnAMRPHQkmB ilZ/bK2Z+gwirsQieU2lHMqfwV3xI25eOfOfWvRer0EbWBO5qUUY8bzYjgycxYARVSZE Z0NhViTNCv7cbCxRsrYST2ab5XeEdNCQbrwJYmwXCdFA1CRwFgVNfihm6M1+MJ9XYU7C BenRUTG08WrA3BKhoELiN5MmuqKnbGP0qqKDX86Kap4sVvZKK5B1CUNtDbsSnuEMQgMh nHlA== 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; bh=i2ejWjSwcsPIE/JaW7yGyr3QkPvl0CuFfocLUWFS4q0=; b=bweOGtChxs8UUVoLzaswxHoci/+i7pmrBQLUUA9YuXOgfJ8Xs4+Rt1BEnCC3xb1Ehp lJ5xilcgn5bV9AerQcndji+SRLPVVncapsou1un9CgUZGNop6dMHhtaRfEVWDpfYs06v Q1FUiKCEUEa5/MalvBYymmiOUt7RPM7U/5X0miNHospGmpKu2KBd7CgwjDb8DVf8twSH F5xiF2CSReTV1koXG/GuX6ESfXRVa2jdFYjwY8W2VKiBfHsNZd6RYQM0+1uhDBFuoA9j xFOp78VYL9RYwC9/MChv4i0ftLx400ZK+2PNoazfqZrksWtzq3CBgShoTYnYuxu3ZQwi EgdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si3611822edn.589.2020.11.21.04.58.41; Sat, 21 Nov 2020 04:59:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727726AbgKUMyu (ORCPT + 99 others); Sat, 21 Nov 2020 07:54:50 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35719 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbgKUMyu (ORCPT ); Sat, 21 Nov 2020 07:54:50 -0500 Received: by mail-qk1-f195.google.com with SMTP id v143so11750082qkb.2; Sat, 21 Nov 2020 04:54:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=i2ejWjSwcsPIE/JaW7yGyr3QkPvl0CuFfocLUWFS4q0=; b=cnAZDKY2g/earIKMognEAirAzDmdkFbvqr/OXNoQ3kz7p3J0ljojt8Jqj5IJ/W1HQB YAKIb78SY/tNHvrbFiRE6jBD5dFfORVxU++10TVnTzaMEmteVLIu3r8BQqazneAyfuXP rB2VENxhsMibFX/UA2K/rWUZxoWSlNZ5K2XSXj77/miUEmF9+3QW9gXaAxyr0g3dIdW1 9Tk/WFq6bxUIqUxW9huySl0bBfgdY9nmAZy5jL+H+7TjH9ackasmL/ErALJ5E0gaZVZg fFDdVOzNRVL0jaFwGAgXYB4aSVqGx4II/epDreTBkeBZhGmXDi4kfi9o1EaH5TDakc6V M9Jw== X-Gm-Message-State: AOAM532dMW0CONQ7qkLU/ybtou5KpDgz+52q4engPMP5XMBdVvnZAZ9T BaWRf7VgElh5NzhfEYjN6A== X-Received: by 2002:a37:a481:: with SMTP id n123mr20961708qke.114.1605963288811; Sat, 21 Nov 2020 04:54:48 -0800 (PST) Received: from xps15 ([2607:fb90:5feb:6270:cdf7:680e:59f2:6ccd]) by smtp.gmail.com with ESMTPSA id s134sm4045140qke.99.2020.11.21.04.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Nov 2020 04:54:48 -0800 (PST) Received: (nullmailer pid 2081252 invoked by uid 1000); Sat, 21 Nov 2020 12:54:43 -0000 Date: Sat, 21 Nov 2020 06:54:43 -0600 From: Rob Herring To: Yash Shah Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, Jonathan.Cameron@huawei.com, wsa@kernel.org, sam@ravnborg.org, sagar.kadam@sifive.com, anup@brainfault.org, bp@suse.de, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, sachin.ghadi@sifive.com Subject: Re: [PATCH 1/2] RISC-V: Update l2 cache DT documentation to add support for SiFive FU740 Message-ID: <20201121125443.GA2076465@robh.at.kernel.org> References: <1605172274-44916-1-git-send-email-yash.shah@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1605172274-44916-1-git-send-email-yash.shah@sifive.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 02:41:13PM +0530, Yash Shah wrote: > The L2 cache controller in SiFive FU740 has 4 ECC interrupt sources as > compared to 3 in FU540. Update the DT documentation accordingly with > "compatible" and "interrupt" property changes. > > Signed-off-by: Yash Shah > --- > .../devicetree/bindings/riscv/sifive-l2-cache.yaml | 33 +++++++++++++++++----- > 1 file changed, 26 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > index efc0198..4873d5c 100644 > --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > +++ b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > @@ -27,6 +27,7 @@ select: > items: > - enum: > - sifive,fu540-c000-ccache > + - sifive,fu740-c000-ccache > > required: > - compatible > @@ -34,7 +35,9 @@ select: > properties: > compatible: > items: > - - const: sifive,fu540-c000-ccache > + - enum: > + - sifive,fu540-c000-ccache > + - sifive,fu740-c000-ccache > - const: cache > > cache-block-size: > @@ -51,12 +54,6 @@ properties: > > cache-unified: true > > - interrupts: > - description: | > - Must contain entries for DirError, DataError and DataFail signals. > - minItems: 3 > - maxItems: 3 Keep this here and just change maxItems to 4. Really, what each interrupt is should be listed out as an 'items' entry. > - > reg: > maxItems: 1 > > @@ -67,6 +64,28 @@ properties: > The reference to the reserved-memory for the L2 Loosely Integrated Memory region. > The reserved memory node should be defined as per the bindings in reserved-memory.txt. > > +if: > + properties: > + compatible: > + contains: > + const: sifive,fu540-c000-ccache > + > +then: > + properties: > + interrupts: > + description: | > + Must contain entries for DirError, DataError and DataFail signals. > + minItems: 3 > + maxItems: 3 Here you just need 'maxItems: 3'. > + > +else: > + properties: > + interrupts: > + description: | > + Must contain entries for DirError, DirFail, DataError, DataFail signals. DirFail should be last so you keep the same indices. > + minItems: 4 > + maxItems: 4 And 'minItems: 4' > + > additionalProperties: false > > required: > -- > 2.7.4 >