From patchwork Thu Jun 12 23:20:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 4345871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B7A69F357 for ; Thu, 12 Jun 2014 23:24:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 896EC202DD for ; Thu, 12 Jun 2014 23:24:38 +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 D949F2028D for ; Thu, 12 Jun 2014 23:24:37 +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 1WvEJX-0002FJ-W1; Thu, 12 Jun 2014 23:21:47 +0000 Received: from exprod5og125.obsmtp.com ([64.18.0.245]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WvEJM-00029A-CT for linux-arm-kernel@lists.infradead.org; Thu, 12 Jun 2014 23:21:37 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) (using TLSv1) by exprod5ob125.postini.com ([64.18.4.12]) with SMTP ID DSNKU5o169c+ZErVQ0MuEFXWptaC7y+7P1c4@postini.com; Thu, 12 Jun 2014 16:21:36 PDT Received: by mail-pa0-f45.google.com with SMTP id rd3so859493pab.32 for ; Thu, 12 Jun 2014 16:21:15 -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=R1QwCgqWVcL+Sn2kgCtTu+c3Yy/W9pPd4RN15RONOZE=; b=StyzoglFMltVDNgMOu9IcBA19rUV1zQquIcrdMLfpbjnIhKPPRpgC3CDcXOca+8ic/ P5S/3RfCsX6gL9wACysG9gfVR+lXxQN3oikKmsSDiaQ/XUriK7MAm65yuGna3qp6IuWG UEZNC/jtjnJzmqzzfQeQxEg/Ui5qwocKRwTSVcgECesDGaNrmRsuA/TY19vyd7L7f7vF O+OCZ2IYAAExJtT/Ejlzc2smxaT1g/QH62Y9Xv8XjdkPlOvafXDWfaML6KyoTgfcDjj+ sywEMT5fb0W/B6htWtdAy9fbu2F/hjkv1gAoNwilik69JFzFCrcRewxTD5wPsGBgiEFw foBQ== X-Gm-Message-State: ALoCoQn0mld9vAkVjfANbq6hdr1pOAs4lmJ679U+64spcJYVsS/D3ae4LMR8PJBCYv0MTyPxVFVTxn2QRBAFzKDk7w7lJszCrrNzP4NfozimScoY+lJ/RfSGyDNaiJnrZURu7CSmZhfHplV92ELpCgkdtNMfNOJk5A== X-Received: by 10.68.239.137 with SMTP id vs9mr16420684pbc.84.1402615275174; Thu, 12 Jun 2014 16:21:15 -0700 (PDT) X-Received: by 10.68.239.137 with SMTP id vs9mr16420649pbc.84.1402615274983; Thu, 12 Jun 2014 16:21:14 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id is5sm90825pbb.8.2014.06.12.16.21.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 12 Jun 2014 16:21:14 -0700 (PDT) From: Loc Ho To: dougthompson@xmission.com, bp@alien8.de, m.chehab@samsung.com Subject: [PATCH v4 2/4] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Date: Thu, 12 Jun 2014 17:20:28 -0600 Message-Id: <1402615230-4763-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1402615230-4763-2-git-send-email-lho@apm.com> References: <1402615230-4763-1-git-send-email-lho@apm.com> <1402615230-4763-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140612_162136_470023_236C1353 X-CRM114-Status: GOOD ( 10.91 ) 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.18-1 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 | 81 ++++++++++++++++++++ 1 files changed, 81 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..fc3dbbc --- /dev/null +++ b/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt @@ -0,0 +1,81 @@ +* 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(s). + +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. + Third resource shall be the PMD efuse resource. +- interrupts : Interrupt-specifier for PMD error IRQ(s). + +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(s). + +The following section describes the SOC DT node binding. + +- compatible : Shall be "apm,xgene-edac-soc"". +- reg : First resource shall be the PCP resource. + Second resource shall be the SOC resource. +- interrupts : nterrupt-specifier for SoC error IRQ(s). + +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>, + <0x0 0x21 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>, + <0x0 0x1054a000 0x0 0x10>; + 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>; + }; +