From patchwork Thu May 14 17:05:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 6408131 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5A9DB9F318 for ; Thu, 14 May 2015 17:20:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F50920397 for ; Thu, 14 May 2015 17:20:03 +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 B56032047B for ; Thu, 14 May 2015 17:20:02 +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 1Yswl4-0002Ch-Lh; Thu, 14 May 2015 17:17:18 +0000 Received: from exprod5og125.obsmtp.com ([64.18.0.245] helo=mail-ig0-f171.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yswam-0000Ed-5n for linux-arm-kernel@lists.infradead.org; Thu, 14 May 2015 17:06:40 +0000 Received: from mail-ig0-f171.google.com ([209.85.213.171]) (using TLSv1) by exprod5ob125.postini.com ([64.18.4.12]) with SMTP ID DSNKVVTWD/rEIhfjYU5UyspEWWo9SaxVe0IF@postini.com; Thu, 14 May 2015 10:06:40 PDT Received: by igbyr2 with SMTP id yr2so172635667igb.0 for ; Thu, 14 May 2015 10:06:23 -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=qWUI6FaCiB+PqFS57b/zWnx3raHH64fxpsUjYwfryYE=; b=jAbjH5FyajOeRY3ip4KhsF3DYF6wylqPVZxJXt12Y/CpgrYasrk3RxrQD6mRVb/Lwo Tsuy4NvJfmvEBOLmn+PmgGw96WEloAkmXvhoN9cLiRXt02wvGnUCOMEmbsdn8bqslNIl WwvY3KXWjx+h94QeX3ty1eCIgVIpC2u285oZ9BR2f+brF4E7jllQpFm3B8MTgbKNz0C+ QP9GUWY2022rZdnABQQObvMeSXgD/tpfIaRJtFodY7ZPwgMhzCgX8DpA5JyrGIl8VoT0 tsgNN1IFurn10JXb0eCsGDWWVlk0A7NrEPHGaHht3YIdPmvpUHUkmgkXE8vdVvtAiBOD /B7w== X-Gm-Message-State: ALoCoQkO2mNu0GN6K8iPysFwOCibn+Bwjx8XrvOgWsesBWxIwe2B1tRiXmJWlXoEPMtNIjijIalCB8BPSpE5G3w9AdRi/eRY2wsiynxkkY5oq9cUv5hOl2gpPCdO3Dx3CATBhS/MMtcPWwsNgXXlAT3fD9Vc6Lrzs8QVX3aHcGTdMQEuDWAGJWE= X-Received: by 10.107.7.88 with SMTP id 85mr6662617ioh.42.1431623183137; Thu, 14 May 2015 10:06:23 -0700 (PDT) X-Received: by 10.107.7.88 with SMTP id 85mr6662610ioh.42.1431623183036; Thu, 14 May 2015 10:06:23 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id x4sm16860969iod.26.2015.05.14.10.06.21 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 May 2015 10:06:21 -0700 (PDT) From: Loc Ho To: dougthompson@xmission.com, bp@alien8.de, mchehab@osg.samsung.com, robh+dt@kernel.org, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk Subject: [PATCH v9 3/5] Documentation: Add documentation for the APM X-Gene SoC EDAC DTS binding Date: Thu, 14 May 2015 11:05:45 -0600 Message-Id: <1431623147-4950-4-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1431623147-4950-3-git-send-email-lho@apm.com> References: <1431623147-4950-1-git-send-email-lho@apm.com> <1431623147-4950-2-git-send-email-lho@apm.com> <1431623147-4950-3-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150514_100640_397116_BA0012C6 X-CRM114-Status: GOOD ( 10.04 ) X-Spam-Score: -2.3 (--) Cc: devicetree@vger.kernel.org, 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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: Loc Ho --- .../devicetree/bindings/edac/apm-xgene-edac.txt | 74 ++++++++++++++++++++ 1 files changed, 74 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..bd42c53 --- /dev/null +++ b/Documentation/devicetree/bindings/edac/apm-xgene-edac.txt @@ -0,0 +1,74 @@ +* APM X-Gene SoC EDAC node + +EDAC node is defined to describe on-chip error detection and correction. +The follow error types are supported: + + memory controller - Memory controller + PMD (L1/L2) - Processor module unit (PMD) L1/L2 cache + +The following section describes the EDAC DT node binding. + +Required properties: +- compatible : Shall be "apm,xgene-edac". +- reg : First resource shall be the CPU bus (PCP) resource. +- interrupts : Interrupt-specifier for MCU, PMD, L3, or SoC error + IRQ(s). + +Required properties for memory controller subnode: +- compatible : Shall be "apm,xgene-edac-mc". +- reg : First resource shall be the memory controller unit + (MCU) resource. +- regmap-csw : Regmap of the CPU switch fabric (CSW) resource. +- regmap-mcba : Regmap of the MCB-A (memory bridge) resource. +- regmap-mcbb : Regmap of the MCB-B (memory bridge) resource. + +Required properties for PMD subnode: +- compatible : Shall be "apm,xgene-edac-pmd". +- reg : First resource shall be the PMD resource. +- regmap-efuse : Regmap of the PMD efuse resource. + +Example: + csw: csw@7e200000 { + compatible = "syscon"; + reg = <0x0 0x7e200000 0x0 0x1000>; + }; + + mcba: mcba@7e700000 { + compatible = "syscon"; + reg = <0x0 0x7e700000 0x0 0x1000>; + }; + + mcbb: mcbb@7e720000 { + compatible = "syscon"; + reg = <0x0 0x7e720000 0x0 0x1000>; + }; + + efuse: efuse@1054a000 { + compatible = "syscon"; + reg = <0x0 0x1054a000 0x0 0x20>; + }; + + edac: edac@78800000 { + compatible = "apm,xgene-edac"; + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x78800000 0x0 0x100>; + interrupts = <0x0 0x20 0x4>, + <0x0 0x21 0x4>, + <0x0 0x27 0x4>; + + edacmc0: edacmc0@7e800000 { + compatible = "apm,xgene-edac-mc"; + regmap-csw = <&csw>; + regmap-mcba = <&mcba>; + regmap-mcbb = <&mcbb>; + reg = <0x0 0x7e800000 0x0 0x1000>; + }; + + edacpmd0: edacpmd0@7c000000 { + compatible = "apm,xgene-edac-pmd"; + regmap-efuse = <&efuse>; + reg = <0x0 0x7c000000 0x0 0x200000>; + }; + + };