Skip to content

Commit a053b7e

Browse files
linkunfabp3tk0v
authored andcommitted
dt-bindings: memory-controllers: nuvoton: Add NPCM memory controller
Add dt-bindings document for Nuvoton NPCM memory controller. Signed-off-by: Marvin Lin <milkfafa@gmail.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230111093245.318745-3-milkfafa@gmail.com
1 parent ac9a786 commit a053b7e

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/memory-controllers/nuvoton,npcm-memory-controller.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Nuvoton NPCM Memory Controller
8+
9+
maintainers:
10+
- Marvin Lin <kflin@nuvoton.com>
11+
- Stanley Chu <yschu@nuvoton.com>
12+
13+
description: |
14+
The Nuvoton BMC SoC supports DDR4 memory with or without ECC (error correction
15+
check).
16+
17+
The memory controller supports single bit error correction, double bit error
18+
detection (in-line ECC in which a section (1/8th) of the memory device used to
19+
store data is used for ECC storage).
20+
21+
Note, the bootloader must configure ECC mode for the memory controller.
22+
23+
properties:
24+
compatible:
25+
enum:
26+
- nuvoton,npcm750-memory-controller
27+
- nuvoton,npcm845-memory-controller
28+
29+
reg:
30+
maxItems: 1
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
required:
36+
- compatible
37+
- reg
38+
- interrupts
39+
40+
additionalProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/interrupt-controller/arm-gic.h>
45+
46+
mc: memory-controller@f0824000 {
47+
compatible = "nuvoton,npcm750-memory-controller";
48+
reg = <0xf0824000 0x1000>;
49+
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
50+
};

0 commit comments

Comments
 (0)