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

dt-bindings: memory: Add jedec,lpddr4 and jedec,lpddr5 bindings

This patch adds bindings for LPDDR4 and LPDDR5 memory analogous to the
existing bindings for LPDDR2 and LPDDR3. For now, the new types are only
needed for topology description, so other properties like timing
parameters are omitted. They can be added later if needed.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220930220606.303395-3-jwerner@chromium.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Julius Werner and committed by
Krzysztof Kozlowski
a500528f 686fe63b

+85
+4
Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr-props.yaml
··· 45 45 - 512 46 46 - 1024 47 47 - 2048 48 + - 3072 48 49 - 4096 50 + - 6144 49 51 - 8192 52 + - 12288 50 53 - 16384 54 + - 24576 51 55 - 32768 52 56 53 57 io-width:
+35
Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr4.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/ddr/jedec,lpddr4.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: LPDDR4 SDRAM compliant to JEDEC JESD209-4 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzk@kernel.org> 11 + 12 + allOf: 13 + - $ref: jedec,lpddr-props.yaml# 14 + 15 + properties: 16 + compatible: 17 + items: 18 + - pattern: "^lpddr4-[0-9a-f]{2},[0-9a-f]{4}$" 19 + - const: jedec,lpddr4 20 + 21 + required: 22 + - compatible 23 + - density 24 + - io-width 25 + 26 + unevaluatedProperties: false 27 + 28 + examples: 29 + - | 30 + lpddr { 31 + compatible = "lpddr4-ff,0100", "jedec,lpddr4"; 32 + density = <8192>; 33 + io-width = <16>; 34 + revision-id = <1 0>; 35 + };
+46
Documentation/devicetree/bindings/memory-controllers/ddr/jedec,lpddr5.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/ddr/jedec,lpddr5.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: LPDDR5 SDRAM compliant to JEDEC JESD209-5 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzk@kernel.org> 11 + 12 + allOf: 13 + - $ref: jedec,lpddr-props.yaml# 14 + 15 + properties: 16 + compatible: 17 + items: 18 + - pattern: "^lpddr5-[0-9a-f]{2},[0-9a-f]{4}$" 19 + - const: jedec,lpddr5 20 + 21 + serial-id: 22 + $ref: /schemas/types.yaml#/definitions/uint32-array 23 + description: 24 + Serial IDs read from Mode Registers 47 through 54. One byte per uint32 25 + cell (i.e. <MR47 MR48 MR49 MR50 MR51 MR52 MR53 MR54>). 26 + maxItems: 8 27 + items: 28 + minimum: 0 29 + maximum: 255 30 + 31 + required: 32 + - compatible 33 + - density 34 + - io-width 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + lpddr { 41 + compatible = "lpddr5-01,0200", "jedec,lpddr5"; 42 + density = <8192>; 43 + io-width = <8>; 44 + revision-id = <2 0>; 45 + serial-id = <3 1 0 0 0 0 0 0>; 46 + };