mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
To: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-edac@vger.kernel.org>
Cc: <git@amd.com>, <krzk@kernel.or>, <robh@kernel.org>,
	<conor+dt@kernel.org>, <bp@alien8.de>, <tony.luck@intel.com>,
	<james.morse@arm.com>, <mchehab@kernel.org>, <rric@kernel.org>
Subject: [PATCH 1/3] dt-bindings: memory-controllers: Add support for Versal NET EDAC
Date: Fri, 22 Nov 2024 15:36:23 +0530	[thread overview]
Message-ID: <20241122100625.24571-2-shubhrajyoti.datta@amd.com> (raw)
In-Reply-To: <20241122100625.24571-1-shubhrajyoti.datta@amd.com>

Add device tree bindings for AMD Versal NET EDAC for DDR controller.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
---

 .../amd,versalnet-edac.yaml                   | 56 +++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/amd,versalnet-edac.yaml

diff --git a/Documentation/devicetree/bindings/memory-controllers/amd,versalnet-edac.yaml b/Documentation/devicetree/bindings/memory-controllers/amd,versalnet-edac.yaml
new file mode 100644
index 000000000000..22a4669c46b6
--- /dev/null
+++ b/Documentation/devicetree/bindings/memory-controllers/amd,versalnet-edac.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/memory-controllers/amd,versalnet-edac.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: AMD Versal NET EDAC
+
+maintainers:
+  - Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
+
+description:
+  The integrated DDR Memory Controllers (DDRMCs) support both DDR4 and LPDDR4/
+  4X memory interfaces. Versal NET DDR memory controller has an optional ECC support
+  which correct single bit ECC errors and detect double bit ECC errors.
+  It also has support for reporting other errors like MMCM (Mixed-Mode Clock
+  Manager) errors and General software errors.
+
+properties:
+  compatible:
+    const: amd,versalnet-edac
+
+  amd,dwidth:
+    description:
+      DDR memory controller device width.
+    enum: [16, 32]
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  amd,num-chans:
+    description:
+      Number of channels.
+    enum: [1, 2]
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+  amd,num-rank:
+    description:
+      Number of rank.
+    enum: [1, 2, 4]
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+required:
+  - compatible
+  - amd,dwidth
+  - amd,num-chans
+  - amd,num-rank
+
+additionalProperties: false
+
+examples:
+  - |
+    memory-controller {
+       compatible = "amd,versalnet-edac";
+       amd,dwidth = <32>;
+       amd,num-chans = <2>;
+       amd,num-rank = <1>;
+     };
-- 
2.17.1


  reply	other threads:[~2024-11-22 10:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-22 10:06 [PATCH 0/3] EDAC: Versal NET: Add support for error notification Shubhrajyoti Datta
2024-11-22 10:06 ` Shubhrajyoti Datta [this message]
2024-11-23 16:44   ` [PATCH 1/3] dt-bindings: memory-controllers: Add support for Versal NET EDAC Krzysztof Kozlowski
2024-11-26  6:57     ` Datta, Shubhrajyoti
2024-11-26  7:07       ` Krzysztof Kozlowski
2024-12-23  9:58     ` Shubhrajyoti Datta
2024-12-23 14:02       ` Krzysztof Kozlowski
2024-11-22 10:06 ` [PATCH 2/3] cdx: add DDRMC commands Shubhrajyoti Datta
2024-11-22 10:06 ` [PATCH 3/3] EDAC: Versal NET: Add support for error notification Shubhrajyoti Datta
2024-11-23 16:49   ` Krzysztof Kozlowski

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=20241122100625.24571-2-shubhrajyoti.datta@amd.com \
    --to=shubhrajyoti.datta@amd.com \
    --cc=bp@alien8.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=git@amd.com \
    --cc=james.morse@arm.com \
    --cc=krzk@kernel.or \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=rric@kernel.org \
    --cc=tony.luck@intel.com \
    /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

all inboxes | Powered by JetHome®