From patchwork Sat May 24 01:21:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 4236381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E0D2EBF90B for ; Sat, 24 May 2014 01:24:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B3F2203B8 for ; Sat, 24 May 2014 01:24:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E7AF20260 for ; Sat, 24 May 2014 01:24:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wo0f1-0000Y5-QZ; Sat, 24 May 2014 01:22:07 +0000 Received: from exprod5og124.obsmtp.com ([64.18.0.212]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wo0em-0000Pg-HO for linux-arm-kernel@lists.infradead.org; Sat, 24 May 2014 01:21:53 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) (using TLSv1) by exprod5ob124.postini.com ([64.18.4.12]) with SMTP ID DSNKU3/0GsREYRsOj9eBGJMJJcvPEbWvbR7w@postini.com; Fri, 23 May 2014 18:21:52 PDT Received: by mail-pa0-f43.google.com with SMTP id hz1so4807196pad.16 for ; Fri, 23 May 2014 18:21:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xrjVGVU5gwxVp6qt5HaqjDVYcNe3i+ZIV3E+0q+BgdE=; b=J/NtPI1UUN/zLUQSizRQDsKJTqZ6lOf2Z7KUkphsf//SDBV5wDhA/iwU1vnhSVZnnA xaxKzKtglDdnS0RyJSVH4Fu6YHMumcaIOljMTZyFzeh8VYttZlsoL3D4RwGOmmVKtdXy PZzrv1Bs1P1yNtFt4oYxhbvixPeWZryQk5l4Eh9ssbk1PmbqER+guCGcrFoOQAg8Uuzc ThWkm6IRLoEMYsRTMUz3OMrOh3cYF+idKBYZ6/xDFwQ8L2iX2GJ+7YwSYTbz3fyLJmDu rOm2493FYratBfzL7pp5+Qnwi/O3rSiYb3lGLmHd3gML2QDwmAtCiAZ7XDlkTI7aOReE uN7w== X-Gm-Message-State: ALoCoQkXTCEF715fl24XJDBlkZknj40oMBAJgyj1h16556gHhmLycXb9gYCLnfG7Qi2o/U1beNZytW7pbZKSjAGZ0vmTjehWXf8pFTTyoZHJ1Zw9yVNMyagEWQIM23NmMG+1j8BuOzrctnmjVVhoB97VBagoZuZ95w== X-Received: by 10.68.231.7 with SMTP id tc7mr10549363pbc.32.1400894490426; Fri, 23 May 2014 18:21:30 -0700 (PDT) X-Received: by 10.68.231.7 with SMTP id tc7mr10549338pbc.32.1400894490261; Fri, 23 May 2014 18:21:30 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id f2sm21299180pat.11.2014.05.23.18.21.28 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 23 May 2014 18:21:29 -0700 (PDT) From: Loc Ho To: dougthompson@xmission.com, bp@alien8.de, m.chehab@samsung.com Subject: [PATCH v2 2/4] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Date: Fri, 23 May 2014 19:21:05 -0600 Message-Id: <1400894467-1585-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1400894467-1585-2-git-send-email-lho@apm.com> References: <1400894467-1585-1-git-send-email-lho@apm.com> <1400894467-1585-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140523_182152_604748_9C4B72ED X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -2.3 (--) Cc: devicetree@vger.kernel.org, Feng Kan , jcm@redhat.com, patches@apm.com, Loc Ho , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds documentation for the APM X-Gene SoC EDAC DTS binding. Signed-off-by: Feng Kan Signed-off-by: Loc Ho --- .../devicetree/bindings/edac/apm-xgene-edac.txt | 70 ++++++++++++++++++++ 1 files changed, 70 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/edac/apm-xgene-edac.txt diff --git a/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt b/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt new file mode 100644 index 0000000..c4ccc98 --- /dev/null +++ b/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt @@ -0,0 +1,70 @@ +* APM X-Gene EDAC nodes + +EDAC nodes are defined to describe on-chip error detection and correction. +There are four types of EDAC: + + memory controller - Memory controller + PMD (L1/L2) - Processor module unit (PMD) L1/L2 cache + L3 - CPU L3 cache + SoC - SoC IP such as SATA, Ethernet. and etc + +The following section describes the memory controller DT node binding. + +Required properties: +- compatible : Shall be "apm,xgene-edac-mc". +- reg : First resource shall be the PCP resource. + Second resource shall be the CSW resource. + Third resource shall be the MCB-A resource. + Fourth resource shall be the MCB-B resource. + Fifth resource shall be the MCU resource. +- interrupts : Interrupt-specifier for MCU error IRQ. + +The following section describes the L1/L2 DT node binding. + +- compatible : Shall be "apm,xgene-edac-pmd". +- reg : First resource shall be the PCP resource. + Second resource shall be the PMD resource. +- interrupts : Interrupt-specifier for PMD error IRQ. + +The following section describes the L3 DT node binding. + +- compatible : Shall be "apm,xgene-edac-l3". +- reg : First resource shall be the PCP resource. + Second resource shall be the L3 resource. +- interrupts : Interrupt-specifier for L3 error IRQ. + +Example: + edacmc0: edacmc0@7e800000 { + compatible = "apm,xgene-edac-mc"; + reg = <0x0 0x78800000 0x0 0x1000>, + <0x0 0x7e200000 0x0 0x1000>, + <0x0 0x7e700000 0x0 0x1000>, + <0x0 0x7e720000 0x0 0x1000>, + <0x0 0x7e800000 0x0 0x1000>; + interrupts = <0x0 0x20 0x4>; + }; + + edacl3: edacl3@7e600000 { + compatible = "apm,xgene-edac-l3"; + reg = <0x0 0x78800000 0x0 0x1000>, + <0x0 0x7e600000 0x0 0x1000>; + interrupts = <0x0 0x20 0x4>, + <0x0 0x21 0x4>; + }; + + edacpmd0: edacpmd0@7c000000 { + compatible = "apm,xgene-edac-pmd"; + reg = <0x0 0x78800000 0x0 0x1000>, + <0x0 0x7c000000 0x0 0x200000>; + interrupts = <0x0 0x20 0x4>, + <0x0 0x21 0x4>; + }; + + edacsoc: edacsoc@7e930000 { + compatible = "apm,xgene-edac-soc"; + reg = <0x0 0x78800000 0x0 0x1000>, + <0x0 0x7e930000 0x0 0x1000>; + interrupts = <0x0 0x20 0x4>, + <0x0 0x21 0x4>, + <0x0 0x27 0x4>; + };