Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp320532pxu; Fri, 11 Dec 2020 03:12:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxqSJ9E3dnAprx6kIQkda6m4/PqFRNrw1XDqOPo1Mj3wJJN49G+8TD/6Qr4Swhs9HmUj7C X-Received: by 2002:a17:906:d72:: with SMTP id s18mr10616583ejh.110.1607685134906; Fri, 11 Dec 2020 03:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607685134; cv=none; d=google.com; s=arc-20160816; b=O5q7iu3OqbIL7UT0AGCEpeMc1GjaLZJWpT9YYHX/CbE8vgEPPf9XqNYu3Lo0iDC6FN O+DUULza6PMRr64xTv9OCUEqGco/4V4Z1LKHhu3KBj2UCTKuvI6lT39ooJJX7ip3+RAT WZi2Mj9AcYBiYol3uh3wSUbGXa9+opsOh4tH18m3FUHyz1+x5L+8wEAzyNXJDsgZ2MBe v1dCSswQ+jcIF0KV0thxDHqme8iy4dqZlyrUmp/cedN/wbw0OxIewjgkAnOFriLilUza MMSbSg1gOPY4NJtoYCsv41L96PnfD7or/DQCAKMSzs6vs+o3ForEwN+qNKVJN/Y50WyW oSdw== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=luVzHjwrVb0RaJq5Uh65n6skCC7p9OMiArCM0mPgdkM=; b=vMmqsYNWVq/Vd0TcjpgxLP80Aho1623g09V2RcSsFVcmRXpT6PutKnLEznS/RZxAzl 2zrzl5rKUm89bajC8Iw6kpD7zAAoA62pNMabOmkLwH28TRvzZ7kuFbRg+0lkl3FW96bU VnVWtLYEqYnY1Zl54aUTgLHGu65qBaXWWpF6/IPOErjnPbK4OVQ9DihH4Eh1QDQbRARe mysueJ1DRhZ/DjIY1/WXQdVEHk369x36+BHHnwsbunYlm9r72vfQCY+1/uQPXGA0KRYK k4+ycx6RgmOCnXIRCfM51eEgPNlFWMc+nYZ7nNLSFvw8MJA6Dorh2bc89CSKUdYzEdPJ tmTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ML9QG1vU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc2si4472842ejb.427.2020.12.11.03.11.52; Fri, 11 Dec 2020 03:12:14 -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; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ML9QG1vU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394914AbgLKB4P (ORCPT + 99 others); Thu, 10 Dec 2020 20:56:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391239AbgLKB4F (ORCPT ); Thu, 10 Dec 2020 20:56:05 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 613CDC0613D6 for ; Thu, 10 Dec 2020 17:55:25 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id p6so3803612plo.6 for ; Thu, 10 Dec 2020 17:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=luVzHjwrVb0RaJq5Uh65n6skCC7p9OMiArCM0mPgdkM=; b=ML9QG1vU7L4oiXWmFVohfhtCuoxC2/7X83dJ2wknZhwXoPeS69iqmDBv4wozPFOYMo nGwN/y15nRURe06hz/ZLfFDkJh4bxeD/HrGH1c6KRKpqxHznfGK6Mkggeyaeq7C9VQQ3 bGPvK1OF6YPetx5e9v9siqga7GSR67M2sjK+KxpyMYFEeQc2qUa8rlrspWHPbmGdDXFs FAvTncsTkiaBjn004Ge/ubpI1mb8yJ6F8Utl0XKoxrSsMwPwoPSMWkBgZrr7neRYyC/k yewFTxXdU5qGGO4JiI+9N/QruUluX4rjeXcUHnmpEL1r9+OLjMevMihPfkHmotZiBFus jW0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=luVzHjwrVb0RaJq5Uh65n6skCC7p9OMiArCM0mPgdkM=; b=VdS5bIULsR+4mPmIRzUIBmoU1OgLjvKUlP3nZxNUmn4smZv7jD+fRogF5uxif/APcv X5LiMIL9BO3JezAzkVP85t9e1iSqFLD6Nc6uYlVNiYfB3zH7P069kN5X/PrghTFMM0tL fjhqqAse35ybgUgBw1UfKseteI91GgjyqjzpTt7VAsMGVHSLPOys2QktT6B+YD7K6drH 24R9wGbA++MOEeurKbaGIDLiTXvMbl3/Y/7R/PoZ0jt0Igl6HXTytW3Ou1TbBu+Nhct4 kUKL2TJ7/XqzocMSfcBUMQCiGgcCKOpp5kZlE+AcutIpMvI0ZnOq0Kup2yfqoj0bNhTZ dhMg== X-Gm-Message-State: AOAM531PqQ4TRCPzXkLulT5zxTKguzfAONBin/MfN61g9WalHCHxdFv9 uOlR6YxJgfLf0Dp0UCsvZygPC6nMdf6mLJ9N X-Received: by 2002:a17:902:9307:b029:d9:d097:fd6c with SMTP id bc7-20020a1709029307b02900d9d097fd6cmr8843219plb.10.1607651724635; Thu, 10 Dec 2020 17:55:24 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id a26sm7630727pgd.64.2020.12.10.17.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 17:55:23 -0800 (PST) Date: Thu, 10 Dec 2020 17:55:23 -0800 (PST) X-Google-Original-Date: Thu, 10 Dec 2020 17:55:22 PST (-0800) Subject: Re: [PATCH v3 1/2] dt-bindings: riscv: Update l2 cache DT documentation to add support for SiFive FU740 In-Reply-To: <1607596083-81480-2-git-send-email-yash.shah@sifive.com> CC: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, bp@suse.de, anup@brainfault.org, Jonathan.Cameron@huawei.com, wsa@kernel.org, sam@ravnborg.org, aou@eecs.berkeley.edu, Paul Walmsley , robh+dt@kernel.org, sagar.kadam@sifive.com, sachin.ghadi@sifive.com, yash.shah@sifive.com From: Palmer Dabbelt To: yash.shah@sifive.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Dec 2020 02:28:02 PST (-0800), yash.shah@sifive.com 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. This generally looks good to me, but I'd prefer to get an ack from the DT folks as I do frequently miss stuff in the bindings. Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt > > Signed-off-by: Yash Shah > --- > .../devicetree/bindings/riscv/sifive-l2-cache.yaml | 34 +++++++++++++++++++--- > 1 file changed, 30 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > index efc0198..6a576dc 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: > @@ -52,10 +55,13 @@ properties: > cache-unified: true > > interrupts: > - description: | > - Must contain entries for DirError, DataError and DataFail signals. > minItems: 3 > - maxItems: 3 > + maxItems: 4 > + items: > + - description: DirError interrupt > + - description: DataError interrupt > + - description: DataFail interrupt > + - description: DirFail interrupt > > reg: > maxItems: 1 > @@ -67,6 +73,26 @@ 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. > + maxItems: 3 > + > +else: > + properties: > + interrupts: > + description: | > + Must contain entries for DirError, DataError, DataFail, DirFail signals. > + minItems: 4 > + > additionalProperties: false > > required: