From: Stefan Schaeckeler <schaecsn@gmx.net>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH 2/2] dt-bindings: edac: Aspeed AST2500
Date: Sun, 16 Dec 2018 22:01:57 -0800 [thread overview]
Message-ID: <1545026517-64069-3-git-send-email-schaecsn@gmx.net> (raw)
In-Reply-To: <1545026517-64069-1-git-send-email-schaecsn@gmx.net>
From: Stefan M Schaeckeler <sschaeck@cisco.com>
Add support for the Aspeed AST2500 SoC EDAC driver.
Signed-off-by: Stefan M Schaeckeler <sschaeck@cisco.com>
---
.../bindings/edac/aspeed-sdram-edac.txt | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt
diff --git a/Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt b/Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt
new file mode 100644
index 000000000000..57ba852883c7
--- /dev/null
+++ b/Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt
@@ -0,0 +1,34 @@
+Aspeed AST2500 SoC EDAC device driver
+
+The Aspeed AST2500 SoC supports DDR3 and DDR4 memory with and without ECC (error
+correction check).
+
+The memory controller supports SECDED (single bit error correction, double bit
+error detection) and single bit error auto scrubbing by reserving 8 bits for
+every 64 bit word (effectively reducing available memory to 8/9).
+
+First, ECC must be configured in u-boot. Then, this driver will expose error
+counters via the edac kernel framework.
+
+A note on memory organization in ECC mode: every 512 bytes are followed by 64
+bytes of ECC codes. The address remapping is done in hardware and is fully
+transparent to firmware and software. Because of this, ECC mode must be
+configured in u-boot as part of the memory initialization as one can not switch
+from one mode to another when executing in memory.
+
+
+
+Required properties:
+- compatible: should be "aspeed,ast2500-sdram-edac"
+- reg: sdram controller register set should be <0x1e6e0000 0x174>
+- interrupts: should be AVIC interrupt #0
+
+
+Example:
+
+ edac: sdram at 1e6e0000 {
+ compatible = "aspeed,ast2500-sdram-edac";
+ reg = <0x1e6e0000 0x174>;
+ interrupts = <0>;
+ status = "okay";
+ };
--
2.19.1
next prev parent reply other threads:[~2018-12-17 6:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-17 6:01 [PATCH 0/2] Add support for the Aspeed AST2500 SoC EDAC driver Stefan Schaeckeler
2018-12-17 6:01 ` [PATCH 1/2] EDAC: Add Aspeed AST2500 " Stefan Schaeckeler
2018-12-31 13:20 ` Stefan Schaeckeler
2018-12-31 13:53 ` Boris Petkov
2019-01-10 9:50 ` Borislav Petkov
2019-01-15 17:57 ` Stefan Schaeckeler
2019-01-16 21:30 ` Borislav Petkov
2018-12-17 6:01 ` Stefan Schaeckeler [this message]
2018-12-27 22:09 ` [PATCH 2/2] dt-bindings: edac: Aspeed AST2500 Rob Herring
2018-12-29 18:30 ` schaecsn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1545026517-64069-3-git-send-email-schaecsn@gmx.net \
--to=schaecsn@gmx.net \
--cc=linux-aspeed@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).