Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2041209img; Wed, 27 Feb 2019 09:27:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IaZFr9sOh9p/Jp+q7NF7hE4aaOZI6PK7rmAbwb8eNtWUdhikjaDtqgy6H8XwZFiZ99qY9LS X-Received: by 2002:a62:cf02:: with SMTP id b2mr2721655pfg.71.1551288445554; Wed, 27 Feb 2019 09:27:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551288445; cv=none; d=google.com; s=arc-20160816; b=UKNORS/IJsulYjvecDA37xc4vih0p+jxjExlX8CvWEAzms8HVjBeLla2oCca8oy+tn tBX3QKKTcA8XxGO2JH/AWvKzE0Vw/+tVYwpTqWNDd33+f2Vf1wYNlI/LIVnJ6G2ZgRdr G/WIhV/zPNMJ1Fuv+FNoTuHvQEGMKHKu60j+UzfXNo1dkiJZSPAo4QDIn90QRePIl7w9 6OrPIibaRIzdUurp0JQkn6Sh+2ZnCHDXvHG50ruiSTmsMTce1uf5bFf1APdtBcC+M4Qq CJMuiOshhv+3ApcLu33//dZMHru7DkcJvGQpOxPJXI0d3JsdXzqaI3yTtugmaVL19zle FDrw== 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=w+3/+qWFUc3qn4hsGWwQBjN2Jx+/TWz8wvU3jo45miw=; b=a7F/1SCYVXqMGz3Q0wi1XgqhU0uNN8FQT5T6xom2WDw8wEAI6FiMgbsLNZD5tuwRaj /foGKWiiCGOki/r5XU3WIjcMDX4fFoXwVd6EffWfJ5GUsP9WGvEQ0QjBQgxqu/w4cbgw k7bkmtx0mTLKUyY0ZaOSvR3OAK3Oc0Kqj4Oh33AQua0oA34798L66QAvTXkCTMupLlGm tvAC4KaXTw0+2x5eG2/+UthtsK32XASy6nj28BXaKv8SVTRGK0hXLjLaXJzzlkBF7ynf JCeY3W5B5QTzFIBLvUVF3pvjQuPtjA1eEar70WTFFW2Mt4pJyywCQMlqX2npE9h236ly 17zQ== 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 g8si15008376pgb.128.2019.02.27.09.27.11; Wed, 27 Feb 2019 09:27:25 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729981AbfB0RZ3 (ORCPT + 99 others); Wed, 27 Feb 2019 12:25:29 -0500 Received: from mga14.intel.com ([192.55.52.115]:44139 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729862AbfB0RZ2 (ORCPT ); Wed, 27 Feb 2019 12:25:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2019 09:25:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,420,1544515200"; d="scan'208";a="303030790" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga005.jf.intel.com with ESMTP; 27 Feb 2019 09:25:27 -0800 From: thor.thayer@linux.intel.com To: bp@alien8.de, dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, mchehab@kernel.org Cc: thor.thayer@linux.intel.com, devicetree@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCHv2 1/5] Documentation: dt: edac: Fix Stratix10 IRQ bindings Date: Wed, 27 Feb 2019 11:27:21 -0600 Message-Id: <1551288445-22335-2-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551288445-22335-1-git-send-email-thor.thayer@linux.intel.com> References: <1551288445-22335-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 --- v2 No change --- .../devicetree/bindings/edac/socfpga-eccmgr.txt | 23 +++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt b/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt index 5626560a6cfd..a0ac50e15912 100644 --- a/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt +++ b/Documentation/devicetree/bindings/edac/socfpga-eccmgr.txt @@ -236,33 +236,42 @@ Stratix10 SoCFPGA ECC Manager 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. +SMC calls. Therefore the device tree is slightly different. Note that +only 1 interrupt is sent because the double bit errors are treated as +SErrors instead of IRQ. 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