Skip to content

Commit b5c1a21

Browse files
clegoffickrzk
authored andcommitted
dt-bindings: memory: introduce DDR4
Introduce JEDEC compliant DDR bindings, that use new memory-props binding. The DDR4 compatible can be made of explicit vendor names and part numbers or be of the form "ddrX-YYYY,AAAA...-ZZ" when associated with an SPD, where (according to JEDEC SPD4.1.2.L-6): - YYYY is the manufacturer ID - AAAA... is the part number - ZZ is the revision ID The former form is useful when the SDRAM vendor and part number are known, for example, when memory is soldered on the board. The latter form is useful when SDRAM nodes are created at runtime by boot firmware that doesn't have access to static part number information. Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com> Signed-off-by: Clément Le Goffic <legoffic.clement@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20251118-b4-ddr-bindings-v9-2-a033ac5144da@gmail.com Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
1 parent dffaa1b commit b5c1a21

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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/ddr/jedec,ddr4.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: DDR4 SDRAM compliant to JEDEC JESD79-4D
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <krzk@kernel.org>
11+
12+
allOf:
13+
- $ref: jedec,sdram-props.yaml#
14+
15+
properties:
16+
compatible:
17+
items:
18+
- pattern: "^ddr4-[0-9a-f]{4},[a-z]{1,20}-[0-9a-f]{2}$"
19+
- const: jedec,ddr4
20+
21+
required:
22+
- compatible
23+
- density
24+
- io-width
25+
26+
unevaluatedProperties: false
27+
28+
examples:
29+
- |
30+
ddr {
31+
compatible = "ddr4-00ff,azaz-ff", "jedec,ddr4";
32+
density = <8192>;
33+
io-width = <8>;
34+
};

0 commit comments

Comments
 (0)