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

dt-bindings: memory-controllers: Convert Calxeda DDR to json-schema

Convert the Calxeda DDR memory controller binding to DT schema format
using json-schema.
Although this technically covers the whole DRAM controller, the
intention to use it only for error reporting and mapping fault addresses
to DRAM chips.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Andre Przywara and committed by
Rob Herring
a6325e3e 04cbb877

+42 -16
-16
Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.txt
··· 1 - Calxeda DDR memory controller 2 - 3 - Properties: 4 - - compatible : Should be: 5 - - "calxeda,hb-ddr-ctrl" for ECX-1000 6 - - "calxeda,ecx-2000-ddr-ctrl" for ECX-2000 7 - - reg : Address and size for DDR controller registers. 8 - - interrupts : Interrupt for DDR controller. 9 - 10 - Example: 11 - 12 - memory-controller@fff00000 { 13 - compatible = "calxeda,hb-ddr-ctrl"; 14 - reg = <0xfff00000 0x1000>; 15 - interrupts = <0 91 4>; 16 - };
+42
Documentation/devicetree/bindings/memory-controllers/calxeda-ddr-ctrlr.yaml
··· 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/calxeda-ddr-ctrlr.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Calxeda DDR memory controller binding 8 + 9 + description: | 10 + The Calxeda DDR memory controller is initialised and programmed by the 11 + firmware, but an OS might want to read its registers for error reporting 12 + purposes and to learn about the DRAM topology. 13 + 14 + maintainers: 15 + - Andre Przywara <andre.przywara@arm.com> 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - calxeda,hb-ddr-ctrl 21 + - calxeda,ecx-2000-ddr-ctrl 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + 34 + additionalProperties: false 35 + 36 + examples: 37 + - | 38 + memory-controller@fff00000 { 39 + compatible = "calxeda,hb-ddr-ctrl"; 40 + reg = <0xfff00000 0x1000>; 41 + interrupts = <0 91 4>; 42 + };