Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1272544yba; Thu, 4 Apr 2019 07:35:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTIZ/YnhinxqTe+ZvIMhrmgkF3IaCZUaUjxdiebEauyZ3OGTJp8PBl2YwEFk+KIC8+efZW X-Received: by 2002:a17:902:b94a:: with SMTP id h10mr6859507pls.82.1554388540443; Thu, 04 Apr 2019 07:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554388540; cv=none; d=google.com; s=arc-20160816; b=qdYBDn9O66JuvKCmS1vXbBV0ffq40RRXApb5sMozeiURKMx6pVGmnIihQbu5NGXtsl zXySgQdXcOSKI4nooqlI2t+vC4fIrWE8UzgtPp1C8tIefOk3IPNyq3oa//5OJfNxRdOZ 7+uJ63CnWFhCVittYqVQ/TPhhnn5spkH/N5h4FT+TjOfzNtxR3rY+HZ2dm6rwu3aWvQb Jb9lt7247qyV4jcf2exi6l+sT6r+u/XB/tWa6mB9guSH3SCY8g6xbP1GzPCvKt0qqBat Jh3tDYpkyBDHtnpY/hV7cLxsaLkD9RD+JfiK7Z9Mg1e1GDtwOSc27xYGgDWC1OdzNrUI ojNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=yx3k89xTjScy02rOiTI4QfXk+oP2t2oOCD0/kvwN3xQ=; b=Sntg2ZsIIF0Kdr9kSJ4uEef6+nCKVhgn0gxGT5BohrtHHKXQHTOQ/zPaHKNqSwSmz/ vZeB57i9EngOFdJkQYl0FvoOSh4KNjrTo/B8KPqcerkmYjmVFNX4L0AwWqTvIawOZczg F7vS6QHY2lRoIDmgjusJueaEFHEuLgHxm2dZHUuzssm2bMBIea0KQj6ZyxnuEwnsOWoo zfUi27XEj348bYClMhChVx/7mhNolnixKNP2mHOSSf0tbRJetH9bqeg4+6xYoEssoaFE oYoYvjDFDzXcaWJxzH7cZF6avLEjos5QtGGJQmQgUNzKOUPMnl5u+P9Tp1/vBbTfOWBJ z3qQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si624626pla.124.2019.04.04.07.35.24; Thu, 04 Apr 2019 07:35:40 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729110AbfDDOei (ORCPT + 99 others); Thu, 4 Apr 2019 10:34:38 -0400 Received: from mga03.intel.com ([134.134.136.65]:5070 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727310AbfDDOeg (ORCPT ); Thu, 4 Apr 2019 10:34:36 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2019 07:34:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,308,1549958400"; d="scan'208";a="128612665" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga007.jf.intel.com with ESMTP; 04 Apr 2019 07:34:35 -0700 From: thor.thayer@linux.intel.com To: bp@alien8.de, dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: mchehab@kernel.org, james.morse@arm.com, thor.thayer@linux.intel.com, devicetree@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCHv3 1/3] Documentation: dt: edac: Fix Stratix10 IRQ bindings Date: Thu, 4 Apr 2019 09:36:35 -0500 Message-Id: <1554388597-28019-2-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554388597-28019-1-git-send-email-thor.thayer@linux.intel.com> References: <1554388597-28019-1-git-send-email-thor.thayer@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thor Thayer Fix Stratix10 ECC bindings to specify only the single bit error. On Stratix10 double bit errors are handled as SErrors instead of interrupts. Indicate the differences between the ARM64 and ARM32 EDAC architecture in the bindings. Signed-off-by: Thor Thayer Acked-by: Rob Herring --- v2 No change v3 Add ARM64 to Stratix10 description for clarity about differences between Arria10 and Stratix10. Add Acked-by --- .../devicetree/bindings/edac/socfpga-eccmgr.txt | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt b/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt index 5626560a6cfd..acb211c098c0 100644 --- a/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt +++ b/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt @@ -232,37 +232,46 @@ Example: }; }; -Stratix10 SoCFPGA ECC Manager +Stratix10 SoCFPGA ECC Manager (ARM64) The Stratix10 SoC ECC Manager handles the IRQs for each peripheral -in a shared register similar to the Arria10. However, ECC requires -access to registers that can only be read from Secure Monitor with -SMC calls. Therefore the device tree is slightly different. +in a shared register similar to the Arria10. However, Stratix10 ECC +requires access to registers that can only be read from Secure Monitor +with SMC calls. Therefore the device tree is slightly different. Note +that only 1 interrupt is sent in Stratix10 because the double bit errors +are treated as SErrors in ARM64 instead of IRQs in ARM32. Required Properties: - compatible : Should be "altr,socfpga-s10-ecc-manager" -- interrupts : Should be single bit error interrupt, then double bit error - interrupt. +- altr,sysgr-syscon : phandle to Stratix10 System Manager Block + containing the ECC manager registers. +- interrupts : Should be single bit error interrupt. - interrupt-controller : boolean indicator that ECC Manager is an interrupt controller - #interrupt-cells : must be set to 2. +- #address-cells: must be 1 +- #size-cells: must be 1 +- ranges : standard definition, should translate from local addresses Subcomponents: SDRAM ECC Required Properties: - compatible : Should be "altr,sdram-edac-s10" -- interrupts : Should be single bit error interrupt, then double bit error - interrupt, in this order. +- interrupts : Should be single bit error interrupt. Example: eccmgr { compatible = "altr,socfpga-s10-ecc-manager"; - interrupts = <0 15 4>, <0 95 4>; + altr,sysmgr-syscon = <&sysmgr>; + #address-cells = <1>; + #size-cells = <1>; + interrupts = <0 15 4>; interrupt-controller; #interrupt-cells = <2>; + ranges; sdramedac { compatible = "altr,sdram-edac-s10"; - interrupts = <16 4>, <48 4>; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; }; }; -- 2.7.4