Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: memory-controllers: Add support for Xilinx Versal EDAC for DDRMC

Add device tree bindings for Xilinx Versal EDAC for DDR
controller.

Co-developed-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231005101242.14621-2-shubhrajyoti.datta@amd.com

authored by

Shubhrajyoti Datta and committed by
Borislav Petkov (AMD)
82bcca7b 8a749fd1

+57
+57
Documentation/devicetree/bindings/memory-controllers/xlnx,versal-ddrmc-edac.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/memory-controllers/xlnx,versal-ddrmc-edac.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Xilinx Versal DDRMC (Integrated DDR Memory Controller) 8 + 9 + maintainers: 10 + - Shubhrajyoti Datta <shubhrajyoti.datta@amd.com> 11 + - Sai Krishna Potthuri <sai.krishna.potthuri@amd.com> 12 + 13 + description: 14 + The integrated DDR Memory Controllers (DDRMCs) support both DDR4 and LPDDR4/ 15 + 4X memory interfaces. Versal DDR memory controller has an optional ECC support 16 + which correct single bit ECC errors and detect double bit ECC errors. 17 + 18 + properties: 19 + compatible: 20 + const: xlnx,versal-ddrmc 21 + 22 + reg: 23 + items: 24 + - description: DDR Memory Controller registers 25 + - description: NOC registers corresponding to DDR Memory Controller 26 + 27 + reg-names: 28 + items: 29 + - const: base 30 + - const: noc 31 + 32 + interrupts: 33 + maxItems: 1 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - reg-names 39 + - interrupts 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/interrupt-controller/arm-gic.h> 46 + 47 + bus { 48 + #address-cells = <2>; 49 + #size-cells = <2>; 50 + memory-controller@f6150000 { 51 + compatible = "xlnx,versal-ddrmc"; 52 + reg = <0x0 0xf6150000 0x0 0x2000>, <0x0 0xf6070000 0x0 0x20000>; 53 + reg-names = "base", "noc"; 54 + interrupt-parent = <&gic>; 55 + interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; 56 + }; 57 + };