xref: /freebsd/sys/contrib/device-tree/Bindings/memory-controllers/ddr/jedec,lpddr-props.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1*8bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8bab661aSEmmanuel Vadot%YAML 1.2
3*8bab661aSEmmanuel Vadot---
4*8bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr-props.yaml#
5*8bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8bab661aSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Common properties for LPDDR types
8*8bab661aSEmmanuel Vadot
9*8bab661aSEmmanuel Vadotdescription:
10*8bab661aSEmmanuel Vadot  Different LPDDR types generally use the same properties and only differ in the
11*8bab661aSEmmanuel Vadot  range of legal values for each. This file defines the common parts that can be
12*8bab661aSEmmanuel Vadot  reused for each type. Nodes using this schema should generally be nested under
13*8bab661aSEmmanuel Vadot  an LPDDR channel node.
14*8bab661aSEmmanuel Vadot
15*8bab661aSEmmanuel Vadotmaintainers:
16*8bab661aSEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
17*8bab661aSEmmanuel Vadot
18*8bab661aSEmmanuel Vadotproperties:
19*8bab661aSEmmanuel Vadot  compatible:
20*8bab661aSEmmanuel Vadot    description:
21*8bab661aSEmmanuel Vadot      Compatible strings can be either explicit vendor names and part numbers
22*8bab661aSEmmanuel Vadot      (e.g. elpida,ECB240ABACN), or generated strings of the form
23*8bab661aSEmmanuel Vadot      lpddrX-YY,ZZZZ where X is the LPDDR version, YY is the manufacturer ID
24*8bab661aSEmmanuel Vadot      (from MR5) and ZZZZ is the revision ID (from MR6 and MR7). Both IDs are
25*8bab661aSEmmanuel Vadot      formatted in lower case hexadecimal representation with leading zeroes.
26*8bab661aSEmmanuel Vadot      The latter form can be useful when LPDDR nodes are created at runtime by
27*8bab661aSEmmanuel Vadot      boot firmware that doesn't have access to static part number information.
28*8bab661aSEmmanuel Vadot
29*8bab661aSEmmanuel Vadot  reg:
30*8bab661aSEmmanuel Vadot    description:
31*8bab661aSEmmanuel Vadot      The rank number of this LPDDR rank when used as a subnode to an LPDDR
32*8bab661aSEmmanuel Vadot      channel.
33*8bab661aSEmmanuel Vadot    minimum: 0
34*8bab661aSEmmanuel Vadot    maximum: 3
35*8bab661aSEmmanuel Vadot
36*8bab661aSEmmanuel Vadot  revision-id:
37*8bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32-array
38*8bab661aSEmmanuel Vadot    description:
39*8bab661aSEmmanuel Vadot      Revision IDs read from Mode Register 6 and 7. One byte per uint32 cell (i.e. <MR6 MR7>).
40*8bab661aSEmmanuel Vadot    maxItems: 2
41*8bab661aSEmmanuel Vadot    items:
42*8bab661aSEmmanuel Vadot      minimum: 0
43*8bab661aSEmmanuel Vadot      maximum: 255
44*8bab661aSEmmanuel Vadot
45*8bab661aSEmmanuel Vadot  density:
46*8bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
47*8bab661aSEmmanuel Vadot    description:
48*8bab661aSEmmanuel Vadot      Density in megabits of SDRAM chip. Decoded from Mode Register 8.
49*8bab661aSEmmanuel Vadot    enum:
50*8bab661aSEmmanuel Vadot      - 64
51*8bab661aSEmmanuel Vadot      - 128
52*8bab661aSEmmanuel Vadot      - 256
53*8bab661aSEmmanuel Vadot      - 512
54*8bab661aSEmmanuel Vadot      - 1024
55*8bab661aSEmmanuel Vadot      - 2048
56*8bab661aSEmmanuel Vadot      - 3072
57*8bab661aSEmmanuel Vadot      - 4096
58*8bab661aSEmmanuel Vadot      - 6144
59*8bab661aSEmmanuel Vadot      - 8192
60*8bab661aSEmmanuel Vadot      - 12288
61*8bab661aSEmmanuel Vadot      - 16384
62*8bab661aSEmmanuel Vadot      - 24576
63*8bab661aSEmmanuel Vadot      - 32768
64*8bab661aSEmmanuel Vadot
65*8bab661aSEmmanuel Vadot  io-width:
66*8bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
67*8bab661aSEmmanuel Vadot    description:
68*8bab661aSEmmanuel Vadot      IO bus width in bits of SDRAM chip. Decoded from Mode Register 8.
69*8bab661aSEmmanuel Vadot    enum:
70*8bab661aSEmmanuel Vadot      - 8
71*8bab661aSEmmanuel Vadot      - 16
72*8bab661aSEmmanuel Vadot      - 32
73*8bab661aSEmmanuel Vadot
74*8bab661aSEmmanuel VadotadditionalProperties: true
75