[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAODwPW-FjCtPGYkNYozo0ybEjz_rVOeDqkvEPiCmQ6M2in0OeQ@mail.gmail.com>
Date: Wed, 30 Jul 2025 11:27:36 -0700
From: Julius Werner <jwerner@...omium.org>
To: Clément Le Goffic <clement.legoffic@...s.st.com>
Cc: Will Deacon <will@...nel.org>, Mark Rutland <mark.rutland@....com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>, Alexandre Torgue <alexandre.torgue@...s.st.com>,
Philipp Zabel <p.zabel@...gutronix.de>, Jonathan Corbet <corbet@....net>,
Gatien Chevallier <gatien.chevallier@...s.st.com>, Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Gabriel Fernandez <gabriel.fernandez@...s.st.com>,
Krzysztof Kozlowski <krzk@...nel.org>, Le Goffic <legoffic.clement@...il.com>,
Julius Werner <jwerner@...omium.org>, linux-arm-kernel@...ts.infradead.org,
linux-perf-users@...r.kernel.org, devicetree@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org, linux-clk@...r.kernel.org
Subject: Re: [PATCH v5 05/20] dt-bindings: memory: factorise LPDDR props into
SDRAM props
> + Compatible strings can be either explicit vendor names and part numbers
> + (e.g. elpida,ECB240ABACN), or generated strings of the form
> + lpddrX,YY,ZZZZ or ddrX-YYYY,AAAA...,ZZZZ where X, Y, A and Z are in lower
If the revision ID is only one byte for DDR, there should be only two Zs.
> + case hexadecimal with leading zeroes.
AAAA is not hexadecimal, it's a verbatim ASCII string (at least that's
how I would define it, for readability).
> + For LPDDR and DDR SDRAM, X is the SDRAM version (2, 3, 4, etc.).
> + For LPDDR SDRAM:
> + - YY is the manufacturer ID (from MR5), 1 byte
> + - ZZZZ is the revision ID (from MR6 and MR7), 2 bytes
> + For DDR4 SDRAM with SPD, according to JEDEC SPD4.1.2.L-6 :
> + - YYYY is the manufacturer ID, 2 bytes, from bytes 320 and 321
> + - AAAA... is the part number, 20 bytes, from bytes 329 to 348
This should clarify that it is excluding trailing spaces (so only the
significant part of those 20 bytes, since they're supposed to be
padded with spaces at the end).
> + - Z is the revision ID, 1 byte, from byte 349
> + The former form is useful when the SDRAM vendor and part number are
> + known, such as when the SDRAM is soldered on the board.
This inversion of the statement is a bit odd? I think it's more
important to explain why we need the latter form (or just explain
both).
> + SDRAM revision ID:
> + - LPDDR SDRAM, decoded from Mode Register 6 and 7, always 2 bytes.
> + - DDR4 SDRAM, decoded from the SPD from byte 349 according to
> + JEDEC SPD4.1.2.L-6.
nit: Add "always one byte" for clarity and consistency with the LPDDR
equivalent.
Powered by blists - more mailing lists