dt-bindings: edac: Convert aspeed,ast2400-sdram-edac to DT schema
Subsystems (3)
Rob Herring (Arm)
maintainerPATCH 1/1 dt-bindings: edac: Convert aspeed,ast2400-sdram-edac to DT schema
Convert the ASpeed SDRAM EDAC binding to DT schema. It's a straight-forward conversion.
Signed-off-by Rob Herring (Arm) <[email protected]>
--- .../edac/aspeed,ast2400-sdram-edac.yaml | 48 +++++++++++++++++++ .../bindings/edac/aspeed-sdram-edac.txt | 28 ----------- MAINTAINERS | 2 +- 3 files changed, 49 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/edac/aspeed,ast2400-sdram-edac.yaml delete mode 100644 Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt
Documentation/devicetree/bindings/edac/aspeed,ast2400-sdram-edac.yaml new file +48 -0
@@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/edac/aspeed,ast2400-sdram-edac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed BMC SoC SDRAM EDAC controller + +maintainers: + - Stefan Schaeckeler <[email protected]> + +description: > + The Aspeed BMC 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). + + Note, the bootloader must configure ECC mode in the memory controller. + +properties: + compatible: + enum: + - aspeed,ast2400-sdram-edac + - aspeed,ast2500-sdram-edac + - aspeed,ast2600-sdram-edac + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + sdram@1e6e0000 { + compatible = "aspeed,ast2500-sdram-edac"; + reg = <0x1e6e0000 0x174>; + interrupts = <0>; + };
Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt deleted +0 -28
@@ -1,28 +0,0 @@ -Aspeed BMC SoC EDAC node - -The Aspeed BMC 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). - -Note, the bootloader must configure ECC mode in the memory controller. - - -Required properties: -- compatible: should be one of - - "aspeed,ast2400-sdram-edac" - - "aspeed,ast2500-sdram-edac" - - "aspeed,ast2600-sdram-edac" -- reg: sdram controller register set should be <0x1e6e0000 0x174> -- interrupts: should be AVIC interrupt #0 - - -Example: - - edac: sdram@1e6e0000 { - compatible = "aspeed,ast2500-sdram-edac"; - reg = <0x1e6e0000 0x174>; - interrupts = <0>; - };
MAINTAINERS +1 -1
@@ -8848,7 +8848,7 @@ F: drivers/edac/armada_xp_* EDAC-AST2500 M: Stefan Schaeckeler <[email protected]> S: Supported -F: Documentation/devicetree/bindings/edac/aspeed-sdram-edac.txt +F: Documentation/devicetree/bindings/edac/aspeed,ast2400-sdram-edac.yaml F: drivers/edac/aspeed_edac.c EDAC-BLUEFIELD
Signature · 1 line
2.51.0
Quoted 4 lines · Rob Herring (Arm)
Convert the ASpeed SDRAM EDAC binding to DT schema. It's a straight-forward conversion.
Signed-off-by Rob Herring (Arm) <[email protected]>
Thanks Rob.
Reviewed-by Andrew Jeffery <[email protected]>
Quoted 12 lines · Andrew Jeffery
Quoted 4 lines · Rob Herring (Arm)
Convert the ASpeed SDRAM EDAC binding to DT schema. It's a straight-forward conversion.
Signed-off-by Rob Herring (Arm) <[email protected]>Thanks Rob.
Reviewed-by Andrew Jeffery <[email protected]>
Reviewed-by Stefan Schaeckeler <[email protected]>