Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3726927ybc; Thu, 21 Nov 2019 12:45:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyGRceXg7jcN3+Y60e5qFCGPFxSr1MBQtnk5f+kUwxAMriYGJJhzhVmlhkoTCUEsIO1aJrE X-Received: by 2002:a17:906:f0c9:: with SMTP id dk9mr16391488ejb.56.1574369158483; Thu, 21 Nov 2019 12:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574369158; cv=none; d=google.com; s=arc-20160816; b=ZDLZa+kYHs2LFKj+KirdvqbZBbx+SFfJBJMWvgTnzUYlMaz21Zg6n/mSj+CGo5QV23 6pPqcAsMDoi3Mpr930newuX9weNGkI7vp9JTm2lsN112Cp2xh7l9wPcomF+VERO0n92Q M6YVSv2m9i6ZNlGeU4Ju2fA0SVn/B2kFQUM6sZVGo2h/0AKbft69nxMX40JJTWb3BLWK SMgmjvqnItDhneq3qOfoavDFAdH9a2zJgxrajr8Vm5Avvrby6dv6kpIunRkRtW6VPmh0 qjM4zTcSlz+e0GBfYg20wtN7XPMM/yQ8m4b4C+0bOiXizpwYzvIqeVfZkmzl04T5odZG QjAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZlY1A8YgbiK+60pvRJ8DUoVbvF7KpED+RvNVlOCutDw=; b=yhIkp/gu2mPS5Mh3tLuM+rMHArDe6y3w1DX5q8DZuWc9KwirRcOifAr/yTv79+qdf+ 9O04eN5+OVhFh0v6dM7jEEQyvYdGwc9B95w8T0r9zG8iIpSLPHmswi4Nz1EYa7rgpZ/B BHreR8mKWdiwumxppd62pBu9b2K5Znzq7/O5M70/pFPj0XVWK+7OZQkIy4PNsr18XtXY l0RxpLF4QHa+EPg84aFCQBefCQV1h2eu01xGFw6AH2EpPuUSKBMAxvimCpopDw6KgIHt p2WvQnI0XuOC5MBXiGJhfYu01apaupEXIDkUko5YIzfTisik9Cy7dClMyTWZ4L23xICE Ikmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e24si2724543ejx.220.2019.11.21.12.45.32; Thu, 21 Nov 2019 12:45:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbfKUUnx (ORCPT + 99 others); Thu, 21 Nov 2019 15:43:53 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37319 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfKUUnx (ORCPT ); Thu, 21 Nov 2019 15:43:53 -0500 Received: by mail-ot1-f65.google.com with SMTP id d5so4224437otp.4; Thu, 21 Nov 2019 12:43:52 -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:user-agent; bh=ZlY1A8YgbiK+60pvRJ8DUoVbvF7KpED+RvNVlOCutDw=; b=g1YcJRBDjxoNd2WGDbRAba/cyBuLWWmgudEDRgg+mzaJoavRwL6DfKDu3gwulH7NkM RygfoTBcLRUc9vF2Ocv5IrzYQMDntBxYxDJsp2/PQac11OU5W2D9MXoKa8uuk6mlc3rw 6+iiJjiBnReLDkFlA4LNgN1AMkTcCUG8we70OGAhyusaxAqfTaKi9lNZqu7+PIGNAZ91 SLhc+j+l/f7pn6ZXjZHbl6WGznbAxYQvXMNdQGA9NFO8ebUaZBn5Onnjo2L8xCR6bV5e szUvWJQYzxr/IcvJNnTy3gFTI59n8ETdY0e7DhMavyE2bVEi1XJDhidej2tsKXbyPZ7X UgSw== X-Gm-Message-State: APjAAAX5yvqbMSrodWgLq3NHVUOtWe9gCi0eSDT2MaLeJ3GgFHiZJim1 9esJTVK6hDimmyMSUPZEWQ== X-Received: by 2002:a9d:6acf:: with SMTP id m15mr8235445otq.312.1574369032176; Thu, 21 Nov 2019 12:43:52 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a10sm1354822otf.72.2019.11.21.12.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 12:43:51 -0800 (PST) Date: Thu, 21 Nov 2019 14:43:50 -0600 From: Rob Herring To: Shiping Ji Cc: bp@alien8.de, james.morse@arm.com, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org, linux-edac@vger.kernel.org, sashal@kernel.org, hangl@microsoft.com, lewan@microsoft.com, ruizhao@microsoft.com, scott.branden@broadcom.com, yuqing.shen@broadcom.com, ray.jui@broadcom.com, shji@microsoft.com, wangglei@gmail.com Subject: Re: [PATCH v7 1/2] dt-bindings: edac: arm-dmc520.txt Message-ID: <20191121204350.GA26174@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 17, 2019 at 06:10:43PM -0800, Shiping Ji wrote: > This is the device tree bindings for new EDAC driver dmc520_edac.c. > > Signed-off-by: Lei Wang > Reviewed-by: James Morse > > --- > Changes in v7: > - Added arm prefix to the interrupt-config property > > --- > .../devicetree/bindings/edac/arm-dmc520.txt | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 Documentation/devicetree/bindings/edac/arm-dmc520.txt > > diff --git a/Documentation/devicetree/bindings/edac/arm-dmc520.txt b/Documentation/devicetree/bindings/edac/arm-dmc520.txt > new file mode 100644 > index 000000000000..476cf8b76f2a > --- /dev/null > +++ b/Documentation/devicetree/bindings/edac/arm-dmc520.txt > @@ -0,0 +1,26 @@ > +* ARM DMC-520 EDAC node > + > +Required properties: > +- compatible : "brcm,dmc-520", "arm,dmc-520". > +- reg : Address range of the DMC-520 registers. > +- interrupts : DMC-520 interrupt numbers. The example below specifies > + two interrupt lines for dram_ecc_errc_int and > + dram_ecc_errd_int. > +- arm,interrupt-config : This is an array of interrupt masks. For each of the > + above interrupt line, add one interrupt mask element to > + it. That is, there is a 1:1 mapping from each interrupt > + line to an interrupt mask. An interrupt mask can represent > + multiple interrupts being enabled. Refer to interrupt_control > + register in DMC-520 TRM for interrupt mapping. In the example > + below, the interrupt configuration enables dram_ecc_errc_int > + and dram_ecc_errd_int. And each interrupt is connected to > + a separate interrupt line. Looking at this again, I think I now understand what you are trying to do. Your mask is just what interrupt line each one is. We have a standard way of doing this either by using indices of 'interrupts' or with interrupt-names. The latter probably works best in this case. You need to define *all* the interrupt-names: combined ram_ecc_errc ram_ecc_errd dram_ecc_errc dram_ecc_errd failed_access failed_prog link_err temperature_event arch_fsm phy_request I'm not sure if all the '*_oflow' interrupts should be listed too. It doesn't seem all that useful to get a 2nd interrupt. Your node should list all that are hooked up in the h/w, not just the ones you need for EDAC. Rob